(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
/***/ "+TV4":
/*!********************************************************************************************************!*\
!*** ./src/app/users/pages/communication/board-setup/reported-comments/reported-comments.component.ts ***!
\********************************************************************************************************/
/*! exports provided: ReportedCommentsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportedCommentsComponent", function() { return ReportedCommentsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/board-setup/board-setup.service */ "UtxO");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function ReportedCommentsComponent_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ReportedCommentsComponent_table_24_tr_16_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "p", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const user_r5 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](user_r5.userId.name);
} }
function ReportedCommentsComponent_table_24_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, ReportedCommentsComponent_table_24_tr_16_div_11_Template, 3, 1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ReportedCommentsComponent_table_24_tr_16_Template_input_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const item_r3 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r6.changeCommentStatus(item_r3._id, item_r3.status); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.comment, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.postId.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3.wallId.wallName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](9, 6, item_r3.updatedAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r3.userList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r3.status === 1 ? "checked" : "");
} }
function ReportedCommentsComponent_table_24_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedCommentsComponent_table_24_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event, "comment"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Comments ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedCommentsComponent_table_24_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Post Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedCommentsComponent_table_24_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.onSortUsers($event, "wallName"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Social wall/Channel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedCommentsComponent_table_24_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortUsers($event, "updatedAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Reported Date / Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedCommentsComponent_table_24_Template_th_sort_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " USER NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ReportedCommentsComponent_table_24_tr_16_Template, 16, 8, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class ReportedCommentsComponent {
constructor(boardService, toastService, storageService, formBuilder) {
this.boardService = boardService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.isTableLoading = true;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = field;
this.usersPTable.sortBy = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
changeCommentStatus(id, status) {
const data = {
commentId: id,
status: status === 1 ? 2 : 1
};
const subscribe = this.boardService
.updateReportedComment(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success('Data updated Successfully');
this.loadUsers();
}, (error) => {
this.toastService.success('Error found');
});
}
loadUsers() {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.boardService
.getAllReportedComments(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsFiltered, data } = response;
this.usersPTable.data = data;
this.usersPTable.total = recordsFiltered;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
ReportedCommentsComponent.ɵfac = function ReportedCommentsComponent_Factory(t) { return new (t || ReportedCommentsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_5__["BoardSetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"])); };
ReportedCommentsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ReportedCommentsComponent, selectors: [["app-reported-comments"]], viewQuery: function ReportedCommentsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 31, vars: 16, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "switch"], ["type", "checkbox", 3, "checked", "click"], [1, "slider", "round"], [1, "list-item"]], template: function ReportedCommentsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "COMMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ReportedCommentsComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function ReportedCommentsComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, ReportedCommentsComponent_span_21_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ReportedCommentsComponent_Template_input_search_22_listener() { return ctx.loadUsers(); })("keyup", function ReportedCommentsComponent_Template_input_keyup_22_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function ReportedCommentsComponent_Template_input_ngModelChange_22_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, ReportedCommentsComponent_table_24_Template, 17, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ReportedCommentsComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function ReportedCommentsComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 6)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vYm9hcmQtc2V0dXAvcmVwb3J0ZWQtY29tbWVudHMvcmVwb3J0ZWQtY29tbWVudHMuY29tcG9uZW50LnNjc3MifQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ReportedCommentsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-reported-comments',
templateUrl: './reported-comments.component.html',
styleUrls: ['./reported-comments.component.scss']
}]
}], function () { return [{ type: src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_5__["BoardSetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "+VIy":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/communication/board-setup/questionnaire/questionnaire.component.ts ***!
\************************************************************************************************/
/*! exports provided: QuestionnaireComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionnaireComponent", function() { return QuestionnaireComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/board-setup/board-setup.service */ "UtxO");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function QuestionnaireComponent_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function QuestionnaireComponent_table_24_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](7, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuestionnaireComponent_table_24_tr_14_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5); const item_r3 = ctx.$implicit; const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r4.exportData(item_r3._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Export");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3.wallId.wallName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](7, 4, item_r3.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3.author.name);
} }
function QuestionnaireComponent_table_24_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function QuestionnaireComponent_table_24_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r6.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Post Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function QuestionnaireComponent_table_24_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event, "wallId.wallName"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Social Wall ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function QuestionnaireComponent_table_24_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r9.onSortUsers($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Created Date/Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function QuestionnaireComponent_table_24_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "author.name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " User Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, QuestionnaireComponent_table_24_tr_14_Template, 13, 6, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class QuestionnaireComponent {
constructor(boardService, toastService, storageService, formBuilder, notificationService) {
this.boardService = boardService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.notificationService = notificationService;
this.isTableLoading = true;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = field;
this.usersPTable.sortBy = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
loadUsers() {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.boardService
.getAllReportedQuestionarie(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, data } = response;
this.usersPTable.data = data;
this.usersPTable.total = recordsTotal;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
exportData(id) {
const subscribe = this.boardService
.exportQuestionnire(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe(({ data }) => {
this.notificationService.downloadUrl(data.csvLink).subscribe((content) => {
var a = document.createElement('a');
a.href = 'data:text/csv,' + content;
a.target = '_blank';
a.download = "questionnaire_" + moment__WEBPACK_IMPORTED_MODULE_5__(new Date()).format("DD-MM-yyyy") + ".csv";
document.body.appendChild(a);
a.click();
});
this.toastService.success('Data exported successfully');
}, (error) => {
this.toastService.error('No data found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
QuestionnaireComponent.ɵfac = function QuestionnaireComponent_Factory(t) { return new (t || QuestionnaireComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__["BoardSetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__["NotificationService"])); };
QuestionnaireComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: QuestionnaireComponent, selectors: [["app-questionnaire"]], viewQuery: function QuestionnaireComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 31, vars: 16, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"]], template: function QuestionnaireComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "QUESTIONNAIRE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function QuestionnaireComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function QuestionnaireComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, QuestionnaireComponent_span_21_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function QuestionnaireComponent_Template_input_search_22_listener() { return ctx.loadUsers(); })("keyup", function QuestionnaireComponent_Template_input_keyup_22_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function QuestionnaireComponent_Template_input_ngModelChange_22_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, QuestionnaireComponent_table_24_Template, 15, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function QuestionnaireComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function QuestionnaireComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_9__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["DatePipe"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vYm9hcmQtc2V0dXAvcXVlc3Rpb25uYWlyZS9xdWVzdGlvbm5haXJlLmNvbXBvbmVudC5zY3NzIn0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](QuestionnaireComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-questionnaire',
templateUrl: './questionnaire.component.html',
styleUrls: ['./questionnaire.component.scss']
}]
}], function () { return [{ type: src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__["BoardSetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__["NotificationService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "+pZ6":
/*!**********************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-events/events-view/events-view.component.ts ***!
\**********************************************************************************************/
/*! exports provided: EventsViewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsViewComponent", function() { return EventsViewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function EventsViewComponent_tr_99_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r1.authorId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](5, 3, item_r1.createdAt, "dd/MM/yyyy HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r1.logDescription);
} }
class EventsViewComponent {
constructor(newsService) {
this.newsService = newsService;
this.eventId = null;
this.eventData = null;
this.ViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].imageUrl;
}
ngOnInit() {
this.logPtable = {
sortBy: 'desc',
sortWith: 'createdAt',
postId: this.eventId,
data: [],
page: 1,
limit: 10,
search: '',
};
this.eventId && this.getEventsview(this.eventData);
this.eventId && this.getSinglePostLog(this.eventId);
}
getEventsview(eventObj) {
this.eventObject = eventObj;
this.contentTitle = this.eventObject.content.title;
this.eventTitle = this.eventObject.content.content;
// const sub = this.newsService
// .getSingleNewsEvents(id)
// .pipe(
// finalize(() => {
// sub.unsubscribe();
// })
// )
// .subscribe(
// ({ data }) => {
// this.eventObject = data;
// this.contentTitle = this.eventObject.content.title;
// this.eventTitle = this.eventObject.content.content;
// // this.eventFormGroup.patchValue({
// // ...event,
// // });
// // this.contentFormGroup.patchValue({
// // ...publish,
// // });
// // this.publicationFormGroup.patchValue({
// // ...event,
// // });
// // this.eventBoardFormGroup.patchValue({
// // ...eventBoard,
// // });
// // this.sessionsForm.patchValue({
// // ...session,
// // });
// // this.adminstrationFormGroup.patchValue({
// // ...admin,
// // });
// },
// (error) => {}
// );
}
onCancelView() {
this.ViewEvent.emit(null);
}
getSinglePostLog(id) {
const _a = this.logPtable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const sub = this.newsService
.getSinglePostLog(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data }) => {
this.logPtable.data = data.data;
}, (error) => { });
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
EventsViewComponent.ɵfac = function EventsViewComponent_Factory(t) { return new (t || EventsViewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_4__["NewsEventsService"])); };
EventsViewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: EventsViewComponent, selectors: [["app-events-view"]], inputs: { eventId: "eventId", eventData: "eventData" }, outputs: { ViewEvent: "ViewEvent" }, decls: 100, vars: 27, consts: [[1, "card", "mb-3", "w-100"], [1, "card-header", "flexi-header"], ["type", "button", 1, "btn", "pull-right", "btn-outline-light", 3, "click"], [1, "card-body"], [1, "row"], [1, "col-md-8"], [1, "card", "my-3", "w-100", "p-3"], [3, "innerHTML"], [1, "row", 2, "overflow", "hidden"], ["width", "100%", "height", "100%", "alt", "", "crossorigin", "anonymous", 3, "src"], [1, "col-md-4"], [1, "card", "my-3", "w-100"], [1, "custom-header"], [1, "horizontal-line"], [1, "col-10", 2, "display", "flex", "justify-content", "space-between", "flex-direction", "row", "align-items", "center"], ["alt", "Avatar", "crossorigin", "anonymous", 1, "image--cover", 3, "src"], [1, "ng-binding"], [1, "d-block", "text-muted", "ng-binding"], [1, "space-between"], [1, "list-heading"], [1, "list-value", "ml-1"], [1, "card-body", "p-0", "overflow-auto"], [1, "table"], ["sortable", "Tier 1", 1, "table-col"], ["sortable", "Tier 2", 1, "table-col"], ["sortable", "Tier 3", 1, "table-col"], [4, "ngFor", "ngForOf"], [1, "table-col", "w-25"], [1, "table-col"]], template: function EventsViewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "EVENT VIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventsViewComponent_Template_button_click_4_listener() { return ctx.onCancelView(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "p", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](12, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "img", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "p", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](18, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "AUTHOR INFO");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "hr", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "img", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "strong", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "small", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "PUBLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](37, "hr", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "Channel");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "Category");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, "Published On");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](54, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](57, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](60, "Expire On");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](61, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](64, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](67, "Organiser Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](68, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](73, "Event Start Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](74, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](77, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](79, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](80, "Location");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](81, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](85, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](87, "EVENT LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](88, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](89, "table", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](90, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](91, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](92, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](93, "USER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](94, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](95, "DATE AND TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](96, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](97, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](98, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](99, EventsViewComponent_tr_99_Template, 8, 6, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](12, 14, ctx.contentTitle), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", (ctx.eventObject == null ? null : ctx.eventObject.content == null ? null : ctx.eventObject.content.image) ? ctx.validateURLImage(ctx.eventObject.content.image) : null, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](18, 16, ctx.eventTitle), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", (ctx.eventObject == null ? null : ctx.eventObject.authorId == null ? null : ctx.eventObject.authorId.profilePicture) ? ctx.validateURLImage(ctx.eventObject.authorId.profilePicture) : null, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.eventObject == null ? null : ctx.eventObject.authorId == null ? null : ctx.eventObject.authorId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.eventObject == null ? null : ctx.eventObject.authorId == null ? null : ctx.eventObject.authorId.parentBussinessUnitId == null ? null : ctx.eventObject.authorId.parentBussinessUnitId.orgName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.eventObject == null ? null : ctx.eventObject.channelId == null ? null : ctx.eventObject.channelId.name, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.eventObject == null ? null : ctx.eventObject.categoryId == null ? null : ctx.eventObject.categoryId.name, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](57, 18, ctx.eventObject == null ? null : ctx.eventObject.publishing == null ? null : ctx.eventObject.publishing.startDate, "medium"), "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](64, 21, ctx.eventObject == null ? null : ctx.eventObject.publishing == null ? null : ctx.eventObject.publishing.endDate, "medium"), "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.eventObject == null ? null : ctx.eventObject.eventDetails == null ? null : ctx.eventObject.eventDetails.organizerName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](77, 24, ctx.eventObject == null ? null : ctx.eventObject.eventDetails == null ? null : ctx.eventObject.eventDetails.startDate, "medium"), "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.eventObject == null ? null : ctx.eventObject.eventDetails == null ? null : ctx.eventObject.eventDetails.address, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.logPtable.data);
} }, directives: [_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_7__["SafeHtmlPipe"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["DatePipe"]], styles: [".wrapper[_ngcontent-%COMP%] {\n padding: 100px;\n}\n\n.image--cover[_ngcontent-%COMP%] {\n width: 30%;\n height: 30%;\n border-radius: 50%;\n}\n\n.container[_ngcontent-%COMP%] {\n overflow: hidden;\n position: relative;\n}\n\n.container[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n position: absolute;\n right: 0;\n left: 0;\n margin: auto;\n}\n\n.list-heading[_ngcontent-%COMP%] {\n color: #a42138;\n width: 150px;\n}\n\n.list-value[_ngcontent-%COMP%] {\n color: #212121;\n}\n\n.custom-header[_ngcontent-%COMP%] {\n color: #a42138;\n padding: 10px;\n}\n\n.horizontal-line[_ngcontent-%COMP%] {\n margin-top: -15px;\n}\n\n.space-between[_ngcontent-%COMP%] {\n display: flex;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL2V2ZW50cy12aWV3L2V2ZW50cy12aWV3LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsY0FBQTtBQUNGOztBQUVBO0VBQ0UsVUFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtBQUNGOztBQUNBO0VBRUUsZ0JBQUE7RUFDQSxrQkFBQTtBQUNGOztBQUVBO0VBQ0Usa0JBQUE7RUFDQSxRQUFBO0VBQVUsT0FBQTtFQUNWLFlBQUE7QUFFRjs7QUFDQTtFQUNFLGNBQUE7RUFDQSxZQUFBO0FBRUY7O0FBQ0E7RUFDRSxjQUFBO0FBRUY7O0FBQ0E7RUFDRSxjQUFBO0VBQ0EsYUFBQTtBQUVGOztBQUNBO0VBQ0UsaUJBQUE7QUFFRjs7QUFDQTtFQUNFLGFBQUE7QUFFRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbWFuYWdlLWV2ZW50cy9ldmVudHMtdmlldy9ldmVudHMtdmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi53cmFwcGVyIHtcbiAgcGFkZGluZzogMTAwcHg7XG59XG5cbi5pbWFnZS0tY292ZXIge1xuICB3aWR0aDogMzAlO1xuICBoZWlnaHQ6IDMwJTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xufVxuLmNvbnRhaW5lcntcblxuICBvdmVyZmxvdzogaGlkZGVuO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi5jb250YWluZXIgaW1ne1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHJpZ2h0OiAwOyBsZWZ0OiAwO1xuICBtYXJnaW46IGF1dG9cbn1cblxuLmxpc3QtaGVhZGluZ3tcbiAgY29sb3I6ICNhNDIxMzg7XG4gIHdpZHRoOiAxNTBweDtcbn1cblxuLmxpc3QtdmFsdWV7XG4gIGNvbG9yOiAjMjEyMTIxO1xufVxuXG4uY3VzdG9tLWhlYWRlcntcbiAgY29sb3I6ICNhNDIxMzg7XG4gIHBhZGRpbmc6IDEwcHg7XG59XG5cbi5ob3Jpem9udGFsLWxpbmV7XG4gIG1hcmdpbi10b3A6IC0xNXB4O1xufVxuXG4uc3BhY2UtYmV0d2VlbntcbiAgZGlzcGxheTogZmxleDtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](EventsViewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-events-view',
templateUrl: './events-view.component.html',
styleUrls: ['./events-view.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_4__["NewsEventsService"] }]; }, { eventId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], eventData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], ViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "/WI1":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/quick-links/quick-links.component.ts ***!
\************************************************************************************************/
/*! exports provided: QuickLinksComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuickLinksComponent", function() { return QuickLinksComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
function QuickLinksComponent_div_18_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter a valid link ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function QuickLinksComponent_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, QuickLinksComponent_div_18_small_1_Template, 2, 0, "small", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.userLinkControl.link.errors.pattern);
} }
function QuickLinksComponent_option_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", cnt_r7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", cnt_r7, " ");
} }
function QuickLinksComponent_div_35_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuickLinksComponent_div_35_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onDeleteIcon(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "img", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r2.validateURLImage(ctx_r2.userFullLinksForm.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function QuickLinksComponent_button_38_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuickLinksComponent_button_38_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.addUserLinks(ctx_r10.userFullLinksForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function QuickLinksComponent_button_39_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuickLinksComponent_button_39_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.updateUserLinks(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function QuickLinksComponent_tr_57_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "a", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "img", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuickLinksComponent_tr_57_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const link_r14 = ctx.$implicit; const index_r15 = ctx.index; const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.editUsefullLinks(link_r14, index_r15); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuickLinksComponent_tr_57_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const index_r15 = ctx.index; const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.deteleUseFullLinnk(index_r15); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const link_r14 = ctx.$implicit;
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", link_r14.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("href", link_r14.link, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](link_r14.link);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r5.validateURLImage(link_r14.icon), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r5.usefullinkEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r5.usefullinkEdit);
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
const _c1 = function (a0, a1) { return { "fa-spin fa-spinner fa-2x": a0, " fa-plus-circle fa-2x": a1 }; };
const _c2 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
class QuickLinksComponent {
constructor(companyService, gamificationService, formBuilder, tostService, customFieldService) {
this.companyService = companyService;
this.gamificationService = gamificationService;
this.formBuilder = formBuilder;
this.tostService = tostService;
this.customFieldService = customFieldService;
this.userLinksubmitted = false;
this.useFullLinkOrders = [];
this.useFullLinksArray = [];
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl;
}
ngOnInit() {
this.initiUsefullLinkForm();
this.getCompanySettings();
}
initiUsefullLinkForm() {
return (this.userFullLinksForm = this.formBuilder.group({
indexNum: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
icon: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
link: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["URL_REGEX_PATTERN"])]],
title: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
}));
}
get userLinkControl() {
return this.userFullLinksForm.controls;
}
addUserLinks(userLink) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (!this.userFullLinksForm.valid) {
this.userLinksubmitted = true;
this.tostService.error('Please fill the quick links form');
return;
}
const index = this.useFullLinksArray.findIndex((x) => x.title === userLink.title);
if (index > -1) {
this.userFullLinksForm.reset();
return;
// errorAlert(`${value} is already added`);
}
else {
this.useFullLinksArray.push(userLink);
this.useFullLinkOrders.push(this.useFullLinksArray.length + 1);
const data = this.useFullLinksArray.sort((a, b) => a.indexNum - b.indexNum);
this.useFullLinksArray = data;
this.tostService.success('User Link added');
this.userFullLinksForm.reset();
this.userLinksubmitted = false;
}
});
}
onClearUserLink() {
this.userFullLinksForm.reset();
this.userLinksubmitted = false;
}
iconUpload(event) {
this.isIconLoading = true;
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.gamificationService.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.IconUrl = `${data.data.link}`;
this.userFullLinksForm.patchValue({
icon: `${data.data.link}`,
});
this.isIconLoading = false;
this.tostService.success('Icon Uploaded Successfully');
}, (error) => {
this.isIconLoading = false;
console.info(error);
this.tostService.error('The image is not uploaded, please upload again');
});
}
else {
this.tostService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
this.isIconLoading = false;
file = null;
}
}
}
onDeleteIcon() {
this.IconUrl = null;
this.userFullLinksForm.patchValue({
icon: '',
});
}
editUsefullLinks(data, index) {
this.useFullLinkOrders.pop();
this.usefullinkEdit = true;
this.usefullinkIndex = index;
this.IconUrl = data.icon;
this.userFullLinksForm.patchValue({
indexNum: data.indexNum,
icon: data.icon,
link: data.link,
title: data.title,
});
}
updateUserLinks() {
if (!this.userFullLinksForm.valid) {
this.userLinksubmitted = true;
this.tostService.error('Please fill the quick links form');
return;
}
this.useFullLinkOrders.push(this.useFullLinksArray.length + 1);
this.tostService.success('User Link updated');
this.usefullinkEdit = false;
this.IconUrl = null;
this.useFullLinksArray[this.usefullinkIndex] = this.userFullLinksForm.value;
const data = this.useFullLinksArray.sort((a, b) => a.indexNum - b.indexNum);
this.useFullLinksArray = data;
this.userFullLinksForm.reset();
}
deteleUseFullLinnk(index) {
this.tostService.success('User link deleted');
this.useFullLinksArray.splice(index, 1);
}
getCompanySettings() {
this.companyService.getcompanySetting().subscribe((res) => {
this.companySettingsId = res.data._id;
const data = res.data.externalLinks.sort((a, b) => a.indexNum - b.indexNum);
this.useFullLinksArray = data;
this.useFullLinksArray.forEach((e, i) => this.useFullLinkOrders.push(i + 1));
this.useFullLinkOrders.push(this.useFullLinksArray.length + 1);
// this.useFullLinkOrders.push(res.data.externalLinks.length + 1)
}, (error) => {
});
}
onSubmitSetupForm() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.isUpdateLoading = true;
const data = {
externalLinks: this.useFullLinksArray,
pageId: this.companySettingsId
};
const sub = this.companyService
.updateCompanySettings(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.useFullLinkOrders = [];
this.tostService.success('Updated SuccessFully');
this.isUpdateLoading = false;
this.ngOnInit();
}, (error) => {
this.isUpdateLoading = false;
});
});
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
QuickLinksComponent.ɵfac = function QuickLinksComponent_Factory(t) { return new (t || QuickLinksComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_6__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_9__["CustomFieldService"])); };
QuickLinksComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: QuickLinksComponent, selectors: [["quick-links"]], decls: 62, vars: 21, consts: [[1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "p-2", 3, "formGroup"], [1, "row"], [1, "col-md-4"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], ["type", "title", "placeholder", "Link Title", "formControlName", "title", "maxlength", "50", 1, "form-control"], ["type", "url", "placeholder", " External Link", "formControlName", "link", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], [1, "col-md-4", "mb-2"], [1, "font-weight-bold"], ["formControlName", "indexNum", 1, "dropdown-select", "w-100", "form-control"], ["selected", "", 3, "value"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "col-md-4", "mt-2"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["type", "file", "id", "c", 1, "custom-file-input", 3, "disabled", "change"], ["for", "i", 1, "custom-file-label"], ["aria-hidden", "true", 1, "fa", 3, "ngClass"], ["class", "col-md-4", 4, "ngIf"], ["class", "btn btn-add p-2 m-1", 3, "click", 4, "ngIf"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"], [1, "col"], [1, "table-responsive"], [1, "table"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "btn", "btn-submit", "update-button", "pl-3", "pr-3", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "invalid-feedback"], [4, "ngIf"], [3, "ngValue"], [1, "image-with-delete-icon", 2, "width", "150px"], ["title", "Delete", 1, "fa", "fa-close", 3, "click"], ["crossorigin", "anonymous", "width", "100px", "height", "80px", "alt", "Image Preview", 3, "src"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [3, "href"], ["crossorigin", "anonymous", "width", "50px", "height", "50px", "alt", "icon Preview", 3, "src"], [1, "btn", "btn-add", "p-2", 2, "width", "40px", 3, "disabled", "click"], ["aria-hidden", "true", 1, "fa", "fa-pencil-square-o"], [1, "btn", "btn-clear", "p-2", 2, "width", "40px", 3, "disabled", "click"], ["aria-hidden", "true", 1, "fa", "fa-trash"]], template: function QuickLinksComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "USEFUL LINKS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Link title (Limit To 50 characters)");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "External link");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, QuickLinksComponent_div_18_Template, 2, 1, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "select", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, QuickLinksComponent_option_26_Template, 2, 2, "option", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, "Upload icon");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "input", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function QuickLinksComponent_Template_input_change_32_listener($event) { return ctx.iconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](34, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](35, QuickLinksComponent_div_35_Template, 4, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](38, QuickLinksComponent_button_38_Template, 2, 0, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](39, QuickLinksComponent_button_39_Template, 2, 0, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuickLinksComponent_Template_button_click_40_listener() { return ctx.onClearUserLink(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "table", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](49, "TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, "EXTERNAL LINK");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, "ICON IMAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](55, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](57, QuickLinksComponent_tr_57_Template, 14, 6, "tr", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuickLinksComponent_Template_button_click_59_listener() { return ctx.onSubmitSetupForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](60, "i", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](61, "Update");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userFullLinksForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](13, _c0, ctx.userLinksubmitted && ctx.userLinkControl.link.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userLinksubmitted && ctx.userLinkControl.link.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.useFullLinkOrders);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isIconLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](15, _c1, ctx.isIconLoading, !ctx.isIconLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userFullLinksForm.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.usefullinkEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usefullinkEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.useFullLinksArray);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isUpdateLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](18, _c2, ctx.isUpdateLoading, !ctx.isUpdateLoading));
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3N5c3RlbS1zZXR0aW5ncy9jb21wYW55LXNldHVwL3F1aWNrLWxpbmtzL3F1aWNrLWxpbmtzLmNvbXBvbmVudC5zY3NzIn0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](QuickLinksComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'quick-links',
templateUrl: './quick-links.component.html',
styleUrls: ['./quick-links.component.scss']
}]
}], function () { return [{ type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_6__["CompanySetupService"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_9__["CustomFieldService"] }]; }, null); })();
/***/ }),
/***/ "/bT2":
/*!**********************************************************************!*\
!*** ./src/app/users/pages/users/view-users/view-users.component.ts ***!
\**********************************************************************/
/*! exports provided: ViewUsersComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewUsersComponent", function() { return ViewUsersComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var _service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _user_details_user_details_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./user-details/user-details.component */ "p2yD");
function ViewUsersComponent_div_0_span_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ViewUsersComponent_div_0_table_20_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ViewUsersComponent_div_0_table_20_tr_14_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r8); const item_r6 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r7.viewUser(item_r6._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r6 == null ? null : item_r6.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r6 == null ? null : item_r6.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r6 == null ? null : item_r6.appointment == null ? null : item_r6.appointment.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r6 == null ? null : item_r6.businessUnit);
} }
function ViewUsersComponent_div_0_table_20_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ViewUsersComponent_div_0_table_20_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r9.onSortViewUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " USER NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ViewUsersComponent_div_0_table_20_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.onSortViewUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " STAFF ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ViewUsersComponent_div_0_table_20_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r12.onSortViewUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " APPOINMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "PARENT BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ViewUsersComponent_div_0_table_20_tr_14_Template, 13, 4, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.usersPTable.data);
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function ViewUsersComponent_div_0_ngx_skeleton_loader_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ngx-skeleton-loader", 27);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c0));
} }
function ViewUsersComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h5", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "VIEW USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ViewUsersComponent_div_0_Template_select_change_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.onLimitChangeUsers(); })("ngModelChange", function ViewUsersComponent_div_0_Template_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, ViewUsersComponent_div_0_span_18_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ViewUsersComponent_div_0_Template_input_search_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.UserssearchInput.next($event); })("keyup", function ViewUsersComponent_div_0_Template_input_keyup_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.UserssearchInput.next($event); })("ngModelChange", function ViewUsersComponent_div_0_Template_input_ngModelChange_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, ViewUsersComponent_div_0_table_20_Template, 15, 1, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, ViewUsersComponent_div_0_ngx_skeleton_loader_21_Template, 1, 2, "ngx-skeleton-loader", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "p", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "b", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "ngb-pagination", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ViewUsersComponent_div_0_Template_ngb_pagination_pageChange_28_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.usersPTable.page = $event; })("pageChange", function ViewUsersComponent_div_0_Template_ngb_pagination_pageChange_28_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r0.usersPTable.total);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r0.usersPTable.total)("page", ctx_r0.usersPTable.page)("maxSize", 5)("pageSize", ctx_r0.usersPTable.limit);
} }
function ViewUsersComponent_app_user_details_1_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-user-details", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("overViewEvent", function ViewUsersComponent_app_user_details_1_Template_app_user_details_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("userId", ctx_r1.userId);
} }
class ViewUsersComponent {
constructor(formBuilder, buUnit, userService, toastService, router, tableService) {
this.formBuilder = formBuilder;
this.buUnit = buUnit;
this.userService = userService;
this.toastService = toastService;
this.router = router;
this.tableService = tableService;
this.sectionDropDown = [];
this.isUserViewed = false;
this.viewEnabled = false;
this.isTableLoading = false;
this.sectionDropDownLoading = false;
this.UserssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
this.userId = null;
this.userTableColumn = ['name', 'staffId', 'appointment.name', 'businessUnit', '_id'];
this.tableQueryParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_6__["tableParam"];
this.viewProfileData = null;
this.bussinesUnitPTable = {
sortBy: 'createdAt',
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
filter: {
type: 'view',
},
};
this.usersPTable = {
sortBy: 'createdBy',
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
filter: {
status: ['active', 'inactive'],
parentBussinessUnitId: [],
},
};
this.UsersSearchSubscription = this.UserssearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.usersPTable.page = 1;
this.tableQueryParams.start = 0;
this.tableQueryParams.search.value = input;
this.loadUsers();
});
this.initForm();
}
onSortViewUsers({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sort = { key: column, order: direction };
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.tableQueryParams.start = +page > 1 ? (page - 1) * this.usersPTable.limit : 0;
this.loadUsers();
}
onLimitChangeUsers() {
this.usersPTable.page = 1;
this.tableQueryParams.start = 0;
this.loadUsers();
}
ngOnInit() {
this.tableQueryParams.draw = 0;
this.loadUsers();
}
viewUser(id) {
this.isUserViewed = true;
this.userId = id;
}
getUserViewDetails() {
}
overViewEvent(value) {
this.isUserViewed = false;
this.userId = null;
}
onSeachSection(value) {
this.bussinesUnitPTable.limit = 10;
this.bussinesUnitPTable.search = value.term;
this.loadBussinessUnit();
}
loadMoreSectionItems(value) {
this.bussinesUnitPTable.limit = this.bussinesUnitPTable.limit + 10;
this.loadBussinessUnit();
}
onClearSectionDropdown(value) {
if (value === undefined) {
this.viewBussinessUnitForm.patchValue({
bussinessUnit: null,
});
this.bussinesUnitPTable.search = '';
this.loadBussinessUnit();
this.sectionDropDown = [];
this.bussinesUnitPTable.data = [];
}
}
loadBussinessUnit() {
this.sectionDropDownLoading = true;
const _a = this.bussinesUnitPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.buUnit
.getBussinesUnit(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.sectionDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.bussinesUnitPTable.data = data;
this.sectionDropDown = data;
this.bussinesUnitPTable.total = count;
}, (error) => {
this.bussinesUnitPTable.data = [];
this.bussinesUnitPTable.total = 0;
this.toastService.error('No list found');
});
}
bussinessunitView() {
if (!this.viewBussinessUnitForm.valid) {
return;
}
const { bussinessUnit } = this.viewBussinessUnitForm.value;
this.usersPTable.filter.parentBussinessUnitId = [bussinessUnit];
this.loadUsers();
}
loadUsers() {
// const {data, loading,total ,...rest} = this.usersPTable
this.tableQueryParams['onlyViewBU'] = true;
let tableCol = this.tableService.initializeTableParamsColums(this.userTableColumn, [0, 1], [0, 1, 2, 3, 4]) || [];
this.tableQueryParams.columns = tableCol;
this.tableQueryParams.draw++;
this.tableQueryParams.length = this.usersPTable.limit;
this.isTableLoading = true;
const subscribe = this.userService
.getAllViewUsers(this.tableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
// this.isTableLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
// const { count, data } = response.data;
this.isTableLoading = false;
this.usersPTable.data = response.data;
this.usersPTable.total = response === null || response === void 0 ? void 0 : response.recordsFiltered;
this.viewEnabled = true;
this.viewBussinessUnitForm.reset();
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
this.isTableLoading = false;
});
}
goBack() {
this.router.navigateByUrl('/users/home');
}
initForm() {
this.viewBussinessUnitForm = this.formBuilder.group({
bussinessUnit: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
}
ngOnDestroy() {
}
}
ViewUsersComponent.ɵfac = function ViewUsersComponent_Factory(t) { return new (t || ViewUsersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_7__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_11__["TableService"])); };
ViewUsersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ViewUsersComponent, selectors: [["app-view-users"]], viewQuery: function ViewUsersComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 2, vars: 2, consts: [["class", "card", 4, "ngIf"], [3, "userId", "overViewEvent", 4, "ngIf"], [1, "card"], [1, "card-header", "bg-theme"], [1, "m-0"], [1, "card-body", "table-responsive", "p-0"], [1, "d-flex", "justify-content-between", "m-2"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], ["class", "table", 4, "ngIf"], ["count", "6", 3, "theme", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Status", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "font-weight-500"], [1, "btn", "btn-success", "btn-sm", 3, "click"], ["count", "6", 3, "theme"], [3, "userId", "overViewEvent"]], template: function ViewUsersComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ViewUsersComponent_div_0_Template, 29, 15, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ViewUsersComponent_app_user_details_1_Template, 1, 1, "app-user-details", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isUserViewed);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isUserViewed);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_15__["NgxSkeletonLoaderComponent"], _user_details_user_details_component__WEBPACK_IMPORTED_MODULE_16__["UserDetailsComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3VzZXJzL3ZpZXctdXNlcnMvdmlldy11c2Vycy5jb21wb25lbnQuc2NzcyJ9 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ViewUsersComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-view-users',
templateUrl: './view-users.component.html',
styleUrls: ['./view-users.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_7__["BussinessUnitService"] }, { type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_10__["Router"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_11__["TableService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ 0:
/*!***************************!*\
!*** multi ./src/main.ts ***!
\***************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(/*! /app/src/main.ts */"zUnb");
/***/ }),
/***/ "0UIz":
/*!*****************************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-balloting/create-ballot/create-ballot.component.ts ***!
\*****************************************************************************************************/
/*! exports provided: CustomDateParserFormatter, CreateBallotComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDateParserFormatter", function() { return CustomDateParserFormatter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateBallotComponent", function() { return CreateBallotComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/stepper */ "B/XX");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/human-resources/leave-planner.service */ "Z/ig");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/ops-group/ops-group.service */ "NV6M");
/* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/stepper */ "xHqg");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
const _c0 = ["stepper"];
const _c1 = ["table"];
function CreateBallotComponent_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "img", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Please wait, data is loading...");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "ENTER BALLOT DATA ");
} }
function CreateBallotComponent_div_18_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Ballot Name is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_18_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r3.ballotdata.controls.ballotName.errors.required);
} }
function CreateBallotComponent_div_28_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Opening Date is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_28_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.ballotdata.controls.openDate.errors.required);
} }
function CreateBallotComponent_div_36_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Opening Time is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_36_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.ballotdata.controls.openTime.errors.required);
} }
function CreateBallotComponent_div_45_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Closing date Date is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_45_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r8.ballotdata.controls.closeDate.errors.required);
} }
function CreateBallotComponent_div_53_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Closing Time is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_53_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_53_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r9.ballotdata.controls.closeTime.errors.required);
} }
function CreateBallotComponent_div_62_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Ballot Start Date is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_62_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_62_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.ballotdata.controls.ballotStartDate.errors.required);
} }
function CreateBallotComponent_div_71_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Ballot End Date is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_71_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_71_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r13.ballotdata.controls.ballotEndDate.errors.required);
} }
function CreateBallotComponent_div_94_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Block Leave Configuration: ", ctx_r14.blockLeave, " ");
} }
function CreateBallotComponent_ng_container_95_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Please select Fixed Balloting Leave Type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_ng_container_95_div_8_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Please enter Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
const _c2 = function (a0) { return { "is-invalid": a0 }; };
function CreateBallotComponent_ng_container_95_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_ng_container_95_div_8_div_5_Template, 3, 0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](2, _c2, ctx_r50.ballotdataSubmitted && (ctx_r50.ballotdata.errors == null ? null : ctx_r50.ballotdata.errors.quotaValueNull)));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r50.ballotdataSubmitted && (ctx_r50.ballotdata.errors == null ? null : ctx_r50.ballotdata.errors.quotaValueNull));
} }
function CreateBallotComponent_ng_container_95_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Fixed Balloting Leave Type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, CreateBallotComponent_ng_container_95_div_7_Template, 3, 0, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, CreateBallotComponent_ng_container_95_div_8_Template, 6, 4, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](3, _c2, ctx_r15.ballotdataSubmitted && (ctx_r15.ballotdata.errors == null ? null : ctx_r15.ballotdata.errors.fixedNotChecked)));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.ballotdataSubmitted && (ctx_r15.ballotdata.errors == null ? null : ctx_r15.ballotdata.errors.fixedNotChecked));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.ballotdata.get("fixedBallotingLeaveType").value);
} }
function CreateBallotComponent_div_117_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Result Release Type is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_117_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_117_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r16.ballotdata.controls.resultRelease.errors.required);
} }
function CreateBallotComponent_div_118_div_12_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Release Date is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_118_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_118_div_12_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r54.ballotdata.controls.resultReleaseDate.errors.required);
} }
function CreateBallotComponent_div_118_div_20_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Release Date is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_118_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_118_div_20_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r55.ballotdata.controls.resultReleaseTime.errors.required);
} }
function CreateBallotComponent_div_118_Template(rf, ctx) { if (rf & 1) {
const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Select Date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "input", 95, 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_div_118_Template_input_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r59); const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](11); return _r53.toggle(); })("closed", function CreateBallotComponent_div_118_Template_input_closed_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r59); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r60.resultReleaseTimeCheck(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, CreateBallotComponent_div_118_div_12_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Select Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "ng-select", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateBallotComponent_div_118_Template_ng_select_change_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r59); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r61.resultReleaseTimeCheck(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, CreateBallotComponent_div_118_div_20_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("minDate", ctx_r17.ballotdata.controls.closeDate.value)("maxDate", ctx_r17.ballotdata.controls.ballotStartDate.value)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](7, _c2, ctx_r17.ballotdataSubmitted && ctx_r17.ballotdata.controls.resultReleaseDate.errors || !ctx_r17.ballotdata.controls.resultReleaseDate.pristine && ctx_r17.ballotdata.controls.resultReleaseDate.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.ballotdataSubmitted && ctx_r17.ballotdata.controls.resultReleaseDate.errors || !ctx_r17.ballotdata.controls.resultReleaseDate.pristine && ctx_r17.ballotdata.controls.resultReleaseDate.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx_r17.time)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](9, _c2, ctx_r17.ballotdataSubmitted && ctx_r17.ballotdata.controls.resultReleaseTime.errors || !ctx_r17.ballotdata.controls.resultReleaseTime.pristine && ctx_r17.ballotdata.controls.resultReleaseTime.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.ballotdataSubmitted && ctx_r17.ballotdata.controls.resultReleaseTime.errors || !ctx_r17.ballotdata.controls.resultReleaseTime.pristine && ctx_r17.ballotdata.controls.resultReleaseTime.invalid);
} }
function CreateBallotComponent_ng_template_128_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0);
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r18.autoBallot ? "AUTO-ASSIGN SETUP" : "SLOTS & QUOTAS SETUP", " ");
} }
function CreateBallotComponent_div_141_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Ops group is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_div_141_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_141_div_1_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r19.slotQuotaSetup.controls.opsGroupId.errors.required);
} }
function CreateBallotComponent_ng_template_143_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r64 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r64.opsGroupName);
} }
function CreateBallotComponent_ng_template_143_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](0, CreateBallotComponent_ng_template_143_div_0_Template, 3, 1, "div", 98);
} if (rf & 2) {
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r20.opsGrp);
} }
function CreateBallotComponent_div_145_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "h6", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Ratio for balance quota assignment ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "p", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, " Unassigned");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "span", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "p", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, " Balance Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "span", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "p", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " Ratio");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](18, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "span", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](21, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r66.autoBallot.data.totUN);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r66.autoBallot.data.TotBQ);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](21, 3, ctx_r66.autoBallot.data.totUN / ctx_r66.autoBallot.data.TotBQ));
} }
function CreateBallotComponent_div_145_table_5_th_9_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 2, item_r71[0], "dd MMM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](3, 5, item_r71[1], "dd MMM"), " ");
} }
function CreateBallotComponent_div_145_table_5_th_9_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 1, item_r71, "dd MMM"), "");
} }
function CreateBallotComponent_div_145_table_5_th_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "th", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateBallotComponent_div_145_table_5_th_9_ng_container_4_Template, 4, 8, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_div_145_table_5_th_9_ng_container_5_Template, 3, 4, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r72 = ctx.index;
const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" SLOT ", i_r72 + 1, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r69.ballotdata.get("leaveType").value == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r69.ballotdata.get("leaveType").value == "2");
} }
const _c3 = function () { return { standalone: true }; };
function CreateBallotComponent_div_145_table_5_tr_11_td_9_Template(rf, ctx) { if (rf & 1) {
const _r84 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_div_145_table_5_tr_11_td_9_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r84); const i_r81 = ctx.index; const item_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit; return (item_r77.slots[i_r81] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r81 = ctx.index;
const item_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("is-invalid", (item_r77.slots[i_r81] === null || item_r77.slots[i_r81] === undefined) && ctx_r79.slotQuotaSetupSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", item_r77.slots[i_r81])("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](4, _c3));
} }
function CreateBallotComponent_div_145_table_5_tr_11_Template(rf, ctx) { if (rf & 1) {
const _r87 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "th", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "input", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_div_145_table_5_tr_11_Template_input_ngModelChange_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r87); const ind_r78 = ctx.index; const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return (ctx_r86.slot[ind_r78] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "input", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateBallotComponent_div_145_table_5_tr_11_Template_input_change_8_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r87); const ind_r78 = ctx.index; const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r88.checkAllSlots($event, ind_r78); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, CreateBallotComponent_div_145_table_5_tr_11_td_9_Template, 2, 5, "td", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r77 = ctx.$implicit;
const ind_r78 = ctx.index;
const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r77.OpsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r77.OpsTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r70.slot[ind_r78])("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](5, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r70.slotWeeks);
} }
function CreateBallotComponent_div_145_table_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "table", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " OPS GROUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " OPS TEAM ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " ADD TO ALL SLOTS ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, CreateBallotComponent_div_145_table_5_th_9_Template, 6, 3, "th", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, CreateBallotComponent_div_145_table_5_tr_11_Template, 10, 6, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r67.slotWeeks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r67.allOps);
} }
function CreateBallotComponent_div_145_table_6_th_14_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 2, item_r91[0], "dd MMM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](3, 5, item_r91[1], "dd MMM"), " ");
} }
function CreateBallotComponent_div_145_table_6_th_14_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 1, item_r91, "dd MMM"), "");
} }
function CreateBallotComponent_div_145_table_6_th_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "th", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateBallotComponent_div_145_table_6_th_14_ng_container_4_Template, 4, 8, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_div_145_table_6_th_14_ng_container_5_Template, 3, 4, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "BQ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "span", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TBA");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r92 = ctx.index;
const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" SLOT ", i_r92 + 1, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r89.ballotdata.get("leaveType").value == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r89.ballotdata.get("leaveType").value == "2");
} }
function CreateBallotComponent_div_145_table_6_tr_16_td_9_Template(rf, ctx) { if (rf & 1) {
const _r104 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_div_145_table_6_tr_16_td_9_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r104); const i_r101 = ctx.index; const item_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit; return (item_r97.slots[i_r101][0] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_div_145_table_6_tr_16_td_9_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r104); const i_r101 = ctx.index; const item_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit; return (item_r97.slots[i_r101][1] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r101 = ctx.index;
const item_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", item_r97.slots[i_r101][0])("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](4, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", item_r97.slots[i_r101][1])("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](5, _c3));
} }
function CreateBallotComponent_div_145_table_6_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "th", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, CreateBallotComponent_div_145_table_6_tr_16_td_9_Template, 4, 6, "td", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r97 = ctx.$implicit;
const ctx_r90 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r97.OpsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r97.OpsTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("value", item_r97.BallotBalance);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("value", item_r97.unassignBalanace);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r90.slotWeeks);
} }
function CreateBallotComponent_div_145_table_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "table", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " OPS GROUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " OPS TEAM ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " TOTAL ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "BQ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "span", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "U");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, CreateBallotComponent_div_145_table_6_th_14_Template, 11, 3, "th", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, CreateBallotComponent_div_145_table_6_tr_16_Template, 10, 5, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r68.slotWeeks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r68.allOps);
} }
function CreateBallotComponent_div_145_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_div_145_div_1_Template, 22, 5, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_div_145_table_5_Template, 12, 2, "table", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, CreateBallotComponent_div_145_table_6_Template, 17, 2, "table", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r21.autoBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r21.autoBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r21.autoBallot);
} }
function CreateBallotComponent_div_147_table_6_tr_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r110 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r110.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r110.ballotLeaveBalance);
} }
function CreateBallotComponent_div_147_table_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "table", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "STAFF NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "BALLOT BALANCE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, CreateBallotComponent_div_147_table_6_tr_8_Template, 5, 2, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r108 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r108.autoBallotStaff.data);
} }
function CreateBallotComponent_div_147_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " ELIGIBLE STAFF FOR AUTO-ASSIGNMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, CreateBallotComponent_div_147_table_6_Template, 9, 1, "table", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r22.autoBallotStaff);
} }
function CreateBallotComponent_ng_template_162_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "RESTRICTIONS & LIMITS ");
} }
function CreateBallotComponent_ng_container_182_tr_22_button_16_Template(rf, ctx) { if (rf & 1) {
const _r128 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_ng_container_182_tr_22_button_16_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r128); const i_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r126.plusSegment(i_r121); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "add");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const seg_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !seg_r120.valid || (ctx_r124.autoBallot == null ? null : ctx_r124.autoBallot.data == null ? null : ctx_r124.autoBallot.data.isAutoAssign) || ctx_r124.roundBallot);
} }
function CreateBallotComponent_ng_container_182_tr_22_button_17_Template(rf, ctx) { if (rf & 1) {
const _r132 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_ng_container_182_tr_22_button_17_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r132); const i_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r130 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r130.editSegment(i_r121); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "edit");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r125 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", (ctx_r125.autoBallot == null ? null : ctx_r125.autoBallot.data == null ? null : ctx_r125.autoBallot.data.isAutoAssign) || ctx_r125.roundBallot);
} }
function CreateBallotComponent_ng_container_182_tr_22_Template(rf, ctx) { if (rf & 1) {
const _r134 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 147);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 148, 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_ng_container_182_tr_22_Template_input_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r134); const _r122 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](6); return _r122.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "input", 149, 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_ng_container_182_tr_22_Template_input_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r134); const _r123 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](9); return _r123.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "button", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_ng_container_182_tr_22_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r134); const i_r121 = ctx.index; const ctx_r136 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r136.removeMaxSegment(i_r121); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "span", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "clear");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, CreateBallotComponent_ng_container_182_tr_22_button_16_Template, 3, 1, "button", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, CreateBallotComponent_ng_container_182_tr_22_button_17_Template, 3, 1, "button", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const seg_r120 = ctx.$implicit;
const i_r121 = ctx.index;
const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", i_r121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](i_r121 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("minDate", ctx_r111.minSegmentDate)("maxDate", ctx_r111.maxSegmentDate);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("minDate", ctx_r111.maxSegment.at(i_r121).get("startDate").value)("maxDate", ctx_r111.maxSegmentDate);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", (ctx_r111.autoBallot == null ? null : ctx_r111.autoBallot.data == null ? null : ctx_r111.autoBallot.data.isAutoAssign) || ctx_r111.roundBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !seg_r120.disabled);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", seg_r120.disabled);
} }
function CreateBallotComponent_ng_container_182_ng_option_47_ng_template_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](1, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
} if (rf & 2) {
const ctx_r141 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
const i_r138 = ctx_r141.index;
const item_r137 = ctx_r141.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate3"](" Slot--", i_r138 + 1, " ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](1, 3, item_r137[0], "dd-MMM"), " -- ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 6, item_r137[1], "dd-MMM"), " ");
} }
function CreateBallotComponent_ng_container_182_ng_option_47_ng_template_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](1, "date");
} if (rf & 2) {
const ctx_r142 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
const i_r138 = ctx_r142.index;
const item_r137 = ctx_r142.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" Slot--", i_r138 + 1, " ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](1, 2, item_r137, "dd-MMM"), " ");
} }
function CreateBallotComponent_ng_container_182_ng_option_47_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateBallotComponent_ng_container_182_ng_option_47_ng_template_1_Template, 3, 9, "ng-template", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, CreateBallotComponent_ng_container_182_ng_option_47_ng_template_2_Template, 2, 5, "ng-template", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r137 = ctx.$implicit;
const ctx_r112 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r112.ballotdata.get("leaveType").value == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r112.ballotdata.get("leaveType").value == "2");
} }
function CreateBallotComponent_ng_container_182_div_48_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Please select slot");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_ng_container_182_div_52_Template(rf, ctx) { if (rf & 1) {
const _r146 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_ng_container_182_div_52_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r146); const ops_r143 = ctx.$implicit; return ops_r143.isSelected = $event; })("change", function CreateBallotComponent_ng_container_182_div_52_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r146); const oi_r144 = ctx.index; const ops_r143 = ctx.$implicit; const ctx_r147 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r147.selectedResGrp($event, oi_r144, ops_r143); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ops_r143 = ctx.$implicit;
const oi_r144 = ctx.index;
const ctx_r114 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate1"]("id", "gridCheck", oi_r144, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ops_r143.isSelected)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](6, _c3))("disabled", ctx_r114.roundBallot || (ctx_r114.autoBallot == null ? null : ctx_r114.autoBallot.data == null ? null : ctx_r114.autoBallot.data.isAutoAssign));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate1"]("for", "gridCheck", oi_r144, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ops_r143.opsGroupName, " ");
} }
function CreateBallotComponent_ng_container_182_div_53_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Please select Ops group");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_ng_container_182_label_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "label", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Select Ops Team");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_ng_container_182_div_56_Template(rf, ctx) { if (rf & 1) {
const _r151 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_ng_container_182_div_56_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r151); const team_r148 = ctx.$implicit; return team_r148.isSelected = $event; })("change", function CreateBallotComponent_ng_container_182_div_56_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r151); const ti_r149 = ctx.index; const team_r148 = ctx.$implicit; const ctx_r152 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r152.selectStaff($event, ti_r149, team_r148); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r148 = ctx.$implicit;
const ti_r149 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate1"]("id", "gridCheck", ti_r149, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", team_r148.isSelected)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](5, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate1"]("for", "gridCheck", ti_r149, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", team_r148.name, " ");
} }
function CreateBallotComponent_ng_container_182_div_57_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r155 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r155.name, "");
} }
function CreateBallotComponent_ng_container_182_div_57_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Please select staff");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_ng_container_182_div_57_Template(rf, ctx) { if (rf & 1) {
const _r157 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Select Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 166);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_ng_container_182_div_57_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r157); const ctx_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r156.resStaff = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateBallotComponent_ng_container_182_div_57_ng_option_4_Template, 2, 2, "ng-option", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_ng_container_182_div_57_div_5_Template, 2, 0, "div", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r118 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", true)("closeOnSelect", false)("searchable", true)("ngModel", ctx_r118.resStaff)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](7, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r118.allStaff);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r118.addStaffFlag && !ctx_r118.resStaff);
} }
function CreateBallotComponent_ng_container_182_div_61_tr_13_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const el_r162 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](el_r162.name);
} }
function CreateBallotComponent_ng_container_182_div_61_tr_13_Template(rf, ctx) { if (rf & 1) {
const _r164 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td", 168);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateBallotComponent_ng_container_182_div_61_tr_13_span_4_Template, 2, 1, "span", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "button", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_ng_container_182_div_61_tr_13_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r164); const in_r160 = ctx.index; const ctx_r163 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r163.removeStaff(in_r160); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "clear");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r159 = ctx.$implicit;
const ctx_r158 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r159.slot, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", item_r159.userList);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", (ctx_r158.autoBallot == null ? null : ctx_r158.autoBallot.data == null ? null : ctx_r158.autoBallot.data.isAutoAssign) || ctx_r158.roundBallot);
} }
function CreateBallotComponent_ng_container_182_div_61_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 167);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "SLOTS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "RESTRICTED STAFF");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "REMOVE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, CreateBallotComponent_ng_container_182_div_61_tr_13_Template, 9, 3, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r119.resStaffArr);
} }
function CreateBallotComponent_ng_container_182_Template(rf, ctx) { if (rf & 1) {
const _r166 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, " BY MAXIMUM SUBMISSION PER SEGMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "table", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "SEGMENT NO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "START DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "END DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "MAXIMUM SLOT PER STAFF");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, "ACTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "tbody", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](22, CreateBallotComponent_ng_container_182_tr_22_Template, 18, 9, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_ng_container_182_Template_button_click_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r166); const ctx_r165 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r165.addSegment(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, " Add segment ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, " BY MAXIMUM CONSECUTIVE BALLOTS ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Maximum consecutive ballots per staff:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "input", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "BY STAFF RESTRICTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, "Select slot");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "ng-select", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_ng_container_182_Template_ng_select_ngModelChange_46_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r166); const ctx_r167 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r167.slotformat = $event; })("change", function CreateBallotComponent_ng_container_182_Template_ng_select_change_46_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r166); const ctx_r168 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r168.resSlotChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](47, CreateBallotComponent_ng_container_182_ng_option_47_Template, 3, 3, "ng-option", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](48, CreateBallotComponent_ng_container_182_div_48_Template, 2, 0, "div", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "label", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](51, "Select Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](52, CreateBallotComponent_ng_container_182_div_52_Template, 4, 7, "div", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](53, CreateBallotComponent_ng_container_182_div_53_Template, 2, 0, "div", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](55, CreateBallotComponent_ng_container_182_label_55_Template, 2, 0, "label", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](56, CreateBallotComponent_ng_container_182_div_56_Template, 4, 6, "div", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](57, CreateBallotComponent_ng_container_182_div_57_Template, 6, 8, "div", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "button", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_ng_container_182_Template_button_click_59_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r166); const ctx_r169 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r169.addResStaff(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](60, " Add Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](61, CreateBallotComponent_ng_container_182_div_61_Template, 14, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r24.maxSegment.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", (ctx_r24.autoBallot == null ? null : ctx_r24.autoBallot.data == null ? null : ctx_r24.autoBallot.data.isAutoAssign) || ctx_r24.roundBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("closeOnSelect", true)("searchable", false)("ngModel", ctx_r24.slotformat)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](17, _c3))("disabled", ctx_r24.roundBallot || (ctx_r24.autoBallot == null ? null : ctx_r24.autoBallot.data == null ? null : ctx_r24.autoBallot.data.isAutoAssign));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r24.slotWeeks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r24.addStaffFlag && !ctx_r24.slotformat);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r24.opsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r24.addStaffFlag && ctx_r24.checkOpsGrop());
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r24.allTeam.length);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r24.allTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r24.allStaff.length);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", (ctx_r24.autoBallot == null ? null : ctx_r24.autoBallot.data == null ? null : ctx_r24.autoBallot.data.isAutoAssign) || ctx_r24.roundBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r24.resStaffArr.length);
} }
function CreateBallotComponent_ng_template_197_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "ADMIN ");
} }
function CreateBallotComponent_ng_option_210_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 169);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r170 = ctx.$implicit;
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r26.autoBallot == null ? null : ctx_r26.autoBallot.data == null ? null : ctx_r26.autoBallot.data.isAutoAssign)("value", item_r170);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r170.name, " ");
} }
function CreateBallotComponent_div_212_Template(rf, ctx) { if (rf & 1) {
const _r174 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 170);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 171);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "button", 172);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_div_212_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r174); const index_r172 = ctx.index; const ctx_r173 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r173.deleteSelectedFields(index_r172); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r171 = ctx.$implicit;
const index_r172 = ctx.index;
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r172);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", field_r171.get("string").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r27.autoBallot == null ? null : ctx_r27.autoBallot.data == null ? null : ctx_r27.autoBallot.data.isAutoAssign);
} }
function CreateBallotComponent_ng_template_226_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "SAVE/PUBLISH ");
} }
function CreateBallotComponent_div_228_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 173);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 174);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 175);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 176);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Please wait Loading Data... ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_tr_265_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r175 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r175.ballot.leaveTypeId == null ? null : ctx_r175.ballot.leaveTypeId.name, " / ");
} }
function CreateBallotComponent_tr_265_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Leave Type / Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateBallotComponent_tr_265_ng_container_4_Template, 2, 1, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r30.ballot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" Quota: ", ctx_r30.ballotdata.get("totalQuota").value, " ");
} }
function CreateBallotComponent_table_274_th_7_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r178 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 2, item_r178[0], "dd MMM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](3, 5, item_r178[1], "dd MMM"), " ");
} }
function CreateBallotComponent_table_274_th_7_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r178 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 1, item_r178, "dd MMM"), "");
} }
function CreateBallotComponent_table_274_th_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "th", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateBallotComponent_table_274_th_7_ng_container_4_Template, 4, 8, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_table_274_th_7_ng_container_5_Template, 3, 4, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r179 = ctx.index;
const ctx_r176 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" SLOT ", i_r179 + 1, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r176.ballotdata.get("leaveType").value == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r176.ballotdata.get("leaveType").value == "2");
} }
function CreateBallotComponent_table_274_tr_9_td_5_Template(rf, ctx) { if (rf & 1) {
const _r191 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 178);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_table_274_tr_9_td_5_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r191); const i_r188 = ctx.index; const item_r184 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit; return (item_r184.slots[i_r188] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r188 = ctx.index;
const item_r184 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", item_r184.slots[i_r188])("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](2, _c3));
} }
function CreateBallotComponent_table_274_tr_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "th", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_table_274_tr_9_td_5_Template, 2, 3, "td", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r184 = ctx.$implicit;
const ctx_r177 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r184.OpsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r184.OpsTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r177.slotWeeks);
} }
function CreateBallotComponent_table_274_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "table", 177);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " OPS GROUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " OPS TEAM ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, CreateBallotComponent_table_274_th_7_Template, 6, 3, "th", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, CreateBallotComponent_table_274_tr_9_Template, 6, 3, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r31.slotWeeks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r31.allOps);
} }
function CreateBallotComponent_table_275_th_14_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r195 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 2, item_r195[0], "dd MMM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](3, 5, item_r195[1], "dd MMM"), " ");
} }
function CreateBallotComponent_table_275_th_14_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r195 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](2, 1, item_r195, "dd MMM"), " ");
} }
function CreateBallotComponent_table_275_th_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "th", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateBallotComponent_table_275_th_14_ng_container_4_Template, 4, 8, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_table_275_th_14_ng_container_5_Template, 3, 4, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "BQ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "span", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TBA");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r196 = ctx.index;
const ctx_r193 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" SLOT ", i_r196 + 1, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r193.ballotdata.get("leaveType").value == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r193.ballotdata.get("leaveType").value == "2");
} }
function CreateBallotComponent_table_275_tr_16_td_9_Template(rf, ctx) { if (rf & 1) {
const _r208 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_table_275_tr_16_td_9_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r208); const i_r205 = ctx.index; const item_r201 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit; return (item_r201.slots[i_r205][0] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function CreateBallotComponent_table_275_tr_16_td_9_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r208); const i_r205 = ctx.index; const item_r201 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit; return (item_r201.slots[i_r205][1] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r205 = ctx.index;
const item_r201 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", item_r201.slots[i_r205][0])("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](4, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", item_r201.slots[i_r205][1])("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](5, _c3));
} }
function CreateBallotComponent_table_275_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "th", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, CreateBallotComponent_table_275_tr_16_td_9_Template, 4, 6, "td", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r201 = ctx.$implicit;
const ctx_r194 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r201.OpsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r201.OpsTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("value", item_r201.BallotBalance);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("value", item_r201.unassignBalanace);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r194.slotWeeks);
} }
function CreateBallotComponent_table_275_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "table", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " OPS GROUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " OPS TEAM ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " TOTAL ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "BQ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "span", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "U");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, CreateBallotComponent_table_275_th_14_Template, 11, 3, "th", 179);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, CreateBallotComponent_table_275_tr_16_Template, 10, 5, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r32.slotWeeks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r32.allOps);
} }
function CreateBallotComponent_div_278_tr_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r213 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r213.segmentNo);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate3"](" ", item_r213.startDate.day, "-", item_r213.startDate.month, "-", item_r213.startDate.year, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate3"](" ", item_r213.endDate.day, "-", item_r213.endDate.month, "-", item_r213.endDate.year, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r213.maxBallot);
} }
function CreateBallotComponent_div_278_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " MAXIMUM SUBMISSIONS IN A SEGMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "table", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "SEGMENT NO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "START DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "END DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "MAXIMUM SLOT PER STAFF");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, CreateBallotComponent_div_278_tr_18_Template, 9, 8, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r33.restrictLimit.get("maxSegment").value);
} }
function CreateBallotComponent_div_279_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " MAXIMUM CONSECUTIVE BALLOTS ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Maximum consecutive ballots per staff");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 183);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx_r34.restrictLimit.get("maxConsecutiveBallot").value);
} }
function CreateBallotComponent_div_280_tr_14_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const el_r217 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", el_r217.name, " ");
} }
function CreateBallotComponent_div_280_tr_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td", 168);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateBallotComponent_div_280_tr_14_span_4_Template, 2, 1, "span", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r215 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r215.slot, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", item_r215.userList);
} }
function CreateBallotComponent_div_280_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " STAFF RESTRICTED FROM PARTICULAR WEEKS ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "table", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "SELECTED DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "STAFF LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, CreateBallotComponent_div_280_tr_14_Template, 5, 2, "tr", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r35.resStaffArr);
} }
function CreateBallotComponent_button_288_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 185);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " arrow_upward ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_button_288_span_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 186);
} }
function CreateBallotComponent_button_288_Template(rf, ctx) { if (rf & 1) {
const _r221 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_button_288_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r221); const ctx_r220 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r220.publishBallot(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Save as Draft");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 185);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " save ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_button_288_span_5_Template, 2, 0, "span", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, CreateBallotComponent_button_288_span_6_Template, 1, 0, "span", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r36.saveAsDraftLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r36.saveAsDraftLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r36.saveAsDraftLoader);
} }
function CreateBallotComponent_span_290_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r37.ballot ? "Update" : "Publish");
} }
function CreateBallotComponent_span_291_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Create Reballot");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_span_292_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Create Auto-Assign ballot");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_span_293_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 185);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " arrow_upward ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateBallotComponent_span_294_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 186);
} }
class CustomDateParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__["NgbDateParserFormatter"] {
constructor() {
super(...arguments);
this.DELIMITER = '-';
}
parse(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1], 10),
year: parseInt(date[2], 10),
};
}
return null;
}
format(date) {
return date
? date.day + this.DELIMITER + date.month + this.DELIMITER + date.year
: '';
}
}
CustomDateParserFormatter.ɵfac = function CustomDateParserFormatter_Factory(t) { return ɵCustomDateParserFormatter_BaseFactory(t || CustomDateParserFormatter); };
CustomDateParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: CustomDateParserFormatter, factory: CustomDateParserFormatter.ɵfac });
const ɵCustomDateParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetInheritedFactory"](CustomDateParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](CustomDateParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"]
}], null, null); })();
class CreateBallotComponent {
constructor(fb, leaveService, companyService, userService, toastService, _parserFormatter, opsService) {
this.fb = fb;
this.leaveService = leaveService;
this.companyService = companyService;
this.userService = userService;
this.toastService = toastService;
this._parserFormatter = _parserFormatter;
this.opsService = opsService;
this.back = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
this.isLinear = false;
this.active = 1;
this.time = [];
this.slotinput = [];
this.allinput = [];
this.CustomFieldDropDownLoading = false;
this.resStaff = '';
this.resGrp = [];
this.allTeam = [];
this.resTeam = [];
this.allStaff = [];
this.resStaffArr = [];
this.resultReleaseTime = null;
this.hidden = 'hidden';
this.weekRange = [];
this.ballotdataSubmitted = false;
this.slotQuotaSetupSubmitted = false;
this.publishBallotLoader = false;
this.saveAsDraftLoader = false;
this.todayDate = new Date();
this.addStaffFlag = false;
this.futureMinDate = {
year: new Date().getFullYear(), month: new Date().getMonth() + 1, day: new Date().getDate()
};
this.closingMinDate = {
year: new Date().getFullYear(), month: new Date().getMonth() + 1, day: new Date().getDate()
};
this.clearFormArray = (formArray) => {
while ((formArray === null || formArray === void 0 ? void 0 : formArray.length) !== 0) {
formArray.removeAt(0);
}
};
this.CustomFieldPTable = {
sortBy: 'desc',
sortWith: 'createdBy',
data: [],
page: 1,
total: 0,
limit: 8,
filter: {
status: ['active'],
fields: ['name'],
},
search: '',
};
}
ngOnInit() {
this.loadCustomField();
this.ballotdata = this.fb.group({
ballotName: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
applicationOpenDateTime: '',
applicationCloseDateTime: '',
openDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
closeDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
openTime: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
closeTime: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
timeZone: moment__WEBPACK_IMPORTED_MODULE_5__().format('[GMT]ZZ'),
ballotStartDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
ballotEndDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
leaveType: '1',
leaveConfiguration: '1',
resultRelease: ['2', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
resultReleaseDate: '',
resultReleaseDateTime: '',
resultReleaseTime: '',
fixedBallotingLeaveType: false,
totalQuota: 0,
}, { validators: this.fixedValidn });
this.slotQuotaSetup = this.fb.group({
opsGroupId: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
slotCreation: this.fb.array([]),
});
this.dateChange();
this.restrictLimit = this.fb.group({
isRestrict: 'true',
maxSegment: this.fb.array([]),
maxConsecutiveBallot: '',
staffRestriction: this.fb.array([]),
});
this.admin = this.fb.group({
adminId: this.fb.array([]),
});
this.getOpsLeave();
this.selectTime();
this.getuser();
this.releaseSetupValidation();
if (this.ballot) {
if (this.roundBallot != null) {
this.editBallot(this.roundBallot);
}
else {
this.editBallot(this.ballot);
}
}
if (this.roundBallot) {
this.ballot = this.roundBallot;
this.ballotdata.disable();
this.ballotdata.controls.openDate.enable();
this.ballotdata.controls.closeDate.enable();
this.ballotdata.controls.openTime.enable();
this.ballotdata.controls.closeTime.enable();
this.ballotdata.controls.resultReleaseDate.enable();
this.ballotdata.controls.resultReleaseTime.enable();
this.ballotdata.patchValue({
openDate: null,
closeDate: null,
openTime: null,
closeTime: null,
resultReleaseDate: null,
resultReleaseTime: null,
});
this.restrictLimit.patchValue({
isRestrict: this.roundBallot.isRestrict.toString(),
});
this.restrictLimit.disable();
}
if (this.autoBallot) {
this.ballot = this.autoBallot.data;
this.ballotdata.disable();
this.restrictLimit.patchValue({
isRestrict: this.autoBallot.data.isRestrict.toString(),
});
this.restrictLimit.disable();
this.autoAssignBallot(this.autoBallot.data);
this.leaveService
.getAutoAssignStaff(this.ballot.parentBallot)
.subscribe((res) => {
this.autoBallotStaff = res;
});
}
this.getLeaveConfig();
}
dateChange() {
this.ballotdata.get('openDate').valueChanges.subscribe((res) => {
let dataObj = new Date(res === null || res === void 0 ? void 0 : res.year, (res === null || res === void 0 ? void 0 : res.month) - 1, res === null || res === void 0 ? void 0 : res.day);
this.closingMinDate = { year: dataObj === null || dataObj === void 0 ? void 0 : dataObj.getFullYear(), month: dataObj === null || dataObj === void 0 ? void 0 : dataObj.getMonth(), day: dataObj === null || dataObj === void 0 ? void 0 : dataObj.getDate() };
});
}
releaseSetupValidation() {
this.ballotdata.get('resultRelease').valueChanges.subscribe((val) => {
if (val == '1') {
this.ballotdata.controls['resultReleaseDate'].setValidators([
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required,
]);
this.ballotdata.controls['resultReleaseDateTime'].setValidators([
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required,
]);
this.ballotdata.controls['resultReleaseTime'].setValidators([
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required,
]);
}
else {
this.ballotdata.controls['resultReleaseDate'].clearValidators();
this.ballotdata.controls['resultReleaseDateTime'].clearValidators();
this.ballotdata.controls['resultReleaseTime'].clearValidators();
}
this.ballotdata.controls['resultReleaseDate'].updateValueAndValidity();
this.ballotdata.controls['resultReleaseTime'].updateValueAndValidity();
});
}
autoAssignBallot(i) {
this.ballotdata.patchValue({
ballotName: i.ballotName,
});
}
getLeaveConfig() {
this.companyService.getcompanySetting().subscribe((res) => {
this.comDetail = res.data;
switch (this.comDetail.opsGroup.blockLeaveConfiguration) {
case 1:
this.blockLeave = '5+2';
this.ballotdata.patchValue({
leaveConfiguration: '1',
});
break;
case 2:
this.blockLeave = '6+1';
this.ballotdata.patchValue({
leaveConfiguration: '2',
});
break;
case 3:
this.blockLeave = '7+0';
this.ballotdata.patchValue({
leaveConfiguration: '3',
});
break;
default:
this.blockLeave = '';
}
});
}
editBallot(i) {
var _a;
this.ballotdata.patchValue({
ballotName: i.ballotName,
applicationOpenDateTime: this.momToNgb(i.applicationOpenDateTime),
applicationCloseDateTime: this.momToNgb(i.applicationCloseDateTime),
openDate: this.momToNgb(i.applicationOpenDateTime),
closeDate: this.momToNgb(i.applicationCloseDateTime),
openTime: i.openTime,
closeTime: i.closeTime,
timeZone: moment__WEBPACK_IMPORTED_MODULE_5__().format('[GMT]ZZ'),
ballotStartDate: this.momToNgb(i.ballotStartDate),
ballotEndDate: this.momToNgb(i.ballotEndDate),
leaveType: i.leaveType.toString(),
leaveConfiguration: i.leaveConfiguration.toString(),
resultRelease: i.resultRelease.toString(),
});
//prefill leaveType Day ballot fixed ballot checkbox and quota
if (i.leaveType == 2) {
this.ballotdata.patchValue({
fixedBallotingLeaveType: i.fixedBallotingLeaveType,
totalQuota: i.totalQuota.toString(),
});
}
if (i.resultRelease == 1) {
this.ballotdata.patchValue({
resultReleaseDate: this.momToNgb(i.resultReleaseDate),
resultReleaseDateTime: moment__WEBPACK_IMPORTED_MODULE_5__(i.resultReleaseDateTime).format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
resultReleaseTime: i.resultReleaseTime,
});
}
this.restrictLimit.patchValue({
isRestrict: i.isRestrict.toString(),
});
if (i.isRestrict) {
i.maxSegment.forEach((val, i) => {
let ar = this.fb.group({
segmentNo: val.segmentNo,
startDate: this.momToNgb(val.startDate),
endDate: this.momToNgb(val.endDate),
maxBallot: val.maxBallot,
});
this.maxSegment.push(ar);
this.maxSegment.at(i).disable();
});
this.restrictLimit.patchValue({
maxConsecutiveBallot: i.maxConsecutiveBallot,
});
(_a = i.staffRestriction) === null || _a === void 0 ? void 0 : _a.forEach((staffObj, index) => {
var _a, _b;
staffObj.startDate = moment__WEBPACK_IMPORTED_MODULE_5__(staffObj.startDate).format('MM-DD-YYYY HH:mm:ss [GMT]ZZ');
staffObj.endDate = moment__WEBPACK_IMPORTED_MODULE_5__(staffObj.endDate).format('MM-DD-YYYY HH:mm:ss [GMT]ZZ');
staffObj.showDate = staffObj.slot;
const staffRes = (_b = (_a = i.staffRestriction[index]) === null || _a === void 0 ? void 0 : _a.userList) === null || _b === void 0 ? void 0 : _b.map(({ label, _id, id }) => ({
name: label,
label: label,
_id: _id,
id: id
}));
i.staffRestriction[index]['userList'] = staffRes;
});
this.resStaffArr = i.staffRestriction;
}
this.slotQuotaSetup.controls.opsGroupId.disable();
}
momToNgb(d) {
let md = moment__WEBPACK_IMPORTED_MODULE_5__(d);
const dd = {
year: md.year(),
month: md.month() + 1,
day: md.date(),
};
return dd;
}
ngbToMoment(d) {
return moment__WEBPACK_IMPORTED_MODULE_5__().set({
year: d.year,
month: d.month - 1,
date: d.day,
});
}
checkTime() {
this.openingTimePassed = false;
if (this.ballotdata.get('openDate').value &&
this.ballotdata.get('openTime').value) {
const selectedOpenDate = this.ngbToMoment(this.ballotdata.get('openDate').value).set({
hour: this.ballotdata.get('openTime').value.slice(0, 2),
minute: this.ballotdata.get('openTime').value.slice(-2),
});
if (!this.autoBallot) {
if (moment__WEBPACK_IMPORTED_MODULE_5__().isAfter(selectedOpenDate)) {
this.toastService.error('Application Open Time should be more than current time', 'Error', { timeOut: 5000, progressBar: true });
this.openingTimePassed = true;
}
}
}
}
resultReleaseTimeCheck() {
this.resultDateTimeCheck = false;
let resultReleaseDate;
let closeDate;
let ballotStartDate;
if (this.ballotdata.get('resultRelease').value == '1') {
if (this.ballotdata.get('resultReleaseDate').value &&
this.ballotdata.get('resultReleaseTime').value) {
resultReleaseDate = this.ngbToMoment(this.ballotdata.get('resultReleaseDate').value).set({
hour: this.ballotdata.get('resultReleaseTime').value.slice(0, 2),
minute: this.ballotdata.get('resultReleaseTime').value.slice(-2),
});
if (this.ballotdata.get('closeDate').value &&
this.ballotdata.get('closeTime').value) {
closeDate = this.ngbToMoment(this.ballotdata.get('closeDate').value).set({
hour: this.ballotdata.get('closeTime').value.slice(0, 2),
minute: this.ballotdata.get('closeTime').value.slice(-2),
});
}
if (this.ballotdata.get('ballotStartDate').value) {
ballotStartDate = this.ngbToMoment(this.ballotdata.get('ballotStartDate').value).set({
hour: 0,
minute: 0,
});
}
if (!moment__WEBPACK_IMPORTED_MODULE_5__(resultReleaseDate).isBetween(closeDate, ballotStartDate)) {
this.toastService.error('Result Release Date and Time should be between Closing date and Ballot Start date', 'Error', { timeOut: 5000, progressBar: true });
this.resultDateTimeCheck = true;
}
}
}
}
publishBallot(isDraft) {
var _a;
this.checkTime();
this.resultReleaseTimeCheck();
if ((this.openingTimePassed || this.resultDateTimeCheck) &&
!this.autoBallot) {
return;
}
let wk = [];
this.slotWeeks.forEach((val) => {
if (this.ballotdata.controls.leaveType.value == '1') {
wk.push({
start: val[0].format('YYYY-MM-DD'),
end: val[1].format('YYYY-MM-DD'),
});
}
else {
wk.push({
start: val.format('YYYY-MM-DD'),
end: val.format('YYYY-MM-DD'),
});
}
});
this.weekRange = wk;
this.ballotdata.patchValue({
applicationOpenDateTime: this.ngbToMoment(this.ballotdata.get('openDate').value)
.set({
hour: this.ballotdata.get('openTime').value.slice(0, 2),
minute: this.ballotdata.get('openTime').value.slice(-2),
})
.format('MM-DD-YYYY HH:mm:ss [GMT]ZZ'),
applicationCloseDateTime: this.ngbToMoment(this.ballotdata.get('closeDate').value)
.set({
hour: this.ballotdata.get('closeTime').value.slice(0, 2),
minute: this.ballotdata.get('closeTime').value.slice(-2),
})
.format('MM-DD-YYYY HH:mm:ss [GMT]ZZ'),
openDate: this.ngbToMoment(this.ballotdata.get('openDate').value).format('MM-DD-YYYY'),
closeDate: this.ngbToMoment(this.ballotdata.get('closeDate').value).format('MM-DD-YYYY'),
ballotStartDate: this.ngbToMoment(this.ballotdata.get('ballotStartDate').value).format('MM-DD-YYYY'),
ballotEndDate: this.ngbToMoment(this.ballotdata.get('ballotEndDate').value).format('MM-DD-YYYY'),
});
const opsG = [];
this.slotQuotaSetup
.get('opsGroupId')
.value.forEach((el) => opsG.push(el._id));
this.slotQuotaSetup.patchValue({
opsGroupId: opsG,
});
const adminId = [];
this.admin.get('adminId').value.forEach((el) => adminId.push(el._id));
let ballotPayload = {};
if (((_a = this.slotQuotaSetup.controls.slotCreation.value) === null || _a === void 0 ? void 0 : _a.length) == 0) {
this.getSlotQuotaSetup();
}
ballotPayload = Object.assign(Object.assign({}, this.ballotdata.getRawValue()), this.slotQuotaSetup.getRawValue());
ballotPayload['weekRange'] = this.weekRange;
ballotPayload['staffRestriction'] = this.resStaffArr;
ballotPayload['adminId'] = adminId;
ballotPayload['resultReleaseAdminId'] = adminId[0].name;
ballotPayload['isDraft'] = isDraft ? true : false;
ballotPayload['userFrom'] = '1';
ballotPayload['isRestrict'] = this.restrictLimit.get('isRestrict').value;
if (this.restrictLimit.get('isRestrict').value == 'true') {
ballotPayload['maxConsecutiveBallot'] = this.restrictLimit.get('maxConsecutiveBallot').value;
let maxArr = [];
this.restrictLimit.get('maxSegment').value.forEach((v, i) => {
let max = {
segmentNo: v.segmentNo,
startDate: this.ngbToMoment(v.startDate).format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
endDate: this.ngbToMoment(v.endDate).format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
maxBallot: v.maxBallot,
};
maxArr.push(max);
});
ballotPayload['maxSegment'] = maxArr;
}
if (this.ballotdata.get('resultRelease').value == '1') {
const resultReleaseDate = this.ballotdata.get('resultReleaseDate').value;
const resultReleaseTime = this.ballotdata.get('resultReleaseTime').value;
const formattedReleaseDate = this.ngbToMoment(resultReleaseDate).format('MM-DD-YYYY');
ballotPayload['resultReleaseDate'] = formattedReleaseDate;
ballotPayload['resultReleaseDateTime'] = moment__WEBPACK_IMPORTED_MODULE_5__(`${formattedReleaseDate} ${resultReleaseTime}`, 'MM-DD-YYYY HH:mm').format('MM-DD-YYYY HH:mm:ss [GMT]ZZ');
}
else {
delete ballotPayload['resultReleaseDate'];
delete ballotPayload['resultReleaseDateTime'];
delete ballotPayload['resultReleaseTime'];
}
//leaveType Day ballot fixed ballot checkbox and quota
if (this.ballotdata.get('leaveType').value == '1') {
delete ballotPayload['fixedBallotingLeaveType'];
delete ballotPayload['totalQuota'];
}
this.publishBallotLoader = isDraft ? false : true;
this.saveAsDraftLoader = isDraft ? true : false;
if (!this.ballot) {
const addballot = this.leaveService
.addBallot(ballotPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.publishBallotLoader = false;
this.saveAsDraftLoader = false;
addballot.unsubscribe();
}))
.subscribe((res) => {
if (res.status) {
this.toastService.success('Ballot created Successfully', 'Successfull');
this.back.emit(1);
}
else {
if (res['message']) {
this.toastService.error(res['message'], 'Failed', {
timeOut: 5000,
progressBar: true,
});
}
else {
this.toastService.error('Ballot creation failed', 'Failed');
}
}
});
}
else if (this.roundBallot) {
ballotPayload['parentBallot'] = this.roundBallot.parentBallot;
ballotPayload['ballotRound'] = this.roundBallot.ballotRound + 1;
const roundBallot = this.leaveService
.addBallot(ballotPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.publishBallotLoader = false;
this.saveAsDraftLoader = false;
roundBallot.unsubscribe();
}))
.subscribe((res) => {
if (res.status) {
this.toastService.success('Re-ballot created successfully', 'Successfull');
this.back.emit(1);
}
else {
if (res['message']) {
this.toastService.error(res['message'], 'Failed');
}
else {
this.toastService.error('Re-Ballot creation failed', 'Failed');
}
}
});
}
else if (this.autoBallot) {
this.loader = true;
ballotPayload['isAutoAssign'] = true;
ballotPayload['RATio'] = this.autoBallot.data.RATio;
ballotPayload['TotBQ'] = this.autoBallot.data.TotBQ;
ballotPayload['assignRatio'] = this.autoBallot.data.assignRatio;
ballotPayload['totUN'] = this.autoBallot.data.totUN;
ballotPayload['isCanceled'] = this.autoBallot.data.isCanceled;
ballotPayload['isConduct'] = this.autoBallot.data.isConduct;
ballotPayload['isDeleted'] = this.autoBallot.data.isDeleted;
ballotPayload['isNotified'] = this.autoBallot.data.isNotified;
ballotPayload['isPublish'] = this.autoBallot.data.isPublish;
ballotPayload['ballotRound'] = this.autoBallot.data.ballotRound + 1;
ballotPayload['parentBallot'] = this.autoBallot.data.parentBallot;
ballotPayload['appliedStaff'] = this.autoBallot.data.appliedStaff;
ballotPayload['childBallots'] = this.autoBallot.data.childBallots;
ballotPayload['dayRange'] = this.autoBallot.data.dayRange;
ballotPayload['deletedStaff'] = this.autoBallot.data.deletedStaff;
ballotPayload['isResultRelease'] = this.autoBallot.data.isResultRelease;
ballotPayload['eligibleStaffsForAuto'] = this.autoBallotStaff['data'];
if (this.ballotdata.controls.leaveType.value == '2') {
ballotPayload['leaveTypeId'] = this.autoBallot.data.leaveTypeId;
}
const autoBallot = this.leaveService
.addBallot(ballotPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.publishBallotLoader = false;
this.saveAsDraftLoader = false;
autoBallot.unsubscribe();
}))
.subscribe((res) => {
this.loader = false;
this.toastService.success('Auto-Assign Ballot created Successfully', 'Successfull');
this.back.emit(1);
});
}
else {
ballotPayload['id'] = this.ballot._id;
const updateBallot = this.leaveService
.updataBallot(ballotPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.publishBallotLoader = false;
this.saveAsDraftLoader = false;
updateBallot.unsubscribe();
}))
.subscribe((res) => {
this.toastService.success('Ballot Updated Successfully', 'Successfull');
this.back.emit(1);
});
}
}
createPayloadForUser(staffArr) {
let userArr = [];
staffArr === null || staffArr === void 0 ? void 0 : staffArr.map(item => {
var _a;
let obj = {
id: item._id,
label: item.name,
parentBussinessUnitId: (_a = item.parentBussinessUnitId) === null || _a === void 0 ? void 0 : _a._id,
name: item.name
};
userArr.push(obj);
});
return userArr;
}
addResStaff() {
var _a;
this.addStaffFlag = true;
if (this.validateRequiredField()) {
let tempRes;
this.addStaffFlag = false;
let slotIndex = (_a = this.slotWeeks) === null || _a === void 0 ? void 0 : _a.map((val, index) => {
var _a;
if (this.slotformat === val) {
return this.ballotdata.controls.leaveType.value == '1' ? 'Slot--' + (index + 1) + ' ' + ((_a = val[0]) === null || _a === void 0 ? void 0 : _a.format("DD-MMM")) + '--' +
val[1].format("DD-MMM") : 'Slot--' + (index + 1) + ' ' + (val === null || val === void 0 ? void 0 : val.format("DD-MMM"));
}
});
slotIndex = slotIndex.filter(function (element) {
return element !== undefined;
});
if (this.ballotdata.controls.leaveType.value == '1') {
tempRes = {
slot: slotIndex[0],
showDate: slotIndex[0],
startDate: this.slotformat[0].format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
endDate: this.slotformat[1].format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
userList: this.createPayloadForUser(this.resStaff),
};
}
else {
tempRes = {
slot: slotIndex[0],
showDate: slotIndex[0],
startDate: this.slotformat.format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
endDate: this.slotformat.format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
userList: this.createPayloadForUser(this.resStaff),
};
}
this.resStaffArr.push(tempRes);
this.slotformat = null;
}
}
resSlotChange() {
var _a;
this.allStaff = [];
this.allTeam = [];
this.resStaff = null;
this.resGrp = [];
this.resTeam = [];
(_a = this.opsGrp) === null || _a === void 0 ? void 0 : _a.map(item => {
item.isSelected = false;
});
}
getInt(i) {
return parseInt(i);
}
removeStaff(i) {
this.resStaffArr.splice(i, 1);
}
selectStaff(e, i, team) {
var _a;
if (e.target.checked) {
this.resTeam.push(team);
}
else {
const ii = this.resTeam.indexOf(team._id);
this.resTeam.splice(ii, 1);
}
const payload = {
opsGroupId: "5d65460b8a8c0642f2bbc98d",
opsTeamId: (_a = this.resTeam) === null || _a === void 0 ? void 0 : _a.map(item => { return item._id; })
};
this.opsService.getStaffListBasedOnOpsGroup(payload).subscribe((res) => {
this.allStaff = (res === null || res === void 0 ? void 0 : res.data) || [];
});
// } else {
// const tempStaff = this.allStaff;
// this.allStaff.forEach((v) => {
// this.allTeam[i].userId.forEach((vv) => {
// const indexx = tempStaff.findIndex((item) => item._id === vv._id);
// if (indexx > -1) {
// tempStaff.splice(indexx, 1);
// }
// });
// });
// this.allStaff = tempStaff;
this.allStaff.map((val) => {
if (!val.hasOwnProperty('label')) {
val['label'] = val.name;
}
});
}
selectedResGrp(e, i, ops) {
var _a, _b, _c;
const selectedOps = this.slotQuotaSetup.controls.opsGroupId.value;
if (e.target.checked) {
this.resGrp.push(ops);
if ((_a = selectedOps[i].opsTeamId) === null || _a === void 0 ? void 0 : _a.length) {
selectedOps[i].opsTeamId.forEach((tt) => {
tt.isSelected = false;
this.allTeam.push(tt);
});
}
else if ((_b = selectedOps[i].userId) === null || _b === void 0 ? void 0 : _b.length) {
this.noTeam = true;
}
}
else {
const ii = this.resGrp.indexOf(ops);
this.resGrp.splice(ii, 1);
}
if (((_c = this.resGrp) === null || _c === void 0 ? void 0 : _c.length) > 0) {
const payload = {
isOpsGroup: true,
opsGroupId: selectedOps === null || selectedOps === void 0 ? void 0 : selectedOps.map(item => {
return item._id;
})
};
this.allStaff = [];
this.leaveService.getBallotUser(payload).subscribe((res) => {
var _a;
this.allStaff = (res === null || res === void 0 ? void 0 : res.data) || [];
(_a = this.allStaff) === null || _a === void 0 ? void 0 : _a.map((val) => {
if (!val.hasOwnProperty('label')) {
val['label'] = val.name;
}
});
});
}
}
getAdmin() {
this.userService.getUserData('');
}
loadMoreCustomFieldItems(value) {
this.CustomFieldPTable.limit = this.CustomFieldPTable.limit + 10;
this.loadCustomField();
}
onSeachCustomField(value) {
this.CustomFieldPTable.limit = 10;
this.CustomFieldPTable.search = value.term;
this.loadCustomField();
}
onClearCustomFieldDropdown(value) {
if (value === undefined) {
this.admin.patchValue({
loginFields: [],
});
this.CustomFieldPTable.search = '';
// this.loadCustomField();
// this.fieldNeedsToUpdate = [];
// this.CustomFieldPTable.data = [];
}
}
deleteSelectedFields(index) {
const Control = this.LoginFieldsControl;
Control.removeAt(index);
}
loadCustomField() {
// const { data, loading, total, ...rest } = this.CustomFieldPTable;
const subscribe = this.leaveService
.getBallotAdminList()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a;
// const { count, data } = response.data;
this.CustomFieldPTable.data = response.data || [];
this.fieldNeedsToUpdate = response.data || [];
this.CustomFieldPTable.total = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.length) || 0;
}, (error) => {
this.CustomFieldPTable.data = [];
this.CustomFieldPTable.total = 0;
// this.tostService.error('No list found');
});
}
get LoginFieldsControl() {
return this.admin.get('adminId');
}
getuser() {
this.userService.getUserProfile().subscribe((res) => {
this.loggedUser = res.data;
const Control = this.LoginFieldsControl;
this.clearFormArray(Control);
if (!this.ballot) {
let field = this.fb.group({
string: [
this.loggedUser.name,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
_id: [this.loggedUser._id, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
});
Control.push(field);
}
else {
this.ballot.adminId.forEach((v) => {
let field = this.fb.group({
string: [v.name, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
_id: [v._id, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
});
Control.push(field);
});
}
});
}
addLoginFields(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.LoginFieldsControl;
const index = yield Control.value.findIndex((x) => x._id === (value === null || value === void 0 ? void 0 : value._id));
if (index > -1) {
}
else {
let field;
field = this.fb.group({
string: [value === null || value === void 0 ? void 0 : value.name],
_id: [value === null || value === void 0 ? void 0 : value._id],
});
Control.push(field);
}
});
}
getSlotQuotaSetup() {
var _a;
this.clearArray(this.slotCreation());
(_a = this.opsGrp) === null || _a === void 0 ? void 0 : _a.forEach((v, i) => {
var _a;
let grp = {
opsId: v._id,
value: v.opsGroupName,
colspan: 3,
};
let ss = [];
this.allOps.forEach((opsGrp) => {
if (v._id == opsGrp.OpsGrpId) {
ss.push(opsGrp.slots);
}
});
let ww = {};
ss.forEach((k, n) => {
let o = [];
o = Object.keys(k);
o.forEach((ov, oi) => {
if (n == 0) {
//leave type 1 & 2 is week & day wise slot
if (this.ballotdata.controls.leaveType.value == '1') {
if (this.autoBallot) {
ww[oi + 'A'] = {
value: parseInt(k[ov][0]),
startDate: this.slotWeeks[ov][0].format('YYYY-MM-DD'),
balanceToBeAssigned: parseInt(k[ov][0]),
};
}
else {
ww[oi + 'A'] = {
value: k[ov],
startDate: this.slotWeeks[ov][0].format('YYYY-MM-DD'),
};
}
}
else {
if (this.autoBallot) {
ww[oi + 'A'] = {
value: parseInt(k[ov][0]),
startDate: this.slotWeeks[ov].format('YYYY-MM-DD'),
balanceToBeAssigned: parseInt(k[ov][0]),
};
}
else {
ww[oi + 'A'] = {
value: k[ov],
startDate: this.slotWeeks[ov].format('YYYY-MM-DD'),
};
}
}
}
else {
if (this.ballotdata.controls.leaveType.value == '1') {
if (this.autoBallot) {
ww['OG' + oi + 'OT' + (n - 1).toString()] = {
value: parseInt(k[ov][0]),
startDate: this.slotWeeks[ov][0].format('YYYY-MM-DD'),
balanceToBeAssigned: parseInt(k[ov][0]),
};
}
else {
ww['OG' + oi + 'OT' + (n - 1).toString()] = {
value: k[ov],
startDate: this.slotWeeks[ov][0].format('YYYY-MM-DD'),
};
}
}
else {
if (this.autoBallot) {
ww['OG' + oi + 'OT' + (n - 1).toString()] = {
value: parseInt(k[ov][0]),
startDate: this.slotWeeks[ov].format('YYYY-MM-DD'),
balanceToBeAssigned: parseInt(k[ov][0]),
};
}
else {
ww['OG' + oi + 'OT' + (n - 1).toString()] = {
value: k[ov],
startDate: this.slotWeeks[ov].format('YYYY-MM-DD'),
};
}
}
}
});
});
let c;
if (!this.autoBallot) {
c = this.fb.group({
arr: this.fb.array([]),
weekRangeSlot: ww,
opsGroup: grp,
opsTeam: this.fb.array([]),
});
}
else {
c = this.fb.group({
arr: this.fb.array([]),
weekRangeSlot: ww,
opsGroup: grp,
totalBallotBalance: this.autoBallot.data.slotCreation[i].totalBallotBalance,
totalUnassignedIs: this.autoBallot.data.slotCreation[i].totalUnassignedIs,
opsTeam: this.fb.array([]),
});
}
this.slotCreation().push(c);
let opsTeam = v.opsTeamId;
if (this.roundBallot || this.ballot) {
opsTeam = this.roundBallot
? this.findOpsTeam(this.roundBallot, v._id, opsTeam)
: this.findOpsTeam(this.ballot, v._id, opsTeam);
}
opsTeam === null || opsTeam === void 0 ? void 0 : opsTeam.forEach((element, index) => {
var _a, _b, _c, _d, _e, _f;
let ell = this.fb.group({
_id: element._id,
name: element.name
});
if (this.autoBallot) {
ell.controls['BallotBalance'] = new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"]((_b = (_a = this.autoBallot.data.slotCreation[i].opsTeam) === null || _a === void 0 ? void 0 : _a.find(item => item._id === element._id)) === null || _b === void 0 ? void 0 : _b.BallotBalance);
ell.controls['ratioForBalnceQuota'] = new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"]((_d = (_c = this.autoBallot.data.slotCreation[i].opsTeam) === null || _c === void 0 ? void 0 : _c.find(item => item._id === element._id)) === null || _d === void 0 ? void 0 : _d.ratioForBalnceQuota);
ell.controls['unassignBalanace'] = new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"]((_f = (_e = this.autoBallot.data.slotCreation[i].opsTeam) === null || _e === void 0 ? void 0 : _e.find(item => item._id === element._id)) === null || _f === void 0 ? void 0 : _f.unassignBalanace);
}
this.team(i).push(ell);
});
(_a = this.slotWeeks) === null || _a === void 0 ? void 0 : _a.forEach((vv, ii) => {
if (this.ballotdata.controls.leaveType.value == '1') {
let el = this.fb.group({
value: '',
startDate: vv[0].format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
});
this.arr(i).push(el);
}
else {
let el = this.fb.group({
value: '',
startDate: vv.format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
});
this.arr(i).push(el);
}
});
});
}
slotCreation() {
return this.slotQuotaSetup.get('slotCreation');
}
newSlotCreation() {
return this.fb.group({
arr: this.fb.array([]),
weekRangeSlot: this.fb.array([]),
opsGroup: '',
opsTeam: '',
});
}
clearArray(arr) {
while ((arr === null || arr === void 0 ? void 0 : arr.length) > 0) {
arr.removeAt(0);
}
}
arr(opsIndex) {
return this.slotCreation().at(opsIndex).get('arr');
}
team(i) {
return this.slotCreation().at(i).get('opsTeam');
}
newarr() {
return this.fb.group({
value: '',
startDate: '',
});
}
get maxSegment() {
return this.restrictLimit.get('maxSegment');
}
newMaxSegment() {
return this.fb.group({
segmentNo: null,
startDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
endDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
maxBallot: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
});
}
removeMaxSegment(i) {
this.maxSegment.removeAt(i);
}
addSegment() {
this.maxSegment.push(this.newMaxSegment());
const lastAddedSegment = this.getLastDisabledFormGroupValue();
if (lastAddedSegment) {
this.minSegmentDate = lastAddedSegment.endDate;
}
else {
this.minSegmentDate = this.ballotdata.controls.ballotStartDate.value;
}
this.maxSegmentDate = this.ballotdata.controls.ballotEndDate.value;
}
getLastDisabledFormGroupValue() {
// Find the last disabled FormGroup in the FormArray
let lastDisabledFormGroupValue = null;
for (let i = this.maxSegment.length - 1; i >= 0; i--) {
const formGroup = this.maxSegment.at(i);
if (formGroup.disabled) {
lastDisabledFormGroupValue = formGroup.getRawValue();
break;
}
}
return lastDisabledFormGroupValue;
}
ngbMomentngb(d, weekday) {
if (weekday == 's') {
let tempSd = moment__WEBPACK_IMPORTED_MODULE_5__().set({
year: d.year,
month: d.month - 1,
date: d.day,
});
const sd = moment__WEBPACK_IMPORTED_MODULE_5__(tempSd).startOf('isoWeek');
const sdd = { year: sd.year(), month: sd.month() + 1, day: sd.date() };
return sdd;
}
else {
const tempEd = moment__WEBPACK_IMPORTED_MODULE_5__().set({
year: d.year,
month: d.month - 1,
date: d.day,
});
const ed = moment__WEBPACK_IMPORTED_MODULE_5__(tempEd).endOf('isoWeek');
const edd = { year: ed.year(), month: ed.month() + 1, day: ed.date() };
return edd;
}
}
plusSegment(i) {
let sd;
let ed;
if (this.ballotdata.get('leaveType').value == '2') {
sd = this.maxSegment.at(i).get('startDate').value;
ed = this.maxSegment.at(i).get('endDate').value;
}
else {
sd = this.ngbMomentngb(this.maxSegment.at(i).get('startDate').value, 's');
ed = this.ngbMomentngb(this.maxSegment.at(i).get('endDate').value, 'e');
}
this.maxSegment.at(i).patchValue({
segmentNo: i + 1,
startDate: sd,
endDate: ed,
});
this.maxSegment.at(i).disable();
}
editSegment(i) {
this.maxSegment.at(i).enable();
}
checkAllSlots(e, i) {
if (e.target.checked) {
this.slotWeeks.forEach((v, ii) => {
this.allOps[i].slots[ii] = this.slot[i];
});
}
}
getOpsGrp() {
this.allOps = [];
this.slot = [];
this.clearArray(this.slotCreation());
this.opsGrp = this.slotQuotaSetup.controls.opsGroupId.value;
this.opsGrp.forEach((val, index) => {
val.isSelected = false;
let ballotSlot;
let slotSortArr;
if (this.ballot) {
ballotSlot = this.ballot.slotCreation[index].weekRangeSlot;
let keyy = Object.keys(ballotSlot);
slotSortArr = [];
keyy.forEach((v) => {
slotSortArr.push([v, ballotSlot[v]]);
});
}
let team = {
OpsGrp: val.opsGroupName,
OpsGrpId: val._id,
OpsTeam: 'Tier 1',
OpsTeamId: '',
slots: {},
};
if (this.autoBallot) {
team['BallotBalance'] =
this.ballot.slotCreation[index].opsGroup.BallotBalance;
team['unassignBalanace'] =
this.ballot.slotCreation[index].opsGroup.unassignBalanace;
team['ratioForBalnceQuota'] = this.ballot.slotCreation[index].opsGroup.ratioForBalnceQuota;
}
if (this.ballot) {
const slotGrpVal = [];
let pk = [];
slotSortArr.forEach((vv) => {
if (!this.autoBallot && vv[0].endsWith('A')) {
let ck = vv[0].slice(0, -1);
pk.push([ck, vv[1].value]);
}
else if (this.autoBallot && vv[0].endsWith('A')) {
let ck = vv[0].slice(0, -1);
pk.push([ck, vv[1].value, vv[1].balanceToBeAssigned]);
}
});
pk.sort((a, b) => {
let aa = parseInt(a[0]);
let bb = parseInt(b[0]);
if (aa < bb) {
return -1;
}
if (aa > bb) {
return 1;
}
//if values are equal
return 0;
});
if (!this.autoBallot) {
pk.forEach((sv) => slotGrpVal.push(sv[1]));
}
else {
pk.forEach((sv) => slotGrpVal.push([sv[1], sv[2]]));
}
team['slots'] = slotGrpVal;
}
this.allOps.push(team);
if (val.opsTeamId) {
let opsTeam = val.opsTeamId;
if (this.roundBallot || this.ballot) {
opsTeam = this.roundBallot
? this.findOpsTeam(this.roundBallot, val._id, opsTeam)
: this.findOpsTeam(this.ballot, val._id, opsTeam);
}
opsTeam === null || opsTeam === void 0 ? void 0 : opsTeam.forEach((vv, opsTeamIndex) => {
team = {
OpsGrp: '',
OpsGrpId: val._id,
OpsTeam: vv.name,
OpsTeamId: vv._id,
slots: {},
};
if (this.autoBallot) {
team['BallotBalance'] =
this.ballot.slotCreation[index].opsTeam[opsTeamIndex].BallotBalance;
team['unassignBalanace'] =
this.ballot.slotCreation[index].opsTeam[opsTeamIndex].unassignBalanace;
team['ratioForBalnceQuota'] = this.ballot.slotCreation[index].opsGroup.ratioForBalnceQuota;
}
if (this.ballot) {
const slotTeam = [];
let pTeamm = [];
this.slotWeeks.forEach((vs, slotsIndex) => {
let matchKeyValue = slotSortArr.find((slotValue) => {
if (slotValue[0] ==
'OG' + slotsIndex + 'OT' + opsTeamIndex.toString()) {
return true;
}
});
pTeamm.push(matchKeyValue);
});
if (!this.autoBallot) {
pTeamm === null || pTeamm === void 0 ? void 0 : pTeamm.map((sv) => {
var _a;
slotTeam.push((_a = sv[1]) === null || _a === void 0 ? void 0 : _a.value);
});
}
else {
pTeamm === null || pTeamm === void 0 ? void 0 : pTeamm.map((sv) => { var _a, _b; return slotTeam.push([(_a = sv[1]) === null || _a === void 0 ? void 0 : _a.value, (_b = sv[1]) === null || _b === void 0 ? void 0 : _b.balanceToBeAssigned]); });
}
team['slots'] = slotTeam;
}
this.allOps.push(team);
});
}
});
this.allOps.forEach((val, i) => {
this.slot[i] = '';
});
}
getSlotWeeks() {
if (this.ballotdata.get('ballotEndDate').value &&
this.ballotdata.get('ballotStartDate').value) {
const startDate = this.ballotdata.controls.ballotStartDate.value;
const endDate = this.ballotdata.controls.ballotEndDate.value;
const ballotStart = moment__WEBPACK_IMPORTED_MODULE_5__()
.set({
year: startDate.year,
month: startDate.month - 1,
date: startDate.day,
})
.startOf('isoWeek');
const ballotEnd = moment__WEBPACK_IMPORTED_MODULE_5__()
.set({
year: endDate.year,
month: endDate.month - 1,
date: endDate.day,
})
.endOf('isoWeek');
const weekdiff = ballotEnd.diff(ballotStart, 'weeks');
this.slotWeeks = [];
for (var i = 0; i <= weekdiff; i++) {
this.slotWeeks.push([
moment__WEBPACK_IMPORTED_MODULE_5__(ballotStart).add(i, 'week'),
moment__WEBPACK_IMPORTED_MODULE_5__(ballotStart).add(i, 'week').endOf('isoWeek'),
]);
}
}
}
checkOpenCloseTime() {
if (this.ballotdata.get('openDate').value && this.ballotdata.get('openTime').value && this.ballotdata.get('closeDate').value && this.ballotdata.get('closeTime').value) {
const selectedOpenDate = this.ngbToMoment(this.ballotdata.get('openDate').value).set({
hour: this.ballotdata.get('openTime').value.slice(0, 2),
minute: this.ballotdata.get('openTime').value.slice(-2),
});
const selectedCloseDate = this.ngbToMoment(this.ballotdata.get('closeDate').value).set({
hour: this.ballotdata.get('closeTime').value.slice(0, 2),
minute: this.ballotdata.get('closeTime').value.slice(-2),
});
if (!(moment__WEBPACK_IMPORTED_MODULE_5__(selectedCloseDate).isAfter(selectedOpenDate))) {
this.toastService.error('Application Close Time should be more than Open Time', 'Error', { timeOut: 5000, progressBar: true });
return true;
}
}
return false;
}
ballotDateValidation() {
if (this.openingTimePassed) {
this.toastService.error('Application Open Time should be more than current time', 'Error');
return false;
}
else if (new Date(this.ballotdata.get('closeDate').value.year, this.ballotdata.get('closeDate').value.month, this.ballotdata.get('closeDate').value.day).getTime() < new Date(this.ballotdata.get('openDate').value.year, this.ballotdata.get('openDate').value.month, this.ballotdata.get('openDate').value.day).getTime()) {
// "Application start date should be less then end date
this.toastService.error('Application start date should be less then end date', 'Error');
return false;
}
else if (this.checkOpenCloseTime()) {
// Ballot start date should be less then end date
// this.toastService.error('Ballot start date should be less then end date', 'Error');
return false;
}
else if (new Date(this.ballotdata.get('ballotEndDate').value.year, this.ballotdata.get('ballotEndDate').value.month, this.ballotdata.get('ballotEndDate').value.day).getTime() <= new Date(this.ballotdata.get('ballotStartDate').value.year, this.ballotdata.get('ballotStartDate').value.month, this.ballotdata.get('ballotStartDate').value.day).getTime()) {
// Ballot start date should be less then end date
this.toastService.error('Ballot start date should be less then end date', 'Error');
return false;
}
else if (new Date(this.ballotdata.get('openDate').value.year, this.ballotdata.get('openDate').value.month, this.ballotdata.get('openDate').value.day).getTime() >= new Date(this.ballotdata.get('ballotStartDate').value.year, this.ballotdata.get('ballotStartDate').value.month, this.ballotdata.get('ballotStartDate').value.day).getTime()) {
// Application start date should be less then ballot start date
this.toastService.error('Application start date should be less then ballot start date', 'Error');
return false;
}
else if (new Date(this.ballotdata.get('closeDate').value.year, this.ballotdata.get('closeDate').value.month, this.ballotdata.get('closeDate').value.day).getTime() >= new Date(this.ballotdata.get('ballotStartDate').value.year, this.ballotdata.get('ballotStartDate').value.month, this.ballotdata.get('ballotStartDate').value.day).getTime()) {
// Application end date should be less then ballot start date
this.toastService.error('Application end date should be less then ballot start date', 'Error');
return false;
}
else if (this.ballotdata.get('resultRelease').value == 1 && new Date(this.ballotdata.get('resultReleaseDate').value.year, this.ballotdata.get('resultReleaseDate').value.month, this.ballotdata.get('resultReleaseDate').value.day).getTime() >= new Date(this.ballotdata.get('ballotStartDate').value.year, this.ballotdata.get('ballotStartDate').value.month, this.ballotdata.get('ballotStartDate').value.day).getTime()) {
// Result release date should be less then ballot start date
this.toastService.error('Result release date should be less then ballot start date', 'Error');
return false;
}
else if (this.ballotdata.get('resultRelease').value == 1 && new Date(this.ballotdata.get('resultReleaseDate').value.year, this.ballotdata.get('resultReleaseDate').value.month, this.ballotdata.get('resultReleaseDate').value.day).getTime() <= new Date(this.ballotdata.get('closeDate').value.year, this.ballotdata.get('closeDate').value.month, this.ballotdata.get('closeDate').value.day).getTime()) {
// "Result release date should be greater then Application end date
this.toastService.error('Result release date should be greater then Application end date', 'Error');
return false;
}
return true;
}
ballotdataNext() {
this.ballotdataSubmitted = true;
if (!this.ballotdata.invalid && this.ballotDateValidation()) {
this.stepper.next();
this.getSlots();
}
}
slotQuotaSetupNext() {
this.slotQuotaSetupSubmitted = true;
if (!this.slotQuotaSetup.valid) {
return;
}
const hasEmptySlot = this.allOps.some((item) => {
if (item.slots && typeof item.slots === 'object') {
if (Object.keys(item.slots).length === 0 ||
Object.values(item.slots).some((slot) => slot === null || slot === undefined || slot === '')) {
return true;
}
}
else {
return true;
}
return false;
});
if (hasEmptySlot) {
this.toastService.error('Please fill in all slot values', 'Error');
}
else {
this.getSlotQuotaSetup();
this.stepper.next();
}
}
getSlots() {
if (this.ballotdata.get('leaveType').value == '2') {
const startDate = this.ballotdata.controls.ballotStartDate.value;
const endDate = this.ballotdata.controls.ballotEndDate.value;
let ballotStart = moment__WEBPACK_IMPORTED_MODULE_5__().set({
year: startDate.year,
month: startDate.month - 1,
date: startDate.day,
});
let ballotEnd = moment__WEBPACK_IMPORTED_MODULE_5__().set({
year: endDate.year,
month: endDate.month - 1,
date: endDate.day,
});
ballotEnd.add(1, 'days');
this.slotWeeks = [];
do {
this.slotWeeks.push(moment__WEBPACK_IMPORTED_MODULE_5__(ballotStart));
ballotStart = moment__WEBPACK_IMPORTED_MODULE_5__(ballotStart).add(1, 'days');
} while (ballotStart.format('DD-MM-YY') != ballotEnd.format('DD-MM-YY'));
}
else {
this.getSlotWeeks();
}
}
getOpsLeave() {
this.leaveService.getOpsGrp().subscribe((res) => {
this.opsList = res.data;
if (this.ballot) {
const editOps = [];
this.ballot.opsGroupId.forEach((val) => {
this.opsList.find((v) => {
if (v._id == val._id) {
editOps.push(v);
}
});
});
this.slotQuotaSetup.get('opsGroupId').patchValue(editOps);
this.getSlots();
this.getOpsGrp();
}
});
}
selectTime() {
this.time = [];
for (let hour = 0; hour < 24; hour++) {
this.time.push(moment__WEBPACK_IMPORTED_MODULE_5__({ hour }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_5__({ hour, minute: 15 }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_5__({ hour, minute: 30 }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_5__({ hour, minute: 45 }).format('HH:mm'));
}
}
fixedValidn(group) {
const leaveType = group.get('leaveType');
const fixedCheck = group.get('fixedBallotingLeaveType');
const quota = group.get('totalQuota');
if (leaveType.value == '2' && !fixedCheck.value) {
return { fixedNotChecked: true };
}
if (leaveType.value == '2' && fixedCheck.value == true) {
if (quota.value == '') {
return { quotaValueNull: true };
}
else {
return null;
}
}
}
validateRequiredField() {
if (!this.slotformat || !this.resStaff || this.checkOpsGrop()) {
return false;
}
return true;
}
checkOpsGrop() {
var _a;
return !((_a = this.opsGrp) === null || _a === void 0 ? void 0 : _a.find(x => x.isSelected == true));
}
findOpsTeam(ballotType, opsId, fallbackTeam) {
const foundTeam = ballotType === null || ballotType === void 0 ? void 0 : ballotType.slotCreation.find((item) => { var _a; return ((_a = item === null || item === void 0 ? void 0 : item.opsGroup) === null || _a === void 0 ? void 0 : _a.opsId) === opsId; });
return foundTeam ? foundTeam.opsTeam : fallbackTeam;
}
}
CreateBallotComponent.ɵfac = function CreateBallotComponent_Factory(t) { return new (t || CreateBallotComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_7__["LeavePlannerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_8__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__["NgbDateParserFormatter"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_11__["OpsGroupService"])); };
CreateBallotComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: CreateBallotComponent, selectors: [["create-ballot"]], viewQuery: function CreateBallotComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.stepper = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.table = _t.first);
} }, inputs: { ballot: "ballot", roundBallot: "roundBallot", autoBallot: "autoBallot" }, outputs: { back: "back" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([
{
provide: _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_1__["STEPPER_GLOBAL_OPTIONS"],
useValue: { showError: true },
},
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
])], decls: 295, vars: 112, consts: [[3, "linear"], ["stepper", ""], ["class", "loading-class", 4, "ngIf"], [3, "stepControl"], [3, "formGroup"], ["matStepLabel", ""], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "row"], [1, "col-md-6"], [1, "form-group"], [1, "font-weight-500"], [1, "field-mandatory"], ["type", "text", "formControlName", "ballotName", "placeholder", "Please enter ballot name", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], [1, "col-md-2"], [1, "form-grou"], ["container", "body", "placeholder", "Select date", "name", "dp", "ngbDatepicker", "", "formControlName", "openDate", 1, "form-control", 3, "outsideDays", "minDate", "ngClass", "click", "close"], ["d1", "ngbDatepicker"], ["appendTo", "body", "formControlName", "openTime", "placeholder", "Select time", 3, "items", "ngClass", "change"], ["container", "body", "placeholder", "Select date", "name", "dp", "ngbDatepicker", "", "formControlName", "closeDate", 1, "form-control", 3, "outsideDays", "minDate", "ngClass", "click"], ["d2", "ngbDatepicker"], ["appendTo", "body", "formControlName", "closeTime", "placeholder", "Select time", 3, "items", "ngClass"], ["placeholder", "Select date", "container", "body", "name", "ballotStartDate", "ngbDatepicker", "", "formControlName", "ballotStartDate", 1, "form-control", 3, "outsideDays", "minDate", "ngClass", "click"], ["d3", "ngbDatepicker"], ["placeholder", "Select date", "container", "body", "name", "ballotEndDate", "ngbDatepicker", "", "formControlName", "ballotEndDate", 1, "form-control", 3, "outsideDays", "minDate", "ngClass", "click"], ["d4", "ngbDatepicker"], [1, "form-group", "m-0"], [1, "mb-0", "mr-4", "font-weight-500"], [1, "custom-control", "custom-radio", "custom-control-inline"], ["type", "radio", "id", "customRadioInline1", "name", "leaveType", "formControlName", "leaveType", "value", "1", 1, "custom-control-input"], ["for", "customRadioInline1", 1, "custom-control-label"], ["type", "radio", "id", "customRadioInline2", "name", "leaveType", "formControlName", "leaveType", "value", "2", 1, "custom-control-input"], ["for", "customRadioInline2", 1, "custom-control-label"], ["class", "form-group m-0", 4, "ngIf"], [4, "ngIf"], [1, "col-md-12"], ["for", "", 1, "mb-0", "mr-4", "font-weight-500"], ["type", "radio", "id", "customRadioInline3", "name", "resultRelease", "formControlName", "resultRelease", "value", "1", 1, "custom-control-input", 3, "ngClass"], ["for", "customRadioInline3", 1, "custom-control-label"], [1, "custom-control", "custom-radio", "custom-control-inline", 3, "ngClass"], ["type", "radio", "id", "customRadioInline4", "name", "resultRelease", "formControlName", "resultRelease", "value", "2", 1, "custom-control-input", 3, "ngClass"], ["for", "customRadioInline4", 1, "custom-control-label"], ["class", "col-md-6", 4, "ngIf"], [1, "card-footer"], [1, "d-flex"], ["type", "button", 1, "bg-theme", "border-0", "btn", "d-flex", "align-items-center", 3, "click"], [1, "material-icons", "ml-1"], [1, "card-body", "mh-3"], [1, "col-md-4", "align-self-end"], ["bindLabel", "opsGroupName", "formControlName", "opsGroupId", "placeholder", "Please select or search ops group", 3, "items", "multiple", "closeOnSelect", "searchable", "ngClass", "change"], [3, "ngIf"], ["class", "row", 4, "ngIf"], ["type", "button", "matStepperPrevious", "", 1, "align-items-center", "btn", "btn-outline-dark", "d-flex"], [1, "material-icons", "mr-1"], ["type", "button", 1, "align-items-center", "bg-theme", "btn", "d-flex", "ml-2", 3, "click"], [1, "row", "my-3"], ["for", "", 1, "mr-4", "font-weight-500"], ["type", "radio", "id", "customRadioInline12", "name", "isRestrict", "formControlName", "isRestrict", "value", "true", 1, "custom-control-input"], ["for", "customRadioInline12", 1, "custom-control-label"], ["type", "radio", "id", "customRadioInline24", "name", "isRestrict", "formControlName", "isRestrict", "value", "false", 1, "custom-control-input"], ["for", "customRadioInline24", 1, "custom-control-label"], [1, "col-md-4"], ["bindLabel", "name", "placeholder", "Select Admin", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "loading", "virtualScroll", "change", "clear"], [3, "disabled", "value", 4, "ngFor", "ngForOf"], [1, "col-md-6", "align-self-end"], ["class", "d-inline-block", "formArrayName", "adminId", 4, "ngFor", "ngForOf"], ["style", "position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1050;background-color: rgba(0, 0, 0, 0.5);overflow: auto;", 4, "ngIf"], [1, "row", "mb-3"], [1, "table", "border", "m-0"], [1, "border-theme", "rounded"], [1, "table-responsive", "table-clot-view"], ["class", "table table-striped m-0", 4, "ngIf"], ["class", "table table-striped border-left m-0", 4, "ngIf"], ["class", "col-md-12 mb-3", 4, "ngIf"], ["type", "button", "class", "align-items-center btn-info btn d-flex ml-2", 3, "disabled", "click", 4, "ngIf"], ["type", "button", 1, "align-items-center", "btn-success", "btn", "d-flex", "ml-2", 3, "disabled", "click"], ["class", "material-icons ml-2", 4, "ngIf"], ["class", "spinner-border spinner-border-sm ml-2", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "loading-class"], ["src", "./assets/images/loading.gif"], [1, "text-center"], [1, "invalid-feedback"], [1, "form-group", "form-check"], ["type", "checkbox", "id", "fixedBallotingLeaveType", "name", "fixedBallotingLeaveType", "formControlName", "fixedBallotingLeaveType", 1, "form-check-input", 3, "ngClass"], ["for", "fixedBallotingLeaveType", 1, "form-check-label", "font-weight-500"], ["class", "invalid-feedback d-block", 4, "ngIf"], ["class", "form-group row", 4, "ngIf"], [1, "invalid-feedback", "d-block"], [1, "form-group", "row"], [1, "col-sm-6"], ["name", "totalQuota", "formControlName", "totalQuota", "type", "text", "id", "Quota1", 1, "form-control", "d-inline-block", "w-25", 3, "ngClass"], ["for", "Quota1", 1, "d-inline-block", "pl-2", "col-form-label", "font-weight-500"], ["for", "", 1, "font-weight-500"], ["placeholder", "Select date", "name", "dp", "ngbDatepicker", "", "formControlName", "resultReleaseDate", 1, "form-control", 3, "minDate", "maxDate", "ngClass", "click", "closed"], ["d5", "ngbDatepicker"], ["formControlName", "resultReleaseTime", 3, "items", "ngClass", "change"], ["class", "labels my-1", 4, "ngFor", "ngForOf"], [1, "labels", "my-1"], [1, "text"], ["class", "col-md-4 mb-3", 4, "ngIf"], [1, "table-responsive", "table-sticky"], [1, "col-md-4", "mb-3"], [1, "card", "border-theme"], [1, "card-title", "mb-3"], [1, "d-flex", "text-center", "justify-content-between"], [1, "text-center", "m-0", "text-muted"], [1, "h2", "text-dark"], ["title", "Unassigned / Balance Quota = Ratio", 1, "text-center", "m-0", "text-muted"], [1, "table", "table-striped", "border-left", "m-0"], ["scope", "col", 1, "fix", "border-bottom-0", "border-top-0"], ["scope", "col", "class", "noWrap", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["scope", "col", 1, "noWrap"], [1, "h6", "text-muted"], ["scope", "row", 1, "fix"], [1, "fix"], [1, "align-items-center", "d-flex"], ["type", "number", 1, "form-control", "mr-3", 3, "ngModel", "ngModelOptions", "ngModelChange"], ["type", "checkbox", 3, "change"], ["type", "number", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "box-label", "text-muted"], [1, "box-label", "text-muted", "ml-1"], ["type", "text", "readonly", "", 1, "form-control", "box", 3, "value"], ["type", "text", "readonly", "", 1, "form-control", "box", "ml-1", 3, "value"], ["type", "text", "readonly", "", 1, "form-control", "box", 3, "ngModel", "ngModelOptions", "ngModelChange"], ["type", "text", "readonly", "", 1, "form-control", "box", "ml-1", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "card-header"], [1, "card-body", "p-0"], ["class", "table", 4, "ngIf"], [1, "table"], [1, "table-responsive"], ["scope", "col"], ["formArrayName", "maxSegment"], ["type", "button", 1, "btn", "btn-primary", "mt-2", 3, "disabled", "click"], ["type", "text", "formControlName", "maxConsecutiveBallot", 1, "form-control", "w-25"], [1, "form-row"], [1, "form-group", "m-0", "col-md-3"], ["placeholder", "Select Slot", 3, "multiple", "closeOnSelect", "searchable", "ngModel", "ngModelOptions", "disabled", "ngModelChange", "change"], [3, "value", 4, "ngFor", "ngForOf"], ["class", "field-mandatory", 4, "ngIf"], ["for", "", 1, "d-block", "font-weight-500"], ["class", "form-check form-check-inline", 4, "ngFor", "ngForOf"], ["class", "d-block font-weight-500", 4, "ngIf"], ["class", "form-group m-0 col-md-3", 4, "ngIf"], [1, "btn", "btn-success", 3, "disabled", "click"], [3, "formGroupName"], ["placeholder", "Select date", "ngbDatepicker", "", "formControlName", "startDate", 1, "form-control", 3, "minDate", "maxDate", "click"], ["placeholder", "Select date", "ngbDatepicker", "", "formControlName", "endDate", 1, "form-control", 3, "minDate", "maxDate", "click"], ["d6", "ngbDatepicker"], ["type", "text", "formControlName", "maxBallot", 1, "form-control"], ["title", "Delete", 1, "btn", "mr-2", "p-0", 3, "disabled", "click"], [1, "material-icons", "text-danger"], ["class", "btn mr-2 p-0", "title", "Add", 3, "disabled", "click", 4, "ngIf"], ["class", "btn p-0", "title", "Edit", 3, "disabled", "click", 4, "ngIf"], ["title", "Add", 1, "btn", "mr-2", "p-0", 3, "disabled", "click"], [1, "material-icons", "text-success"], ["title", "Edit", 1, "btn", "p-0", 3, "disabled", "click"], [1, "material-icons", "text-primary"], [3, "value"], [1, "form-check", "form-check-inline"], ["type", "checkbox", 1, "form-check-input", 3, "id", "ngModel", "ngModelOptions", "disabled", "ngModelChange", "change"], [1, "form-check-label", 3, "for"], [1, "d-block", "font-weight-500"], ["type", "checkbox", 1, "form-check-input", 3, "id", "ngModel", "ngModelOptions", "ngModelChange", "change"], ["placeholder", "Select Staff", "clearAllText", "Clear", 3, "multiple", "closeOnSelect", "searchable", "ngModel", "ngModelOptions", "ngModelChange"], [1, "table", "border"], [1, "comma"], [3, "disabled", "value"], ["formArrayName", "adminId", 1, "d-inline-block"], [1, "align-items-center", "bg-theme", "d-flex", "h5", "justify-content-around", "px-3", "py-2", "rounded", "mr-2", "mb-0", 3, "formGroupName"], [1, "btn", "p-0", "material-icons", "text-danger", "ml-2", "click", 3, "disabled", "click"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "450%"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "table", "table-striped", "m-0"], ["type", "text", "readonly", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], ["scope", "col noWrap", 4, "ngFor", "ngForOf"], ["scope", "col noWrap"], [1, "col-md-12", "mb-3"], [1, "table", "m-0"], ["type", "text", "readonly", "", 1, "form-control", "w-25", 3, "value"], ["type", "button", 1, "align-items-center", "btn-info", "btn", "d-flex", "ml-2", 3, "disabled", "click"], [1, "material-icons", "ml-2"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-2"]], template: function CreateBallotComponent_Template(rf, ctx) { if (rf & 1) {
const _r222 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-horizontal-stepper", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, CreateBallotComponent_div_2_Template, 4, 0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "mat-step", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateBallotComponent_ng_template_5_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "ENTER BALLOT DATA");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "Ballot Name");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](17, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, CreateBallotComponent_div_18_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "Opening date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "input", 18, 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_input_click_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r222); const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](27); return _r4.toggle(); })("close", function CreateBallotComponent_Template_input_close_26_listener() { return ctx.checkTime(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](28, CreateBallotComponent_div_28_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "Opening Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "ng-select", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateBallotComponent_Template_ng_select_change_35_listener() { return ctx.checkTime(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](36, CreateBallotComponent_div_36_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Closing date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "input", 21, 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_input_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r222); const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](44); return _r7.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](45, CreateBallotComponent_div_45_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](49, "Closing Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](51, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](52, "ng-select", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](53, CreateBallotComponent_div_53_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](57, "Ballot period Start");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "input", 24, 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_input_click_60_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r222); const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](61); return _r10.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](62, CreateBallotComponent_div_62_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66, "Ballot period End");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](68, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "input", 26, 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_input_click_69_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r222); const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](70); return _r12.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](71, CreateBallotComponent_div_71_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](72, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](79, "Select Leave Type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](81, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](82, ": ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](84, "input", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](85, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](86, "Week Ballot Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](87, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](88, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](90, "Day Ballot Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](91, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](93, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](94, CreateBallotComponent_div_94_Template, 3, 1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](95, CreateBallotComponent_ng_container_95_Template, 9, 5, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](96, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](98, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](99, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](100, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](101, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](102, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](103, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](104, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](105, "Results Release setup");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](106, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](107, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](108, ": ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](109, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](110, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](111, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](112, "Auto");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](113, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](114, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](115, "label", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](116, "Manual");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](117, CreateBallotComponent_div_117_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](118, CreateBallotComponent_div_118_Template, 21, 11, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](119, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](120, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](121, "button", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_button_click_121_listener() { return ctx.ballotdataNext(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](122, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](123, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](124, "span", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](125, " arrow_forward ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](126, "mat-step", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](127, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](128, CreateBallotComponent_ng_template_128_Template, 1, 1, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](129, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](130, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](132, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](133, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](134, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](135, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](136, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](137, "Select Ops group");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](138, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](139, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](140, "ng-select", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateBallotComponent_Template_ng_select_change_140_listener() { return ctx.getOpsGrp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](141, CreateBallotComponent_div_141_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](142, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](143, CreateBallotComponent_ng_template_143_Template, 1, 1, "ng-template", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](144, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](145, CreateBallotComponent_div_145_Template, 7, 3, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](146, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](147, CreateBallotComponent_div_147_Template, 7, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](148, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](149, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](150, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](151, "span", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](152, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](153, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](154, "Previous");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](155, "button", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_button_click_155_listener() { return ctx.slotQuotaSetupNext(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](156, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](157, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](158, "span", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](159, " arrow_forward ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](160, "mat-step", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](161, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](162, CreateBallotComponent_ng_template_162_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](163, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](164, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](165, "RESTRICTIONS & LIMITS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](166, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](167, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](168, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](169, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](170, "label", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](171, " Do you need to restrict ballot submission?");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](172, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](173, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](174, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](175, "input", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](176, "label", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](177, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](178, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](179, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](180, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](181, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](182, CreateBallotComponent_ng_container_182_Template, 62, 18, "ng-container", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](183, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](184, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](185, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](186, "span", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](187, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](188, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](189, "Previous");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](190, "button", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_button_click_190_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r222); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1); return _r0.next(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](191, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](192, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](193, "span", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](194, " arrow_forward ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](195, "mat-step", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](196, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](197, CreateBallotComponent_ng_template_197_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](198, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](199, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](200, "ADMIN");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](201, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](202, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](203, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](204, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](205, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](206, "Select Admin");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](207, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](208, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](209, "ng-select", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateBallotComponent_Template_ng_select_change_209_listener($event) { return ctx.addLoginFields($event); })("clear", function CreateBallotComponent_Template_ng_select_clear_209_listener($event) { return ctx.onClearCustomFieldDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](210, CreateBallotComponent_ng_option_210_Template, 2, 3, "ng-option", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](211, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](212, CreateBallotComponent_div_212_Template, 6, 3, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](213, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](214, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](215, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](216, "span", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](217, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](218, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](219, "Previous");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](220, "button", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_button_click_220_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r222); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1); return _r0.next(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](221, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](222, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](223, "span", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](224, " arrow_forward ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](225, "mat-step");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](226, CreateBallotComponent_ng_template_226_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](227, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](228, CreateBallotComponent_div_228_Template, 5, 0, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](229, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](230, "SAVE/PUBLISH");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](231, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](232, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](233, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](234, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](235, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](236, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](237, "BALLOT NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](238, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](239);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](240, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](241, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](242, "BALLOT FOR PERIOD");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](243, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](244);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](245, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](246, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](247, "OPENING DATE FOR APPLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](248, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](249);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](250, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](251, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](252, "CLOSING DATE FOR APPLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](253, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](254);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](255, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](256, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](257, "BALLOT STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](258, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](259);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](260, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](261, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](262, "BALLOT TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](263, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](264);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](265, CreateBallotComponent_tr_265_Template, 6, 2, "tr", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](266, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](267, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](268, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](269, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](270, "SLOT VIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](271, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](272, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](273, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](274, CreateBallotComponent_table_274_Template, 10, 2, "table", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](275, CreateBallotComponent_table_275_Template, 17, 2, "table", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](276, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](277, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](278, CreateBallotComponent_div_278_Template, 19, 1, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](279, CreateBallotComponent_div_279_Template, 9, 1, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](280, CreateBallotComponent_div_280_Template, 15, 1, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](281, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](282, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](283, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](284, "span", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](285, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](286, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](287, "Previous");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](288, CreateBallotComponent_button_288_Template, 7, 3, "button", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](289, "button", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateBallotComponent_Template_button_click_289_listener() { return ctx.publishBallot(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](290, CreateBallotComponent_span_290_Template, 2, 1, "span", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](291, CreateBallotComponent_span_291_Template, 2, 0, "span", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](292, CreateBallotComponent_span_292_Template, 2, 0, "span", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](293, CreateBallotComponent_span_293_Template, 2, 0, "span", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](294, CreateBallotComponent_span_294_Template, 1, 0, "span", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("linear", ctx.isLinear);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.ballotdata);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.ballotdata);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](90, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.ballotName.errors || !ctx.ballotdata.controls.ballotName.pristine && ctx.ballotdata.controls.ballotName.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdataSubmitted && ctx.ballotdata.controls.ballotName.errors || !ctx.ballotdata.controls.ballotName.pristine && ctx.ballotdata.controls.ballotName.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("outsideDays", ctx.hidden)("minDate", ctx.futureMinDate)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](92, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.openDate.errors || !ctx.ballotdata.controls.openDate.pristine && ctx.ballotdata.controls.openDate.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdataSubmitted && ctx.ballotdata.controls.openDate.errors || !ctx.ballotdata.controls.openDate.pristine && ctx.ballotdata.controls.openDate.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.time)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](94, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.openTime.errors || !ctx.ballotdata.controls.openTime.pristine && ctx.ballotdata.controls.openTime.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdataSubmitted && ctx.ballotdata.controls.openTime.errors || !ctx.ballotdata.controls.openTime.pristine && ctx.ballotdata.controls.openTime.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("outsideDays", ctx.hidden)("minDate", ctx.closingMinDate)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](96, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.closeDate.errors || !ctx.ballotdata.controls.closeDate.pristine && ctx.ballotdata.controls.closeDate.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdataSubmitted && ctx.ballotdata.controls.closeDate.errors || !ctx.ballotdata.controls.closeDate.pristine && ctx.ballotdata.controls.closeDate.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.time)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](98, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.closeTime.errors || !ctx.ballotdata.controls.closeTime.pristine && ctx.ballotdata.controls.closeTime.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdataSubmitted && ctx.ballotdata.controls.closeTime.errors || !ctx.ballotdata.controls.closeTime.pristine && ctx.ballotdata.controls.closeTime.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("outsideDays", ctx.hidden)("minDate", ctx.ballotdata.get("closeDate").value)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](100, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.ballotStartDate.errors || !ctx.ballotdata.controls.ballotStartDate.pristine && ctx.ballotdata.controls.ballotStartDate.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdataSubmitted && ctx.ballotdata.controls.ballotStartDate.errors || !ctx.ballotdata.controls.ballotStartDate.pristine && ctx.ballotdata.controls.ballotStartDate.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("outsideDays", ctx.hidden)("minDate", ctx.ballotdata.get("ballotStartDate").value)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](102, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.ballotEndDate.errors || !ctx.ballotdata.controls.ballotEndDate.pristine && ctx.ballotdata.controls.ballotEndDate.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdataSubmitted && ctx.ballotdata.controls.ballotEndDate.errors || !ctx.ballotdata.controls.ballotEndDate.pristine && ctx.ballotdata.controls.ballotEndDate.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdata.get("leaveType").value == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdata.get("leaveType").value == "2");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](104, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.resultRelease.errors || !ctx.ballotdata.controls.resultRelease.pristine && ctx.ballotdata.controls.resultRelease.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](106, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.resultRelease.errors || !ctx.ballotdata.controls.resultRelease.pristine && ctx.ballotdata.controls.resultRelease.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](108, _c2, ctx.ballotdataSubmitted && ctx.ballotdata.controls.resultRelease.errors || !ctx.ballotdata.controls.resultRelease.pristine && ctx.ballotdata.controls.resultRelease.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdataSubmitted && ctx.ballotdata.controls.resultRelease.errors || !ctx.ballotdata.controls.resultRelease.pristine && ctx.ballotdata.controls.resultRelease.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdata.get("resultRelease").value == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.slotQuotaSetup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.slotQuotaSetup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.autoBallot ? "AUTO ASSIGN BALLOTING EXERCISE" : "SLOTS & QUOTAS SETUP", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.opsList)("multiple", true)("closeOnSelect", false)("searchable", true)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](110, _c2, ctx.slotQuotaSetupSubmitted && ctx.slotQuotaSetup.controls.opsGroupId.errors || !ctx.slotQuotaSetup.controls.opsGroupId.pristine && ctx.slotQuotaSetup.controls.opsGroupId.invalid));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.slotQuotaSetupSubmitted && ctx.slotQuotaSetup.controls.opsGroupId.errors || !ctx.slotQuotaSetup.controls.opsGroupId.pristine && ctx.slotQuotaSetup.controls.opsGroupId.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.opsGrp != null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.opsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.autoBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.restrictLimit);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.restrictLimit);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.restrictLimit.get("isRestrict").value == "true");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.admin);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.admin);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("loading", ctx.CustomFieldDropDownLoading)("virtualScroll", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.fieldNeedsToUpdate);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.LoginFieldsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.ballotdata == null ? null : ctx.ballotdata.controls.ballotName == null ? null : ctx.ballotdata.controls.ballotName.value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate6"](" ", ctx.ballotdata.get("ballotStartDate").value == null ? null : ctx.ballotdata.get("ballotStartDate").value.day, "/", ctx.ballotdata.get("ballotStartDate").value == null ? null : ctx.ballotdata.get("ballotStartDate").value.month, "/", ctx.ballotdata == null ? null : ctx.ballotdata.get("ballotStartDate").value == null ? null : ctx.ballotdata.get("ballotStartDate").value.year, " to ", ctx.ballotdata.get("ballotEndDate").value == null ? null : ctx.ballotdata.get("ballotEndDate").value.day, "/", ctx.ballotdata.get("ballotEndDate").value == null ? null : ctx.ballotdata.get("ballotEndDate").value.month, "/", ctx.ballotdata.get("ballotEndDate").value == null ? null : ctx.ballotdata.get("ballotEndDate").value.year, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate4"](" ", ctx.ballotdata.get("openDate").value == null ? null : ctx.ballotdata.get("openDate").value.day, "/", ctx.ballotdata.get("openDate").value == null ? null : ctx.ballotdata.get("openDate").value.month, "/", ctx.ballotdata.get("openDate").value == null ? null : ctx.ballotdata.get("openDate").value.year, " ", ctx.ballotdata.get("openTime").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate4"](" ", ctx.ballotdata.get("closeDate").value == null ? null : ctx.ballotdata.get("closeDate").value.day, "/", ctx.ballotdata.get("closeDate").value == null ? null : ctx.ballotdata.get("closeDate").value.month, "/", ctx.ballotdata.get("closeDate").value == null ? null : ctx.ballotdata.get("closeDate").value.year, " ", ctx.ballotdata.get("closeTime").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.ballotdata.get("resultRelease").value == "1" ? "Auto" : "Manual", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.ballotdata.get("leaveType").value == 1 ? "Week Ballot Slot" : "Day Ballot Slot", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ballotdata.get("fixedBallotingLeaveType").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.autoBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.autoBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", (ctx.restrictLimit.get("maxSegment").value == null ? null : ctx.restrictLimit.get("maxSegment").value.length) != 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.restrictLimit.get("maxConsecutiveBallot").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.resStaffArr == null ? null : ctx.resStaffArr.length);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.ballot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx.publishBallotLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.roundBallot && !ctx.autoBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.roundBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.autoBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.publishBallotLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.publishBallotLoader);
} }, directives: [_angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__["MatHorizontalStepper"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgIf"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__["MatStep"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__["MatStepLabel"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgClass"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__["NgbInputDatepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RadioControlValueAccessor"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__["MatStepperPrevious"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupName"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["ɵr"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_13__["DecimalPipe"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["DatePipe"]], styles: [".mat-stepper-horizontal[_ngcontent-%COMP%] .mat-horizontal-stepper-header-container {\n background-color: #fff;\n border-radius: 0.25rem;\n margin-bottom: 1rem;\n}\n.mat-stepper-horizontal[_ngcontent-%COMP%] .mat-horizontal-content-container {\n padding: 0;\n}\n.mat-form-field[_ngcontent-%COMP%] {\n margin-top: 16px;\n}\n.bg-theme[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #a42138;\n}\n.card-footer[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] {\n font-size: 1.8rem;\n}\n.btn.bg-theme[_ngcontent-%COMP%]:hover {\n background-color: #7d1a2b;\n}\n.btn.bg-theme[_ngcontent-%COMP%]:hover .material-icons[_ngcontent-%COMP%] {\n transition: all 0.2s;\n}\n.mh-3[_ngcontent-%COMP%] {\n min-height: 300px;\n}\n .ng-select .ng-select-container {\n min-height: calc(1.5em + 0.75rem + 2px);\n}\n .ng-select.is-invalid .ng-select-container {\n border-color: #dc3545;\n}\n .ng-select.ng-select-single .ng-select-container {\n height: calc(1.5em + 0.75rem + 2px);\n}\n .ng-select.ng-select-disabled .ng-select-container {\n background-color: #e9ecef;\n cursor: not-allowed;\n}\n .ng-select.ng-select-disabled .ng-select-container input {\n cursor: not-allowed;\n}\n.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n min-width: 10rem;\n}\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-block;\n border-radius: 4px;\n margin-right: 0.3rem;\n}\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n}\n.click[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n.comma[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:last-child)::after {\n content: \", \";\n}\n.border-theme[_ngcontent-%COMP%] {\n border: 1px solid #a42138;\n}\n.table-slot-view[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table-slot-view[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n min-width: 12px;\n}\n.table-slot-view[_ngcontent-%COMP%] {\n width: calc(100% - (14em + 94px));\n overflow-x: scroll;\n margin-left: calc(14em + 94px);\n overflow-y: visible;\n}\n.table-slot-view[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%] {\n position: absolute;\n background-color: #fff;\n width: 7em;\n}\n.table-slot-view[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(1) {\n left: 15px;\n border-left: 1px solid #a42138;\n}\n.table-slot-view[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(2) {\n left: calc(7em + 50px);\n}\n.table-slot-view[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(3) {\n width: 8em;\n left: calc(14em + 86px);\n}\n.table-sticky[_ngcontent-%COMP%] {\n width: calc(100% - (22em + 94px));\n overflow-x: scroll;\n margin-left: calc(22em + 94px);\n overflow-y: visible;\n}\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%] {\n position: absolute;\n background-color: #fff;\n width: 7em;\n}\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(1) {\n left: 15px;\n border-left: 1px solid #a42138;\n}\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(2) {\n left: calc(7em + 50px);\n}\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(3) {\n width: 8em;\n left: calc(14em + 86px);\n}\n.form-control.box[_ngcontent-%COMP%] {\n width: 35px;\n text-align: center;\n}\n.box-label[_ngcontent-%COMP%] {\n border: 1px solid #eaeaea;\n width: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 4px;\n padding: 3px;\n margin-top: 3px;\n}\n.pageLoading[_ngcontent-%COMP%] {\n z-index: 99999;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n color: #a51f38;\n font-weight: 600;\n display: table;\n padding-bottom: 10px;\n}\n.innerDiv[_ngcontent-%COMP%] {\n display: table-cell;\n vertical-align: middle;\n}\ninput[_ngcontent-%COMP%]:disabled, select[_ngcontent-%COMP%]:disabled {\n cursor: not-allowed;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtYmFsbG90aW5nL2NyZWF0ZS1iYWxsb3QvY3JlYXRlLWJhbGxvdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDRTtFQUNFLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtBQUFKO0FBR0U7RUFDRSxVQUFBO0FBREo7QUFLQTtFQUNFLGdCQUFBO0FBRkY7QUFLQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtBQUZGO0FBS0E7RUFDRSxpQkFBQTtBQUZGO0FBS0E7RUFDRSx5QkFBQTtBQUZGO0FBSUU7RUFDRSxvQkFBQTtBQUZKO0FBTUE7RUFDRSxpQkFBQTtBQUhGO0FBTUE7RUFDRSx1Q0FBQTtBQUhGO0FBTUE7RUFDRSxxQkFBQTtBQUhGO0FBTUE7RUFDRSxtQ0FBQTtBQUhGO0FBT0U7RUFDRSx5QkFBQTtFQUNBLG1CQUFBO0FBSko7QUFNSTtFQUNFLG1CQUFBO0FBSk47QUFTQTs7RUFFRSxnQkFBQTtBQU5GO0FBU0E7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0Esb0JBQUE7QUFORjtBQVFFO0VBQ0Usa0JBQUE7QUFOSjtBQVNFO0VBQ0UsZUFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0FBUEo7QUFXQTtFQUNFLGVBQUE7QUFSRjtBQVdBO0VBQ0UsYUFBQTtBQVJGO0FBV0E7RUFDRSx5QkFBQTtBQVJGO0FBVUE7RUFDQSxlQUFBO0FBUEE7QUFTQTtFQUNFLGlDQUFBO0VBQ0Esa0JBQUE7RUFDQSw4QkFBQTtFQUNBLG1CQUFBO0FBTkY7QUFRRTtFQUNFLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSxVQUFBO0FBTko7QUFRSTtFQUNFLFVBQUE7RUFDQSw4QkFBQTtBQU5OO0FBUUk7RUFDRSxzQkFBQTtBQU5OO0FBUUk7RUFDRSxVQUFBO0VBQ0EsdUJBQUE7QUFOTjtBQVdBO0VBQ0UsaUNBQUE7RUFDQSxrQkFBQTtFQUNBLDhCQUFBO0VBQ0EsbUJBQUE7QUFSRjtBQVVFO0VBQ0Usa0JBQUE7RUFDQSxzQkFBQTtFQUNBLFVBQUE7QUFSSjtBQVVJO0VBQ0UsVUFBQTtFQUNBLDhCQUFBO0FBUk47QUFVSTtFQUNFLHNCQUFBO0FBUk47QUFVSTtFQUNFLFVBQUE7RUFDQSx1QkFBQTtBQVJOO0FBYUE7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7QUFWRjtBQWFBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7QUFWRjtBQVlBO0VBQ0UsY0FBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsTUFBQTtFQUNBLE9BQUE7RUFDQSxjQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0Esb0JBQUE7QUFURjtBQVlBO0VBQ0UsbUJBQUE7RUFDQSxzQkFBQTtBQVRGO0FBV0E7O0VBRUUsbUJBQUE7QUFSRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2h1bWFuLXJlc291cmNlL2xlYXZlLWJhbGxvdGluZy9jcmVhdGUtYmFsbG90L2NyZWF0ZS1iYWxsb3QuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubWF0LXN0ZXBwZXItaG9yaXpvbnRhbCB7XG4gICY6Om5nLWRlZXAgLm1hdC1ob3Jpem9udGFsLXN0ZXBwZXItaGVhZGVyLWNvbnRhaW5lciB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICBib3JkZXItcmFkaXVzOiAwLjI1cmVtO1xuICAgIG1hcmdpbi1ib3R0b206IDFyZW07XG4gIH1cblxuICAmOjpuZy1kZWVwIC5tYXQtaG9yaXpvbnRhbC1jb250ZW50LWNvbnRhaW5lciB7XG4gICAgcGFkZGluZzogMDtcbiAgfVxufVxuXG4ubWF0LWZvcm0tZmllbGQge1xuICBtYXJnaW4tdG9wOiAxNnB4O1xufVxuXG4uYmctdGhlbWUge1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbn1cblxuLmNhcmQtZm9vdGVyIC5tYXRlcmlhbC1pY29ucyB7XG4gIGZvbnQtc2l6ZTogMS44cmVtO1xufVxuXG4uYnRuLmJnLXRoZW1lOmhvdmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzdkMWEyYjtcblxuICAubWF0ZXJpYWwtaWNvbnMge1xuICAgIHRyYW5zaXRpb246IGFsbCAwLjJzO1xuICB9XG59XG5cbi5taC0zIHtcbiAgbWluLWhlaWdodDogMzAwcHg7XG59XG5cbjo6bmctZGVlcCAubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIHtcbiAgbWluLWhlaWdodDogY2FsYygxLjVlbSArIDAuNzVyZW0gKyAycHgpO1xufVxuXG46Om5nLWRlZXAgLm5nLXNlbGVjdC5pcy1pbnZhbGlkIC5uZy1zZWxlY3QtY29udGFpbmVyIHtcbiAgYm9yZGVyLWNvbG9yOiAjZGMzNTQ1O1xufVxuXG46Om5nLWRlZXAgLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIHtcbiAgaGVpZ2h0OiBjYWxjKDEuNWVtICsgMC43NXJlbSArIDJweCk7XG59XG5cbjo6bmctZGVlcCAubmctc2VsZWN0Lm5nLXNlbGVjdC1kaXNhYmxlZCB7XG4gIC5uZy1zZWxlY3QtY29udGFpbmVyIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZTllY2VmO1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG5cbiAgICBpbnB1dCB7XG4gICAgICBjdXJzb3I6IG5vdC1hbGxvd2VkO1xuICAgIH1cbiAgfVxufVxuXG4udGFibGUgdGQsXG4udGFibGUgdGgge1xuICBtaW4td2lkdGg6IDEwcmVtO1xufVxuXG4ubGFiZWxzIHtcbiAgcGFkZGluZzogNnB4IDhweDtcbiAgYmFja2dyb3VuZDogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIG1hcmdpbi1yaWdodDogMC4zcmVtO1xuXG4gIC50ZXh0IHtcbiAgICBtYXJnaW4tYm90dG9tOiAycHg7XG4gIH1cblxuICAuYnRuLWNsb3NlIHtcbiAgICBmb250LXNpemU6IDE2cHg7XG4gICAgcGFkZGluZzogMnB4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgfVxufVxuXG4uY2xpY2sge1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5jb21tYSBzcGFuOm5vdCg6bGFzdC1jaGlsZCk6OmFmdGVyIHtcbiAgY29udGVudDogXCIsIFwiO1xufVxuXG4uYm9yZGVyLXRoZW1lIHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2E0MjEzODtcbn1cbi50YWJsZS1zbG90LXZpZXcgdGFibGUgdGQsIC50YWJsZS1zbG90LXZpZXcgdGFibGUgdGh7XG5taW4td2lkdGg6IDEycHg7XG59XG4udGFibGUtc2xvdC12aWV3e1xuICB3aWR0aDogY2FsYygxMDAlIC0gKDE0ZW0gKyA5NHB4KSk7XG4gIG92ZXJmbG93LXg6IHNjcm9sbDtcbiAgbWFyZ2luLWxlZnQ6IGNhbGMoMTRlbSArIDk0cHgpO1xuICBvdmVyZmxvdy15OiB2aXNpYmxlO1xuXG4gIC5maXgge1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgIHdpZHRoOiA3ZW07XG5cbiAgICAmOm50aC1jaGlsZCgxKSB7XG4gICAgICBsZWZ0OiAxNXB4O1xuICAgICAgYm9yZGVyLWxlZnQ6IDFweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgICAmOm50aC1jaGlsZCgyKSB7XG4gICAgICBsZWZ0OiBjYWxjKDdlbSArIDUwcHgpO1xuICAgIH1cbiAgICAmOm50aC1jaGlsZCgzKSB7XG4gICAgICB3aWR0aDogOGVtO1xuICAgICAgbGVmdDogY2FsYygxNGVtICsgODZweCk7XG4gICAgfVxuICB9XG59XG5cbi50YWJsZS1zdGlja3kge1xuICB3aWR0aDogY2FsYygxMDAlIC0gKDIyZW0gKyA5NHB4KSk7XG4gIG92ZXJmbG93LXg6IHNjcm9sbDtcbiAgbWFyZ2luLWxlZnQ6IGNhbGMoMjJlbSArIDk0cHgpO1xuICBvdmVyZmxvdy15OiB2aXNpYmxlO1xuXG4gIC5maXgge1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgIHdpZHRoOiA3ZW07XG5cbiAgICAmOm50aC1jaGlsZCgxKSB7XG4gICAgICBsZWZ0OiAxNXB4O1xuICAgICAgYm9yZGVyLWxlZnQ6IDFweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgICAmOm50aC1jaGlsZCgyKSB7XG4gICAgICBsZWZ0OiBjYWxjKDdlbSArIDUwcHgpO1xuICAgIH1cbiAgICAmOm50aC1jaGlsZCgzKSB7XG4gICAgICB3aWR0aDogOGVtO1xuICAgICAgbGVmdDogY2FsYygxNGVtICsgODZweCk7XG4gICAgfVxuICB9XG59XG5cbi5mb3JtLWNvbnRyb2wuYm94IHtcbiAgd2lkdGg6IDM1cHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cblxuLmJveC1sYWJlbCB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNlYWVhZWE7XG4gIHdpZHRoOiAzNXB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBwYWRkaW5nOiAzcHg7XG4gIG1hcmdpbi10b3A6IDNweDtcbn1cbi5wYWdlTG9hZGluZyB7XG4gIHotaW5kZXg6IDk5OTk5O1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGNvbG9yOiAjYTUxZjM4O1xuICBmb250LXdlaWdodDogNjAwO1xuICBkaXNwbGF5OiB0YWJsZTtcbiAgcGFkZGluZy1ib3R0b206IDEwcHg7XG59XG5cbi5pbm5lckRpdiB7XG4gIGRpc3BsYXk6IHRhYmxlLWNlbGw7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG59XG5pbnB1dDpkaXNhYmxlZCxcbnNlbGVjdDpkaXNhYmxlZCB7XG4gIGN1cnNvcjogbm90LWFsbG93ZWQ7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](CreateBallotComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
args: [{
selector: 'create-ballot',
templateUrl: './create-ballot.component.html',
styleUrls: ['./create-ballot.component.scss'],
providers: [
{
provide: _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_1__["STEPPER_GLOBAL_OPTIONS"],
useValue: { showError: true },
},
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"] }, { type: src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_7__["LeavePlannerService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_8__["CompanySetupService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_4__["NgbDateParserFormatter"] }, { type: src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_11__["OpsGroupService"] }]; }, { ballot: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], roundBallot: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], autoBallot: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], back: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
}], stepper: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['stepper']
}], table: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['table']
}] }); })();
/***/ }),
/***/ "0gGn":
/*!************************************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-scheme/leave-grp-overview/leave-grp-overview.component.ts ***!
\************************************************************************************************************/
/*! exports provided: LeaveGrpOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LeaveGrpOverviewComponent", function() { return LeaveGrpOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../service/user-service/users.service */ "lGV6");
/* harmony import */ var _service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
function LeaveGrpOverviewComponent_ng_template_5_tr_13_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_5_tr_13_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const leaveGroup_r6 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); ctx_r7.onlyView = true; return ctx_r7.editLeaveGroup(leaveGroup_r6, true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_5_tr_13_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const leaveGroup_r6 = ctx.$implicit; const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); ctx_r9.onlyView = false; return ctx_r9.editLeaveGroup(leaveGroup_r6, false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_5_tr_13_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const leaveGroup_r6 = ctx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); ctx_r10.onlyView = false; return ctx_r10.editLeaveGroup(leaveGroup_r6, true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](leaveGroup_r6.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", leaveGroup_r6.createdBy.name, ", ", leaveGroup_r6.createdAt, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", leaveGroup_r6.updatedBy.name, ", ", leaveGroup_r6.updatedAt, " ");
} }
function LeaveGrpOverviewComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "LEAVE GROUP NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "CREATED BY AND DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "LAST MODIFIED BY AND DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "ACTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, LeaveGrpOverviewComponent_ng_template_5_tr_13_Template, 15, 5, "tr", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.leaveGroupList);
} }
function LeaveGrpOverviewComponent_ng_template_9_th_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leave_r22 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", leave_r22["name"], " ");
} }
function LeaveGrpOverviewComponent_ng_template_9_td_21_Template(rf, ctx) { if (rf & 1) {
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_21_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r25); const leaveGroup_r23 = ctx.$implicit; return leaveGroup_r23.displayQuota = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r23 = ctx.$implicit;
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r23.displayQuota)("disabled", ctx_r12.onlyView);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_25_ng_container_1_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_25_ng_container_1_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const leaveGroup_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return leaveGroup_r26.quota = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const leaveGroup_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r26.quota)("disabled", ctx_r27.onlyView);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_25_ng_container_1_Template, 2, 2, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r26 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leaveGroup_r26.displayQuota);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_29_ng_container_1_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_29_ng_container_1_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); const leaveGroup_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return leaveGroup_r32.displayInMyLeave = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const leaveGroup_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r32.displayInMyLeave)("disabled", ctx_r33.onlyView);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_29_ng_container_1_Template, 2, 2, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r32 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leaveGroup_r32.displayQuota);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_li_1_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const pt_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate3"](" ", pt_r44.fromMonth, " to ", pt_r44.toMonth, " months completed : ", pt_r44.quota, " days ");
} }
function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_li_1_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const pt_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", pt_r44.fromMonth, " months above : ", pt_r44.quota, " days ");
} }
function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_li_1_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_li_1_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const leaveGroup_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r49.proRateModal(leaveGroup_r38); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_li_1_span_1_Template, 2, 3, "span", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_li_1_span_2_Template, 2, 2, "span", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const pt_r44 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", pt_r44.toMonth !== 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", pt_r44.toMonth === 0);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_li_1_Template, 3, 2, "li", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", leaveGroup_r38.proRate);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_ng_template_2_Template_input_ngModelChange_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r55); const leaveGroup_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return leaveGroup_r38.proRateDisplay = $event; })("click", function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_ng_template_2_Template_input_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r55); const leaveGroup_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r56.proRateModal(leaveGroup_r38); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
} if (rf & 2) {
const leaveGroup_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r38.proRateDisplay)("disabled", ctx_r42.onlyView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", leaveGroup_r38.proRate, " ");
} }
function LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_div_1_Template, 2, 1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_ng_template_2_Template, 2, 3, "ng-template", null, 53, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3);
const leaveGroup_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leaveGroup_r38 && leaveGroup_r38.proRate.length !== 0)("ngIfElse", _r41);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_33_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_33_ng_container_1_Template, 4, 2, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r38 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leaveGroup_r38.displayQuota);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_div_1_li_1_Template(rf, ctx) { if (rf & 1) {
const _r69 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_div_1_li_1_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r69); const leaveGroup_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r67.seniorityModal(leaveGroup_r60); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const pt_r66 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", pt_r66.year, " years completed : ", pt_r66.quota, " days ");
} }
function LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_div_1_li_1_Template, 2, 2, "li", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", leaveGroup_r60.seniority);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r73 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_ng_template_2_Template_input_ngModelChange_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r73); const leaveGroup_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return leaveGroup_r60.seniorityDisplay = $event; })("click", function LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_ng_template_2_Template_input_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r73); const leaveGroup_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r74.seniorityModal(leaveGroup_r60); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r60.seniorityDisplay)("disabled", ctx_r64.onlyView);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_div_1_Template, 2, 1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_ng_template_2_Template, 1, 2, "ng-template", null, 53, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const _r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3);
const leaveGroup_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leaveGroup_r60 && leaveGroup_r60.seniority.length !== 0)("ngIfElse", _r63);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_37_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_37_ng_container_1_Template, 4, 2, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r60 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leaveGroup_r60.displayQuota);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_41_ng_container_1_Template(rf, ctx) { if (rf & 1) {
const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_41_ng_container_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r83); const leaveGroup_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return leaveGroup_r78.isLeaveRequest = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Leave Request ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_41_ng_container_1_Template_input_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r83); const leaveGroup_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return leaveGroup_r78.isAdminAllocate = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Admin Allocate ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const i_r79 = ctx_r86.index;
const leaveGroup_r78 = ctx_r86.$implicit;
const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", "leavecheck" + i_r79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r78.isLeaveRequest)("disabled", ctx_r80.onlyView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", "leavecheck" + i_r79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", "allocatecheck" + i_r79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r78.isAdminAllocate)("disabled", ctx_r80.onlyView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", "allocatecheck" + i_r79);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_41_ng_container_1_Template, 9, 8, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r78 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leaveGroup_r78.displayQuota);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_45_ng_container_1_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_45_ng_container_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r92); const leaveGroup_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return leaveGroup_r87.isApplyLeavePlan = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Apply Leave Plan ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_td_45_ng_container_1_Template_input_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r92); const leaveGroup_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return leaveGroup_r87.isApplyLeave = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Apply Leave ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const i_r88 = ctx_r95.index;
const leaveGroup_r87 = ctx_r95.$implicit;
const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", "plancheck" + i_r88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r87.isApplyLeavePlan)("disabled", ctx_r89.onlyView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", "plancheck" + i_r88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", "applycheck" + i_r88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leaveGroup_r87.isApplyLeave)("disabled", ctx_r89.onlyView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", "applycheck" + i_r88);
} }
function LeaveGrpOverviewComponent_ng_template_9_td_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_td_45_ng_container_1_Template, 9, 8, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leaveGroup_r87 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leaveGroup_r87.displayQuota);
} }
function LeaveGrpOverviewComponent_ng_template_9_ng_template_51_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
} if (rf & 2) {
const item_r96 = ctx.item;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r96.name, " ");
} }
function LeaveGrpOverviewComponent_ng_template_9_div_53_Template(rf, ctx) { if (rf & 1) {
const _r100 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_9_div_53_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r100); const item_r98 = ctx.$implicit; const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r99.removeAdminId(item_r98); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r98 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r98.name, "");
} }
function LeaveGrpOverviewComponent_ng_template_9_div_55_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
const _r106 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_9_div_55_div_1_ng_container_3_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r106); const ctx_r105 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r105.deleteLeaveGroup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} }
function LeaveGrpOverviewComponent_ng_template_9_div_55_div_1_Template(rf, ctx) { if (rf & 1) {
const _r108 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_9_div_55_div_1_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r108); const ctx_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r107.updateLeaveGroup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeaveGrpOverviewComponent_ng_template_9_div_55_div_1_ng_container_3_Template, 3, 0, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r101.isDelete);
} }
function LeaveGrpOverviewComponent_ng_template_9_div_55_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r110 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_ng_template_9_div_55_ng_template_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r110); const ctx_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r109.createLeaveGroup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Create ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveGrpOverviewComponent_ng_template_9_div_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveGrpOverviewComponent_ng_template_9_div_55_div_1_Template, 4, 1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LeaveGrpOverviewComponent_ng_template_9_div_55_ng_template_2_Template, 2, 0, "ng-template", null, 63, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r102 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3);
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r21.isEdit)("ngIfElse", _r102);
} }
const _c0 = function () { return { standalone: true }; };
function LeaveGrpOverviewComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
const _r112 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "SETUP LEAVE GROUPINGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Enter Leave Grouping Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_Template_input_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r112); const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r111.groupName = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "table", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, LeaveGrpOverviewComponent_ng_template_9_th_16_Template, 2, 1, "th", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, LeaveGrpOverviewComponent_ng_template_9_td_21_Template, 2, 2, "td", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, LeaveGrpOverviewComponent_ng_template_9_td_25_Template, 2, 1, "td", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, LeaveGrpOverviewComponent_ng_template_9_td_29_Template, 2, 1, "td", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, LeaveGrpOverviewComponent_ng_template_9_td_33_Template, 2, 1, "td", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](37, LeaveGrpOverviewComponent_ng_template_9_td_37_Template, 2, 1, "td", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](41, LeaveGrpOverviewComponent_ng_template_9_td_41_Template, 2, 1, "td", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, LeaveGrpOverviewComponent_ng_template_9_td_45_Template, 2, 1, "td", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "label", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Add admin");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "ng-select", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_ng_template_9_Template_ng_select_ngModelChange_50_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r112); const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r113.selectedAdmin = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](51, LeaveGrpOverviewComponent_ng_template_9_ng_template_51_Template, 1, 1, "ng-template", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](53, LeaveGrpOverviewComponent_ng_template_9_div_53_Template, 5, 1, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](55, LeaveGrpOverviewComponent_ng_template_9_div_55_Template, 4, 2, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r2.groupName)("disabled", ctx_r2.onlyView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.leaveTypeList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.staticLeaveGroupName[0]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.leaveTypeList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.staticLeaveGroupName[1], " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.leaveTypeList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.staticLeaveGroupName[2]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.leaveTypeList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.staticLeaveGroupName[3]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.leaveTypeList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.staticLeaveGroupName[4]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.leaveTypeList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.staticLeaveGroupName[5]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.leaveTypeList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.staticLeaveGroupName[6]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.leaveTypeList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r2.adminList)("multiple", true)("ngModel", ctx_r2.selectedAdmin)("searchable", true)("selectableGroup", true)("selectableGroupAsModel", true)("closeOnSelect", false)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](29, _c0))("selectableGroupAsModel", true)("disabled", ctx_r2.onlyView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.selectedAdmin);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r2.onlyView);
} }
function LeaveGrpOverviewComponent_tr_40_option_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const id_r118 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", id_r118.val, " ");
} }
function LeaveGrpOverviewComponent_tr_40_option_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const id_r119 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", id_r119.val, " ");
} }
function LeaveGrpOverviewComponent_tr_40_Template(rf, ctx) { if (rf & 1) {
const _r121 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "i", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_tr_40_Template_i_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r121); const index_r115 = ctx.index; const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r120.removeproRateSlab(index_r115); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "select", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_tr_40_Template_select_ngModelChange_8_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r121); const int_r114 = ctx.$implicit; return int_r114.fromMonth = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, LeaveGrpOverviewComponent_tr_40_option_9_Template, 2, 1, "option", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "select", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_tr_40_Template_select_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r121); const int_r114 = ctx.$implicit; return int_r114.toMonth = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, LeaveGrpOverviewComponent_tr_40_option_12_Template, 2, 1, "option", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "td", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_tr_40_Template_input_ngModelChange_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r121); const int_r114 = ctx.$implicit; return int_r114.quota = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const int_r114 = ctx.$implicit;
const index_r115 = ctx.index;
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", index_r115 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", int_r114.fromMonth);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.proList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", int_r114.toMonth);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.proList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", int_r114.quota);
} }
function LeaveGrpOverviewComponent_tr_74_option_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const id_r128 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", id_r128.val, " ");
} }
function LeaveGrpOverviewComponent_tr_74_Template(rf, ctx) { if (rf & 1) {
const _r130 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "i", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_tr_74_Template_i_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r130); const index_r126 = ctx.index; const ctx_r129 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r129.removesenioritySlab(index_r126); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "select", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_tr_74_Template_select_ngModelChange_8_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r130); const int_r125 = ctx.$implicit; return int_r125.year = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, LeaveGrpOverviewComponent_tr_74_option_9_Template, 2, 1, "option", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveGrpOverviewComponent_tr_74_Template_input_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r130); const int_r125 = ctx.$implicit; return int_r125.quota = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const int_r125 = ctx.$implicit;
const index_r126 = ctx.index;
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", index_r126 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", int_r125.year);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r4.proList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", int_r125.quota);
} }
class LeaveGrpOverviewComponent {
constructor(_usersService, _setupService, toastService, userService) {
this._usersService = _usersService;
this._setupService = _setupService;
this.toastService = toastService;
this.userService = userService;
this.active = 1;
this.proList = [{ val: 0 }, { val: 1 }, { val: 2 }, { val: 3 }, { val: 4 }, { val: 5 }, { val: 6 }, { val: 7 }, { val: 8 }, { val: 9 }, { val: 10 }, { val: 11 }, { val: 12 }];
this.proRateSlab = [{
fromMonth: 0,
toMonth: 0,
quota: 0
}, {
fromMonth: 0,
toMonth: 0,
quota: 0
}];
this.senioritySlab = [{
year: 0,
quota: 0
},
{
year: 0,
quota: 0
}];
this.staticLeaveGroupName = [
'Tick to include Leave Type in this Leave Group',
'Quota',
'Display quota in mobile - "My Leave"',
'Tick If there is pro rate table for staff not completed 1 year',
'Tick If there is seniority table for staff with long service',
'Planning tools to use',
'Apply types to use'
];
this.loader = false;
this.isProrateModelOpen = false;
this.isSeniorityModelOpen = false;
this.onlyView = false;
this.isEdit = false;
this.isDelete = false;
this.quota = 0;
this.groupName = '';
this.updateGroupName = '';
this.adminList = [];
this.loginAdminId = [];
this.selectedAdmin = [];
this.leaveTypeList = [];
this.leaveGroupList = [];
this.leaveSchemeList = [];
this.viewLeaveTypeList = [];
this.viewLeaveGroupType = [];
}
ngOnInit() {
this.onlyView = false;
this.getInitialData();
this.getAdminList();
this.userService.getUserProfile().subscribe((res) => {
this.userData = res["data"];
this.loginAdminId.push(this.userData);
this.selectedAdmin = this.loginAdminId;
});
}
getInitialData() {
this.leaveTypeList = [];
this.leaveGroupList = [];
this.selectedAdmin = [];
this.groupName = '';
this.getLeaveGroupData();
this.getLeaveTypeData();
}
getLeaveTypeData() {
this.loader = true;
const subscribe = this._usersService.getLeaveType()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => subscribe.unsubscribe()))
.subscribe((response) => {
if (response.success) {
this.leaveSchemeList = response.data;
response.data.forEach(leave => {
this.leaveTypeList.push({
name: leave.name,
quota: 0,
id: leave._id,
displayQuota: false,
displayInMyLeave: false,
proRate: [],
proRateDisplay: false,
seniority: [],
seniorityDisplay: false,
isLeaveRequest: false,
isAdminAllocate: false,
isApplyLeavePlan: false,
isApplyLeave: false
});
});
}
else {
this.toastService.error(response.message);
}
this.loader = false;
}, (error) => {
this.loader = false;
this.toastService.error('No list found');
});
}
getLeaveGroupData() {
this.loader = true;
const subscribe = this._usersService.getLeaveGroup()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => subscribe.unsubscribe()))
.subscribe((response) => {
if (response.success) {
this.leaveGroupList = response.data;
this.leaveGroupList.forEach(leave => {
leave.createdAt = moment__WEBPACK_IMPORTED_MODULE_2__(leave.createdAt).format("DD MMM YYYY");
leave.updatedAt = moment__WEBPACK_IMPORTED_MODULE_2__(leave.updatedAt).format("DD MMM YYYY");
});
}
else {
this.toastService.error(response.message);
}
this.loader = false;
}, (error) => {
this.loader = false;
this.toastService.error('No list found');
});
}
createLeaveGroup() {
if (!this.selectedAdmin || this.selectedAdmin.length === 0) {
this.toastService.error('Please select the admin!');
return;
}
if (!this.groupName) {
this.toastService.error('Please enter the group name!');
return;
}
const isLeaveTypeSelected = this.leaveTypeList.find(leave => leave.displayQuota === true);
if (!isLeaveTypeSelected) {
this.toastService.error('Please select the leave type!');
return;
}
this.loader = true;
const selectedLeaveType = [];
this.leaveTypeList.forEach(selectedLeave => {
if (selectedLeave.displayQuota) {
selectedLeaveType.push({
leaveTypeId: selectedLeave.id,
displayQuota: selectedLeave.displayQuota,
quota: selectedLeave.quota,
specialType: false,
displayInMyLeave: selectedLeave.displayInMyLeave,
proRate: selectedLeave.proRate,
seniority: selectedLeave.seniority,
leavePlanning: {
isLeaveRequest: selectedLeave.isLeaveRequest,
isAdminAllocate: selectedLeave.isAdminAllocate
},
leaveApplication: {
isApplyLeavePlan: selectedLeave.isApplyLeavePlan,
isApplyLeave: selectedLeave.isApplyLeave
}
});
}
});
const requestPayload = {
name: this.groupName,
leaveType: selectedLeaveType,
adminId: this.selectedAdmin.map(admin => admin._id)
};
this._usersService.createLeaveGroup(requestPayload).subscribe(response => {
if (response.success) {
this.toastService.success(response.message);
this.getInitialData();
this.active = 1;
this.selectedAdmin = [];
this.groupName = '';
}
else {
this.toastService.error(response.message);
}
this.loader = false;
}, (error) => {
this.loader = false;
this.toastService.error(error.message);
});
}
getAdminList() {
this._setupService.getAdminWithfilter().subscribe((response) => {
this.adminList = response['data'];
});
}
addNewProSlab() {
this.proRateSlab.push({
fromMonth: 0,
toMonth: 0,
quota: 0
});
}
addNewSeniority() {
this.senioritySlab.push({
year: 0,
quota: 0
});
}
removeproRateSlab(index) {
this.proRateSlab.splice(index, 1);
}
removesenioritySlab(index) {
this.senioritySlab.splice(index, 1);
}
proRateModal(selectedColumn) {
if (!selectedColumn.quota) {
this.toastService.error('Please enter the quoat!');
return;
}
this.quota = 0;
this.selectedColumn = {};
this.quota = selectedColumn.quota;
this.selectedColumn = selectedColumn;
this.isProrateModelOpen = !this.isProrateModelOpen;
}
seniorityModal(selectedColumn) {
if (!selectedColumn.quota) {
this.toastService.error('Please enter the quoat!');
return;
}
this.quota = 0;
this.selectedColumn = {};
this.selectedColumn = selectedColumn;
this.quota = selectedColumn.quota;
this.isSeniorityModelOpen = !this.isSeniorityModelOpen;
}
submitProRate(proRate) {
const isQuotaExceed = proRate.find(element => Number(element.quota) > this.quota);
if (isQuotaExceed) {
this.toastService.error('Please enter valid quoat!');
return;
}
this.isProrateModelOpen = false;
const isExist = this.leaveTypeList.find(leave => leave.id === this.selectedColumn['id']);
isExist.proRate = proRate;
}
submitseniority(seniority) {
this.isSeniorityModelOpen = false;
const isExist = this.leaveTypeList.find(leave => leave.id === this.selectedColumn['id']);
isExist.seniority = seniority;
}
editLeaveGroup(leaveGroup, isDelete) {
this.leaveTypeList = [];
this.selectedAdmin = [];
this.isDelete = isDelete;
this.isEdit = true;
this.active = 2;
this.groupName = leaveGroup.name;
this.selectedAdmin = leaveGroup.adminId;
this.updateGroupName = leaveGroup._id;
this.leaveSchemeList.forEach(leave => {
this.leaveTypeList.push({
name: leave.name,
quota: 0,
id: leave._id,
displayQuota: false,
displayInMyLeave: false,
proRate: [],
proRateDisplay: false,
seniority: [],
seniorityDisplay: false,
isLeaveRequest: false,
isAdminAllocate: false,
isApplyLeavePlan: false,
isApplyLeave: false
});
});
this.leaveTypeList.map(leaveScheme => {
leaveGroup.leaveType.forEach(type => {
if (leaveScheme.name === type.leaveTypeId.name) {
leaveScheme.name = type.leaveTypeId.name;
leaveScheme.id = type.leaveTypeId._id;
leaveScheme.quota = type.quota;
leaveScheme.displayQuota = type.displayQuota;
leaveScheme.displayInMyLeave = type.displayInMyLeave;
leaveScheme.proRate = type.proRate;
leaveScheme.proRateDisplay = false;
leaveScheme.seniority = type.seniority;
leaveScheme.seniorityDisplay = false;
leaveScheme.isLeaveRequest = type.leavePlanning.isLeaveRequest;
leaveScheme.isAdminAllocate = type.leavePlanning.isAdminAllocate;
leaveScheme.isApplyLeavePlan = type.leaveApplication.isApplyLeavePlan;
leaveScheme.isApplyLeave = type.leaveApplication.isApplyLeave;
}
});
});
}
updateLeaveGroup() {
if (!this.selectedAdmin || this.selectedAdmin.length === 0) {
this.toastService.error('Please select the admin!');
return;
}
if (!this.groupName) {
this.toastService.error('Please enter the group name!');
return;
}
const selectedLeaveType = [];
this.leaveTypeList.forEach(selectedLeave => {
if (selectedLeave.displayQuota) {
selectedLeaveType.push({
leaveTypeId: selectedLeave.id,
displayQuota: selectedLeave.displayQuota,
quota: selectedLeave.quota,
specialType: false,
displayInMyLeave: selectedLeave.displayInMyLeave,
proRate: selectedLeave.proRate,
seniority: selectedLeave.seniority,
leavePlanning: {
isLeaveRequest: selectedLeave.isLeaveRequest,
isAdminAllocate: selectedLeave.isAdminAllocate
},
leaveApplication: {
isApplyLeavePlan: selectedLeave.isApplyLeavePlan,
isApplyLeave: selectedLeave.isApplyLeave
}
});
}
});
this.loader = true;
const requestPayload = {
name: this.groupName,
leaveType: selectedLeaveType,
adminId: this.selectedAdmin.map(admin => admin._id),
leaveGroupId: this.updateGroupName,
};
this._usersService.updateLeaveGroup(requestPayload).subscribe(response => {
if (response.success) {
this.toastService.success(response.message);
this.getInitialData();
this.active = 1;
}
else {
this.toastService.error(response.message);
}
this.loader = false;
}, (error) => {
this.loader = false;
this.toastService.error(error.message);
});
}
deleteLeaveGroup() {
this.isEdit = true;
this.loader = true;
const requestPayload = {
leaveGroupId: this.updateGroupName
};
this._usersService.deleteLeaveGroup(requestPayload).subscribe(response => {
if (response.success) {
this.loader = false;
this.toastService.success(response.message);
this.getInitialData();
this.active = 1;
}
else {
this.loader = false;
this.toastService.error(response.message);
}
}, (error) => {
this.loader = false;
this.toastService.error(error.message);
});
}
}
LeaveGrpOverviewComponent.ɵfac = function LeaveGrpOverviewComponent_Factory(t) { return new (t || LeaveGrpOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"])); };
LeaveGrpOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LeaveGrpOverviewComponent, selectors: [["leave-grp-overview"]], decls: 82, vars: 11, consts: [["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["nav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["id", "mmmModal", 1, "modal", 3, "ngClass"], [1, "modal-backdrop"], [1, "modal-dialog", 2, "width", "50%", "height", "200px"], [1, "modal-content", "modalContentBoxGrey"], [1, "modal-header", "red-container"], [2, "text-align", "right", "color", "yellow"], [2, "text-align", "center"], [2, "text-align", "left", "color", "yellow"], [1, "modal-body"], [1, "table", "col-md-12", "table-bordered"], ["scope", "col", 2, "text-align", "center", "width", "10%", "font-size", "12px"], ["scope", "col", 2, "text-align", "center", "font-size", "12px"], [1, "color-maroon"], [4, "ngFor", "ngForOf"], [1, "modal-footer"], [1, "btn", "footer-button", "btn-success", 2, "float", "left", 3, "click"], [1, "btn", "footer-button", "btn-success", 3, "click"], [1, "btn", "footer-button", "btn-danger", 3, "click"], [1, "card", "table-responsive"], [1, "table"], ["scope", "col"], [1, "d-flex"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "btn", "btn-success", "btn-sm", "ml-2", 3, "click"], [1, "btn", "btn-danger", "btn-sm", "ml-2", 3, "click"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "row"], [1, "col-md-4"], [1, "form-group"], [1, "font-weight-500"], ["type", "text", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], [1, "col-md-12", "mb-3"], [1, "table-responsive", "rounded", "border"], [1, "table", "table-bordered", "customTable1", "m-0"], ["scope", "col", 4, "ngFor", "ngForOf"], [1, "form-group", "m-0"], ["bindLabel", "name", "groupBy", "selectedAllGroup", "placeholder", "Select Admin", 3, "items", "multiple", "ngModel", "searchable", "selectableGroup", "selectableGroupAsModel", "closeOnSelect", "ngModelOptions", "disabled", "ngModelChange"], ["ng-option-tmp", ""], [1, "col-md-4", "align-self-end"], ["class", "labels mr-1 mb-1", 4, "ngFor", "ngForOf"], [1, "card-footer"], [4, "ngIf"], ["type", "checkbox", 3, "ngModel", "disabled", "ngModelChange"], ["type", "text", 1, "form-control", "w-50", 3, "ngModel", "disabled", "ngModelChange"], [4, "ngIf", "ngIfElse"], ["empty", ""], ["style", "\n font-size: 10px;\n text-align: inherit;\n text-transform: capitalize;\n ", 3, "click", 4, "ngFor", "ngForOf"], [2, "font-size", "10px", "text-align", "inherit", "text-transform", "capitalize", 3, "click"], ["type", "checkbox", 3, "ngModel", "disabled", "ngModelChange", "click"], [1, "form-check"], ["type", "checkbox", 1, "form-check-input", 3, "ngModel", "disabled", "id", "ngModelChange"], [1, "form-check-label", 3, "for"], [1, "labels", "mr-1", "mb-1"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], ["create", ""], ["type", "button", 1, "btn", "btn-info", 3, "click"], ["type", "button", 1, "btn", "btn-danger", "ml-2", 3, "click"], [2, "line-height", "2", "text-align", "center"], [1, "fa", "fa-trash", 2, "line-height", "2", 3, "click"], ["id", "fromThis", 1, "custom-select", "form-control", 3, "ngModel", "ngModelChange"], ["id", "toThis", 1, "custom-select", "form-control", 3, "ngModel", "ngModelChange"], ["type", "text", 2, "width", "50px", "text-align", "center", "margin-top", "10px", 3, "ngModel", "ngModelChange"]], template: function LeaveGrpOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function LeaveGrpOverviewComponent_Template_ul_activeIdChange_0_listener($event) { return ctx.active = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Overview");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LeaveGrpOverviewComponent_ng_template_5_Template, 14, 1, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, LeaveGrpOverviewComponent_ng_template_9_Template, 56, 30, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Annual Leave");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "PRO RATE TABLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Slab No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "From (in months)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "To (in months)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Pro Rate Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](40, LeaveGrpOverviewComponent_tr_40_Template, 15, 6, "tr", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_Template_button_click_42_listener() { return ctx.addNewProSlab(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, " Add Another Slab ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_Template_button_click_44_listener() { return ctx.submitProRate(ctx.proRateSlab); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_Template_button_click_46_listener() { return ctx.isProrateModelOpen = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Annual Leave");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56, "SENIORITY TABLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](63, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66, "Slab No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, "Years (Completed)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, "Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](74, LeaveGrpOverviewComponent_tr_74_Template, 12, 4, "tr", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_Template_button_click_76_listener() { return ctx.addNewSeniority(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, " Add Another Slab ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_Template_button_click_78_listener() { return ctx.submitseniority(ctx.senioritySlab); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](79, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveGrpOverviewComponent_Template_button_click_80_listener() { return ctx.isSeniorityModelOpen = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](81, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.active);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.onlyView ? "View" : "Create");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isProrateModelOpen ? "show-modal" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Quota - ", ctx.quota, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.proRateSlab);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isSeniorityModelOpen ? "show-modal" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Quota - ", ctx.quota, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.senioritySlab);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["ɵf"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"]], styles: [".show-modal[_ngcontent-%COMP%] {\n display: block;\n}\n\n.align-center[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n.modal-backdrop[_ngcontent-%COMP%] {\n z-index: 1050;\n opacity: 1;\n background-color: #0000004f;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n margin-left: 6px;\n cursor: pointer;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n\n.customTable1[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n min-width: 160px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtc2NoZW1lL2xlYXZlLWdycC1vdmVydmlldy9sZWF2ZS1ncnAtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxjQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtBQUNGOztBQUVBO0VBQ0UsYUFBQTtFQUNBLFVBQUE7RUFDQSwyQkFBQTtBQUNGOztBQUVBO0VBQ0UsZ0JBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0VBQ0Esb0JBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUFBLGtCQUFBO0FBQ0Y7O0FBQ0U7RUFDRSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtBQUNKOztBQUdBO0VBQ0Usc0JBQUE7QUFBRjs7QUFDRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUNKOztBQUNJO0VBQ0UsY0FBQTtBQUNOOztBQUVJO0VBQ0UsY0FBQTtFQUNBLHNCQUFBO0VBQ0EsNkNBQUE7RUFDQSxnQ0FBQTtBQUFOOztBQU1FO0VBQ0UsZ0JBQUE7QUFISiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2h1bWFuLXJlc291cmNlL2xlYXZlLXNjaGVtZS9sZWF2ZS1ncnAtb3ZlcnZpZXcvbGVhdmUtZ3JwLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnNob3ctbW9kYWwge1xuICBkaXNwbGF5OiBibG9jaztcbn1cblxuLmFsaWduLWNlbnRlciB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cblxuLm1vZGFsLWJhY2tkcm9wIHtcbiAgei1pbmRleDogMTA1MDtcbiAgb3BhY2l0eTogMTtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzAwMDAwMDRmO1xufVxuXG4ubGFiZWxzIHtcbiAgcGFkZGluZzogNnB4IDhweDtcbiAgYmFja2dyb3VuZDogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICB3aWR0aDogZml0LWNvbnRlbnQ7XG5cbiAgLmJ0bi1jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIHBhZGRpbmc6IDJweDtcbiAgICBtYXJnaW4tbGVmdDogNnB4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgfVxufVxuXG4ubmF2LXRhYnMge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAubmF2LWxpbmsge1xuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIHBhZGRpbmc6IDEycHggMjBweDtcbiAgICB0cmFuc2l0aW9uOiBjb2xvciAwLjJzO1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIH1cblxuICAgICYuYWN0aXZlIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgI2E0MjEzODtcbiAgICAgIGJvcmRlci1ib3R0b206IDNweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgfVxufVxuXG4uY3VzdG9tVGFibGUxIHtcbiAgdGR7XG4gICAgbWluLXdpZHRoOiAxNjBweDtcbiAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LeaveGrpOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'leave-grp-overview',
templateUrl: './leave-grp-overview.component.html',
styleUrls: ['./leave-grp-overview.component.scss']
}]
}], function () { return [{ type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }, { type: _service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }, { type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }]; }, null); })();
/***/ }),
/***/ "0iAT":
/*!**************************************************************!*\
!*** ./src/app/shared/dynamic-questions/fields/dropdowns.ts ***!
\**************************************************************/
/*! exports provided: DropDownsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropDownsComponent", function() { return DropDownsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
function DropDownsComponent_option_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const opt_r1 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", opt_r1._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](opt_r1.value);
} }
class DropDownsComponent {
constructor() {
this.field = {};
}
}
DropDownsComponent.ɵfac = function DropDownsComponent_Factory(t) { return new (t || DropDownsComponent)(); };
DropDownsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DropDownsComponent, selectors: [["dropdowns"]], inputs: { field: "field", form: "form" }, decls: 2, vars: 4, consts: [[1, "form-control", 3, "id", "formControl"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function DropDownsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "select", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DropDownsComponent_option_1_Template, 2, 2, "option", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx.field.name)("formControl", ctx.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.field.disabled ? ctx.field.disabled : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.field.options);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DropDownsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'dropdowns',
template: `
`
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "0inZ":
/*!**************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-shift/log-open/log-open.component.ts ***!
\**************************************************************************************************/
/*! exports provided: LogOpenComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogOpenComponent", function() { return LogOpenComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function LogOpenComponent_div_0_ngx_skeleton_loader_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 14);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function LogOpenComponent_div_0_table_19_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogOpenComponent_div_0_table_19_tr_14_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const i_r6 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r7.changeOverview(false, i_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 4, i_r6.createdAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 7, i_r6.createdAt, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r6.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r6.userId.name);
} }
function LogOpenComponent_div_0_table_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "USER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, LogOpenComponent_div_0_table_19_tr_14_Template, 14, 10, "tr", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.shiftLogData);
} }
function LogOpenComponent_div_0_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Data Available ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LogOpenComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Week");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogOpenComponent_div_0_Template_div_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.changeWeek("Prev"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "i", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " chevron_left ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogOpenComponent_div_0_Template_div_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.changeWeek("Nxt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "i", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " chevron_right ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Log Open Shifts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, LogOpenComponent_div_0_ngx_skeleton_loader_18_Template, 1, 2, "ngx-skeleton-loader", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, LogOpenComponent_div_0_table_19_Template, 15, 1, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, LogOpenComponent_div_0_div_20_Template, 2, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.currWeek, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx_r0.bu.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.openLogLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.openLogLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.openLogLoader && (ctx_r0.shiftLogData == null ? null : ctx_r0.shiftLogData.length) === 0);
} }
function LogOpenComponent_div_1_div_44_ng_container_4_p_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r20 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 2, s_r20.skillSetId.name), " > ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 4, s_r20.name), " ");
} }
function LogOpenComponent_div_1_div_44_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LogOpenComponent_div_1_div_44_ng_container_4_p_1_Template, 4, 6, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const j_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", j_r15.subSkillSets);
} }
function LogOpenComponent_div_1_div_44_div_5_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, j_r15.splitShiftStartTime, "HH:mm"), "-", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, j_r15.splitShiftEndTime, "HH:mm"), " ");
} }
function LogOpenComponent_div_1_div_44_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, LogOpenComponent_div_1_div_44_div_5_div_4_Template, 4, 8, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 5, j_r15.startTime, "HH:mm"), "-", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 8, j_r15.endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", j_r15.isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", j_r15 == null ? null : j_r15.staffNeedCount, "/", j_r15 == null ? null : j_r15.backUpStaffNeedCount, " ");
} }
function LogOpenComponent_div_1_div_44_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", j_r15.isOff, " ");
} }
function LogOpenComponent_div_1_div_44_Template(rf, ctx) { if (rf & 1) {
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogOpenComponent_div_1_div_44_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r27); const j_r15 = ctx.$implicit; const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r26.changeShiftDetailsView(true, j_r15); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Shift Published Successfully ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, LogOpenComponent_div_1_div_44_ng_container_4_Template, 2, 1, "ng-container", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LogOpenComponent_div_1_div_44_div_5_Template, 8, 11, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, LogOpenComponent_div_1_div_44_div_6_Template, 2, 1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r15 = ctx.$implicit;
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r13.shiftDetail == j_r15 ? "selected" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", j_r15.subSkillSets == null ? null : j_r15.subSkillSets.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", j_r15.isOff == "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", j_r15.isOff != "");
} }
function LogOpenComponent_div_1_div_45_div_18_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Split Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](5, 4, ctx_r29.shiftDetail.splitShiftStartTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 7, ctx_r29.shiftDetail.splitShiftEndTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function LogOpenComponent_div_1_div_45_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, LogOpenComponent_div_1_div_45_div_18_div_10_Template, 9, 10, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 5, ctx_r28.shiftDetail.startTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](9, 8, ctx_r28.shiftDetail.endTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r28.shiftDetail.isSplitShift);
} }
function LogOpenComponent_div_1_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Details of Shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, LogOpenComponent_div_1_div_45_div_18_Template, 11, 11, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Publish Message");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r14.bu.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](17, 6, ctx_r14.shiftDetail.date, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r14.shiftDetail.isOff || !ctx_r14.shiftDetail.isRest);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function LogOpenComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "LOG DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogOpenComponent_div_1_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r31); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r30.changeOverview(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "General");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 33, 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](20, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](26, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Shift Listing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, LogOpenComponent_div_1_div_44_Template, 7, 4, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, LogOpenComponent_div_1_div_45_Template, 24, 9, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](20, 10, ctx_r1.logDetail.createdAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](26, 13, ctx_r1.logDetail.createdAt, "shortTime"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", ctx_r1.logDetail.userId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", ctx_r1.logDetail.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.logDetail.shiftDetails.shiftDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.showShiftDetails);
} }
class LogOpenComponent {
constructor(shiftService, toastService) {
this.shiftService = shiftService;
this.toastService = toastService;
this.isOverview = true;
this.showShiftDetails = false;
this.weekArr1 = [];
this.openLogLoader = true;
this.weekCount = 0;
this.getWeekStartEndDate = function (date, count) {
let datesToReturn = {};
let label = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MMM DD YYYY") + ' to ' + moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count + 6, 'days').format("MMM DD YYYY");
let value = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MM-DD-YYYY");
datesToReturn = { label: label, value: value, key: count };
/* if (count == 0 && $scope.workWeeksDate == undefined) {
$scope.workWeeksDate = value;
}*/
return label;
};
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["getGmtOffSet"])();
this.getShiftRead();
this.getWeeks();
}
getShiftLog() {
this.openLogLoader = true;
this.shiftLog = {
status: 1,
businessUnitId: this.bu._id,
startDate: this.startDay,
};
const openshiftSub = this.shiftService
.getShiftLog(this.shiftLog)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.openLogLoader = false;
openshiftSub.unsubscribe();
}))
.subscribe((res) => {
this.shiftLogData = res['data'];
this;
});
}
getShiftRead() {
if (this.shift != null) {
this.shiftreadPara = {
businessUnitId: this.bu._id,
startDate: this.shift.weekRangeStartsAt,
date: this.shift.weekRangeStartsAt,
from: 'plan',
};
this.shiftService.getPlanShift(this.shiftreadPara).subscribe((res) => {
console.log('ShiftRead', res);
});
}
}
getWeeks() {
this.shiftService.getWeeks(this.bu._id).subscribe((res) => {
this.weekArr2 = res['data']['noOfWeek'];
this.currentWeekCount = this.weekArr2;
let getDate = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').format("MM-DD-YYYY");
if (this.weekArr2 > 0) {
for (var i = -this.weekArr2; i <= this.weekArr2; i++) {
let dummyData = this.getWeekStartEndDate(getDate, 7 * (i));
console.log(dummyData);
this.weekArr1.push(dummyData);
//localStorageService.set("WorkWeekList", $scope.myWeekRange);
}
}
console.log(this.weekArr1, this.weekArr2);
this.currWeek = this.weekArr1[this.weekArr2];
let startDaystr = this.currWeek.slice(0, 11);
let date = moment__WEBPACK_IMPORTED_MODULE_1__(startDaystr).format();
let dd = moment__WEBPACK_IMPORTED_MODULE_1__(date).date().toString();
let mm = moment__WEBPACK_IMPORTED_MODULE_1__(date).month();
let mm1 = mm + 1;
let yyyy = moment__WEBPACK_IMPORTED_MODULE_1__(date).year();
this.startDay =
mm1.toString().padStart(2, '0') +
'-' +
dd.padStart(2, '0') +
'-' +
yyyy +
` 00:00:00 ${this.gmtOffset}`;
this.getShiftLog();
});
}
changeOverview(value, i) {
this.isOverview = value;
this.logDetail = i;
if (i && i.shiftDetails && typeof i.shiftDetails === 'string') {
this.logDetail.shiftDetails = JSON.parse(i.shiftDetails);
}
else if (i && i.shiftId && typeof i.shiftId === 'string') {
this.logDetail.shiftDetails = JSON.parse(i.shiftId);
}
this.showShiftDetails = false;
}
changeShiftDetailsView(value, item) {
this.showShiftDetails = value;
this.shiftDetail = item;
}
changeWeek(str) {
if (str == 'Nxt') {
this.weekCount =
this.weekCount < this.currentWeekCount
? this.weekCount + 1
: this.currentWeekCount;
}
else if (str == 'Prev') {
this.weekCount =
this.weekCount == -Math.abs(this.currentWeekCount)
? this.weekCount
: this.weekCount - 1;
}
else {
this.weekCount = 0;
}
this.currWeek = this.weekArr1[this.currentWeekCount + this.weekCount];
let startDaystr = this.currWeek.slice(0, 11);
let date = moment__WEBPACK_IMPORTED_MODULE_1__(startDaystr).format('MM-DD-YYYY');
this.startDay = date + ` 00:00:00 ${this.gmtOffset}`;
this.getShiftLog();
}
}
LogOpenComponent.ɵfac = function LogOpenComponent_Factory(t) { return new (t || LogOpenComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
LogOpenComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogOpenComponent, selectors: [["app-log-open"]], inputs: { bu: "bu", shift: "shift" }, decls: 2, vars: 2, consts: [["class", "card", 4, "ngIf"], [1, "card"], ["for", "", 1, "font-weight-500", "m-3"], [1, "d-flex", "ml-3", "mb-3"], ["title", "Previous Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-left", 3, "click"], [1, "material-icons"], [1, "weekInput", "d-flex", "align-items-center"], ["title", "Next Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-right", 3, "click"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body", "table-responsive", "p-0"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table m-0", 4, "ngIf"], ["class", "bg-white text-center p-3", 4, "ngIf"], ["count", "6", 3, "theme"], [1, "table", "m-0"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-success", 3, "click"], [1, "bg-white", "text-center", "p-3"], [1, "card-header", "d-flex", "align-items-center", "justify-content-between", "bg-theme"], [1, "btn", "btn-outline-light", "btn-sm", 3, "click"], [1, "card-body"], [1, "card", "mb-3"], [1, "card-header"], [1, "row"], [1, "col-md-4"], [1, "form-group"], ["for", ""], ["placeholder", "date", 1, "form-control", 3, "disabled", "value"], ["date", ""], ["placeholder", "time", 1, "form-control", 3, "disabled", "value"], ["placeholder", "user", 1, "form-control", 3, "disabled", "value"], [1, "col-md-6"], ["placeholder", "Description", 1, "form-control", 3, "disabled", "value"], ["class", "shiftTab d-flex align-items-center mb-2", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["class", "col-md-6", 4, "ngIf"], [1, "shiftTab", "d-flex", "align-items-center", "mb-2", 3, "ngClass", "click"], [1, "d-flex", "justify-content-between", "w-100"], [4, "ngIf"], ["class", "m-0 red", "style", "color: #c12e2e;", 4, "ngFor", "ngForOf"], [1, "m-0", "red", 2, "color", "#c12e2e"], [1, "d-flex", "justify-content-end", "mt-1"], [1, "badge", "badge-pill", "bg-theme"], [1, "col-md-12"], ["placeholder", "Business Unit", 1, "form-control", 3, "disabled", "value"], ["placeholder", "Date", 1, "form-control", 3, "disabled", "value"], ["class", "col-md-12", 4, "ngIf"], ["value", "Shift Publish Successfully", 1, "form-control", 3, "disabled"], [1, "form-group", "row"], ["for", "", 1, "col-md-12"], ["placeholder", "Timing", 1, "form-control", "col-md-5", 3, "disabled", "value"], ["placeholder", "Timimg", 1, "form-control", "col-md-5", 3, "disabled", "value"], ["class", "form-group row", 4, "ngIf"]], template: function LogOpenComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, LogOpenComponent_div_0_Template, 21, 5, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LogOpenComponent_div_1_Template, 46, 16, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOverview);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isOverview);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_7__["NgxSkeletonLoaderComponent"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_8__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgForm"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgClass"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["TitleCasePipe"]], styles: [".bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.copyIcon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 15px;\n}\n\n.copyIcon[_ngcontent-%COMP%]:hover {\n cursor: pointer;\n color: #2dafe2;\n}\n\n.copyIcon[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%] {\n color: blue;\n}\n\n.shiftTab[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0.5rem 0.8rem;\n border-radius: 4px;\n min-height: 60px;\n cursor: pointer;\n}\n\n.shiftTab[_ngcontent-%COMP%]:hover {\n background-color: #eee;\n}\n\n.shiftTab.selected[_ngcontent-%COMP%] {\n background-color: #721c2414;\n border: 1px solid #a73535;\n border-radius: 4px;\n}\n\n.weekbtn[_ngcontent-%COMP%] {\n width: 36px;\n border: 1px solid #a42138;\n height: 36px;\n text-align: center;\n float: left;\n background: #faacac;\n color: #a42138;\n cursor: pointer;\n transition: all 0.3s;\n}\n\n.weekbtn[_ngcontent-%COMP%]:hover {\n background: #a42138;\n color: #fff;\n}\n\n.weekInput[_ngcontent-%COMP%] {\n height: 36px;\n border-top: 1px solid #a42138;\n border-bottom: 1px solid #a42138;\n text-align: center;\n float: left;\n padding: 5px;\n font-weight: bold;\n padding-left: 15px;\n padding-right: 15px;\n background: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9sb2ctb3Blbi9sb2ctb3Blbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUdFO0VBQ0UsZUFBQTtBQUFKOztBQUdFO0VBQ0UsZUFBQTtFQUNBLGNBQUE7QUFESjs7QUFFSTtFQUNFLFdBQUE7QUFBTjs7QUFLQTtFQUNFLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtBQUZGOztBQUlFO0VBQ0Usc0JBQUE7QUFGSjs7QUFLRTtFQUNFLDJCQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtBQUhKOztBQU9BO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLG1CQUFBO0VBQ0EsY0FBQTtFQUNBLGVBQUE7RUFDQSxvQkFBQTtBQUpGOztBQU1FO0VBQ0UsbUJBQUE7RUFDQSxXQUFBO0FBSko7O0FBUUE7RUFDRSxZQUFBO0VBQ0EsNkJBQUE7RUFDQSxnQ0FBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtBQUxGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9sb2ctb3Blbi9sb2ctb3Blbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuXG4uY29weUljb24ge1xuICBpIHtcbiAgICBmb250LXNpemU6IDE1cHg7XG4gIH1cblxuICAmOmhvdmVyIHtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgY29sb3I6IHJnYig0NSwgMTc1LCAyMjYpO1xuICAgIGkge1xuICAgICAgY29sb3I6IGJsdWU7XG4gICAgfVxuICB9XG59XG5cbi5zaGlmdFRhYiB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDAuNXJlbSAwLjhyZW07XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgbWluLWhlaWdodDogNjBweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuXG4gICY6aG92ZXIge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gIH1cblxuICAmLnNlbGVjdGVkIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNzIxYzI0MTQ7XG4gICAgYm9yZGVyOiAxcHggc29saWQgI2E3MzUzNTtcbiAgICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIH1cbn1cblxuLndlZWtidG4ge1xuICB3aWR0aDogMzZweDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2E0MjEzODtcbiAgaGVpZ2h0OiAzNnB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGZsb2F0OiBsZWZ0O1xuICBiYWNrZ3JvdW5kOiAjZmFhY2FjO1xuICBjb2xvcjogI2E0MjEzODtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICB0cmFuc2l0aW9uOiBhbGwgMC4zcztcblxuICAmOmhvdmVyIHtcbiAgICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICAgIGNvbG9yOiAjZmZmO1xuICB9XG59XG5cbi53ZWVrSW5wdXQge1xuICBoZWlnaHQ6IDM2cHg7XG4gIGJvcmRlci10b3A6IDFweCBzb2xpZCAjYTQyMTM4O1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2E0MjEzODtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBmbG9hdDogbGVmdDtcbiAgcGFkZGluZzogNXB4O1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgcGFkZGluZy1sZWZ0OiAxNXB4O1xuICBwYWRkaW5nLXJpZ2h0OiAxNXB4O1xuICBiYWNrZ3JvdW5kOiAjZmZmO1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LogOpenComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-log-open',
templateUrl: './log-open.component.html',
styleUrls: ['./log-open.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], shift: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ 1:
/*!************************!*\
!*** crypto (ignored) ***!
\************************/
/*! no static exports found */
/***/ (function(module, exports) {
/* (ignored) */
/***/ }),
/***/ "1EfA":
/*!***********************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-scheme/leave-scheme.component.ts ***!
\***********************************************************************************/
/*! exports provided: LeaveSchemeComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LeaveSchemeComponent", function() { return LeaveSchemeComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _leave_overview_leave_overview_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./leave-overview/leave-overview.component */ "4S5v");
/* harmony import */ var _leave_grp_overview_leave_grp_overview_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./leave-grp-overview/leave-grp-overview.component */ "0gGn");
function LeaveSchemeComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "leave-overview");
} }
function LeaveSchemeComponent_li_7_ng_template_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "leave-grp-overview");
} }
function LeaveSchemeComponent_li_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "SETUP LEAVE GROUPINGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeaveSchemeComponent_li_7_ng_template_3_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
} }
class LeaveSchemeComponent {
constructor(roleService) {
this.roleService = roleService;
this.active = 1;
}
ngOnInit() {
const rolePrivileges = this.roleService
.getNewUserPrivilege()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
rolePrivileges.unsubscribe();
}))
.subscribe((res) => {
this.leaveSchemeGroup = res.privileges.hasOwnProperty('leaveSchemeLeaveGrouping')
? res.privileges.leaveSchemeLeaveGrouping
: false;
});
}
}
LeaveSchemeComponent.ɵfac = function LeaveSchemeComponent_Factory(t) { return new (t || LeaveSchemeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_2__["RoleService"])); };
LeaveSchemeComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LeaveSchemeComponent, selectors: [["app-leave-scheme"]], decls: 9, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["nav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavItem", 4, "ngIf"], [3, "ngbNavOutlet"]], template: function LeaveSchemeComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function LeaveSchemeComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.active = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "SETUP LEAVE TYPES");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, LeaveSchemeComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, LeaveSchemeComponent_li_7_Template, 4, 1, "li", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "div", 7);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.active);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.leaveSchemeGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavOutlet"], _leave_overview_leave_overview_component__WEBPACK_IMPORTED_MODULE_5__["LeaveOverviewComponent"], _leave_grp_overview_leave_grp_overview_component__WEBPACK_IMPORTED_MODULE_6__["LeaveGrpOverviewComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtc2NoZW1lL2xlYXZlLXNjaGVtZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHNCQUFBO0FBQ0Y7QUFBRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7QUFFSjtBQUFJO0VBQ0UsY0FBQTtBQUVOO0FBQ0k7RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBQ04iLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9odW1hbi1yZXNvdXJjZS9sZWF2ZS1zY2hlbWUvbGVhdmUtc2NoZW1lLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LeaveSchemeComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-leave-scheme',
templateUrl: './leave-scheme.component.html',
styleUrls: ['./leave-scheme.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_2__["RoleService"] }]; }, null); })();
/***/ }),
/***/ "1IT0":
/*!******************************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/bu-shift-setup/add-map-setup/add-map-setup.component.ts ***!
\******************************************************************************************************/
/*! exports provided: AddMapSetupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddMapSetupComponent", function() { return AddMapSetupComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _agm_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @agm/core */ "pxUr");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
const _c0 = ["search"];
function AddMapSetupComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Enable Self Check-in");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "input", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddMapSetupComponent_div_1_Template_input_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.changeCheckinEnable(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddMapSetupComponent_div_1_Template_input_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.changeCheckinEnable(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
} }
function AddMapSetupComponent_div_2_div_14_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Select Reporting Location Radius in mtrs ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ng-select", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function AddMapSetupComponent_div_2_div_14_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.changeReportingLocationRadius($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r9.reportingLocationRadius)("multiple", false);
} }
function AddMapSetupComponent_div_2_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Enable proximity check ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "input", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddMapSetupComponent_div_2_Template_input_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.changeProximityEnable(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddMapSetupComponent_div_2_Template_input_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.changeProximityEnable(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, AddMapSetupComponent_div_2_div_14_Template, 5, 2, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.addRepLoc.get("isProximityEnabled").value);
} }
function AddMapSetupComponent_div_10_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "agm-map", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "agm-marker", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("dragEnd", function AddMapSetupComponent_div_10_Template_agm_marker_dragEnd_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.markerDragEnd($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("latitude", ctx_r3.latitude)("longitude", ctx_r3.longitude)("zoom", ctx_r3.zoom);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("latitude", ctx_r3.latitude)("longitude", ctx_r3.longitude)("markerDraggable", true);
} }
function AddMapSetupComponent_div_11_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddMapSetupComponent_div_11_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.addAddress(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AddMapSetupComponent_div_13_div_1_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AddMapSetupComponent_div_13_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const i_r21 = ctx.index; const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r22.clearMapLocationLabel(i_r21); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r20 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r20, " ");
} }
function AddMapSetupComponent_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AddMapSetupComponent_div_13_div_1_Template, 5, 1, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.mapLocations);
} }
class AddMapSetupComponent {
constructor(formBuilder, mapsAPILoader, ngZone, toastService) {
this.formBuilder = formBuilder;
this.mapsAPILoader = mapsAPILoader;
this.ngZone = ngZone;
this.toastService = toastService;
this.geoLocationEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.handleCheckInEnable = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.handleProximityEnable = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.handleRepLoc = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.reportingLocationRadius = [
{ name: 50, id: 50 },
{ name: 100, id: 100 },
{ name: 150, id: 150 },
{ name: 200, id: 200 },
{ name: 250, id: 250 },
{ name: 300, id: 300 },
{ name: 350, id: 350 },
{ name: 400, id: 400 },
{ name: 450, id: 450 },
{ name: 500, id: 500 },
];
}
passGeoLocation() {
this.geoLocationEvent.emit(this.mapLocations);
}
ngOnInit() {
this.setCurrentLocation();
this.initForm();
this.updateCheckIn();
this.mapsAPILoader.load().then(() => {
this.setCurrentLocation();
this.geoCoder = new google.maps.Geocoder();
let autocomplete = new google.maps.places.Autocomplete(this.searchElementRef.nativeElement);
autocomplete.addListener('place_changed', () => {
this.ngZone.run(() => {
//get the place result
let place = autocomplete.getPlace();
this.address = place.formatted_address;
//verify result
if (place.geometry === undefined || place.geometry === null) {
return;
}
//set latitude, longitude and zoom
this.latitude = place.geometry.location.lat();
this.longitude = place.geometry.location.lng();
this.zoom = 15;
});
});
});
}
initForm() {
var _a, _b, _c, _d, _e;
this.addRepLoc = this.formBuilder.group({
geoReportingLocation: [null],
isCheckInEnabled: [null],
isProximityEnabled: [null],
reportingLocationRadius: [null],
});
this.addRepLoc.patchValue({
reportingLocationRadius: (_b = (_a = this.buSettingObj) === null || _a === void 0 ? void 0 : _a.reportingLocationRadius) !== null && _b !== void 0 ? _b : 0,
isCheckInEnabled: (_d = (_c = this.buSettingObj) === null || _c === void 0 ? void 0 : _c.isCheckInEnabled) !== null && _d !== void 0 ? _d : false,
isProximityEnabled: (_e = this.buSettingObj) === null || _e === void 0 ? void 0 : _e.isProximityEnabled,
});
}
ngOnChanges(changes) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
this.buSettingObj.isProximityEnabled = (_d = (_c = (_b = (_a = changes.buSettingObj) === null || _a === void 0 ? void 0 : _a.isProximityEnabled) === null || _b === void 0 ? void 0 : _b.currentValue) === null || _c === void 0 ? void 0 : _c.isProximityEnabled) !== null && _d !== void 0 ? _d : (_e = this.buSettingObj) === null || _e === void 0 ? void 0 : _e.isProximityEnabled;
this.buSettingObj.isCheckInEnabled = (_j = (_h = (_g = (_f = changes.buSettingObj) === null || _f === void 0 ? void 0 : _f.isCheckInEnabled) === null || _g === void 0 ? void 0 : _g.currentValue) === null || _h === void 0 ? void 0 : _h.isCheckInEnabled) !== null && _j !== void 0 ? _j : (_k = this.buSettingObj) === null || _k === void 0 ? void 0 : _k.isCheckInEnabled;
this.mapLocations = (_m = (_l = changes.mapLocations) === null || _l === void 0 ? void 0 : _l.currentValue) !== null && _m !== void 0 ? _m : this.mapLocations;
this.isMap = (_p = (_o = changes.isMap) === null || _o === void 0 ? void 0 : _o.currentValue) !== null && _p !== void 0 ? _p : this.isMap;
this.buSettingObj.reportingLocationRadius = (_t = (_s = (_r = (_q = changes.buSettingObj) === null || _q === void 0 ? void 0 : _q.reportingLocationRadius) === null || _r === void 0 ? void 0 : _r.currentValue) === null || _s === void 0 ? void 0 : _s.reportingLocationRadius) !== null && _t !== void 0 ? _t : (_u = this.buSettingObj) === null || _u === void 0 ? void 0 : _u.reportingLocationRadius;
this.isDropdown = (_w = (_v = changes.isDropdown) === null || _v === void 0 ? void 0 : _v.currentValue) !== null && _w !== void 0 ? _w : this.isDropdown;
this.initForm();
this.addRepLoc.patchValue({
reportingLocationRadius: (_y = (_x = this.buSettingObj) === null || _x === void 0 ? void 0 : _x.reportingLocationRadius) !== null && _y !== void 0 ? _y : 0,
isCheckInEnabled: (_0 = (_z = this.buSettingObj) === null || _z === void 0 ? void 0 : _z.isCheckInEnabled) !== null && _0 !== void 0 ? _0 : 'false',
isProximityEnabled: (_2 = (_1 = this.buSettingObj) === null || _1 === void 0 ? void 0 : _1.isProximityEnabled) !== null && _2 !== void 0 ? _2 : 'false',
});
}
changeLocationType(type) {
if (type === 'dropdown') {
this.isMap = false;
this.isDropdown = true;
}
else if (type === 'map') {
this.isMap = true;
this.isDropdown = false;
}
else {
this.isMap = true;
this.isDropdown = true;
}
}
updateCheckIn() {
this.addRepLoc.patchValue({
isCheckInEnabled: this.buSettingObj.isCheckInEnabled,
});
}
changeCheckinEnable(value) {
this.buSettingObj.isCheckInEnabled = value;
this.handleCheckInEnable.emit(this.buSettingObj.isCheckInEnabled);
}
changeProximityEnable(value) {
this.buSettingObj.isProximityEnabled = value;
this.handleProximityEnable.emit(this.buSettingObj.isProximityEnabled);
}
changeReportingLocationRadius(reportingLoc) {
this.buSettingObj.reportingLocationRadius = reportingLoc.id;
this.handleRepLoc.emit(this.buSettingObj.reportingLocationRadius);
}
markerDragEnd($event) {
this.latitude = $event.coords.lat;
this.longitude = $event.coords.lng;
this.getAddress(this.latitude, this.longitude);
}
// Get Current Location Coordinates
setCurrentLocation() {
if ('geolocation' in navigator) {
navigator.geolocation.getCurrentPosition((position) => {
this.latitude = position.coords.latitude;
this.longitude = position.coords.longitude;
this.zoom = 15;
this.getAddress(this.latitude, this.longitude);
});
}
}
getAddress(latitude, longitude) {
this.geoCoder.geocode({ location: { lat: latitude, lng: longitude } }, (results, status) => {
if (status === 'OK') {
if (results[0]) {
this.zoom = 15;
this.address = results[0].formatted_address;
}
else {
window.alert('No results found');
}
}
else {
window.alert('Geocoder failed due to: ' + status);
}
});
}
addAddress() {
if (this.mapLocations == undefined || !this.mapLocations) {
this.mapLocations = [];
}
if (this.mapLocations.findIndex((i) => i == this.address) === -1) {
this.mapLocations.push(this.address);
this.passGeoLocation();
}
else {
this.toastService.warning('Already Exists');
}
}
onChooseLocation(event) {
this.longitude = event.coords.lng;
this.latitude = event.coords.lat;
}
clearMapLocationLabel(i) {
//this.buRepoLocationArr.splice(i, 1);
this.mapLocations.splice(i, 1);
// console.log("buRepoLocationArr", this.buRepoLocationArr);
// console.log("locationslabels", this.locationslabels);
}
}
AddMapSetupComponent.ɵfac = function AddMapSetupComponent_Factory(t) { return new (t || AddMapSetupComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_agm_core__WEBPACK_IMPORTED_MODULE_2__["MapsAPILoader"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"])); };
AddMapSetupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AddMapSetupComponent, selectors: [["app-add-map-setup"]], viewQuery: function AddMapSetupComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.searchElementRef = _t.first);
} }, inputs: { isMap: "isMap", isDropdown: "isDropdown", mapLocations: "mapLocations", buSettingObj: "buSettingObj" }, outputs: { geoLocationEvent: "geoLocationEvent", handleCheckInEnable: "handleCheckInEnable", handleProximityEnable: "handleProximityEnable", handleRepLoc: "handleRepLoc" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 14, vars: 7, consts: [[3, "formGroup"], ["class", "row", 4, "ngIf"], [1, "col-md-12", 2, "padding-left", "0", 3, "hidden"], [1, "form-group", "col-md-6", 2, "padding-left", "0"], ["type", "text", "placeholder", "Search Nearest Location", "autocorrect", "off", "autocapitalize", "off", "spellcheck", "off", "type", "text", 1, "form-control", 3, "keydown.enter"], ["search", ""], [1, "col-md-12", 2, "display", "flex", "padding-left", "0"], ["class", "col-md-6", "style", "margin-bottom: 1rem; height: 500px; padding-left: 0", 4, "ngIf"], ["class", "col-md-2 buttons", 4, "ngIf"], [1, "col-md-4"], [4, "ngIf"], [1, "row"], [1, "col-md-6"], [1, "form-group", "row"], [1, "col-sm-4"], [1, "col-sm-8"], [1, "form-check", "form-check-inline"], ["type", "radio", "name", "checkin", "id", "yesCheckin", "formControlName", "isCheckInEnabled", "name", "isCheckInEnabled", 1, "form-check-input", 3, "value", "click"], ["for", "inlineRadio1", 1, "form-check-label"], ["type", "radio", "name", "checkin", "id", "noCheckin", "formControlName", "isCheckInEnabled", "name", "isCheckInEnabled", 1, "form-check-input", 3, "value", "click"], ["for", "inlineRadio2", 1, "form-check-label"], ["type", "radio", "name", "isProximityEnabled", "formControlName", "isProximityEnabled", "id", "yes", 1, "form-check-input", 3, "value", "click"], ["for", "yes", 1, "form-check-label"], ["type", "radio", "name", "isProximityEnabled", "formControlName", "isProximityEnabled", "id", "no", 1, "form-check-input", 3, "value", "click"], ["for", "no", 1, "form-check-label"], ["class", "col-md-4", 4, "ngIf"], [1, "form-group"], ["bindLabel", "name", "placeholder", "Select Reporting Location Radius in mtrs", "appendTo", "body", "id", "repLoc", "formControlName", "reportingLocationRadius", "name", "reportingLocationRadius", 1, "custom", 3, "items", "multiple", "change"], [1, "col-md-6", 2, "margin-bottom", "1rem", "height", "500px", "padding-left", "0"], [2, "height", "500px", 3, "latitude", "longitude", "zoom"], [3, "latitude", "longitude", "markerDraggable", "dragEnd"], [1, "col-md-2", "buttons"], [1, "btn", "btn-clear", "p-2", "m-1"], ["type", "button", 1, "btn", "btn-add", "p-2", "m-1", 3, "click"], ["class", "labels my-1", 4, "ngFor", "ngForOf"], [1, "labels", "my-1"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"]], template: function AddMapSetupComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "form", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AddMapSetupComponent_div_1_Template, 14, 2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AddMapSetupComponent_div_2_Template, 15, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Enter address");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "input", 4, 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown.enter", function AddMapSetupComponent_Template_input_keydown_enter_7_listener($event) { return $event.preventDefault(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AddMapSetupComponent_div_10_Template, 3, 6, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, AddMapSetupComponent_div_11_Template, 5, 0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, AddMapSetupComponent_div_13_Template, 2, 1, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.addRepLoc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isMap || ctx.isDropdown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.addRepLoc.get("isCheckInEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx.isMap);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isMap);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isMap);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.mapLocations != null && ctx.isMap);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["NativeElementInjectorDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_6__["NgSelectComponent"], _agm_core__WEBPACK_IMPORTED_MODULE_2__["AgmMap"], _agm_core__WEBPACK_IMPORTED_MODULE_2__["AgmMarker"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgForOf"]], styles: [".radioLabel[_ngcontent-%COMP%] {\n margin-left: 2px;\n margin-top: -2px;\n}\n\n.radioDiv[_ngcontent-%COMP%] {\n display: flex;\n align-items: baseline;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9idS1zaGlmdC1zZXR1cC9hZGQtbWFwLXNldHVwL2FkZC1tYXAtc2V0dXAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxnQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxhQUFBO0VBQ0EscUJBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFDRTtFQUNFLGtCQUFBO0FBQ0o7O0FBRUU7RUFDRSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7QUFBSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2V0dXAvYnUtc2hpZnQtc2V0dXAvYWRkLW1hcC1zZXR1cC9hZGQtbWFwLXNldHVwLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnJhZGlvTGFiZWwge1xuICBtYXJnaW4tbGVmdDogMnB4O1xuICBtYXJnaW4tdG9wOiAtMnB4O1xufVxuXG4ucmFkaW9EaXYge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogYmFzZWxpbmU7XG59XG5cbi5sYWJlbHMge1xuICBwYWRkaW5nOiA2cHggOHB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAudGV4dCB7XG4gICAgbWFyZ2luLWJvdHRvbTogMnB4O1xuICB9XG5cbiAgLmJ0bi1jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIHBhZGRpbmc6IDJweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AddMapSetupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-add-map-setup',
templateUrl: './add-map-setup.component.html',
styleUrls: ['./add-map-setup.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _agm_core__WEBPACK_IMPORTED_MODULE_2__["MapsAPILoader"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }]; }, { isMap: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], isDropdown: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], mapLocations: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], buSettingObj: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], geoLocationEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], handleCheckInEnable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], handleProximityEnable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], handleRepLoc: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], searchElementRef: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['search', { static: true }]
}] }); })();
/***/ }),
/***/ 2:
/*!****************************!*\
!*** node-fetch (ignored) ***!
\****************************/
/*! no static exports found */
/***/ (function(module, exports) {
/* (ignored) */
/***/ }),
/***/ "2HCa":
/*!**************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-events/events-manage/events-manage.component.ts ***!
\**************************************************************************************************/
/*! exports provided: EventsManageComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsManageComponent", function() { return EventsManageComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function EventsManageComponent_div_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "p", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r6 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Attendance ", item_r6, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r0.getAttendeneceCount(item_r6));
} }
function EventsManageComponent_ng_option_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = ctx.$implicit;
const i_r8 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Session ", i_r8 + 1, " @ ", item_r7.location, " ");
} }
function EventsManageComponent_span_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](1, "safeHtml");
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHtml", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](1, 1, ctx_r2.eventTitle), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function EventsManageComponent_div_28_span_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const count_r11 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Attendance ", count_r11, "");
} }
function EventsManageComponent_div_28_tr_26_span_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const count_r14 = ctx.$implicit;
const item_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.getAttendeneceStatus(item_r12, count_r14), " ");
} }
function EventsManageComponent_div_28_tr_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, EventsManageComponent_div_28_tr_26_span_13_Template, 2, 1, "span", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r12 = ctx.$implicit;
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r12.staff == null ? null : item_r12.staff.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r12.staff == null ? null : item_r12.staff.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r12.staff == null ? null : item_r12.staff.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r12.staff == null ? null : item_r12.staff.appointmentId == null ? null : item_r12.staff.appointmentId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r12.staff == null ? null : item_r12.staff.parentBussinessUnitId == null ? null : item_r12.staff.parentBussinessUnitId.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r10.attendanceCountArr);
} }
function EventsManageComponent_div_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "th", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "USERNAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "th", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "CONTACT NUMBER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "APPOINTMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "PARENT BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "ATTENDANCE STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, EventsManageComponent_div_28_span_25_Template, 2, 1, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, EventsManageComponent_div_28_tr_26_Template, 14, 6, "tr", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.attendanceCountArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.sessionDetail);
} }
function EventsManageComponent_ng_template_34_ng_option_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r20 = ctx.$implicit;
const i_r21 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Session ", i_r21 + 1, " @ ", item_r20.location, " ");
} }
function EventsManageComponent_ng_template_34_ng_option_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r22 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" Attendance ", item_r22, " ");
} }
function EventsManageComponent_ng_template_34_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h4", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Manual Attendance");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EventsManageComponent_ng_template_34_Template_button_click_3_listener() { const modal_r17 = ctx.$implicit; return modal_r17.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "form", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Session Number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "ng-select", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function EventsManageComponent_ng_template_34_Template_ng_select_change_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r25.getSessionDetail(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, EventsManageComponent_ng_template_34_ng_option_12_Template, 2, 3, "ng-option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Attendance slot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "ng-select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, EventsManageComponent_ng_template_34_ng_option_17_Template, 2, 2, "ng-option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Staff Id");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "ng-select", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "button", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EventsManageComponent_ng_template_34_Template_button_click_23_listener() { const modal_r17 = ctx.$implicit; return modal_r17.close("Save click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EventsManageComponent_ng_template_34_Template_button_click_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r28.submitManualAtt(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, " Done ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r5.manualForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("clearable", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.sessionArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.attendanceCountArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r5.sessionDetail)("virtualScroll", false)("multiple", true)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r5.manualForm.valid);
} }
class EventsManageComponent {
constructor(modalService, newsService, fb, toastr) {
this.modalService = modalService;
this.newsService = newsService;
this.fb = fb;
this.toastr = toastr;
this.sessionArr = [];
this.attendanceCountArr = [];
this.closeResult = '';
}
ngOnInit() {
if (this.manageId) {
this.getEventsEdit(this.manageId);
}
}
getEventsEdit(id) {
const sub = this.newsService
.getSingleNewsEvents(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data: { session, teaser } }) => {
this.eventTitle = teaser === null || teaser === void 0 ? void 0 : teaser.title;
session.Rows.forEach((val) => {
this.sessionArr.push(val);
});
this.selectedSession = session.Rows[0];
this.getSessionDetail();
});
}
getSessionDetail() {
this.sessionTitle = 'Session @ ' + this.selectedSession.location;
const sessionDetailPayload = {
session_id: this.selectedSession._id,
event_id: this.manageId,
};
this.newsService
.getSessionDetail(sessionDetailPayload)
.subscribe((res) => {
this.attendanceCountArr = [];
// need to understand this logic how status showing
const attendanceCount = res.data.eventSession.totalAttendanceTaking;
if (attendanceCount != 0) {
for (var i = 1; i <= attendanceCount; i++) {
this.attendanceCountArr.push(i);
}
}
});
this.getRSVPAttendanceStatus();
}
getRSVPAttendanceStatus() {
const payload = {
session_id: this.selectedSession._id,
event_id: this.manageId,
appointmentSlotNumber: 1,
apptStatus: '',
};
this.newsService
.getRSVPAttendanceStatus(payload)
.subscribe((res) => {
this.sessionDetail = res.data;
});
}
open(content) {
this.manualForm = this.fb.group({
session_id: '',
event_id: '',
staff_ids: '',
appointmentSlotNumber: '',
});
this.modalService
.open(content, { ariaLabelledBy: 'modal-basic-title' })
.result.then((result) => {
this.closeResult = `Closed with: ${result}`;
}, (reason) => {
this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
});
}
getDismissReason(reason) {
if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["ModalDismissReasons"].ESC) {
return 'by pressing ESC';
}
else if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["ModalDismissReasons"].BACKDROP_CLICK) {
return 'by clicking on a backdrop';
}
else {
return `with: ${reason}`;
}
}
submitManualAtt() {
const payload = {
staff_ids: this.manualForm.controls.staff_ids.value,
event_id: this.manageId,
session_id: this.manualForm.controls.session_id.value._id,
appointmentSlotNumber: this.manualForm.controls.appointmentSlotNumber.value.toString(),
};
this.newsService.manualStaffAttendance(payload).subscribe((res) => {
this.toastr.success('Attendance marked');
this.modalService.dismissAll();
this.getSessionDetail();
this.getRSVPAttendanceStatus();
this.getSessions();
}, (error) => {
var _a;
this.toastr.error((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.message);
});
}
getAttendeneceStatus(item, index) {
var _a;
let status = '';
((_a = item.attendanceStaff) === null || _a === void 0 ? void 0 : _a.filter(id => id.appointmentSlotNumber === index).length) > 0 ? status = "Present" : status = "";
return status;
}
getSessions() {
const payload = {
event_id: this.manageId,
};
this.newsService
.getSessions(payload)
.subscribe((res) => {
});
}
getAttendeneceCount(count) {
var _a;
return [].concat.apply([], (_a = this.sessionDetail) === null || _a === void 0 ? void 0 : _a.map(id => id.attendanceStaff)).filter(ele => ele.appointmentSlotNumber
=== count).length;
}
exportAttd() {
const payload = {
session_id: this.selectedSession._id,
event_id: this.manageId,
appointmentSlotNumber: 0,
timeZone: 330,
};
this.newsService.exportAttendance(payload).subscribe((res) => {
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + encodeURI(res['csv']);
a.target = '_blank';
a.download = "Attendence.csv";
document.body.appendChild(a);
a.click();
this.toastr.success("success", "Attendences exported succesfully");
});
}
}
EventsManageComponent.ɵfac = function EventsManageComponent_Factory(t) { return new (t || EventsManageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_3__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
EventsManageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: EventsManageComponent, selectors: [["app-events-manage"]], inputs: { manageId: "manageId" }, decls: 36, vars: 12, consts: [[1, "card", "mt-3"], [1, "align-items-center", "bg-theme", "card-header", "d-flex", "justify-content-between"], [1, "btn", "btn-info"], [1, "card-body"], [1, "d-flex", "justify-content-between", "mb-3"], [1, "border", "h-25", "p-2", "rounded", "w-auto"], [1, "card-title"], [1, "d-flex"], [1, "session-box"], [1, "text-danger", "font-weight-bold"], [1, "sub-text"], ["class", "session-box session-border", 4, "ngFor", "ngForOf"], [1, "w-25"], ["appendTo", "body", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "clearable", "ngModel", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [1, "card"], [1, "bg-theme", "card-header"], ["class", "eventTitle", 3, "innerHtml", 4, "ngIf"], [1, "card-body", "p-0"], ["class", "table-responsive", 4, "ngIf"], [1, "card-footer", "text-right"], [1, "btn", "btn-warning", 3, "click"], [1, "btn", "btn-info", "ml-2", 3, "disabled", "click"], ["content", ""], [1, "session-box", "session-border"], [3, "value"], [1, "eventTitle", 3, "innerHtml"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col"], [1, "row", "m-0"], ["class", "col pl-0 text-theme", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], [1, "col", "pl-0", "text-theme"], ["class", "col pl-0 text-uppercase text-success", 4, "ngFor", "ngForOf"], [1, "col", "pl-0", "text-uppercase", "text-success"], [1, "modal-header", "bg-theme"], ["id", "modal-basic-title", 1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [3, "formGroup"], [1, "modal-body"], [1, "form-group"], ["for", "sessionNumber", 1, "session-header"], ["appendTo", "body", "formControlName", "session_id", "required", "", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "clearable", "change"], ["appendTo", "body", "formControlName", "appointmentSlotNumber", "required", "", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "clearable"], ["bindLabel", "staff.name", "bindValue", "staff._id", "appendTo", "body", "formControlName", "staff_ids", "required", "", 1, "custom", 3, "items", "virtualScroll", "multiple", "searchable", "clearable"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-dark", 3, "click"], ["type", "submit", "ngbAutoFocus", "", 1, "btn", "btn-success", 3, "disabled", "click"]], template: function EventsManageComponent_Template(rf, ctx) { if (rf & 1) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " TEASER TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Refresh");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "RSVP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "p", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, EventsManageComponent_div_17_Template, 5, 2, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Select Session");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "ng-select", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function EventsManageComponent_Template_ng_select_change_21_listener() { return ctx.getSessionDetail(); })("ngModelChange", function EventsManageComponent_Template_ng_select_ngModelChange_21_listener($event) { return ctx.selectedSession = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, EventsManageComponent_ng_option_22_Template, 2, 3, "ng-option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, " Event Name: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, EventsManageComponent_span_26_Template, 2, 3, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](28, EventsManageComponent_div_28_Template, 27, 2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EventsManageComponent_Template_button_click_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r29); const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](35); return ctx.open(_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " Manual Attendance ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EventsManageComponent_Template_button_click_32_listener() { return ctx.exportAttd(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " Export Attendance List ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, EventsManageComponent_ng_template_34_Template, 27, 17, "ng-template", null, 23, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.sessionTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.sessionDetail == null ? null : ctx.sessionDetail.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.attendanceCountArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("clearable", false)("ngModel", ctx.selectedSession);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.sessionArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.sessionDetail);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.sessionDetail);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.sessionDetail ? !ctx.sessionDetail.length : true);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["ɵr"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_9__["SortableHeader"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["RequiredValidator"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_10__["SafeHtmlPipe"]], styles: [".bg-theme[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #a42138;\n}\n\n.text-theme[_ngcontent-%COMP%] {\n color: #a42138;\n}\n\n.small-card[_ngcontent-%COMP%] {\n border: 1px solid #212121;\n width: 10%;\n height: 15%;\n}\n\n.session-box[_ngcontent-%COMP%] {\n width: 100px;\n}\n\n.session-border[_ngcontent-%COMP%] {\n border-left: 1px solid #c9c9c9;\n padding-left: 10px;\n}\n\n.card-heading[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 600;\n margin-left: 5px;\n color: #666666 !important;\n}\n\n.rsvp-text[_ngcontent-%COMP%] {\n color: #f44336;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.sub-text[_ngcontent-%COMP%] {\n color: #a42138;\n font-size: 20px;\n margin-left: 5px;\n}\n\n.space-between[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.select-session[_ngcontent-%COMP%] {\n font-size: 16px;\n font-weight: 600;\n}\n\n.footer-buttons[_ngcontent-%COMP%] {\n float: right;\n}\n\n.session-header[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n\n.refresh-button[_ngcontent-%COMP%] {\n position: absolute;\n margin-top: -25px;\n right: 20px;\n}\n\n .modal-content {\n border: none;\n}\n\n .eventTitle {\n display: inline-block;\n}\n\n .eventTitle p {\n text-transform: capitalize;\n margin-bottom: 0;\n}\n\n .eventTitle p:nth-child(2) {\n display: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL2V2ZW50cy1tYW5hZ2UvZXZlbnRzLW1hbmFnZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtBQUNGOztBQUVBO0VBQ0UsY0FBQTtBQUNGOztBQUVBO0VBQ0UseUJBQUE7RUFDQSxVQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUVBO0VBQ0UsWUFBQTtBQUNGOztBQUVBO0VBQ0UsOEJBQUE7RUFDQSxrQkFBQTtBQUNGOztBQUVBO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSx5QkFBQTtBQUNGOztBQUVBO0VBQ0UsY0FBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLGNBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUNGOztBQUVBO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxZQUFBO0FBQ0Y7O0FBRUE7RUFDRSxnQkFBQTtBQUNGOztBQUVBO0VBQ0Usa0JBQUE7RUFDQSxpQkFBQTtFQUNBLFdBQUE7QUFDRjs7QUFFQTtFQUNFLFlBQUE7QUFDRjs7QUFFQTtFQUNFLHFCQUFBO0FBQ0Y7O0FBQ0U7RUFDRSwwQkFBQTtFQUNBLGdCQUFBO0FBQ0o7O0FBRUU7RUFDRSxhQUFBO0FBQUoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jb21tdW5pY2F0aW9uL21hbmFnZS1ldmVudHMvZXZlbnRzLW1hbmFnZS9ldmVudHMtbWFuYWdlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJnLXRoZW1lIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG59XG5cbi50ZXh0LXRoZW1lIHtcbiAgY29sb3I6ICNhNDIxMzg7XG59XG5cbi5zbWFsbC1jYXJkIHtcbiAgYm9yZGVyOiAxcHggc29saWQgIzIxMjEyMTtcbiAgd2lkdGg6IDEwJTtcbiAgaGVpZ2h0OiAxNSU7XG59XG5cbi5zZXNzaW9uLWJveCB7XG4gIHdpZHRoOiAxMDBweDtcbn1cblxuLnNlc3Npb24tYm9yZGVyIHtcbiAgYm9yZGVyLWxlZnQ6IDFweCBzb2xpZCAjYzljOWM5O1xuICBwYWRkaW5nLWxlZnQ6IDEwcHg7XG59XG5cbi5jYXJkLWhlYWRpbmcge1xuICBmb250LXNpemU6IDEzcHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1sZWZ0OiA1cHg7XG4gIGNvbG9yOiAjNjY2NjY2ICFpbXBvcnRhbnQ7XG59XG5cbi5yc3ZwLXRleHQge1xuICBjb2xvcjogI2Y0NDMzNjtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgbWFyZ2luLWxlZnQ6IDVweDtcbn1cblxuLnN1Yi10ZXh0IHtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGZvbnQtc2l6ZTogMjBweDtcbiAgbWFyZ2luLWxlZnQ6IDVweDtcbn1cblxuLnNwYWNlLWJldHdlZW4ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5zZWxlY3Qtc2Vzc2lvbiB7XG4gIGZvbnQtc2l6ZTogMTZweDtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbn1cblxuLmZvb3Rlci1idXR0b25zIHtcbiAgZmxvYXQ6IHJpZ2h0O1xufVxuXG4uc2Vzc2lvbi1oZWFkZXIge1xuICBmb250LXdlaWdodDogNjAwO1xufVxuXG4ucmVmcmVzaC1idXR0b24ge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIG1hcmdpbi10b3A6IC0yNXB4O1xuICByaWdodDogMjBweDtcbn1cblxuOjpuZy1kZWVwIC5tb2RhbC1jb250ZW50IHtcbiAgYm9yZGVyOiBub25lO1xufVxuXG46Om5nLWRlZXAgLmV2ZW50VGl0bGUge1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG5cbiAgcCB7XG4gICAgdGV4dC10cmFuc2Zvcm06IGNhcGl0YWxpemU7XG4gICAgbWFyZ2luLWJvdHRvbTogMDtcbiAgfVxuXG4gIHA6bnRoLWNoaWxkKDIpIHtcbiAgICBkaXNwbGF5OiBub25lO1xuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EventsManageComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-events-manage',
templateUrl: './events-manage.component.html',
styleUrls: ['./events-manage.component.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"] }, { type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_3__["NewsEventsService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { manageId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "2oWT":
/*!****************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/form-manage.component.ts ***!
\****************************************************************************************/
/*! exports provided: FormManageComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormManageComponent", function() { return FormManageComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./dynamic-table-form/dynamic-table-form */ "EGs8");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _stats_display_stats_display__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./stats-display/stats-display */ "VysZ");
/* harmony import */ var _filter_display_filter_display__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./filter-display/filter-display */ "cGxm");
/* harmony import */ var _admin_create_indent_admin_create_indent__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./admin-create-indent/admin-create-indent */ "tx93");
/* harmony import */ var _admin_form_logs_admin_form_logs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./admin-form-logs/admin-form-logs */ "G/06");
function FormManageComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormManageComponent_div_0_button_6_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormManageComponent_div_0_button_6_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r6.checkLogs(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Logs");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormManageComponent_div_0_button_7_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormManageComponent_div_0_button_7_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r8.createIndent(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Create Indent");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormManageComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, FormManageComponent_div_0_div_1_Template, 4, 0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, FormManageComponent_div_0_button_6_Template, 2, 0, "button", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, FormManageComponent_div_0_button_7_Template, 2, 0, "button", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormManageComponent_div_0_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.refresh(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Refresh");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "stats-display", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "filter-display", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("exportCall", function FormManageComponent_div_0_Template_filter_display_exportCall_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.exportCall($event); })("filterCall", function FormManageComponent_div_0_Template_filter_display_filterCall_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.handleFilterCall($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "dynamic-table-form", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("searchCall", function FormManageComponent_div_0_Template_dynamic_table_form_searchCall_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.handleSearchCall($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]((ctx_r0.overViewData == null ? null : ctx_r0.overViewData.title) || "SATS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r0.privilegeFlags.manageForm || ctx_r0.privilegeFlags.formSupervisor) && ctx_r0.editFormData && ctx_r0.editFormData.formSubTypeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.isCreateIndent && (ctx_r0.privilegeFlags.manageForm || ctx_r0.privilegeFlags.formSupervisor));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("workflow", ctx_r0.editFormData == null ? null : ctx_r0.editFormData.workflow)("totalSubmissions", ctx_r0.totalSubmissions)("errorCount", ctx_r0.errorCount)("statuses", ctx_r0.statusesStats);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("firstRow", ctx_r0.firstRow)("statusOptions", ctx_r0.statuses)("componentData", ctx_r0.childComponentData)("customFormId", ctx_r0.customFormId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("columns", ctx_r0.columns)("hasWorkflow", ctx_r0.hasWorkflow)("componentData", ctx_r0.childComponentData)("total", ctx_r0.totalSubmissions)("formSubmissionListData", ctx_r0.formSubmissionListData)("customFormId", ctx_r0.customFormId);
} }
function FormManageComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "admin-create-indent", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("openManage", function FormManageComponent_div_1_Template_admin_create_indent_openManage_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.openManage(ctx_r15.data); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formData", ctx_r1.formData);
} }
function FormManageComponent_div_2_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "admin-form-logs", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("openManage", function FormManageComponent_div_2_Template_admin_form_logs_openManage_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.openManage(ctx_r17.data); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("customFormId", ctx_r2.customFormId)("formName", ctx_r2.overViewData == null ? null : ctx_r2.overViewData.title);
} }
class FormManageComponent {
constructor(toastService, formBuilder, modelService, customFromService) {
this.toastService = toastService;
this.formBuilder = formBuilder;
this.modelService = modelService;
this.customFromService = customFromService;
this.manageId = null;
this.editFormData = null;
this.overViewData = null;
this.formSubmissionListData = [];
this.totalSubmissions = 0;
this.errorCount = 0;
this.statuses = [];
this.statusesStats = [];
this.customFormId = null;
this.childComponentData = null;
this.serviceId = null;
this.buId = null;
this.status = null;
this.searchObj = null;
this.isCreateIndent = false;
this.hasWorkflow = false;
this.firstRow = null;
this.showCreateIndent = false;
this.showLogs = false;
this.formData = null;
this.isLoader = false;
this.currentPage = 1;
this.columns = [];
}
ngOnInit() {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.childComponentData = this.editFormData;
this.customFormId = this.manageId;
this.isCreateIndent = (_a = this.editFormData) === null || _a === void 0 ? void 0 : _a.isCreateIndent;
this.hasWorkflow = (_b = this.editFormData) === null || _b === void 0 ? void 0 : _b.hasWorkflow;
const data = localStorage.getItem("privilegeFlags");
this.privilegeFlags = JSON.parse(data);
});
}
getRecords() {
this.isLoader = true;
this.customFromService
.formSubmissionList(this.customFormId, {
serviceId: this.serviceId,
transportBuId: this.editFormData.formSubTypeId ? this.buId : null,
parentBuId: !this.editFormData.formSubTypeId ? this.buId : null,
status: this.status,
search: this.searchObj,
hasWorkflow: this.hasWorkflow
}, this.currentPage)
.subscribe((data) => {
this.formSubmissionListData = data === null || data === void 0 ? void 0 : data.data;
this.columns = data === null || data === void 0 ? void 0 : data.columns;
this.firstRow = data === null || data === void 0 ? void 0 : data.data[0];
this.totalSubmissions = data === null || data === void 0 ? void 0 : data.totalRecords;
this.statusesStats = data === null || data === void 0 ? void 0 : data.countsByLabel;
this.statuses = JSON.parse(JSON.stringify(data === null || data === void 0 ? void 0 : data.countsByLabel));
this.errorCount = data === null || data === void 0 ? void 0 : data.errorCount;
this.isLoader = false;
if (!this.hasWorkflow) {
this.statusesStats = [{ _id: 'Submission', count: this.totalSubmissions }, ...this.statuses];
this.statusesStats.push({ _id: 'Error', count: this.errorCount });
this.statuses = this.statusesStats;
}
else {
this.statuses = this.editFormData.workflow.map(item => item.workflowStatus).flat();
}
}, (error) => {
this.isLoader = false;
});
}
refresh() {
this.getRecords();
}
getStats() {
this.customFromService.getStats(this.customFormId).subscribe((data) => {
this.totalSubmissions = data === null || data === void 0 ? void 0 : data.data.total;
this.statuses = data === null || data === void 0 ? void 0 : data.data.statuses;
this.errorCount = data === null || data === void 0 ? void 0 : data.data.errorCount;
});
}
handleFilterCall(event) {
this.serviceId = event.serviceId;
this.buId = event.buId;
this.status = event.status;
this.currentPage = event.currentPage;
if (event.isClear) {
this.searchObj = null;
this.dynamicTableFormComponent.onClearCall();
}
this.getRecords();
}
exportCall(event) {
this.isLoader = true;
const type = event.type;
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
this.customFromService
.exportData(this.customFormId, {
serviceId: this.serviceId,
transportBuId: this.editFormData.formSubTypeId ? this.buId : null,
parentBuId: this.editFormData.formSubTypeId ? this.buId : null,
status: this.status,
search: this.searchObj,
type,
groupBy: event.groupBy,
timeZone
})
.subscribe((data) => {
this.downloadFile(data.fileURL, data.fileName);
this.toastService.success("Data exported successfully", 'Success');
this.isLoader = false;
}, (error) => {
var _a, _b;
console.log(error, 'error');
error.error.message;
const message = ((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Something went wrong';
this.toastService.error(message, 'Error');
this.isLoader = false;
});
}
downloadFile(url, fileName) {
fetch(url)
.then(response => response.blob())
.then(blob => {
// Create a new URL for the blob
const downloadUrl = window.URL.createObjectURL(blob);
// Create a new anchor element
const anchor = document.createElement('a');
// Set the href attribute to the blob URL
anchor.href = downloadUrl;
// Set the download attribute to suggest a filename for the downloaded file
anchor.download = fileName;
// Append the anchor element to the document body
document.body.appendChild(anchor);
// Programmatically click the anchor to trigger the download
anchor.click();
// Clean up by revoking the object URL and removing the anchor
window.URL.revokeObjectURL(downloadUrl);
document.body.removeChild(anchor);
})
.catch(error => console.error('Error downloading the file:', error));
}
checkLogs() {
this.showLogs = true;
}
ngOnDestroy() { }
handleSearchCall(event) {
const keys = Object.keys(event);
this.currentPage = event.currentPage;
delete event.currentPage;
this.searchObj = event;
this.getRecords();
}
createIndent() {
var _a, _b, _c;
this.formData = {
customFormId: (_a = this.overViewData) === null || _a === void 0 ? void 0 : _a._id,
title: (_b = this.overViewData) === null || _b === void 0 ? void 0 : _b.title,
moduleId: (_c = this.overViewData) === null || _c === void 0 ? void 0 : _c.moduleId,
};
this.showCreateIndent = true;
}
openManage() {
this.showCreateIndent = false;
this.showLogs = false;
}
}
FormManageComponent.ɵfac = function FormManageComponent_Factory(t) { return new (t || FormManageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__["CustomFormService"])); };
FormManageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: FormManageComponent, selectors: [["app-form-manage"]], viewQuery: function FormManageComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_2__["DynamicTableFormComponent"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.dynamicTableFormComponent = _t.first);
} }, inputs: { manageId: "manageId", editFormData: "editFormData", overViewData: "overViewData" }, decls: 3, vars: 3, consts: [[4, "ngIf"], ["style", "position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1050;background-color: rgba(0, 0, 0, 0.5);overflow: auto;", 4, "ngIf"], [1, "card-header", "flexi-header", "d-flex", "justify-content-between"], ["class", "btn btn-warning mt-1 mx-2", 3, "click", 4, "ngIf"], ["class", "btn btn-primary", 3, "click", 4, "ngIf"], [1, "btn", "btn-info", "mt-1", "mx-2", 3, "click"], [3, "workflow", "totalSubmissions", "errorCount", "statuses"], [3, "firstRow", "statusOptions", "componentData", "customFormId", "exportCall", "filterCall"], [3, "columns", "hasWorkflow", "componentData", "total", "formSubmissionListData", "customFormId", "searchCall"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "700%"], [1, "innerDiv", 2, "position", "absolute", "top", "50%", "left", "50%"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "btn", "btn-warning", "mt-1", "mx-2", 3, "click"], [1, "btn", "btn-primary", 3, "click"], [3, "formData", "openManage"], [3, "customFormId", "formName", "openManage"]], template: function FormManageComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, FormManageComponent_div_0_Template, 14, 18, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, FormManageComponent_div_1_Template, 2, 1, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, FormManageComponent_div_2_Template, 2, 2, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.showCreateIndent && !ctx.showLogs);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showCreateIndent && !ctx.showLogs);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showLogs && !ctx.showCreateIndent);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _stats_display_stats_display__WEBPACK_IMPORTED_MODULE_8__["StatsDisplayComponent"], _filter_display_filter_display__WEBPACK_IMPORTED_MODULE_9__["FilterDisplayComponent"], _dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_2__["DynamicTableFormComponent"], _admin_create_indent_admin_create_indent__WEBPACK_IMPORTED_MODULE_10__["AdminCreateIndentComponent"], _admin_form_logs_admin_form_logs__WEBPACK_IMPORTED_MODULE_11__["AdminFormLogsComponent"]], styles: [".forms-manage[_ngcontent-%COMP%] .box-item[_ngcontent-%COMP%] .box-item-status[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] {\n padding: 0 1.4rem;\n position: relative;\n}\n\n.forms-manage[_ngcontent-%COMP%] .box-item[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0 0.7rem;\n}\n\n.forms-manage[_ngcontent-%COMP%] {\n margin-bottom: 3rem;\n max-width: 100%;\n overflow-x: auto;\n}\n\n.form-group.hidden[_ngcontent-%COMP%] {\n width: 0;\n margin: 0;\n border: none;\n padding: 0;\n}\n\n.custom-day[_ngcontent-%COMP%] {\n text-align: center;\n padding: 0.185rem 0.25rem;\n display: inline-block;\n height: 2rem;\n width: 2rem;\n}\n\n.custom-day.focused[_ngcontent-%COMP%] {\n background-color: #e6e6e6;\n}\n\n.custom-day.range[_ngcontent-%COMP%], .custom-day[_ngcontent-%COMP%]:hover {\n background-color: #0275d8;\n color: white;\n}\n\n.custom-day.faded[_ngcontent-%COMP%] {\n background-color: rgba(2, 117, 216, 0.5);\n}\n\n.status-workflow-class[_ngcontent-%COMP%] {\n display: inline-block;\n padding: 2px 10px 2px 10px;\n word-break: break-all;\n color: #e6e6e6;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2Zvcm0tbWFuYWdlLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsaUJBQUE7RUFDQSxrQkFBQTtBQUNGOztBQUVBO0VBQ0Usc0JBQUE7RUFDQSxpQkFBQTtBQUNGOztBQUVBO0VBQ0UsbUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFHQTtFQUNFLFFBQUE7RUFDQSxTQUFBO0VBQ0EsWUFBQTtFQUNBLFVBQUE7QUFBRjs7QUFFQTtFQUNFLGtCQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFlBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBQ0E7RUFDRSx5QkFBQTtBQUVGOztBQUFBO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0FBR0Y7O0FBREE7RUFDRSx3Q0FBQTtBQUlGOztBQUZBO0VBQ0UscUJBQUE7RUFDQSwwQkFBQTtFQUNBLHFCQUFBO0VBQ0EsY0FBQTtBQUtGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2Zvcm0tbWFuYWdlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZvcm1zLW1hbmFnZSAuYm94LWl0ZW0gLmJveC1pdGVtLXN0YXR1cyAuc3RhdHVzIHtcbiAgcGFkZGluZzogMCAxLjRyZW07XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgLy8gbWluLXdpZHRoOiA5cmVtO1xufVxuLmZvcm1zLW1hbmFnZSAuYm94LWl0ZW0ge1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBwYWRkaW5nOiAwIDAuN3JlbTtcbn1cblxuLmZvcm1zLW1hbmFnZSB7XG4gIG1hcmdpbi1ib3R0b206IDNyZW07XG4gIG1heC13aWR0aDogMTAwJTtcbiAgb3ZlcmZsb3cteDogYXV0bztcbn1cblxuXG4uZm9ybS1ncm91cC5oaWRkZW4ge1xuICB3aWR0aDogMDtcbiAgbWFyZ2luOiAwO1xuICBib3JkZXI6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG59XG4uY3VzdG9tLWRheSB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgcGFkZGluZzogMC4xODVyZW0gMC4yNXJlbTtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBoZWlnaHQ6IDJyZW07XG4gIHdpZHRoOiAycmVtO1xufVxuLmN1c3RvbS1kYXkuZm9jdXNlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNlNmU2ZTY7XG59XG4uY3VzdG9tLWRheS5yYW5nZSwgLmN1c3RvbS1kYXk6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2IoMiwgMTE3LCAyMTYpO1xuICBjb2xvcjogd2hpdGU7XG59XG4uY3VzdG9tLWRheS5mYWRlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMiwgMTE3LCAyMTYsIDAuNSk7XG59XG4uc3RhdHVzLXdvcmtmbG93LWNsYXNze1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIHBhZGRpbmc6IDJweCAxMHB4IDJweCAxMHB4O1xuICB3b3JkLWJyZWFrOiBicmVhay1hbGw7XG4gIGNvbG9yOiAjZTZlNmU2O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FormManageComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-form-manage',
templateUrl: './form-manage.component.html',
styleUrls: ['./form-manage.component.scss'],
}]
}], function () { return [{ type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormBuilder"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__["CustomFormService"] }]; }, { manageId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], editFormData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], overViewData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], dynamicTableFormComponent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: [_dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_2__["DynamicTableFormComponent"]]
}] }); })();
/***/ }),
/***/ "2sya":
/*!************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-news/news-reported-posts/news-reported-posts.component.ts ***!
\************************************************************************************************************/
/*! exports provided: NewsReportedPostsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NewsReportedPostsComponent", function() { return NewsReportedPostsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function NewsReportedPostsComponent_span_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function NewsReportedPostsComponent_table_23_tr_14_ul_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const user_r5 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](user_r5 == null ? null : user_r5.userId == null ? null : user_r5.userId.name);
} }
function NewsReportedPostsComponent_table_23_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "p", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, NewsReportedPostsComponent_table_23_tr_14_ul_10_Template, 3, 1, "ul", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NewsReportedPostsComponent_table_23_tr_14_Template_input_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const item_r3 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r6.changePostStatus(item_r3._id, item_r3.status); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHtml", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 5, item_r3 == null ? null : item_r3.teaser == null ? null : item_r3.teaser.title), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.channelId == null ? null : item_r3.channelId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](8, 7, item_r3 == null ? null : item_r3.updatedAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r3.userList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r3.status === 1 ? "checked" : "");
} }
function NewsReportedPostsComponent_table_23_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedPostsComponent_table_23_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Post Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedPostsComponent_table_23_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Channel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedPostsComponent_table_23_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.onSortUsers($event, "updatedAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Reported Date / Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedPostsComponent_table_23_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " USER NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, NewsReportedPostsComponent_table_23_tr_14_Template, 15, 9, "tr", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class NewsReportedPostsComponent {
constructor(boardService, toastService, storageService, formBuilder) {
this.boardService = boardService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.isTableLoading = true;
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = !!direction ? field : 'createdAt';
this.usersPTable.sortBy = !!direction ? direction : 'desc';
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
changePostStatus(id, status) {
const data = {
status: status === 1 ? 2 : 1,
postId: id
};
const subscribe = this.boardService
.updateReportedPost(id, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success(response === null || response === void 0 ? void 0 : response.data);
this.loadUsers();
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.message);
});
}
loadUsers() {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.boardService
.getAllReportedPosts(rest, 'news')
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsFiltered, data } = response;
this.usersPTable.data = data;
this.usersPTable.total = recordsFiltered;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
NewsReportedPostsComponent.ɵfac = function NewsReportedPostsComponent_Factory(t) { return new (t || NewsReportedPostsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"])); };
NewsReportedPostsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: NewsReportedPostsComponent, selectors: [["app-news-reported-posts"]], viewQuery: function NewsReportedPostsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 30, vars: 16, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [3, "innerHtml"], [1, "switch"], ["type", "checkbox", 3, "checked", "click"], [1, "slider", "round"]], template: function NewsReportedPostsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "POSTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function NewsReportedPostsComponent_Template_select_change_8_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function NewsReportedPostsComponent_Template_select_ngModelChange_8_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, NewsReportedPostsComponent_span_20_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function NewsReportedPostsComponent_Template_input_search_21_listener() { return ctx.loadUsers(); })("keyup", function NewsReportedPostsComponent_Template_input_keyup_21_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function NewsReportedPostsComponent_Template_input_ngModelChange_21_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, NewsReportedPostsComponent_table_23_Template, 15, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function NewsReportedPostsComponent_Template_ngb_pagination_pageChange_29_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function NewsReportedPostsComponent_Template_ngb_pagination_pageChange_29_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_13__["SafeHtmlPipe"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\n\ninput[type=radio][_ngcontent-%COMP%] {\n margin-right: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtbmV3cy9uZXdzLXJlcG9ydGVkLXBvc3RzL25ld3MtcmVwb3J0ZWQtcG9zdHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0E7RUFDRSxxQkFBQTtFQUNBLFVBQUE7QUFBRjs7QUFHQTtFQUNFLGtCQUFBO0FBQUYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jb21tdW5pY2F0aW9uL21hbmFnZS1uZXdzL25ld3MtcmVwb3J0ZWQtcG9zdHMvbmV3cy1yZXBvcnRlZC1wb3N0cy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxudWx7XG4gIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbiAgcGFkZGluZzogMDtcbn1cblxuaW5wdXRbdHlwZT1cInJhZGlvXCJdIHtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xufVxuXG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NewsReportedPostsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-news-reported-posts',
templateUrl: './news-reported-posts.component.html',
styleUrls: ['./news-reported-posts.component.scss']
}]
}], function () { return [{ type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ 3:
/*!**********************!*\
!*** util (ignored) ***!
\**********************/
/*! no static exports found */
/***/ (function(module, exports) {
/* (ignored) */
/***/ }),
/***/ "3QNI":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/operations/report/list-cancellation/list-cancellation.component.ts ***!
\************************************************************************************************/
/*! exports provided: CustomDateParserFormatter, ListCancellationComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDateParserFormatter", function() { return CustomDateParserFormatter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListCancellationComponent", function() { return ListCancellationComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! file-saver */ "Iab2");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/constants */ "l207");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/report.service */ "Ecij");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function ListCancellationComponent_ng_template_6_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Please wait data is loading... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ListCancellationComponent_ng_template_6_div_21_div_1_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListCancellationComponent_ng_template_6_div_21_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const i_r9 = ctx.index; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r10.clearLabel(i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r8);
} }
function ListCancellationComponent_ng_template_6_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ListCancellationComponent_ng_template_6_div_21_div_1_Template, 5, 1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r4.buLabelArr);
} }
function ListCancellationComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h6", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "SELECT BUSINESS UNIT AND DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "ng-select", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ListCancellationComponent_ng_template_6_Template_ng_select_ngModelChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.bu = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ListCancellationComponent_ng_template_6_div_14_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListCancellationComponent_ng_template_6_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.clearAll(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListCancellationComponent_ng_template_6_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.addBu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, ListCancellationComponent_ng_template_6_div_21_Template, 2, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Booking Cancellation ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "ng-select", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ListCancellationComponent_ng_template_6_Template_ng_select_ngModelChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r16.cancelHours = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Start Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "input", 29, 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListCancellationComponent_ng_template_6_Template_input_click_35_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](36); return _r5.toggle(); })("ngModelChange", function ListCancellationComponent_ng_template_6_Template_input_ngModelChange_35_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.startdate = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "End Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "input", 29, 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListCancellationComponent_ng_template_6_Template_input_click_44_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](45); return _r6.toggle(); })("ngModelChange", function ListCancellationComponent_ng_template_6_Template_input_ngModelChange_44_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.enddate = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListCancellationComponent_ng_template_6_Template_button_click_47_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r21.downloadCsv(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, " Click to download File ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r1.allBuShift)("loading", ctx_r1.buLoader)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r1.bu);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.buLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.buLabelArr != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r1.cancelArr)("multiple", false)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r1.cancelHours);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.startdate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.enddate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !(ctx_r1.startdate && ctx_r1.enddate && ctx_r1.buArr.length > 0));
} }
function ListCancellationComponent_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.loadingMessage, " ");
} }
class CustomDateParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"] {
constructor() {
super(...arguments);
this.DELIMITER = '-';
}
parse(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1].padStart(10, '0'), 10),
year: parseInt(date[2], 10),
};
}
return null;
}
format(date) {
return date
? date.day +
this.DELIMITER +
parseInt(date.month.toString().padStart(10, '0'), 10) +
this.DELIMITER +
date.year
: '';
}
}
CustomDateParserFormatter.ɵfac = function CustomDateParserFormatter_Factory(t) { return ɵCustomDateParserFormatter_BaseFactory(t || CustomDateParserFormatter); };
CustomDateParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: CustomDateParserFormatter, factory: CustomDateParserFormatter.ɵfac });
const ɵCustomDateParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CustomDateParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CustomDateParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
}], null, null); })();
class ListCancellationComponent {
constructor(setupService, reportService, toastService) {
this.setupService = setupService;
this.reportService = reportService;
this.toastService = toastService;
this.buArr = [];
this.buLabelArr = [];
this.bu = null;
this.cancelArr = [];
this.cancelHours = null;
this.buLoader = true;
this.activeId = 1;
this.isLoader = false;
this.loadingMessage = src_app_constants__WEBPACK_IMPORTED_MODULE_5__["LOADING_MESSAGE"];
}
ngOnInit() {
this.getAllBu();
for (var i = 1; i < 25; i++) {
this.cancelArr.push(i.toString());
}
}
getAllBu() {
this.buLoader = true;
const buSubscribe = this.setupService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((val) => {
// Adding 'all' option to Select All Bu
val['data']['businessUnitList'].unshift({
_id: 'all',
orgName: 'Select All Business Units',
});
return val;
}))
.subscribe((res) => {
if (res['data']['businessUnitList']) {
this.allBuShift = res['data']['businessUnitList'];
}
else {
this.allBuShift = [];
}
}, (error) => {
this.allBuShift = [];
});
}
addBu() {
if (this.bu._id === 'all') {
//removing selected bu before selection of All bu
this.buArr = [];
this.buLabelArr = [];
//Adding all bu except 1st Select All option
this.allBuShift.forEach((el, i) => {
if (i > 0) {
this.buArr.push(el._id);
}
});
this.buLabelArr.push('All Business Units Selected');
}
else if (this.buArr.includes(this.bu._id)) {
this.toastService.info('Business unit already selected', 'Already Selected');
}
else {
this.buArr.push(this.bu._id);
this.buLabelArr.push(this.bu.orgName);
this.bu = null;
}
}
clearLabel(i) {
if (this.buLabelArr.includes('All Business Units Selected')) {
this.buArr = [];
this.buLabelArr = [];
}
else {
this.buArr.splice(i, 1);
this.buLabelArr.splice(i, 1);
}
}
downloadCsv() {
this.isLoader = true;
const filePayload = {
date: moment__WEBPACK_IMPORTED_MODULE_2__().format('MM-DD-YYYY') + ' 00:00:00 GMT+0800',
businessUnitId: this.buArr,
startDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
y: this.startdate.year,
M: this.startdate.month - 1,
D: this.startdate.day,
})
.format('MM-DD-YYYY') + ' 00:00:00 GMT+0800',
endDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
y: this.enddate.year,
M: this.enddate.month - 1,
D: this.enddate.day,
})
.format('MM-DD-YYYY') + ' 00:00:00 GMT+0800',
cancelHours: this.cancelHours,
};
this.reportService
.listOfCancellation(filePayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.isLoader = false; // Stop loader when complete
}))
.subscribe((res) => {
const filename = res['data']['csvLink']
.split('\\')
.pop()
.split('/')
.pop();
if (filename != null) {
this.downloadFile(filename);
}
}, (error) => {
this.toastService.error(`Something went wrong!`);
});
}
downloadFile(n) {
this.reportService
.downloadFile(n)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.bu = null;
this.buArr = [];
this.buLabelArr = [];
this.cancelHours = null;
this.startdate = null;
this.enddate = null;
}))
.subscribe((res) => {
if (res) {
file_saver__WEBPACK_IMPORTED_MODULE_3__["saveAs"](new Blob([res], { type: 'text/csv' }), n);
}
});
}
clearAllBu() {
this.buArr = [];
this.buLabelArr = [];
}
}
ListCancellationComponent.ɵfac = function ListCancellationComponent_Factory(t) { return new (t || ListCancellationComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__["ReportService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"])); };
ListCancellationComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ListCancellationComponent, selectors: [["app-list-cancellation"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
])], decls: 10, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["listNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["class", "loader", 4, "ngIf"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "row"], [1, "col-10"], [1, "col-md-10", "d-flex", "align-items-end"], [1, "form-group", "w-100"], [1, "font-weight-500"], [1, "field-mandatory"], ["bindLabel", "orgName", "placeholder", "Select Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], ["class", "text-danger", 4, "ngIf"], [1, "btn", "btn-danger", "ml-2", 3, "click"], [1, "btn", "btn-success", "ml-2", 3, "click"], [1, "row", "mt-3"], [1, "col-12"], [4, "ngIf"], [1, "col-md-3"], [1, "form-group"], ["placeholder", "Select Hours", "appendTo", "body", 1, "custom", 3, "items", "multiple", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], [1, "col-md-4"], [1, "input-group"], ["placeholder", "Select date", "ngbDatepicker", "", 1, "form-control", 3, "ngModel", "click", "ngModelChange"], ["d1", "ngbDatepicker"], ["d2", "ngbDatepicker"], [1, "card-footer"], [1, "btn", "btn-warning", 3, "disabled", "click"], [1, "text-danger"], ["class", "labels", 4, "ngFor", "ngForOf"], [1, "labels"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"]], template: function ListCancellationComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ListCancellationComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "LIST OF CANCELLATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ListCancellationComponent_ng_template_6_Template, 49, 17, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ListCancellationComponent_div_9_Template, 5, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLoader);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbInputDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"]], styles: [".btn-download[_ngcontent-%COMP%] {\n background-color: #f2c94d;\n padding: 8px 50px;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n margin: 4px 4px 0 0;\n display: inline-block;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n margin-left: 6px;\n vertical-align: middle;\n}\n\n.form-control[_ngcontent-%COMP%] {\n height: 36px;\n}\n\n.form-group[_ngcontent-%COMP%] {\n margin-bottom: 0;\n}\n\n.ml-2[_ngcontent-%COMP%] {\n margin-left: 0.5rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9yZXBvcnQvbGlzdC1jYW5jZWxsYXRpb24vbGlzdC1jYW5jZWxsYXRpb24uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBQTtFQUNBLGlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxtQkFBQTtFQUNBLHFCQUFBO0VBQ0EsOEJBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBQ0Y7O0FBQ0U7RUFDRSxrQkFBQTtBQUNKOztBQUVFO0VBQ0UsZUFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxzQkFBQTtBQUFKOztBQUlBO0VBQ0UsWUFBQTtBQURGOztBQUlBO0VBQ0UsZ0JBQUE7QUFERjs7QUFJQTtFQUNFLG1CQUFBO0FBREYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9vcGVyYXRpb25zL3JlcG9ydC9saXN0LWNhbmNlbGxhdGlvbi9saXN0LWNhbmNlbGxhdGlvbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5idG4tZG93bmxvYWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjJjOTRkO1xuICBwYWRkaW5nOiA4cHggNTBweDtcbn1cblxuLmxhYmVscyB7XG4gIHBhZGRpbmc6IDZweCA4cHg7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xuICBmb250LXNpemU6IDE0cHg7XG4gIG1hcmdpbjogNHB4IDRweCAwIDA7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgLnRleHQge1xuICAgIG1hcmdpbi1ib3R0b206IDJweDtcbiAgfVxuXG4gIC5idG4tY2xvc2Uge1xuICAgIGZvbnQtc2l6ZTogMTZweDtcbiAgICBwYWRkaW5nOiAycHg7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIG1hcmdpbi1sZWZ0OiA2cHg7XG4gICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgfVxufVxuXG4uZm9ybS1jb250cm9sIHtcbiAgaGVpZ2h0OiAzNnB4O1xufVxuXG4uZm9ybS1ncm91cCB7XG4gIG1hcmdpbi1ib3R0b206IDA7XG59XG5cbi5tbC0yIHtcbiAgbWFyZ2luLWxlZnQ6IDAuNXJlbTtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ListCancellationComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-list-cancellation',
templateUrl: './list-cancellation.component.html',
styleUrls: ['./list-cancellation.component.scss'],
providers: [
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"] }, { type: src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__["ReportService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "3UN2":
/*!**************************************************************************************************************************!*\
!*** ./src/app/users/pages/gamification/challenges/challenges-overview/manage-challenges/manage-challenges.component.ts ***!
\**************************************************************************************************************************/
/*! exports provided: ManageChallengesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageChallengesComponent", function() { return ManageChallengesComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
const _c0 = ["OpenQualifier"];
function ManageChallengesComponent_ng_option_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r12 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r12._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r12.orgName, " ");
} }
function ManageChallengesComponent_div_50_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "TEAMS ACHIVEMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ManageChallengesComponent_div_50_Template_input_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.onClickCheckBox("Team", $event); })("ngModelChange", function ManageChallengesComponent_div_50_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.managePTable.isTeam = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r3.managePTable.isTeam)("checked", ctx_r3.managePTable.isTeam);
} }
function ManageChallengesComponent_ng_option_89_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r16 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r16.name, " ");
} }
function ManageChallengesComponent_tr_136_span_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const challenge_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" (", challenge_r17 == null ? null : challenge_r17.count, ")");
} }
function ManageChallengesComponent_tr_136_span_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const challenge_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", challenge_r17 == null ? null : challenge_r17.count, "");
} }
function ManageChallengesComponent_tr_136_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, ManageChallengesComponent_tr_136_span_13_Template, 2, 1, "span", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ManageChallengesComponent_tr_136_span_14_Template, 2, 1, "span", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](17, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const challenge_r17 = ctx.$implicit;
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r5.challengeName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](challenge_r17.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](challenge_r17.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]((challenge_r17 == null ? null : challenge_r17.teamInfo == null ? null : challenge_r17.teamInfo.name) || "-");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](challenge_r17.businessUnit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", (challenge_r17 == null ? null : challenge_r17.rewardPoints) || "", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!(challenge_r17 == null ? null : challenge_r17.rewardPoints));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !(challenge_r17 == null ? null : challenge_r17.rewardPoints));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](17, 10, challenge_r17.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](challenge_r17.directRewardBy == null ? null : challenge_r17.directRewardBy.name);
} }
function ManageChallengesComponent_ng_template_144_ng_option_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r26 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r26.name, " ");
} }
function ManageChallengesComponent_ng_template_144_tr_73_Template(rf, ctx) { if (rf & 1) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_144_tr_73_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r29); const item_r27 = ctx.$implicit; const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r28.deleteDisqualifyUser(item_r27._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r27.userId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 3, item_r27.fromDate));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](8, 5, item_r27.toDate));
} }
const _c1 = function () { return { standalone: true }; };
function ManageChallengesComponent_ng_template_144_Template(rf, ctx) { if (rf & 1) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "DISQUALIFIER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_144_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r30.closeModal(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "label", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Select User");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "ng-select", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ManageChallengesComponent_ng_template_144_Template_ng_select_change_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r32.addDisqualifier($event); })("search", function ManageChallengesComponent_ng_template_144_Template_ng_select_search_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r33.onSeachUsers($event); })("scrollToEnd", function ManageChallengesComponent_ng_template_144_Template_ng_select_scrollToEnd_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r34.loadMoreUsers($event); })("clear", function ManageChallengesComponent_ng_template_144_Template_ng_select_clear_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r35.onClearUsers($event); })("ngModelChange", function ManageChallengesComponent_ng_template_144_Template_ng_select_ngModelChange_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r36.disqualifySelectUser = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ManageChallengesComponent_ng_template_144_ng_option_16_Template, 2, 2, "ng-option", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "label", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "From Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "input", 92, 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("dateSelect", function ManageChallengesComponent_ng_template_144_Template_input_dateSelect_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r37.onDateSelect($event, "disQualifierfrom"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_144_Template_button_click_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](25); return _r23.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "i", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "To Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "input", 92, 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("dateSelect", function ManageChallengesComponent_ng_template_144_Template_input_dateSelect_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r39.onDateSelect($event, "dsiQualifierTo"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_144_Template_button_click_36_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](34); return _r24.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](37, "i", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "button", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_144_Template_button_click_39_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r41.OncreateDisqualifier(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, "DISQUALIFIED USERS TABLE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "select", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](55, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](59, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "table", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "th", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](65, "USER NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "th", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](67, "FROM DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "th", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](69, "TO DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "th", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](71, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](73, ManageChallengesComponent_ng_template_144_tr_73_Template, 12, 7, "tr", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](78, "ngb-pagination");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r7.disqualifierCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("loading", ctx_r7.userDropDownLoading)("clearable", ctx_r7.disqualifySelectUser ? true : false)("ngModel", ctx_r7.disqualifySelectUser)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](17, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r7.challangeUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r7.disqualiferTable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate3"](" Showing ", ctx_r7.disqualiferTableLength > 1 ? 1 : 0, " to ", ctx_r7.disqualiferTableLength, " of ", ctx_r7.disqualiferTableLength, " entries ");
} }
function ManageChallengesComponent_ng_template_146_Template(rf, ctx) { if (rf & 1) {
const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h4", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Import Reward");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "i", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Download Sample ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_146_Template_button_click_7_listener() { const modal_r42 = ctx.$implicit; return modal_r42.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "span", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "form", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function ManageChallengesComponent_ng_template_146_Template_form_ngSubmit_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r44.uploadImportReward(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "input", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ManageChallengesComponent_ng_template_146_Template_input_change_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r46.importRewardfile($event.target.files); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_146_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r47.uploadImportReward(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, " Upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "button", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_146_Template_button_click_19_listener() { const modal_r42 = ctx.$implicit; return modal_r42.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r9.importRewardsForm);
} }
function ManageChallengesComponent_ng_template_148_tr_30_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Success ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r51 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r51 == null ? null : item_r51.success);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r51 == null ? null : item_r51.fail);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](9, 4, item_r51 == null ? null : item_r51.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r51 == null ? null : item_r51.failDetails);
} }
function ManageChallengesComponent_ng_template_148_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h4", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "REWARD LOGS LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_148_Template_button_click_3_listener() { const modal_r49 = ctx.$implicit; return modal_r49.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "span", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "REWARD LOGS LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "table", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, " STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, " UPDATED USERS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, " FAILED USERS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, " DATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, " ERROR FILE PATH ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, ManageChallengesComponent_ng_template_148_tr_30_Template, 12, 6, "tr", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "app-skliton-loading-table", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "button", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_ng_template_148_Template_button_click_33_listener() { const modal_r49 = ctx.$implicit; return modal_r49.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r11.logData);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx_r11.isTableLoading);
} }
class ManageChallengesComponent {
constructor(modelService, formBuilder, gamificationService, toastService, buUnit, tableService, notificationService, fb, http) {
this.modelService = modelService;
this.formBuilder = formBuilder;
this.gamificationService = gamificationService;
this.toastService = toastService;
this.buUnit = buUnit;
this.tableService = tableService;
this.notificationService = notificationService;
this.fb = fb;
this.http = http;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.action = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.selectUser = null;
this.manageId = null;
this.userDropDownLoading = false;
this.directRewardSelecteduser = null;
this.disqualifySelectUser = null;
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
this.userTableColumn = [
'',
'name',
'staffId',
'businessUnit',
'count',
'createdAt',
'directRewardBy',
];
this.tableQueryParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_8__["tableParam"];
this.manageChallengesTable = [];
this.fileToUpload = null;
this.userArray = [];
this.LogEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.errorLogPresent = true;
this.logData = [];
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
this.modelService.dismissAll();
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.modelService.dismissAll();
this.managePTable.page = 1;
this.tableQueryParams.start = 0;
this.tableQueryParams.search.value = input;
this.getManageChallange();
});
}
ngOnInit() {
this.challengeName = this.manageId.title || '';
this.tableQueryParams.draw = 0;
this.usersPTable = {
sortBy: 'createdBy',
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.disqualifierUsersPTable = {
challengeId: '',
data: [],
page: 1,
limit: 10,
};
this.managePTable = {
sortBy: 5,
sortWith: 'desc',
startDate: '',
endDate: '',
businessUnit: '',
individual: false,
isTeam: false,
challengeId: '',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.selectUserTable = {
page: 1,
challengeId: this.manageId.id,
q: '',
};
this.countPTable = {
startDate: '',
endDate: '',
businessUnit: '',
nonRewardPointSystemEnabled: false,
challengeId: '',
};
this.bussinesUnitplanPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
this.directinitForm();
this.managePTable.challengeId = this.manageId.id;
this.countPTable.challengeId = this.manageId.id;
this.countPTable.nonRewardPointSystemEnabled = this.manageId.pointSystem;
this.disqualifierUsersPTable.challengeId = this.manageId.id;
this.getManageChallange();
this.getCountOfChallanges();
this.getManageUsers();
this.loadParentBussinessUnit();
this.importRewardsForm = this.fb.group({
csv: [''],
});
this.importLogsPresent();
}
importLogsPresent() {
const subscribe = this.gamificationService
.importLogsPresent(this.managePTable.challengeId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.errorLogPresent = response.data;
}, (error) => {
this.errorLogPresent = false;
});
}
onCancelView() {
this.overViewEvent.emit(null);
}
openDisqualier() {
this.modelService.open(this.OpenQualifier, {
windowClass: 'modal-ui-fix right-align',
});
this.initForm();
this.getDisQualifierUsers();
}
closeModal() {
this.modelService.dismissAll();
}
onSeachUsers(value) {
// this.usersPTable.limit = 10;
this.selectUserTable.page = 0;
this.selectUserTable.q = value.term;
this.challangeUsers = [];
this.getManageUsers();
}
loadMoreUsers(value) {
// this.selectUserTable.limit = this.selectUserTable.limit + 10;
this.selectUserTable.page++;
this.getManageUsers();
}
onClearUsers(value) {
this.usersPTable.search = '';
this.getManageUsers();
this.challangeUsers = [];
this.usersPTable.data = [];
}
onSeachBu(value) {
this.bussinesUnitplanPTable.limit = 10;
this.bussinesUnitplanPTable.search = value.term;
this.loadParentBussinessUnit();
}
loadMoreBu(value) {
this.bussinesUnitplanPTable.limit = this.bussinesUnitplanPTable.limit + 10;
this.loadParentBussinessUnit();
}
onClearBu(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.bussinesUnitplanPTable.search = '';
this.getManageUsers();
this.parentBuUnitDropDown = [];
this.bussinesUnitplanPTable.data = [];
}
}
onSortData({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.managePTable.sortBy = column;
this.managePTable.sortWith = direction;
this.getManageChallange();
}
onClickCheckBox(key, event) {
var _a, _b, _c, _d;
if (key == "Team") {
this.managePTable.isTeam = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.checked;
this.getManageChallange((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.checked, this.managePTable.individual);
}
else {
this.managePTable.individual = (_c = event === null || event === void 0 ? void 0 : event.target) === null || _c === void 0 ? void 0 : _c.checked;
this.getManageChallange(this.managePTable.isTeam, (_d = event === null || event === void 0 ? void 0 : event.target) === null || _d === void 0 ? void 0 : _d.checked);
}
}
getManageChallange(isTeam = false, isIndividual = false) {
// const { data, ...rest } = this.managePTable;
this.tableQueryParams['challengeId'] = this.manageId.id;
this.tableQueryParams['startDate'] = this.managePTable.startDate;
this.tableQueryParams['endDate'] = this.managePTable.endDate;
this.tableQueryParams['businessUnit'] = this.managePTable.businessUnit;
this.tableQueryParams['nonRewardPointSystemEnabled'] =
this.manageId.pointSystem;
this.tableQueryParams['individual'] = this.managePTable.individual;
this.tableQueryParams['isTeam'] = this.managePTable.isTeam;
let tableCol = this.tableService.initializeTableParamsColums(this.userTableColumn, [0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6]) || [];
this.tableQueryParams.columns = tableCol;
this.tableQueryParams.draw = 1;
this.tableQueryParams.length = this.managePTable.limit;
this.tableQueryParams.order = [{ column: this.managePTable.sortBy, dir: this.managePTable.sortWith }];
const subscribe = this.gamificationService
.getManageChallenge(Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["getCleanObj"])(this.tableQueryParams))
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.manageChallengesTable = response.data || [];
this.managePTable.total = (response === null || response === void 0 ? void 0 : response.recordsFiltered) || 0;
});
}
onPageChangeUsers(page) {
this.managePTable.page = page;
this.tableQueryParams.start =
+page > 1 ? (page - 1) * this.managePTable.limit : 0;
this.getManageChallange();
}
onLimitChangeUsers() {
this.managePTable.page = 1;
this.tableQueryParams.start = 0;
this.tableQueryParams.length = 0;
this.getManageChallange();
}
loadParentBussinessUnit() {
const _a = this.bussinesUnitplanPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.buUnit
.getBusinessUnitData()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a;
// const { count, data } = response.data;
this.parentBuUnitDropDown = ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.planBussinessUnitId) || [];
}, (error) => {
this.parentBuUnitDropDown = [];
this.toastService.error('No list found');
});
}
onViewLogs() {
this.LogEvent.emit("");
}
getManageUsers() {
// const { data, ...rest } = this.usersPTable;
this.userDropDownLoading = true;
const subscribe = this.gamificationService
.getChallangesUsers(this.selectUserTable)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b, _c;
this.userDropDownLoading = false;
this.challangeUsers =
((_a = this.challangeUsers) === null || _a === void 0 ? void 0 : _a.length) > 0
? [...this.challangeUsers, ...(_b = response.data) === null || _b === void 0 ? void 0 : _b.items]
: (_c = response.data) === null || _c === void 0 ? void 0 : _c.items;
}, (error) => {
this.userDropDownLoading = false;
this.toastService.error('No list found');
});
}
getCountOfChallanges() {
const subscribe = this.gamificationService
.getCountOfChallenges(Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["getCleanObj"])(this.countPTable))
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe(({ data: { totalUsers, totalAmount } }) => {
this.totalAmount = totalAmount;
this.totalUsers = totalUsers;
}, (error) => {
this.toastService.error('No list found');
});
}
initForm() {
this.disqualifierCreateForm = this.formBuilder.group({
challengeId: [this.manageId.id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
fromDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
toDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
}
addDisqualifier(value) {
this.disqualifySelectUser = value;
// this.disqualifierCreateForm.patchValue({
// userId: value._id
// });
}
directinitForm() {
this.directRewardCreateForm = this.formBuilder.group({
challengeId: [this.manageId.id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
comment: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
points: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
}
onDateSelect(event, value) {
let year = event.year;
let month = event.month <= 9 ? '0' + event.month : event.month;
let day = event.day <= 9 ? '0' + event.day : event.day;
let finalDate = year + '-' + month + '-' + day;
let date = moment__WEBPACK_IMPORTED_MODULE_6__(finalDate).utc().format();
if (value === 'to') {
this.managePTable.endDate = finalDate;
this.countPTable.endDate = date;
}
if (value === 'from') {
this.managePTable.startDate = finalDate;
this.countPTable.startDate = date;
}
if (value === 'disQualifierfrom') {
this.disqualifierCreateForm.patchValue({
fromDate: date,
});
}
if (value === 'dsiQualifierTo') {
this.disqualifierCreateForm.patchValue({
toDate: date,
});
}
}
OncreateDisqualifier() {
var _a, _b;
if (this.disqualifierCreateForm.value.fromDate &&
this.disqualifierCreateForm.value.toDate && ((_a = this.disqualifySelectUser) === null || _a === void 0 ? void 0 : _a._id)) {
let payload = {
challengeId: this.disqualifierCreateForm.value.challengeId,
fromDate: this.disqualifierCreateForm.value.fromDate,
toDate: this.disqualifierCreateForm.value.toDate,
userId: (_b = this.disqualifySelectUser) === null || _b === void 0 ? void 0 : _b._id,
};
const subscribe = this.gamificationService
.createDisqualifyUser(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success('User added successfully.');
this.disqualifierCreateForm.patchValue({
fromDate: '',
toDate: '',
});
this.disqualifySelectUser = null;
this.getDisQualifierUsers();
}, (error) => {
var _a, _b;
this.toastService.error(((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) || ((_b = error === null || error === void 0 ? void 0 : error.error) === null || _b === void 0 ? void 0 : _b.message));
});
}
else {
this.toastService.error("Please select all the fields");
}
}
addReward() {
let data = {
challengeId: this.directRewardCreateForm.value.challengeId,
comment: this.directRewardCreateForm.value.comment,
points: this.directRewardCreateForm.value.points,
userId: this.directRewardSelecteduser._id,
};
const subscribe = this.gamificationService
.createDirectRewards(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success('Reward Successfully Added');
this.directRewardCreateForm.patchValue({
comment: '',
points: '',
});
this.directRewardSelecteduser = null;
this.getCountOfChallanges();
this.tableQueryParams.draw = 0;
this.getManageChallange();
}, (error) => {
var _a, _b, _c, _d, _e, _f, _g;
if ((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message) {
this.toastService.error(error.error.message);
}
if ((_c = (_b = error === null || error === void 0 ? void 0 : error.error) === null || _b === void 0 ? void 0 : _b.error) === null || _c === void 0 ? void 0 : _c.comment) {
this.toastService.error(error.error.error.comment);
}
if ((_e = (_d = error === null || error === void 0 ? void 0 : error.error) === null || _d === void 0 ? void 0 : _d.error) === null || _e === void 0 ? void 0 : _e.points) {
this.toastService.error(error.error.error.points);
}
if ((_g = (_f = error === null || error === void 0 ? void 0 : error.error) === null || _f === void 0 ? void 0 : _f.error) === null || _g === void 0 ? void 0 : _g.message) {
this.toastService.error(error.error.error.message);
}
});
}
getDisQualifierUsers() {
const _a = this.disqualifierUsersPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.gamificationService
.getDisqualifierUserData(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.disqualiferTable = response.data;
this.disqualiferTableLength = this.disqualiferTable.length;
}, (error) => {
this.toastService.error('No list found');
});
}
addBussinessUnit(id) {
this.managePTable.businessUnit = id;
this.countPTable.businessUnit = id;
}
onExport() {
let d = new Date();
const timeZone = d.getTimezoneOffset();
const _a = this.managePTable, { sortBy, sortWith, individual, isTeam, data, page, limit, search } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["sortBy", "sortWith", "individual", "isTeam", "data", "page", "limit", "search"]);
const exportData = Object.assign(Object.assign({}, rest), { timeZone });
if (this.managePTable.startDate &&
this.managePTable.endDate &&
this.managePTable.businessUnit) {
const subscribe = this.gamificationService
.exportManageChallenge(exportData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe(({ data }) => {
this.notificationService
.downloadUrl(data.csvLink)
.subscribe((content) => {
var a = document.createElement('a');
a.href = 'data:text/csv,' + content;
a.target = '_blank';
a.download = 'challenge_' + new Date() + '.csv';
document.body.appendChild(a);
a.click();
});
}, (error) => {
this.toastService.error('Error while exporting the file. Please Try again!');
});
}
else {
this.toastService.error('Please select all the fields');
}
}
onView() {
if (this.managePTable.startDate &&
this.managePTable.endDate &&
this.managePTable.businessUnit) {
this.tableQueryParams.draw = 0;
this.getManageChallange();
}
else {
this.toastService.error('Please select all the fields');
}
}
//method to delete disqualify user
deleteDisqualifyUser(id) {
if (id) {
const subscribe = this.gamificationService
.deleteDisqualifier(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success('User deleted successfully.');
this.getDisQualifierUsers();
}, (error) => {
var _a;
this.toastService.error(((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) || 'Something went wrong');
});
}
}
importDataFromCSV(csvText) {
const lines = csvText.split('\n');
let headers = lines[0].split(',');
headers = headers.map((header) => header.trim());
const result = [];
lines.forEach((line, index) => {
if (index !== 0 && line.trim() !== '') {
let data = {};
let cells = line.split(',');
cells.forEach((cell, index) => {
let header = headers[index];
data[header] = cell;
});
result.push(data);
}
});
return result;
}
importRewardfile(files) {
this.fileToUpload = files.item(0);
}
uploadImportReward() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const csvtoJSON = this.importDataFromCSV(yield this.fileToUpload.text());
let isErrorRow = false;
for (let i = 0; i < csvtoJSON.length; i++) {
const row = csvtoJSON[i];
if (!row['Staff Id'] || !row['Points'] || !row['comment']) {
isErrorRow = true;
break;
}
row['Staff Id'] = row['Staff Id'].trim();
row['Points'] = row['Points'].trim();
row['comment'] = row['comment'].trim();
}
if (isErrorRow) {
this.toastService.error('Import file is not having proper records, please verify again');
return;
}
const payload = {
challengeId: this.manageId.id,
updateChallenge: csvtoJSON,
};
this.gamificationService
.bulkUpdateDirectReward(payload)
.subscribe((res) => {
this.toastService.success(res.data);
this.modelService.dismissAll();
this.getManageChallange();
});
});
}
openModal(importQuota, from) {
if (from === 'errorLog') {
this.getLogData();
}
this.modelService
.open(importQuota, { ariaLabelledBy: 'modal-basic-title' })
.result.then((result) => {
this.closeResult = `Closed with: ${result}`;
}, (reason) => {
this.closeResult = `Dismissed`;
});
}
getLogData() {
const subscribe = this.gamificationService
.getLogData(this.managePTable.challengeId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.logData = response.data;
}, (error) => {
this.errorLogPresent = false;
});
}
}
ManageChallengesComponent.ɵfac = function ManageChallengesComponent_Factory(t) { return new (t || ManageChallengesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_10__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_11__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_13__["TableService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_14__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_15__["HttpClient"])); };
ManageChallengesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ManageChallengesComponent, selectors: [["manage-challenges"]], viewQuery: function ManageChallengesComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.OpenQualifier = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { manageId: "manageId" }, outputs: { overViewEvent: "overViewEvent", action: "action", LogEvent: "LogEvent" }, decls: 150, vars: 32, consts: [[1, "mb-3"], [1, "card-header", "flexi-header"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "manage-filter", "col-9"], [1, "form-group", "w-100"], ["for", "startDate", 1, "pb-2", "font-weight-bold"], [1, "input-group"], ["placeholder", "yyyy-mm-dd", "name", "dp", "ngbDatepicker", "", 1, "form-control", 2, "height", "35px", 3, "dateSelect"], ["d", "ngbDatepicker"], [1, "input-group-append"], ["type", "button", 1, "btn", "btn-outline-secondary", "calendar", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-calendar"], [1, "form-group", "w-100", "ml-4"], ["for", "endDate", 1, "pb-2", "font-weight-bold"], ["c", "ngbDatepicker"], [1, "col-md-4"], [1, "pb-2", "font-weight-bold"], ["bindLabel", "orgName", "placeholder", "Select Bussiness Unit", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], [3, "value", 4, "ngFor", "ngForOf"], [1, "filter-buttons"], [1, "btn", "btn-add", 3, "click"], [1, "filter-buttons", "ml-2"], [1, "btn", "preview-button", 3, "click"], [1, "card-header", "flexi-header", "p-3"], [1, "disqualifer-button"], [1, "btn", "btn-warning", "mt-2", 3, "click"], [1, "indivisual-checkbox"], [1, "form-check"], ["for", "exampleCheck1", 1, "form-check-label", "checkbox-label"], ["type", "checkbox", "id", "exampleCheck1", 1, "form-check-input", 3, "ngModel", "checked", "change", "ngModelChange"], ["class", "indivisual-checkbox", "style", "margin-right: 35px;", 4, "ngIf"], [1, "card", "table-card", "manage-filter", "p-3", "challenges-card"], [1, "card-body", "flexi-body", "w-50"], [1, "card", "table-card", "summary-card"], [1, "challenges-body-points"], [1, "ml-3"], [1, "mr-3"], [1, "challenges-body-staff"], [1, "align-self-center", "btn", "btn-warning", 3, "disabled", "click"], [1, "align-self-center", "btn", "btn-success", "mx-2", 3, "click"], [3, "formGroup"], [1, "card-body", "flexi-body", "manage-filter", 2, "height", "20vh"], [1, "col-4"], [1, "font-weight-bold"], ["bindLabel", "name", "placeholder", "Select Section", "appendTo", "body", 1, "custom", 3, "ngModel", "ngModelOptions", "multiple", "searchable", "clearable", "loading", "ngModelChange", "search", "scrollToEnd", "clear"], ["id", "exampleFormControlTextarea1", "placeholder", "Enter comments here", "formControlName", "comment", "rows", "3", 1, "form-control"], [1, "w-100", "row", "rewards-input"], [1, "col-8"], ["type", "number", "id", "exampleFormControlInput1", "formControlName", "points", "placeholder", "Enter reward points", 1, "form-control"], ["type", "submit", 1, "btn", "btn-success", 3, "click"], [1, "card", "table-card", "table-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "0", 3, "sort"], ["scope", "col", "sortable", "1", 3, "sort"], ["scope", "col", "sortable", "2", 3, "sort"], ["scope", "col"], ["scope", "col", "sortable", "5", 3, "sort"], [4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], ["OpenQualifier", ""], ["importReward", ""], ["importLogsReward", ""], [3, "value"], [1, "indivisual-checkbox", 2, "margin-right", "35px"], ["for", "teamCheck", 1, "form-check-label", "checkbox-label"], ["type", "checkbox", "id", "teamCheck", 1, "form-check-input", 3, "ngModel", "checked", "change", "ngModelChange"], [1, "text-center"], [4, "ngIf"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], ["type", "button", "aria-label", "Close", 1, "btn", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [1, "col-md-6", "pb-2"], [1, "pb-2", "mt-2", "font-weight-bold"], ["appendTo", "body", "bindLabel", "name", "placeholder", "Select Section", 1, "custom", 3, "multiple", "searchable", "loading", "clearable", "ngModel", "ngModelOptions", "change", "search", "scrollToEnd", "clear", "ngModelChange"], [1, "manage-filter"], [1, "form-group", "w-100", "p-3"], [1, "form-group", "date-container"], ["for", "exampleInputEmail1", 1, "pb-2", "font-weight-bold"], ["placeholder", "yyyy-mm-dd", "name", "dp", "ngbDatepicker", "", 1, "form-control", 2, "max-width", "240px", 3, "dateSelect"], [1, "add-button-container"], [1, "btn", "btn-warning", 3, "click"], [1, "mt-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], [1, "p-3"], [1, "btn", "btn-red-back", 3, "click"], [1, "modal-header"], ["id", "modal-basic-title", 1, "modal-title"], [1, "d-flex"], ["target", "_blank", "type", "button", "href", "./assets/importRewardsFormat.csv", 1, "btn", "btn-secondary", "btn-sm"], [1, "fa", "fa-download"], ["ngbAutofocus", "", "type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "form-group"], [1, "d-flex", "flex-wrap", 3, "formGroup", "ngSubmit"], [1, "bg-info", "header-buttons", "p-2", "mb-2", "rounded", "w-100"], ["type", "file", "name", "csv", "accept", ".csv", 1, "btn-info", "rounded", 3, "change"], ["type", "button", 1, "btn", "btn-success", "mx-auto", 3, "click"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-outline-dark", 3, "click"], [1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [3, "numberOfCols", "isTableLoading"]], template: function ManageChallengesComponent_Template(rf, ctx) { if (rf & 1) {
const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "FILTER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Start Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "input", 8, 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("dateSelect", function ManageChallengesComponent_Template_input_dateSelect_13_listener($event) { return ctx.onDateSelect($event, "from"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](14); return _r0.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "i", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "End Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 8, 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("dateSelect", function ManageChallengesComponent_Template_input_dateSelect_22_listener($event) { return ctx.onDateSelect($event, "to"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_Template_button_click_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](23); return _r1.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](26, "i", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ng-select", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ManageChallengesComponent_Template_ng_select_change_30_listener($event) { return ctx.addBussinessUnit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](31, ManageChallengesComponent_ng_option_31_Template, 2, 2, "ng-option", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_Template_button_click_33_listener() { return ctx.onView(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_Template_button_click_36_listener() { return ctx.onExport(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, " Export ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "CHALLENGE RESULT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_Template_button_click_43_listener() { return ctx.openDisqualier(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, " Disqualifier ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, "INDIVIDUAL ACHIVEMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ManageChallengesComponent_Template_input_change_49_listener($event) { return ctx.onClickCheckBox("Individual", $event); })("ngModelChange", function ManageChallengesComponent_Template_input_ngModelChange_49_listener($event) { return ctx.managePTable.individual = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](50, ManageChallengesComponent_div_50_Template, 5, 2, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57, "SUMMARY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](64, "Total points granted");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](69, "No of staff with points");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](75, "DIRECT REWARDS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "button", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_Template_button_click_77_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](149); return ctx.openModal(_r10, "errorLog"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](78, " Import Error Logs ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](79, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_Template_button_click_79_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](147); return ctx.openModal(_r8, "normal"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](80, " Import Rewards ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](81, "form", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](83, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](85, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](87, "Select User");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](88, "ng-select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ManageChallengesComponent_Template_ng_select_ngModelChange_88_listener($event) { return ctx.directRewardSelecteduser = $event; })("search", function ManageChallengesComponent_Template_ng_select_search_88_listener($event) { return ctx.onSeachUsers($event); })("scrollToEnd", function ManageChallengesComponent_Template_ng_select_scrollToEnd_88_listener($event) { return ctx.loadMoreUsers($event); })("clear", function ManageChallengesComponent_Template_ng_select_clear_88_listener($event) { return ctx.onClearUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](89, ManageChallengesComponent_ng_option_89_Template, 2, 2, "ng-option", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](90, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](91, "textarea", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](92, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](93, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](94, "input", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](95, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](96, "button", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageChallengesComponent_Template_button_click_96_listener() { return ctx.addReward(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](97, " Add rewards ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](98, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](99, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](100, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](101, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](102, "select", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ManageChallengesComponent_Template_select_change_102_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function ManageChallengesComponent_Template_select_ngModelChange_102_listener($event) { return ctx.managePTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](103, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](104, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](105, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](106, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](107, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](108, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](109, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](110, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](111, "option", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](112, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](113, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](114, "input", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ManageChallengesComponent_Template_input_search_114_listener($event) { return ctx.userssearchInput.next($event); })("keyup", function ManageChallengesComponent_Template_input_keyup_114_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function ManageChallengesComponent_Template_input_ngModelChange_114_listener($event) { return ctx.managePTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](115, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](116, "table", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](117, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](118, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](119, "th", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ManageChallengesComponent_Template_th_sort_119_listener($event) { return ctx.onSortData($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](120, "CHALLENGE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](121, "th", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ManageChallengesComponent_Template_th_sort_121_listener($event) { return ctx.onSortData($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](122, "STAFF NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](123, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ManageChallengesComponent_Template_th_sort_123_listener($event) { return ctx.onSortData($event, "staffId"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](124, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](125, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](126, "TEAMS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](127, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](128, "PARENT BUSSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](129, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](130, "POINTS EARNED");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](131, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ManageChallengesComponent_Template_th_sort_131_listener($event) { return ctx.onSortData($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](132, "REWARDED ON");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](133, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](134, "DIRECTLY REWARDED BY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](135, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](136, ManageChallengesComponent_tr_136_Template, 20, 12, "tr", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](137, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](138, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](139, "p", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](140, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](141, "b", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](142);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](143, "ngb-pagination", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ManageChallengesComponent_Template_ngb_pagination_pageChange_143_listener($event) { return ctx.managePTable.page = $event; })("pageChange", function ManageChallengesComponent_Template_ngb_pagination_pageChange_143_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](144, ManageChallengesComponent_ng_template_144_Template, 79, 18, "ng-template", null, 71, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](146, ManageChallengesComponent_ng_template_146_Template, 21, 1, "ng-template", null, 72, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](148, ManageChallengesComponent_ng_template_148_Template, 35, 3, "ng-template", null, 73, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.parentBuUnitDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.managePTable.individual)("checked", ctx.managePTable.individual);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx.manageId == null ? null : ctx.manageId.isTeam) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.totalAmount);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.totalUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx.errorLogPresent);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.directRewardCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.directRewardSelecteduser)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](31, _c1))("multiple", false)("searchable", true)("clearable", ctx.directRewardSelecteduser ? true : false)("loading", ctx.userDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.challangeUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.managePTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.managePTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.manageChallengesTable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.managePTable.total);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.managePTable.total)("page", ctx.managePTable.page)("maxSize", 5)("pageSize", ctx.managePTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgForm"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbInputDatepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__["NgSelectComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_18__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbPagination"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__["ɵr"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_19__["SklitonLoadingTableComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_17__["DatePipe"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.manage-filter[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: row;\n}.filter-buttons[_ngcontent-%COMP%] {\n margin-top: 35px;\n}.disqualifer-button[_ngcontent-%COMP%] {\n position: absolute;\n left: 200px;\n margin-top: -30px;\n}.challenges-body-points[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n border: 1px solid #e0e0e0;\n padding: 5px;\n border-radius: 5px;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n border-bottom: 0px;\n}.challenges-body-staff[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n border: 1px solid #e0e0e0;\n padding: 5px;\n border-radius: 5px;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}.rewards-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: row;\n margin-top: -40px;\n margin-bottom: -15px;\n}.rewards-input[_ngcontent-%COMP%] {\n width: 85%;\n position: relative;\n top: -30px;\n left: 20px;\n}.challenges-card[_ngcontent-%COMP%] {\n border-bottom: none;\n border-bottom-left-radius: 0px;\n border-bottom-right-radius: 0px;\n}.table-body[_ngcontent-%COMP%] {\n border-top: none;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}.summary-card[_ngcontent-%COMP%] {\n height: 21.3vh;\n padding: 15px 0 0 0;\n}.indivisual-checkbox[_ngcontent-%COMP%] {\n float: right;\n}.checkbox-label[_ngcontent-%COMP%] {\n color: white;\n position: relative;\n left: -35px;\n}.date-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}.add-button-container[_ngcontent-%COMP%] {\n float: right;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2dhbWlmaWNhdGlvbi9jaGFsbGVuZ2VzL2NoYWxsZW5nZXMtb3ZlcnZpZXcvbWFuYWdlLWNoYWxsZW5nZXMvbWFuYWdlLWNoYWxsZW5nZXMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsaURBQWlELGVBQWUsQ0FBQyxpQ0FBaUMsQ0FBQyx1REFBdUQsZUFBZSxDQUFDLDJEQUEyRCxRQUFRLENBQUMseUNBQXlDLENBQUMsc0JBQXNCLENBQUMsaUVBQWlFLHlDQUF5QyxDQUFDLGtFQUFrRSw0QkFBNEIsQ0FBQywyQkFBMkIsQ0FBQywrREFBK0QseUJBQXlCLENBQUMsd0JBQXdCLENBQUMseUVBQXlFLG9CQUFvQixDQUFDLDBFQUEwRSxDQUFDLG1EQUFtRCx3QkFBd0IsQ0FBQyx5Q0FBeUMsWUFBWSxDQUFDLGdDQUFnQyxVQUFVLENBQUMscUJBQXFCLENBQUMsaUJBQWlCLENBQUMscUJBQXFCLENBQUMsZUFBZSxDQUFDLGtCQUFrQixDQUFDLHNDQUFzQyxtQ0FBbUMsQ0FBQyxvREFBb0Qsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsZ0VBQWdFLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxvRUFBb0UsVUFBVSxDQUFDLGlEQUFpRCxXQUFXLENBQUMsK0VBQStFLE9BQU8sQ0FBQyxNQUFNLENBQUMsaUJBQWlCLENBQUMsa0JBQWtCLENBQUMsMkZBQTJGLGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLG9HQUFvRyx3QkFBd0IsQ0FBQyx3QkFBd0IsQ0FBQyxvSEFBb0gsYUFBYSxDQUFDLHVFQUF1RSxlQUFlLENBQUMsZ0JBQWdCLENBQUMsbUZBQW1GLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyxpRkFBaUYsY0FBYyxDQUFDLGlCQUFpQixDQUFDLHdCQUF3QixDQUFDLGlCQUFpQixDQUFDLGdCQUFnQixDQUFDLDZGQUE2RixjQUFjLENBQUMsZUFBZSxDQUFDLG1HQUFtRyx3QkFBd0IsQ0FBQyxtSEFBbUgsZ0JBQWdCLENBQUMsK0hBQStILGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyxpR0FBaUcsb0JBQW9CLENBQUMsZUFBZSxDQUFDLGdHQUFnRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsc0dBQXNHLHdCQUF3QixDQUFDLHFHQUFxRyw4QkFBOEIsQ0FBQyxpSEFBaUgsNkJBQTZCLENBQUMsaUJBQWlCLENBQUMsc0dBQXNHLDZCQUE2QixDQUFDLGtIQUFrSCxhQUFhLENBQUMsOEJBQThCLENBQUMsaUZBQWlGLG1CQUFtQixDQUFDLDZGQUE2RixtQkFBbUIsQ0FBQyx1RkFBdUYsT0FBTyxDQUFDLGtCQUFrQixDQUFDLGdCQUFnQixDQUFDLG1HQUFtRyxpQkFBaUIsQ0FBQyxjQUFjLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyw2Q0FBNkMsYUFBYSxDQUFDLDRCQUE0QixtQkFBbUIsQ0FBQyx3Q0FBd0MsbUJBQW1CLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyxpQkFBaUIsQ0FBQyx5Q0FBeUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLDZDQUE2QyxxQkFBcUIsQ0FBQyx1Q0FBdUMseUNBQXlDLENBQUMsa0JBQWtCLENBQUMsMEJBQTBCLENBQUMsbUJBQW1CLHFCQUFxQixDQUFDLHFCQUFxQixDQUFDLG1DQUFtQyxDQUFDLE1BQU0sQ0FBQyxvQ0FBb0MsUUFBUSxDQUFDLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyxtRkFBbUYsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsaUNBQWlDLFdBQVcsQ0FBQywyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQywyQkFBMkIsQ0FBQyxrQkFBa0IsQ0FBQyxpRkFBaUYsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsdUNBQXVDLDRCQUE0QixDQUFDLGVBQWUsQ0FBQyx1Q0FBdUMseUJBQXlCLENBQUMsZUFBZSxDQUFDLHlEQUF5RCx3QkFBZ0IsQ0FBaEIsZ0JBQWdCLENBQUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLHNCQUFzQixDQUFDLGNBQWMsQ0FBQyw0RUFBNEUsY0FBYyxDQUFDLDBFQUEwRSx3QkFBd0IsQ0FBQyx5S0FBeUssd0JBQXdCLENBQUMsZUFBZSxDQUFDLHVEQUF1RCxxQkFBcUIsQ0FBQyxzQkFBc0IsQ0FBQyxnQkFBZ0IsQ0FBQyxxS0FBcUssVUFBVSxDQUFDLHdCQUF3QixDQUFDLHVNQUF1TSxlQUFlLENBQUMsd0VBQXdFLHdCQUF3QixDQUFDLFVBQVUsQ0FBQywwRUFBMEUsVUFBVSxDQUFDLHVFQUF1RSxpQkFBaUIsQ0FBQyxtRkFBbUYsa0JBQWtCLENBQUMsY0FBYyxDQUFDLHFFQUFxRSxhQUFhLENBQUMsZUFBZSxDQUFDLGlCQUFpQixDQUFDLGlGQUFpRixnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsK0JBQStCLGFBQWEsQ0FBQyxnQkFBZ0IsQ0NFMTRPO0VBQ0ksYUFBQTtFQUNBLG1CQUFBO0FBQUosQ0FHQTtFQUNJLGdCQUFBO0FBQUosQ0FHQTtFQUNJLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLGlCQUFBO0FBQUosQ0FHQTtFQUNJLGFBQUE7RUFDQSxtQkFBQTtFQUNBLDhCQUFBO0VBQ0EseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSw4QkFBQTtFQUNBLCtCQUFBO0VBQ0Esa0JBQUE7QUFBSixDQUdBO0VBQ0ksYUFBQTtFQUNBLG1CQUFBO0VBQ0EsOEJBQUE7RUFDQSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLDJCQUFBO0VBQ0EsNEJBQUE7QUFBSixDQUdBO0VBQ0ksYUFBQTtFQUNBLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxvQkFBQTtBQUFKLENBR0E7RUFDSSxVQUFBO0VBQ0Esa0JBQUE7RUFDQSxVQUFBO0VBQ0EsVUFBQTtBQUFKLENBR0E7RUFDSSxtQkFBQTtFQUNBLDhCQUFBO0VBQ0EsK0JBQUE7QUFBSixDQUdBO0VBQ0ksZ0JBQUE7RUFDQSwyQkFBQTtFQUNBLDRCQUFBO0FBQUosQ0FHQTtFQUNJLGNBQUE7RUFDQSxtQkFBQTtBQUFKLENBR0E7RUFDSSxZQUFBO0FBQUosQ0FHQTtFQUNJLFlBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7QUFBSixDQUdBO0VBQ0ksYUFBQTtFQUNBLDhCQUFBO0FBQUosQ0FHQTtFQUNJLFlBQUE7QUFBSixDQUdBO0VBQ0ksb0NBQUE7RUFDQSx1QkFBQTtBQUFKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvZ2FtaWZpY2F0aW9uL2NoYWxsZW5nZXMvY2hhbGxlbmdlcy1vdmVydmlldy9tYW5hZ2UtY2hhbGxlbmdlcy9tYW5hZ2UtY2hhbGxlbmdlcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbi5tYW5hZ2UtZmlsdGVyIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG59XG5cbi5maWx0ZXItYnV0dG9ucyB7XG4gICAgbWFyZ2luLXRvcDogMzVweDtcbn1cblxuLmRpc3F1YWxpZmVyLWJ1dHRvbiB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGxlZnQ6IDIwMHB4O1xuICAgIG1hcmdpbi10b3A6IC0zMHB4O1xufVxuXG4uY2hhbGxlbmdlcy1ib2R5LXBvaW50cyB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjZTBlMGUwO1xuICAgIHBhZGRpbmc6IDVweDtcbiAgICBib3JkZXItcmFkaXVzOiA1cHg7XG4gICAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMHB4O1xuICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiAwcHg7XG4gICAgYm9yZGVyLWJvdHRvbTogMHB4O1xufVxuXG4uY2hhbGxlbmdlcy1ib2R5LXN0YWZmIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICNlMGUwZTA7XG4gICAgcGFkZGluZzogNXB4O1xuICAgIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiAwcHg7XG4gICAgYm9yZGVyLXRvcC1yaWdodC1yYWRpdXM6IDBweDtcbn1cblxuLnJld2FyZHMtY29udGFpbmVyIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAgbWFyZ2luLXRvcDogLTQwcHg7XG4gICAgbWFyZ2luLWJvdHRvbTogLTE1cHg7XG59XG5cbi5yZXdhcmRzLWlucHV0IHtcbiAgICB3aWR0aDogODUlO1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICB0b3A6IC0zMHB4O1xuICAgIGxlZnQ6IDIwcHg7XG59XG5cbi5jaGFsbGVuZ2VzLWNhcmQge1xuICAgIGJvcmRlci1ib3R0b206IG5vbmU7XG4gICAgYm9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogMHB4O1xuICAgIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiAwcHg7XG59XG5cbi50YWJsZS1ib2R5IHtcbiAgICBib3JkZXItdG9wOiBub25lO1xuICAgIGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDBweDtcbiAgICBib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogMHB4O1xufVxuXG4uc3VtbWFyeS1jYXJkIHtcbiAgICBoZWlnaHQ6IDIxLjN2aDtcbiAgICBwYWRkaW5nOiAxNXB4IDAgMCAwO1xufVxuXG4uaW5kaXZpc3VhbC1jaGVja2JveCB7XG4gICAgZmxvYXQ6IHJpZ2h0O1xufVxuXG4uY2hlY2tib3gtbGFiZWwge1xuICAgIGNvbG9yOiB3aGl0ZTtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgbGVmdDogLTM1cHg7XG59XG5cbi5kYXRlLWNvbnRhaW5lciB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5hZGQtYnV0dG9uLWNvbnRhaW5lciB7XG4gICAgZmxvYXQ6IHJpZ2h0O1xufVxuXG46Om5nLWRlZXAgLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWQge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICMyMTk2ZjMgIWltcG9ydGFudDtcbiAgICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ManageChallengesComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'manage-challenges',
templateUrl: './manage-challenges.component.html',
styleUrls: ['./manage-challenges.component.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_10__["GamificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_11__["ToastrService"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__["BussinessUnitService"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_13__["TableService"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_14__["NotificationService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_15__["HttpClient"] }]; }, { overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], action: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], manageId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__["SortableHeader"]]
}], LogEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], OpenQualifier: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['OpenQualifier', { static: true }]
}] }); })();
/***/ }),
/***/ "3rNv":
/*!********************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-news/manage-news.component.ts ***!
\********************************************************************************/
/*! exports provided: ManageNewsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageNewsComponent", function() { return ManageNewsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _news_overview_news_overview_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./news-overview/news-overview.component */ "w23u");
/* harmony import */ var _create_edit_managenews_create_edit_managenews_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./create-edit-managenews/create-edit-managenews.component */ "Wf/0");
/* harmony import */ var _news_reported_posts_news_reported_posts_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./news-reported-posts/news-reported-posts.component */ "2sya");
/* harmony import */ var _news_reported_comments_news_reported_comments_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./news-reported-comments/news-reported-comments.component */ "8yhi");
function ManageNewsComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "news-overview", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("EditEvent", function ManageNewsComponent_ng_template_6_Template_news_overview_EditEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.formEdit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageNewsComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-create-edit-managenews", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function ManageNewsComponent_ng_template_10_Template_app_create_edit_managenews_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("newsId", ctx_r2.boardId);
} }
function ManageNewsComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-news-reported-posts");
} }
function ManageNewsComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-news-reported-comments");
} }
class ManageNewsComponent {
constructor() {
this.isBoardEdited = false;
this.activeId = 1;
}
ngOnInit() {
}
overViewEvent(value) {
this.isBoardEdited = false;
this.boardId = null;
this.activeId = 1;
}
formEdit(id) {
this.activeId = 2;
this.isBoardEdited = true;
this.boardId = id;
}
}
ManageNewsComponent.ɵfac = function ManageNewsComponent_Factory(t) { return new (t || ManageNewsComponent)(); };
ManageNewsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageNewsComponent, selectors: [["manage-news"]], decls: 20, vars: 7, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "mb-3", "rounded", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], ["ngbNavLink", ""], [3, "ngbNavOutlet"], [3, "EditEvent"], [3, "newsId", "overViewEvent"]], template: function ManageNewsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ManageNewsComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageNewsComponent_Template_a_click_4_listener($event) { return ctx.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageNewsComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ManageNewsComponent_ng_template_10_Template, 1, 1, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "REPORTED POSTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ManageNewsComponent_ng_template_14_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "REPORTED COMMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ManageNewsComponent_ng_template_18_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.isBoardEdited ? "EDIT" : "CREATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _news_overview_news_overview_component__WEBPACK_IMPORTED_MODULE_2__["NewsOverviewComponent"], _create_edit_managenews_create_edit_managenews_component__WEBPACK_IMPORTED_MODULE_3__["CreateEditManagenewsComponent"], _news_reported_posts_news_reported_posts_component__WEBPACK_IMPORTED_MODULE_4__["NewsReportedPostsComponent"], _news_reported_comments_news_reported_comments_component__WEBPACK_IMPORTED_MODULE_5__["NewsReportedCommentsComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtbmV3cy9tYW5hZ2UtbmV3cy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHNCQUFBO0FBQ0Y7QUFBRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUVKO0FBQUk7RUFDRSxjQUFBO0FBRU47QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbWFuYWdlLW5ld3MvbWFuYWdlLW5ld3MuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2LXRhYnMge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAubmF2LWxpbmsge1xuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIHBhZGRpbmc6IDEycHggMjBweDtcbiAgICB0cmFuc2l0aW9uOiBjb2xvciAwLjJzO1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIH1cblxuICAgICYuYWN0aXZlIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgI2E0MjEzODtcbiAgICAgIGJvcmRlci1ib3R0b206IDNweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageNewsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'manage-news',
templateUrl: './manage-news.component.html',
styleUrls: ['./manage-news.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "3y/P":
/*!**************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/view-forms/view-forms.component.ts ***!
\**************************************************************************************/
/*! exports provided: ViewFormsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewFormsComponent", function() { return ViewFormsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function ViewFormsComponent_div_0_div_8_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "textarea", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewFormsComponent_div_0_div_8_div_3_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r25 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r25.value);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewFormsComponent_div_0_div_8_div_3_div_8_div_2_Template, 4, 1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r5.options);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r28 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r28.value, "");
} }
function ViewFormsComponent_div_0_div_8_div_3_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewFormsComponent_div_0_div_8_div_3_div_9_div_2_Template, 4, 1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r5.options);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_10_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r31 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r31.value, "");
} }
function ViewFormsComponent_div_0_div_8_div_3_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewFormsComponent_div_0_div_8_div_3_div_10_div_2_Template, 4, 1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r5.options);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r34 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r34.value);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewFormsComponent_div_0_div_8_div_3_div_11_div_2_Template, 4, 1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r5.options);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "textarea", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewFormsComponent_div_0_div_8_div_3_div_13_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r37 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r37.questionName);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewFormsComponent_div_0_div_8_div_3_div_13_div_2_Template, 4, 1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r5.profile);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "textarea", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewFormsComponent_div_0_div_8_div_3_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewFormsComponent_div_0_div_8_div_3_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "select", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "select", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Seconds");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "select", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewFormsComponent_div_0_div_8_div_3_div_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "select", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", true);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_18_span_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span");
} }
function ViewFormsComponent_div_0_div_8_div_3_div_18_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewFormsComponent_div_0_div_8_div_3_div_18_span_4_span_2_Template, 1, 0, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r40 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r40.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r40.length != 0);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewFormsComponent_div_0_div_8_div_3_div_18_span_4_Template, 3, 2, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r5 == null ? null : item_r5.options);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "ngb-rating", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("max", item_r5.value)("rate", 0)("readonly", true);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "select", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", true);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_21_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r45 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r45.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r45.value);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewFormsComponent_div_0_div_8_div_3_div_21_div_2_Template, 7, 2, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r5.options);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", item_r5.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewFormsComponent_div_0_div_8_div_3_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewFormsComponent_div_0_div_8_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "strong", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "p", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ViewFormsComponent_div_0_div_8_div_3_div_7_Template, 4, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ViewFormsComponent_div_0_div_8_div_3_div_8_Template, 4, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ViewFormsComponent_div_0_div_8_div_3_div_9_Template, 4, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ViewFormsComponent_div_0_div_8_div_3_div_10_Template, 4, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ViewFormsComponent_div_0_div_8_div_3_div_11_Template, 4, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, ViewFormsComponent_div_0_div_8_div_3_div_12_Template, 5, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ViewFormsComponent_div_0_div_8_div_3_div_13_Template, 4, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ViewFormsComponent_div_0_div_8_div_3_div_14_Template, 5, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ViewFormsComponent_div_0_div_8_div_3_div_15_Template, 5, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ViewFormsComponent_div_0_div_8_div_3_div_16_Template, 20, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, ViewFormsComponent_div_0_div_8_div_3_div_17_Template, 3, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ViewFormsComponent_div_0_div_8_div_3_div_18_Template, 6, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, ViewFormsComponent_div_0_div_8_div_3_div_19_Template, 4, 3, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, ViewFormsComponent_div_0_div_8_div_3_div_20_Template, 3, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, ViewFormsComponent_div_0_div_8_div_3_div_21_Template, 4, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, ViewFormsComponent_div_0_div_8_div_3_div_22_Template, 5, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, ViewFormsComponent_div_0_div_8_div_3_div_23_Template, 2, 0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = ctx.$implicit;
const i_r6 = ctx.index;
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r6 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](6, 19, item_r5 == null ? null : item_r5.question), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r5.type === 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r4.selectedModule == null ? null : ctx_r4.selectedModule.questions.length) == 0);
} }
function ViewFormsComponent_div_0_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ViewFormsComponent_div_0_div_8_div_3_Template, 24, 21, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const section_r2 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](section_r2.sectionName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", section_r2 == null ? null : section_r2.questions);
} }
function ViewFormsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewFormsComponent_div_0_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r49); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r48.back(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ViewFormsComponent_div_0_div_8_Template, 4, 2, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 2, ctx_r0.selectedModule == null ? null : ctx_r0.selectedModule.moduleName), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.selectedModule == null ? null : ctx_r0.selectedModule.sections);
} }
class ViewFormsComponent {
constructor(centralBuilderService) {
this.centralBuilderService = centralBuilderService;
this.isModuleView = false;
this.selectedModule = null;
this.formId = null;
this.editFormData = null;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
}
ngOnInit() {
// this.formId && this.getQuestions(this.formId);
}
ngOnChanges() {
var _a;
if (this.editFormData) {
this.selectedModule = ((_a = this.editFormData) === null || _a === void 0 ? void 0 : _a.moduleId) || null;
this.isModuleView = true;
}
}
back() {
this.overViewEvent.emit(null);
}
}
ViewFormsComponent.ɵfac = function ViewFormsComponent_Factory(t) { return new (t || ViewFormsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_1__["CentralBuilderService"])); };
ViewFormsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewFormsComponent, selectors: [["app-view-forms"]], inputs: { formId: "formId", editFormData: "editFormData" }, outputs: { overViewEvent: "overViewEvent" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 1, vars: 1, consts: [["class", "card", 4, "ngIf"], [1, "card"], [1, "card-header", "flexi-header", "pt-4"], [2, "display", "inline"], [1, "btn", "pull-right", 2, "color", "ivory", 3, "click"], [1, "card-body", 2, "word-break", "break-word", "padding", "10px"], [4, "ngFor", "ngForOf"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [1, "box", "d-flex", "flex-column"], [1, "d-flex", "align-items-center"], [1, "mr-1"], [1, "box-heading", 2, "word-break", "break-word"], [2, "margin", "10px 5px 10px 5px", 3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "box-body"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["rows", "5", "disabled", "", 1, "form-control", "notAllowed"], [1, "d-flex", "flex-column", "answers-options"], ["type", "checkbox", "disabled", "", 1, "disabled", "notAllowed"], ["for", "consolidated"], ["type", "radio", "disabled", "", 1, "disabled", "notAllowed"], ["rows", "3", "disabled", "", 1, "form-control", "notAllowed"], ["class", "form-group flex-fill", "style", "margin: 1rem 1rem; width: 44%", 4, "ngFor", "ngForOf"], ["for", "my-input"], ["id", "my-input", "type", "text", "disabled", "", 1, "form-control", "notAllowed"], ["type", "number", "disabled", "", 1, "form-control", "notAllowed"], [1, "form-group"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["id", "my-input", "type", "date", "disabled", "", 1, "form-control", "notAllowed"], ["name", "", "id", "", "disabled", "", 1, "form-control", "notAllowed"], [1, "form-control", "notAllowed"], ["id", "my-input", "type", "file", "disabled", "", 1, "form-control-file", "notAllowed"], [4, "ngIf"], [1, "d-flex", "notAllowed"], [3, "max", "rate", "readonly"], [1, "d-flex", "flex-wrap", 2, "gap", "10px"], [1, "thumbnail"], ["ng-if", "option.imageSrc", "crossorigin", "anonymous", 2, "height", "150px", 3, "src"], [1, "caption"], ["alt", "PhotoPic", "height", "250px", 3, "src"], [2, "text-align", "center"]], template: function ViewFormsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ViewFormsComponent_div_0_Template, 9, 4, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isModuleView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbRating"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["UpperCasePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_4__["SafeHtmlPipe"]], styles: [".disabled[_ngcontent-%COMP%] {\n height: 15px;\n width: 15px;\n margin-right: 10px;\n}\n\n.notAllowed[_ngcontent-%COMP%] {\n cursor: not-allowed;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL3ZpZXctZm9ybXMvdmlldy1mb3Jtcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLFlBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7QUFDSjs7QUFFQTtFQUNJLG1CQUFBO0FBQ0oiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jZW50cmFsLWJ1aWxkZXIvZm9ybXMvdmlldy1mb3Jtcy92aWV3LWZvcm1zLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmRpc2FibGVkIHtcbiAgICBoZWlnaHQ6IDE1cHg7XG4gICAgd2lkdGg6IDE1cHg7XG4gICAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xufVxuXG4ubm90QWxsb3dlZCB7XG4gICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewFormsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-view-forms',
templateUrl: './view-forms.component.html',
styleUrls: ['./view-forms.component.scss']
}]
}], function () { return [{ type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_1__["CentralBuilderService"] }]; }, { formId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], editFormData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ 4:
/*!************************!*\
!*** crypto (ignored) ***!
\************************/
/*! no static exports found */
/***/ (function(module, exports) {
/* (ignored) */
/***/ }),
/***/ "4AOM":
/*!************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/shift-scheme/shift-scheme-edit/shift-scheme-edit.component.ts ***!
\************************************************************************************************************/
/*! exports provided: ShiftSchemeEditComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShiftSchemeEditComponent", function() { return ShiftSchemeEditComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
function ShiftSchemeEditComponent_div_62_div_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Shift Extension Hours Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "label", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Normal");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "OT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r9.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r9.isEdit);
} }
function ShiftSchemeEditComponent_div_62_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "table", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "OPEN SHIFT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "ENABLED");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Basic Hours Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "input", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Normal");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "OT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, "Allow Shift Extension");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "td", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ShiftSchemeEditComponent_div_62_Template_input_change_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.changeToggle(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "label", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ShiftSchemeEditComponent_div_62_Template_input_change_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.changeToggle(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](36, ShiftSchemeEditComponent_div_62_div_36_Template, 11, 2, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r0.schemeShiftflexi);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r0.isDisable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r0.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r0.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r0.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.show);
} }
function ShiftSchemeEditComponent_div_63_div_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Shift Extension Hours Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "label", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Normal");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "input", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "OT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r13.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r13.isEdit);
} }
function ShiftSchemeEditComponent_div_63_div_51_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Shift Recall Hours Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Normal");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "OT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r14.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r14.isEdit);
} }
function ShiftSchemeEditComponent_div_63_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "table", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "ASSIGN SHIFT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "ENABLED");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Basic Hours Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Normal");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "OT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, "Allow Shift Extension");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "td", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ShiftSchemeEditComponent_div_63_Template_input_change_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.changeToggleAssign(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "label", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ShiftSchemeEditComponent_div_63_Template_input_change_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.changeToggleAssign(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](36, ShiftSchemeEditComponent_div_63_div_36_Template, 11, 2, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "Allow Shift Recall");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "td", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "input", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ShiftSchemeEditComponent_div_63_Template_input_change_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.changeToggleRecall(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "label", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "input", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ShiftSchemeEditComponent_div_63_Template_input_change_47_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.changeToggleRecall(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "label", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](49, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](51, ShiftSchemeEditComponent_div_63_div_51_Template, 11, 2, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.schemeShiftAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r1.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r1.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r1.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r1.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.showAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r1.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r1.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.showRecall);
} }
const _c0 = function () { return { standalone: true }; };
function ShiftSchemeEditComponent_div_66_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Select Weeks for Shift View");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "ng-select", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ShiftSchemeEditComponent_div_66_Template_ng_select_ngModelChange_8_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.selectedWeekForShiftView = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r2.weeksShiftsView)("disabled", ctx_r2.isDisable)("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r2.selectedWeekForShiftView)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](8, _c0));
} }
function ShiftSchemeEditComponent_div_67_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Require Minimum Interval between Shifts?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ShiftSchemeEditComponent_div_67_Template_input_change_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r23); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.changeSelectedHours(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ShiftSchemeEditComponent_div_67_Template_input_change_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r23); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r24.changeSelectedHours(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r3.isDisable)("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r3.isDisable)("value", false);
} }
function ShiftSchemeEditComponent_div_68_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Select Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "ng-select", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ShiftSchemeEditComponent_div_68_Template_ng_select_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r25.selectedWeekForShiftViewHours = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Select Minutes ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "ng-select", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ShiftSchemeEditComponent_div_68_Template_ng_select_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r27.selectedWeekForShiftViewMinutes = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r4.selectedHours)("disabled", ctx_r4.isDisable)("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r4.selectedWeekForShiftViewHours)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](16, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r4.selectedMinutes)("disabled", ctx_r4.isDisable)("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r4.selectedWeekForShiftViewMinutes)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](17, _c0));
} }
function ShiftSchemeEditComponent_div_70_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "table", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "NORMAL");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "OT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "OVERALL");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "DAY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "input", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](20, "input", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "input", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "WEEK");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "input", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](29, "input", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "input", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, "MONTH");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](36, "input", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](38, "input", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](40, "input", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r5.limitTimeTable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.isEdit);
} }
function ShiftSchemeEditComponent_div_71_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "table", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "ACTION ABOVE LIMIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "input", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Alert");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "td", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Disallow");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r6.actionLimits);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r6.isEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r6.isEdit);
} }
function ShiftSchemeEditComponent_button_73_Template(rf, ctx) { if (rf & 1) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeEditComponent_button_73_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r29); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r28.onSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Save scheme ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r7.isDisable);
} }
function ShiftSchemeEditComponent_button_74_Template(rf, ctx) { if (rf & 1) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeEditComponent_button_74_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r30.onSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Update scheme ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
class ShiftSchemeEditComponent {
constructor(buService, userService, toastService) {
this.buService = buService;
this.userService = userService;
this.toastService = toastService;
this.ChangeTabId = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.limit = false;
this.flex = false;
this.assgned = false;
this.show = false;
this.showshift = false;
this.CustomFieldDropDownLoading = false;
this.weeksShiftsView = [];
this.selectedHours = [];
this.selectedMinutes = [];
this.ShiftSchemeType = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
schemeType: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
});
this.schemeInfo = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
schemeName: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
schemeDesc: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
});
this.schemeShiftflexi = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
basicHours: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
allowShiftExt: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
shiftExtHr: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
});
this.schemeShiftAssign = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
assignBasic: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
assignAllowShiftExt: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
assignShiftExt: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
assignShiftRecall: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
assignShiftRecallHour: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
});
this.minimumInterVal = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
isShiftInterval: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
});
this.limitTimeTable = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
dayNormal: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
dayOt: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
dayOverall: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
weekNormal: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
weekOt: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
weekOverall: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
monthNormal: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
monthOt: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
monthOverall: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](),
});
this.actionLimits = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
alertDisallow: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](''),
});
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
}
ngOnInit() {
this.resetFrom();
this.buShiftIdScheme = this.buShiftID;
for (var i = 0; i < 13; i++) {
if (i < 10)
this.weeksShiftsView[i] = i + 1;
this.selectedHours[i] = i;
}
for (var i = 0; i < 4; i++) {
if (i == 0) {
this.selectedMinutes[i] = '00';
}
else {
this.selectedMinutes[i] = i * 15;
}
}
if (this.isView == 'view' || this.isView == 'edit') {
this.schemePrefill();
this.ShiftSchemeType.disable();
}
if (this.isView == 'view') {
this.schemeInfo.disable();
this.schemeShiftflexi.disable();
this.schemeShiftAssign.disable();
this.limitTimeTable.disable();
this.actionLimits.disable();
this.minimumInterVal.disable();
this.isDisable = true;
}
else {
this.isDisable = false;
}
}
getAdmins() {
this.CustomFieldDropDownLoading = true;
const _a = this.userPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.buService
.getAdminWithfilter()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.CustomFieldDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((res) => {
const { status, data } = res;
this.userPTable.data = data;
}, (error) => {
this.userPTable.data = [];
});
}
schemePrefill() {
if (this.schemeRecieveData['shiftSchemeType'] == 1) {
this.changeFlexiAndAssgnd(true, false);
}
else if (this.schemeRecieveData['shiftSchemeType'] == 2) {
this.changeFlexiAndAssgnd(false, true);
}
else {
this.changeFlexiAndAssgnd(true, true);
}
if (this.isView == 'view' || this.isView == 'edit') {
this.selectedWeekForShiftView = this.schemeRecieveData['noOfWeek'] || null;
this.showHours = this.schemeRecieveData['isShiftInterval'];
this.selectedWeekForShiftViewHours = this.schemeRecieveData['shiftIntervalHour'];
this.selectedWeekForShiftViewMinutes = this.schemeRecieveData['shiftIntervalMins'];
this.minimumInterVal.patchValue({
isShiftInterval: this.schemeRecieveData['isShiftInterval']
});
this.ShiftSchemeType.patchValue({
schemeType: this.schemeRecieveData['shiftSchemeType'] == '1' ? 'flexi' : this.schemeRecieveData['shiftSchemeType'] == '2' ? 'assigned' : 'both',
});
this.schemeInfo.patchValue({
schemeName: this.schemeRecieveData['schemeName'],
schemeDesc: this.schemeRecieveData['schemeDesc'],
});
if (this.schemeRecieveData['shiftSetup']['openShift']['ot'] == true) {
this.schemeShiftflexi.patchValue({
basicHours: 'false',
});
}
else {
this.schemeShiftflexi.patchValue({
basicHours: 'true',
});
}
if (this.schemeRecieveData['shiftSetup']['openShift']['allowShiftExtension']['no'] == true) {
this.schemeShiftflexi.patchValue({
allowShiftExt: 'false',
});
}
else {
this.schemeShiftflexi.patchValue({
allowShiftExt: 'true',
});
}
if (this.schemeRecieveData['shiftSetup']['openShift']['allowShiftExtension']['ot'] == true) {
this.schemeShiftflexi.patchValue({
shiftExtHr: 'false',
});
}
else {
this.schemeShiftflexi.patchValue({
shiftExtHr: 'true',
});
}
if (this.schemeRecieveData['shiftSchemeType'] == 2 ||
this.schemeRecieveData['shiftSchemeType'] == 3) {
if (this.schemeRecieveData['shiftSetup']['assignShift']['ot'] == true) {
this.schemeShiftAssign.patchValue({
assignBasic: 'false',
});
}
else {
this.schemeShiftAssign.patchValue({
assignBasic: 'true',
});
}
if (this.schemeRecieveData['shiftSetup']['assignShift']['allowShiftExtension']['no'] == true) {
this.schemeShiftAssign.patchValue({
assignAllowShiftExt: 'false',
});
}
else {
this.schemeShiftAssign.patchValue({
assignAllowShiftExt: 'true',
});
}
if (this.schemeRecieveData['shiftSetup']['assignShift']['allowShiftExtension']['ot'] == true) {
this.schemeShiftAssign.patchValue({
assignShiftExt: 'false',
});
}
else {
this.schemeShiftAssign.patchValue({
assignShiftExt: 'true',
});
}
if (this.schemeRecieveData['shiftSetup']['assignShift']['allowRecall']['no'] == true) {
this.schemeShiftAssign.patchValue({
assignShiftRecall: 'false',
});
}
else {
this.schemeShiftAssign.patchValue({
assignShiftRecall: 'true',
});
}
if (this.schemeRecieveData['shiftSetup']['assignShift']['allowRecall']['ot'] == true) {
this.schemeShiftAssign.patchValue({
assignShiftRecallHour: 'false',
});
}
else {
this.schemeShiftAssign.patchValue({
assignShiftRecallHour: 'true',
});
}
if (this.schemeRecieveData['shiftSetup']['assignShift']['allowShiftExtension']['yes'] == true) {
this.showAssign = true;
}
if (this.schemeRecieveData['shiftSetup']['assignShift']['allowRecall']['yes'] == true) {
this.showRecall = true;
}
}
this.limitTimeTable.patchValue({
dayNormal: this.schemeRecieveData['shiftSetup']['limits']['normalHr']['day']['value'],
dayOt: this.schemeRecieveData['shiftSetup']['limits']['otHr']['day']['value'],
dayOverall: this.schemeRecieveData['shiftSetup']['limits']['dayOverall'],
weekNormal: this.schemeRecieveData['shiftSetup']['limits']['normalHr']['week']['value'],
weekOt: this.schemeRecieveData['shiftSetup']['limits']['otHr']['week']['value'],
weekOverall: this.schemeRecieveData['shiftSetup']['limits']['weekOverall'],
monthNormal: this.schemeRecieveData['shiftSetup']['limits']['normalHr']['month']['value'],
monthOt: this.schemeRecieveData['shiftSetup']['limits']['otHr']['month']['value'],
monthOverall: this.schemeRecieveData['shiftSetup']['limits']['monthOverall'],
});
if (this.schemeRecieveData['shiftSetup']['limits']['normalHr']['day']['disallow'] == true) {
this.actionLimits.patchValue({
alertDisallow: 'false',
});
}
else {
this.actionLimits.patchValue({
alertDisallow: 'true',
});
}
if (this.schemeRecieveData['shiftSetup']['openShift']['allowShiftExtension']['yes'] == true) {
this.show = true;
}
}
}
onChangeLimit(val) {
this.limit = val;
}
changeFlexiAndAssgnd(flexVal, assgndVal) {
this.flex = flexVal;
this.assgned = assgndVal;
}
onSubmit() {
const companyID = localStorage.getItem('flexicompanyId');
if (this.ShiftSchemeType.get('schemeType').value == 'flexi') {
this.flexiData = {
businessUnitId: '5bd723a8c1e35a7a250d562a',
"companyID": companyID,
schemeName: this.schemeInfo.controls.schemeName.value,
schemeDesc: this.schemeInfo.controls.schemeDesc.value,
shiftSchemeType: this.ShiftSchemeType.controls.schemeType.value == 'flexi' ? 1 : 2,
"noOfWeek": this.selectedWeekForShiftView,
"isShiftInterval": this.showHours,
"shiftIntervalHour": this.selectedWeekForShiftViewHours,
"shiftIntervalMins": this.selectedWeekForShiftViewMinutes == '00' ? 0 : this.selectedWeekForShiftViewMinutes,
shiftSetup: {
openShift: {
enabled: false,
disabled: true,
normal: '',
ot: '',
allowShiftExtension: {
yes: '',
no: '',
normal: '',
ot: '',
},
},
limits: {
dayOverall: this.limitTimeTable.controls.dayOverall.value,
weekOverall: this.limitTimeTable.controls.weekOverall.value,
monthOverall: this.limitTimeTable.controls.monthOverall.value,
normalHr: {
day: {
value: this.limitTimeTable.controls.dayNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
week: {
value: this.limitTimeTable.controls.weekNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
month: {
value: this.limitTimeTable.controls.monthNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
},
otHr: {
day: {
value: this.limitTimeTable.controls.dayOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
week: {
value: this.limitTimeTable.controls.weekOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
month: {
value: this.limitTimeTable.controls.monthOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
},
},
},
};
if (this.schemeShiftflexi.controls.basicHours.value == 'true') {
this.flexiData.shiftSetup.openShift.normal = true;
this.flexiData.shiftSetup.openShift.ot = false;
}
else {
this.flexiData.shiftSetup.openShift.normal = false;
this.flexiData.shiftSetup.openShift.ot = true;
}
if (this.schemeShiftflexi.controls.allowShiftExt.value == 'true') {
this.flexiData.shiftSetup.openShift.allowShiftExtension.yes = true;
this.flexiData.shiftSetup.openShift.allowShiftExtension.no = false;
}
else {
this.flexiData.shiftSetup.openShift.allowShiftExtension.yes = false;
this.flexiData.shiftSetup.openShift.allowShiftExtension.no = true;
}
if (this.schemeShiftflexi.controls.shiftExtHr.value == 'true') {
this.flexiData.shiftSetup.openShift.allowShiftExtension.normal = true;
this.flexiData.shiftSetup.openShift.allowShiftExtension.ot = false;
}
else {
this.flexiData.shiftSetup.openShift.allowShiftExtension.normal = false;
this.flexiData.shiftSetup.openShift.allowShiftExtension.ot = true;
}
if (this.actionLimits.controls.alertDisallow.value == 'true') {
this.flexiData.shiftSetup.limits.normalHr.day.alert = true;
this.flexiData.shiftSetup.limits.normalHr.day.disallow = false;
this.flexiData.shiftSetup.limits.normalHr.week.alert = true;
this.flexiData.shiftSetup.limits.normalHr.week.disallow = false;
this.flexiData.shiftSetup.limits.normalHr.month.alert = true;
this.flexiData.shiftSetup.limits.normalHr.month.disallow = false;
}
else if (this.actionLimits.controls.alertDisallow.value == 'false') {
this.flexiData.shiftSetup.limits.normalHr.day.alert = false;
this.flexiData.shiftSetup.limits.normalHr.day.disallow = true;
this.flexiData.shiftSetup.limits.normalHr.week.alert = false;
this.flexiData.shiftSetup.limits.normalHr.week.disallow = true;
this.flexiData.shiftSetup.limits.normalHr.month.alert = false;
this.flexiData.shiftSetup.limits.normalHr.month.disallow = true;
}
if (this.actionLimits.controls.alertDisallow.value == 'true') {
this.flexiData.shiftSetup.limits.otHr.day.alert = true;
this.flexiData.shiftSetup.limits.otHr.day.disallow = false;
this.flexiData.shiftSetup.limits.otHr.week.alert = true;
this.flexiData.shiftSetup.limits.otHr.week.disallow = false;
this.flexiData.shiftSetup.limits.otHr.month.alert = true;
this.flexiData.shiftSetup.limits.otHr.month.disallow = false;
}
else if (this.actionLimits.controls.alertDisallow.value == 'false') {
this.flexiData.shiftSetup.limits.otHr.day.alert = false;
this.flexiData.shiftSetup.limits.otHr.day.disallow = true;
this.flexiData.shiftSetup.limits.otHr.week.alert = false;
this.flexiData.shiftSetup.limits.otHr.week.disallow = true;
this.flexiData.shiftSetup.limits.otHr.month.alert = false;
this.flexiData.shiftSetup.limits.otHr.month.disallow = true;
}
if (this.isView == 'edit') {
this.flexiData._id = this.schemeRecieveData['_id'];
this.flexiData.status = true;
}
this.FormData = this.flexiData;
}
else if (this.ShiftSchemeType.get('schemeType').value == 'assigned') {
this.assignedData = {
businessUnitId: '5bd723a8c1e35a7a250d562a',
"companyID": companyID,
schemeName: this.schemeInfo.controls.schemeName.value,
schemeDesc: this.schemeInfo.controls.schemeDesc.value,
shiftSchemeType: 2,
isShiftInterval: this.showHours,
shiftIntervalHour: this.selectedWeekForShiftViewHours,
shiftIntervalMins: this.selectedWeekForShiftViewMinutes == '00' ? 0 : this.selectedWeekForShiftViewMinutes,
"noOfWeek": this.selectedWeekForShiftView,
shiftSetup: {
assignShift: {
enabled: false,
disabled: true,
normal: '',
ot: '',
allowShiftExtension: {
yes: '',
no: '',
normal: '',
ot: '',
},
allowRecall: {
no: '',
normal: '',
ot: '',
yes: '',
},
},
openShift: {
enabled: false,
disabled: true,
normal: '',
ot: '',
allowShiftExtension: {
yes: '',
no: '',
normal: '',
ot: '',
},
},
limits: {
dayOverall: this.limitTimeTable.controls.dayOverall.value,
weekOverall: this.limitTimeTable.controls.weekOverall.value,
monthOverall: this.limitTimeTable.controls.monthOverall.value,
normalHr: {
day: {
value: this.limitTimeTable.controls.dayNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
week: {
value: this.limitTimeTable.controls.weekNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
month: {
value: this.limitTimeTable.controls.monthNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
},
otHr: {
day: {
value: this.limitTimeTable.controls.dayOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
week: {
value: this.limitTimeTable.controls.weekOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
month: {
value: this.limitTimeTable.controls.monthOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
},
},
},
};
if (this.schemeShiftAssign.controls.assignBasic.value == 'true') {
this.assignedData.shiftSetup.assignShift.normal = true;
this.assignedData.shiftSetup.assignShift.ot = false;
}
else {
this.assignedData.shiftSetup.assignShift.normal = false;
this.assignedData.shiftSetup.assignShift.ot = true;
}
if (this.schemeShiftAssign.controls.assignAllowShiftExt.value == 'true') {
this.assignedData.shiftSetup.assignShift.allowShiftExtension.yes = true;
this.assignedData.shiftSetup.assignShift.allowShiftExtension.no = false;
}
else {
this.assignedData.shiftSetup.assignShift.allowShiftExtension.yes =
false;
this.assignedData.shiftSetup.assignShift.allowShiftExtension.no = true;
}
if (this.schemeShiftAssign.controls.assignShiftExt.value == 'true') {
this.assignedData.shiftSetup.assignShift.allowShiftExtension.normal =
true;
this.assignedData.shiftSetup.assignShift.allowShiftExtension.ot = false;
}
else {
this.assignedData.shiftSetup.assignShift.allowShiftExtension.normal =
false;
this.assignedData.shiftSetup.assignShift.allowShiftExtension.ot = true;
}
if (this.schemeShiftAssign.controls.assignShiftRecall.value == 'true') {
this.assignedData.shiftSetup.assignShift.allowRecall.yes = true;
this.assignedData.shiftSetup.assignShift.allowRecall.no = false;
}
else {
this.assignedData.shiftSetup.assignShift.allowRecall.yes = false;
this.assignedData.shiftSetup.assignShift.allowRecall.no = true;
}
if (this.schemeShiftAssign.controls.assignShiftRecallHour.value == 'true') {
this.assignedData.shiftSetup.assignShift.allowRecall.normal = true;
this.assignedData.shiftSetup.assignShift.allowRecall.ot = false;
}
else {
this.assignedData.shiftSetup.assignShift.allowRecall.normal = false;
this.assignedData.shiftSetup.assignShift.allowRecall.ot = true;
}
if (this.actionLimits.controls.alertDisallow.value == 'true') {
this.assignedData.shiftSetup.limits.normalHr.day.alert = true;
this.assignedData.shiftSetup.limits.normalHr.day.disallow = false;
}
else if (this.actionLimits.controls.alertDisallow.value == 'false') {
this.assignedData.shiftSetup.limits.normalHr.day.alert = false;
this.assignedData.shiftSetup.limits.normalHr.day.disallow = true;
}
if (this.isView == 'edit') {
this.assignedData._id = this.schemeRecieveData['_id'];
this.assignedData.status = true;
}
this.FormData = this.assignedData;
}
else {
this.flexiAndAssigned = {
businessUnitId: '5bd723a8c1e35a7a250d562a',
"companyID": companyID,
schemeName: this.schemeInfo.controls.schemeName.value,
schemeDesc: this.schemeInfo.controls.schemeDesc.value,
shiftSchemeType: 3,
isShiftInterval: this.showHours,
shiftIntervalHour: this.selectedWeekForShiftViewHours,
shiftIntervalMins: this.selectedWeekForShiftViewMinutes == '00' ? 0 : this.selectedWeekForShiftViewMinutes,
"noOfWeek": this.selectedWeekForShiftView,
shiftSetup: {
assignShift: {
enabled: false,
disabled: true,
normal: '',
ot: '',
allowShiftExtension: {
yes: '',
no: '',
normal: '',
ot: '',
},
allowRecall: {
no: '',
normal: '',
ot: '',
yes: '',
},
},
openShift: {
enabled: false,
disabled: true,
normal: '',
ot: '',
allowShiftExtension: {
yes: '',
no: '',
normal: '',
ot: '',
},
},
limits: {
dayOverall: this.limitTimeTable.controls.dayOverall.value,
weekOverall: this.limitTimeTable.controls.weekOverall.value,
monthOverall: this.limitTimeTable.controls.monthOverall.value,
normalHr: {
day: {
value: this.limitTimeTable.controls.dayNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
week: {
value: this.limitTimeTable.controls.weekNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
month: {
value: this.limitTimeTable.controls.monthNormal.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
},
otHr: {
day: {
value: this.limitTimeTable.controls.dayOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
week: {
value: this.limitTimeTable.controls.weekOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
month: {
value: this.limitTimeTable.controls.monthOt.value,
no: '',
enable: '',
action: 'false',
alert: '',
disallow: '',
},
},
},
},
};
if (this.schemeShiftflexi.controls.basicHours.value == 'true') {
this.flexiAndAssigned.shiftSetup.openShift.normal = true;
this.flexiAndAssigned.shiftSetup.openShift.ot = false;
}
else {
this.flexiAndAssigned.shiftSetup.openShift.normal = false;
this.flexiAndAssigned.shiftSetup.openShift.ot = true;
}
if (this.schemeShiftflexi.controls.allowShiftExt.value == 'true') {
this.flexiAndAssigned.shiftSetup.openShift.allowShiftExtension.yes =
true;
this.flexiAndAssigned.shiftSetup.openShift.allowShiftExtension.no =
false;
}
else {
this.flexiAndAssigned.shiftSetup.openShift.allowShiftExtension.yes =
false;
this.flexiAndAssigned.shiftSetup.openShift.allowShiftExtension.no =
true;
}
if (this.schemeShiftflexi.controls.shiftExtHr.value == 'true') {
this.flexiAndAssigned.shiftSetup.openShift.allowShiftExtension.normal =
true;
this.flexiAndAssigned.shiftSetup.openShift.allowShiftExtension.ot =
false;
}
else {
this.flexiAndAssigned.shiftSetup.openShift.allowShiftExtension.normal =
false;
this.flexiAndAssigned.shiftSetup.openShift.allowShiftExtension.ot =
true;
}
if (this.schemeShiftAssign.controls.assignBasic.value == 'true') {
this.flexiAndAssigned.shiftSetup.assignShift.normal = true;
this.flexiAndAssigned.shiftSetup.assignShift.ot = false;
}
else {
this.flexiAndAssigned.shiftSetup.assignShift.normal = false;
this.flexiAndAssigned.shiftSetup.assignShift.ot = true;
}
if (this.schemeShiftAssign.controls.assignAllowShiftExt.value == 'true') {
this.flexiAndAssigned.shiftSetup.assignShift.allowShiftExtension.yes =
true;
this.flexiAndAssigned.shiftSetup.assignShift.allowShiftExtension.no =
false;
}
else {
this.flexiAndAssigned.shiftSetup.assignShift.allowShiftExtension.yes =
false;
this.flexiAndAssigned.shiftSetup.assignShift.allowShiftExtension.no =
true;
}
if (this.schemeShiftAssign.controls.assignShiftExt.value == 'true') {
this.flexiAndAssigned.shiftSetup.assignShift.allowShiftExtension.normal =
true;
this.flexiAndAssigned.shiftSetup.assignShift.allowShiftExtension.ot =
false;
}
else {
this.flexiAndAssigned.shiftSetup.assignShift.allowShiftExtension.normal =
false;
this.flexiAndAssigned.shiftSetup.assignShift.allowShiftExtension.ot =
true;
}
if (this.schemeShiftAssign.controls.assignShiftRecall.value == 'true') {
this.flexiAndAssigned.shiftSetup.assignShift.allowRecall.yes = true;
this.flexiAndAssigned.shiftSetup.assignShift.allowRecall.no = false;
}
else {
this.flexiAndAssigned.shiftSetup.assignShift.allowRecall.yes = false;
this.flexiAndAssigned.shiftSetup.assignShift.allowRecall.no = true;
}
if (this.schemeShiftAssign.controls.assignShiftRecallHour.value == 'true') {
this.flexiAndAssigned.shiftSetup.assignShift.allowRecall.normal = true;
this.flexiAndAssigned.shiftSetup.assignShift.allowRecall.ot = false;
}
else {
this.flexiAndAssigned.shiftSetup.assignShift.allowRecall.normal = false;
this.flexiAndAssigned.shiftSetup.assignShift.allowRecall.ot = true;
}
if (this.actionLimits.controls.alertDisallow.value == 'true') {
this.flexiAndAssigned.shiftSetup.limits.normalHr.day.alert = true;
this.flexiAndAssigned.shiftSetup.limits.normalHr.day.disallow = false;
this.flexiAndAssigned.shiftSetup.limits.normalHr.week.alert = true;
this.flexiAndAssigned.shiftSetup.limits.normalHr.week.disallow = false;
this.flexiAndAssigned.shiftSetup.limits.normalHr.month.alert = true;
this.flexiAndAssigned.shiftSetup.limits.normalHr.month.disallow = false;
}
else if (this.actionLimits.controls.alertDisallow.value == 'false') {
this.flexiAndAssigned.shiftSetup.limits.normalHr.day.alert = false;
this.flexiAndAssigned.shiftSetup.limits.normalHr.day.disallow = true;
this.flexiAndAssigned.shiftSetup.limits.normalHr.week.alert = false;
this.flexiAndAssigned.shiftSetup.limits.normalHr.week.disallow = true;
this.flexiAndAssigned.shiftSetup.limits.normalHr.month.alert = false;
this.flexiAndAssigned.shiftSetup.limits.normalHr.month.disallow = true;
}
if (this.actionLimits.controls.alertDisallow.value == 'true') {
this.flexiAndAssigned.shiftSetup.limits.otHr.day.alert = true;
this.flexiAndAssigned.shiftSetup.limits.otHr.day.disallow = false;
this.flexiAndAssigned.shiftSetup.limits.otHr.week.alert = true;
this.flexiAndAssigned.shiftSetup.limits.otHr.week.disallow = false;
this.flexiAndAssigned.shiftSetup.limits.otHr.month.alert = true;
this.flexiAndAssigned.shiftSetup.limits.otHr.month.disallow = false;
}
else if (this.actionLimits.controls.alertDisallow.value == 'false') {
this.flexiAndAssigned.shiftSetup.limits.otHr.day.alert = false;
this.flexiAndAssigned.shiftSetup.limits.otHr.day.disallow = true;
this.flexiAndAssigned.shiftSetup.limits.otHr.week.alert = false;
this.flexiAndAssigned.shiftSetup.limits.otHr.week.disallow = true;
this.flexiAndAssigned.shiftSetup.limits.otHr.month.alert = false;
this.flexiAndAssigned.shiftSetup.limits.otHr.month.disallow = true;
}
if (this.isView == 'edit') {
this.flexiAndAssigned._id = this.schemeRecieveData['_id'];
this.flexiAndAssigned.status = true;
}
this.FormData = this.flexiAndAssigned;
}
if (this.isView == 'edit') {
this.buService.updateScheme(this.FormData).subscribe((res) => {
this.toastService.info('Shift Scheme updated successfully');
this.ChangeTabId.emit(1);
});
}
else {
this.buService.createSchemeShift(this.FormData).subscribe((res) => {
this.toastService.info('Shift Scheme created successfully');
this.resetFrom();
this.ChangeTabId.emit(1);
});
}
}
resetFrom() {
this.ShiftSchemeType.reset();
this.schemeInfo.reset();
this.schemeShiftflexi.reset();
this.schemeShiftAssign.reset();
this.limitTimeTable.reset();
this.actionLimits.reset();
}
changeToggle(e) {
if (e == true) {
this.show = true;
}
else {
this.show = false;
}
}
changeToggleAssign(e) {
if (e == true) {
this.showAssign = true;
}
else {
this.showAssign = false;
}
}
changeSelectedHours(e) {
if (e == true) {
this.showHours = true;
}
else {
this.showHours = false;
}
}
changeToggleRecall(e) {
if (e == true) {
this.showRecall = true;
}
else {
this.showRecall = false;
}
}
}
ShiftSchemeEditComponent.ɵfac = function ShiftSchemeEditComponent_Factory(t) { return new (t || ShiftSchemeEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"])); };
ShiftSchemeEditComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ShiftSchemeEditComponent, selectors: [["app-shift-scheme-edit"]], inputs: { buShiftID: "buShiftID", schemeShiftID: "schemeShiftID", schemeRecieveData: "schemeRecieveData", isView: "isView", resetTab: "resetTab" }, outputs: { ChangeTabId: "ChangeTabId" }, decls: 75, vars: 19, consts: [[1, "card", "mb-3"], [1, "card-header", "flexi-header", "header"], [1, "card-body"], [1, "paddingDiv"], [3, "formGroup"], [1, "row"], [1, "lableMandatory"], [1, "red-heading"], [1, "field-mandatory", "mandatory_Star", "heading"], [1, "row", "mb-2"], [1, "col-md-6", "schemeType"], [1, "radioDiv"], ["type", "radio", "formControlName", "schemeType", "name", "schemeType", "value", "flexi", "id", "flexi", 3, "disabled", "click"], ["for", "flexi", 1, "radioLabel"], ["type", "radio", "formControlName", "schemeType", "name", "schemeType", "value", "assigned", "id", "assigned", 3, "disabled", "click"], ["for", "assigned", 1, "radioLabel"], ["type", "radio", "formControlName", "schemeType", "name", "schemeType", "value", "both", "id", "assnflex", 3, "disabled", "click"], ["for", "assnflex", 1, "radioLabel"], [1, "col-md-9", "schemeType"], [1, "radioDiv", "info"], [1, "field-mandatory", "mandatory_Star"], ["formControlName", "schemeName", "type", "text", 1, "form-control", 3, "disabled"], [1, "radioDiv", "info", "col-md-6"], ["formControlName", "schemeDesc", "cols", "5", 1, "form-control", 3, "disabled"], [1, ""], [1, "row", "mb-2", "paddingDiv"], [1, "btn", 3, "ngClass", "click"], [1, "btn", 2, "margin-left", "1rem", 3, "ngClass", "click"], ["class", "col-md-12", 4, "ngIf"], ["class", "row", 4, "ngIf"], [1, "buttons"], ["class", "btn btn-add p-2 m-1", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-add p-2 m-1", 3, "click", 4, "ngIf"], [1, "col-md-12"], [1, "table", "table-bordered"], [1, "col1Header"], [1, "col2Header"], ["type", "radio", "name", "basicHours", "value", "true", "formControlName", "basicHours", "id", "opennormalHrType", 3, "disabled"], ["for", "opennormalHrType", 1, "radioLabel"], ["type", "radio", "name", "basicHours", "value", "false", "formControlName", "basicHours", "id", "openotHrType", 3, "disabled"], ["for", "openotHrType", 1, "radioLabel"], [1, "col-md-3", "no-padding"], ["type", "radio", "name", "allowShiftExt", "value", "true", "formControlName", "allowShiftExt", "id", "openyesExt", 3, "disabled", "change"], ["for", "openyesExt", 1, "radioLabel"], ["type", "radio", "name", "allowShiftExt", "value", "false", "formControlName", "allowShiftExt", "id", "opennoExt", 3, "disabled", "change"], ["for", "opennoExt", 1, "radioLabel"], [1, "col-md-7", "no-padding", "radioDiv", "space-around"], [4, "ngIf"], ["type", "radio", "name", "shiftExtHr", "value", "true", "formControlName", "shiftExtHr", "id", "opennormalExt", 3, "disabled"], ["for", "opennormalExt", 1, "radioLabel"], ["type", "radio", "name", "shiftExtHr", "value", "false", "formControlName", "shiftExtHr", "id", "openotExt", 3, "disabled"], ["for", "openotExt", 1, "radioLabel"], ["type", "radio", "name", "assignBasic", "value", "true", "formControlName", "assignBasic", "id", "normalHrType", 3, "disabled"], ["for", "normalHrType", 1, "radioLabel"], ["type", "radio", "name", "assignBasic", "value", "false", "formControlName", "assignBasic", "id", "otHrType", 3, "disabled"], ["for", "otHrType", 1, "radioLabel"], ["type", "radio", "name", "assignAllowShiftExt", "value", "true", "formControlName", "assignAllowShiftExt", "id", "yesExt", 3, "disabled", "change"], ["for", "yesExt", 1, "radioLabel"], ["type", "radio", "name", "assignAllowShiftExt", "value", "false", "formControlName", "assignAllowShiftExt", "id", "noExt", 3, "disabled", "change"], ["for", "noExt", 1, "radioLabel"], ["type", "radio", "name", "assignShiftRecall", "value", "true", "formControlName", "assignShiftRecall", "id", "yesRecall", 3, "disabled", "change"], ["for", "yesRecall", 1, "radioLabel"], ["type", "radio", "name", "assignShiftRecall", "value", "false", "formControlName", "assignShiftRecall", "id", "noRecall", 3, "disabled", "change"], ["for", "noRecall", 1, "radioLabel"], ["type", "radio", "name", "assignShiftExt", "value", "true", "formControlName", "assignShiftExt", "id", "normalExt", 3, "disabled"], ["for", "normalExt", 1, "radioLabel"], ["type", "radio", "name", "assignShiftExt", "value", "false", "formControlName", "assignShiftExt", "id", "otExt", 3, "disabled"], ["for", "otExt", 1, "radioLabel"], ["type", "radio", "name", "assignShiftRecallHour", "value", "true", "formControlName", "assignShiftRecallHour", "id", "normalRecall", 3, "disabled"], ["for", "normalRecall", 1, "radioLabel"], ["type", "radio", "name", "assignShiftRecallHour", "value", "false", "formControlName", "assignShiftRecallHour", "id", "otRecall", 3, "disabled"], ["for", "otRecall", 1, "radioLabel"], [1, "col-md-4"], [1, "form-group"], [2, "margin-top", "5px"], ["placeholder", "Select Number of Weeks", "appendTo", "body", 1, "custom", 3, "items", "disabled", "virtualScroll", "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "ngModelChange"], ["type", "radio", "name", "isShiftInterval", "formControlName", "isShiftInterval", "id", "yesExt", 3, "disabled", "value", "change"], ["type", "radio", "name", "isShiftInterval", "formControlName", "isShiftInterval", "id", "noExt", 3, "disabled", "value", "change"], ["placeholder", "Hours", "appendTo", "body", 1, "custom", 3, "items", "disabled", "virtualScroll", "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "ngModelChange"], ["placeholder", "Minutes", "appendTo", "body", 1, "custom", 3, "items", "disabled", "virtualScroll", "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "ngModelChange"], ["type", "text", "formControlName", "dayNormal", 1, "form-control", "inputText", 3, "disabled"], ["type", "text", "formControlName", "dayOt", 1, "form-control", "inputText", 3, "disabled"], ["type", "text", "formControlName", "dayOverall", 1, "form-control", "inputText", 3, "disabled"], ["type", "text", "formControlName", "weekNormal", 1, "form-control", "inputText", 3, "disabled"], ["type", "text", "formControlName", "weekOt", 1, "form-control", "inputText", 3, "disabled"], ["type", "text", "formControlName", "weekOverall", 1, "form-control", "inputText", 3, "disabled"], ["type", "text", "formControlName", "monthNormal", 1, "form-control", "inputText", 3, "disabled"], ["type", "text", "formControlName", "monthOt", 1, "form-control", "inputText", 3, "disabled"], ["type", "text", "formControlName", "monthOverall", 1, "form-control", "inputText", 3, "disabled"], ["type", "radio", "name", "alertDisallow", "value", "true", "formControlName", "alertDisallow", "id", "alert", 3, "disabled"], ["for", "alert", 1, "radioLabel", "pl-4"], ["type", "radio", "name", "alertDisallow", "value", "false", "formControlName", "alertDisallow", "id", "disallow", 3, "disabled"], ["for", "disallow", 1, "radioLabel", "pl-4"], [1, "btn", "btn-add", "p-2", "m-1", 3, "disabled", "click"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"]], template: function ShiftSchemeEditComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "SELECT SHIFT SCHEME TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Choose Shift Scheme Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "span", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "input", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeEditComponent_Template_input_click_16_listener() { return ctx.changeFlexiAndAssgnd(true, false); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Flexi");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeEditComponent_Template_input_click_20_listener() { return ctx.changeFlexiAndAssgnd(false, true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Assigned");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeEditComponent_Template_input_click_24_listener() { return ctx.changeFlexiAndAssgnd(true, true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, "Assigned + Flexi");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, "SELECT SHIFT SCHEME TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "Shift Scheme Information");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42, "Shift Scheme Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](45, "input", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](49, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](52, "textarea", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeEditComponent_Template_button_click_57_listener() { return ctx.onChangeLimit(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](58, " Shift Setup ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeEditComponent_Template_button_click_59_listener() { return ctx.onChangeLimit(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](60, " Limit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](62, ShiftSchemeEditComponent_div_62_Template, 37, 6, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](63, ShiftSchemeEditComponent_div_63_Template, 52, 9, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](66, ShiftSchemeEditComponent_div_66_Template, 9, 9, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](67, ShiftSchemeEditComponent_div_67_Template, 15, 4, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](68, ShiftSchemeEditComponent_div_68_Template, 11, 18, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](70, ShiftSchemeEditComponent_div_70_Template, 41, 10, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](71, ShiftSchemeEditComponent_div_71_Template, 18, 3, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](73, ShiftSchemeEditComponent_button_73_Template, 2, 1, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](74, ShiftSchemeEditComponent_button_74_Template, 2, 0, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.ShiftSchemeType);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isDisable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isDisable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isDisable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.schemeInfo);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isDisable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isDisable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx.limit ? "btn-primary" : "btn-danger");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx.limit ? "btn-danger" : "btn-primary");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.limit && ctx.flex);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.limit && ctx.assgned);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.minimumInterVal);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showHours && !ctx.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isView != "view" && ctx.isView != "edit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isView == "edit");
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"]], styles: [".red-heading[_ngcontent-%COMP%] {\n padding: 0.5rem;\n background-color: #a42138;\n border-color: #d43f3a;\n color: #fff;\n border-radius: 4px;\n}\n\n.paddingDiv[_ngcontent-%COMP%] {\n padding-left: 1rem;\n}\n\n.schemeType[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.radioLabel[_ngcontent-%COMP%] {\n margin-left: 2px;\n margin-top: -2px;\n}\n\n.radioDiv[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.info[_ngcontent-%COMP%] {\n flex-direction: column;\n}\n\n.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] {\n background-color: #f2f2f2;\n}\n\n.col2Header[_ngcontent-%COMP%] {\n color: #979797;\n}\n\n.space-around[_ngcontent-%COMP%] {\n justify-content: space-around;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.inputText[_ngcontent-%COMP%] {\n width: 4rem;\n}\n\n.pl-4[_ngcontent-%COMP%] {\n padding-left: 4rem;\n}\n\n.mh-2[_ngcontent-%COMP%] {\n margin: 0 0.5rem;\n}\n\n.btn-danger[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.btn-primary[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.btn-add[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n\n.btn-warning[_ngcontent-%COMP%] {\n color: #fff;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-flex;\n border-radius: 4px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n}\n\n.lableMandatory[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.mandatory_Star[_ngcontent-%COMP%] {\n font-size: 25px;\n margin-left: 3px;\n}\n\n.heading[_ngcontent-%COMP%] {\n margin-top: -20px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9zaGlmdC1zY2hlbWUvc2hpZnQtc2NoZW1lLWVkaXQvc2hpZnQtc2NoZW1lLWVkaXQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxlQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtBQUNGOztBQUVBO0VBQ0Usa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUNGOztBQUVBO0VBQ0UsZ0JBQUE7RUFDQSxnQkFBQTtBQUNGOztBQUVBO0VBQ0UsYUFBQTtBQUNGOztBQUVBO0VBQ0Usc0JBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxjQUFBO0FBQ0Y7O0FBRUE7RUFDRSw2QkFBQTtBQUNGOztBQUVBO0VBQ0UsVUFBQTtBQUNGOztBQUVBO0VBQ0UsV0FBQTtBQUNGOztBQUVBO0VBQ0Usa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxlQUFBO0FBQ0Y7O0FBRUE7RUFDRSxlQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxlQUFBO0FBRUY7O0FBQUE7RUFDRSxXQUFBO0FBR0Y7O0FBQUE7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxvQkFBQTtFQUNBLGtCQUFBO0FBR0Y7O0FBREU7RUFDRSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7QUFHSjs7QUFDQTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtBQUVGOztBQUNBO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBRUY7O0FBQ0E7RUFDRSxpQkFBQTtBQUVGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9zaGlmdC1zY2hlbWUvc2hpZnQtc2NoZW1lLWVkaXQvc2hpZnQtc2NoZW1lLWVkaXQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIucmVkLWhlYWRpbmcge1xuICBwYWRkaW5nOiAwLjVyZW07XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGJvcmRlci1jb2xvcjogI2Q0M2YzYTtcbiAgY29sb3I6ICNmZmY7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn1cblxuLnBhZGRpbmdEaXYge1xuICBwYWRkaW5nLWxlZnQ6IDFyZW07XG59XG5cbi5zY2hlbWVUeXBlIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG4ucmFkaW9MYWJlbCB7XG4gIG1hcmdpbi1sZWZ0OiAycHg7XG4gIG1hcmdpbi10b3A6IC0ycHg7XG59XG5cbi5yYWRpb0RpdiB7XG4gIGRpc3BsYXk6IGZsZXg7XG59XG5cbi5pbmZvIHtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbn1cblxuLnRhYmxlIHRoZWFkIHRyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2YyZjJmMjtcbn1cblxuLmNvbDJIZWFkZXIge1xuICBjb2xvcjogIzk3OTc5Nztcbn1cblxuLnNwYWNlLWFyb3VuZCB7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xufVxuXG4ubm8tcGFkZGluZyB7XG4gIHBhZGRpbmc6IDA7XG59XG5cbi5pbnB1dFRleHQge1xuICB3aWR0aDogNHJlbTtcbn1cblxuLnBsLTQge1xuICBwYWRkaW5nLWxlZnQ6IDRyZW07XG59XG5cbi5taC0yIHtcbiAgbWFyZ2luOiAwIDAuNXJlbTtcbn1cblxuLmJ0bi1kYW5nZXIge1xuICBmb250LXNpemU6IDE2cHg7XG59XG5cbi5idG4tcHJpbWFyeSB7XG4gIGZvbnQtc2l6ZTogMTZweDtcbn1cbi5idG4tYWRkIHtcbiAgZm9udC1zaXplOiAxNnB4O1xufVxuLmJ0bi13YXJuaW5nIHtcbiAgY29sb3I6ICNmZmY7XG59XG5cbi5sYWJlbHMge1xuICBwYWRkaW5nOiA2cHggOHB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuXG4gIC5idG4tY2xvc2Uge1xuICAgIGZvbnQtc2l6ZTogMTZweDtcbiAgICBwYWRkaW5nOiAycHg7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICB9XG59XG5cbi5sYWJsZU1hbmRhdG9yeXtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbn1cblxuLm1hbmRhdG9yeV9TdGFye1xuICBmb250LXNpemU6IDI1cHg7XG4gIG1hcmdpbi1sZWZ0OiAzcHg7XG5cbn1cbi5oZWFkaW5ne1xuICBtYXJnaW4tdG9wOiAtMjBweDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ShiftSchemeEditComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-shift-scheme-edit',
templateUrl: './shift-scheme-edit.component.html',
styleUrls: ['./shift-scheme-edit.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }]; }, { ChangeTabId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], buShiftID: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], schemeShiftID: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], schemeRecieveData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], isView: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], resetTab: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}] }); })();
/***/ }),
/***/ "4S5v":
/*!****************************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-scheme/leave-overview/leave-overview.component.ts ***!
\****************************************************************************************************/
/*! exports provided: LeaveOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LeaveOverviewComponent", function() { return LeaveOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function LeaveOverviewComponent_ng_template_5_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div");
} }
function LeaveOverviewComponent_ng_template_5_ng_template_1_th_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveOverviewComponent_ng_template_5_ng_template_1_tr_15_td_10_button_4_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_ng_template_5_ng_template_1_tr_15_td_10_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r18.switchToEditDeletePage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveOverviewComponent_ng_template_5_ng_template_1_tr_15_td_10_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_ng_template_5_ng_template_1_tr_15_td_10_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r20.switchToEditDeletePage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, LeaveOverviewComponent_ng_template_5_ng_template_1_tr_15_td_10_button_4_Template, 2, 0, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leave_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r16.predefineLeaveType.includes(leave_r15.name));
} }
function LeaveOverviewComponent_ng_template_5_ng_template_1_tr_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, LeaveOverviewComponent_ng_template_5_ng_template_1_tr_15_td_10_Template, 5, 1, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leave_r15 = ctx.$implicit;
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](leave_r15.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", leave_r15.isQuotaExceed ? "Allowed to exceed quota" : "Cannot exceed quota", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", leave_r15.createdBy.name, ", ", leave_r15.createdAt, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", leave_r15.updatedBy.name, ", ", leave_r15.updatedAt, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r14.leavetypeAccess);
} }
function LeaveOverviewComponent_ng_template_5_ng_template_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "LEAVE TYPE NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "EXCEED");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "CREATED BY AND DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "LAST MODIFIED BY AND DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, LeaveOverviewComponent_ng_template_5_ng_template_1_th_13_Template, 2, 0, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, LeaveOverviewComponent_ng_template_5_ng_template_1_tr_15_Template, 11, 7, "tr", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.leavetypeAccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r9.getLeaveTypeList);
} }
function LeaveOverviewComponent_ng_template_5_ng_template_3_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Leave Types created yet! ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveOverviewComponent_ng_template_5_ng_template_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, LeaveOverviewComponent_ng_template_5_ng_template_3_div_0_Template, 2, 0, "div", 20);
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r11.isLeaveTypeAvailable === "no");
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function LeaveOverviewComponent_ng_template_5_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "ngx-skeleton-loader", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function LeaveOverviewComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, LeaveOverviewComponent_ng_template_5_div_0_Template, 1, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveOverviewComponent_ng_template_5_ng_template_1_Template, 16, 2, "ng-template", null, 10, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeaveOverviewComponent_ng_template_5_ng_template_3_Template, 1, 1, "ng-template", null, 11, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LeaveOverviewComponent_ng_template_5_div_5_Template, 3, 2, "div", 12);
} if (rf & 2) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](4);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.getLeaveTypeList.length !== 0)("ngIfThen", _r8)("ngIfElse", _r10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.leaveTypeListLoader);
} }
function LeaveOverviewComponent_li_6_ng_template_3_div_7_tr_11_button_10_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_li_6_ng_template_3_div_7_tr_11_button_10_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r32); const leave_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); ctx_r31.deleteLeaveTypeId = leave_r29._id; return ctx_r31.openDeletemodal(leave_r29.name); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveOverviewComponent_li_6_ng_template_3_div_7_tr_11_Template(rf, ctx) { if (rf & 1) {
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_li_6_ng_template_3_div_7_tr_11_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r35); const leave_r29 = ctx.$implicit; const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](11); return ctx_r34.editLeaveType(true, leave_r29, _r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, LeaveOverviewComponent_li_6_ng_template_3_div_7_tr_11_button_10_Template, 2, 0, "button", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leave_r29 = ctx.$implicit;
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](leave_r29.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](leave_r29.isQuotaExceed ? "YES" : "NO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r28.predefineLeaveType.includes(leave_r29.name));
} }
function LeaveOverviewComponent_li_6_ng_template_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Leave Types");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Can Exceed Quota ?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, LeaveOverviewComponent_li_6_ng_template_3_div_7_tr_11_Template, 11, 3, "tr", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r25.getLeaveTypeList);
} }
function LeaveOverviewComponent_li_6_ng_template_3_ng_template_8_tr_10_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveOverviewComponent_li_6_ng_template_3_ng_template_8_tr_10_Template_input_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r40); const leave_r37 = ctx.$implicit; return leave_r37.isQuotaExceed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveOverviewComponent_li_6_ng_template_3_ng_template_8_tr_10_Template_input_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r40); const leave_r37 = ctx.$implicit; return leave_r37.isQuotaExceed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_li_6_ng_template_3_ng_template_8_tr_10_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r40); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r42.createLeave(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leave_r37 = ctx.$implicit;
const i_r38 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](leave_r37.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", leave_r37.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", "exceedcheck" + i_r38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leave_r37.isQuotaExceed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", "exceedcheck" + i_r38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", leave_r37.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", "exceedcheck" + i_r38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", leave_r37.isQuotaExceed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", "exceedcheck" + i_r38);
} }
function LeaveOverviewComponent_li_6_ng_template_3_ng_template_8_Template(rf, ctx) { if (rf & 1) {
const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Leave Types");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Can Exceed Quota ?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, LeaveOverviewComponent_li_6_ng_template_3_ng_template_8_tr_10_Template, 16, 9, "tr", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_li_6_ng_template_3_ng_template_8_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r44); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r43.createLeave(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Create ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r27.predefineLeaveTypeList);
} }
function LeaveOverviewComponent_li_6_ng_template_3_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "SETUP LEAVE GROUPINGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_li_6_ng_template_3_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](9); return ctx_r45.open(_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Add New Leave Type ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, LeaveOverviewComponent_li_6_ng_template_3_div_7_Template, 12, 1, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, LeaveOverviewComponent_li_6_ng_template_3_ng_template_8_Template, 14, 1, "ng-template", null, 32, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](9);
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r24.getLeaveTypeList && ctx_r24.getLeaveTypeList.length !== 0)("ngIfElse", _r26);
} }
function LeaveOverviewComponent_li_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Create/Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeaveOverviewComponent_li_6_ng_template_3_Template, 10, 2, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
} }
function LeaveOverviewComponent_ng_template_8_span_30_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 61);
} }
function LeaveOverviewComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Add Leave Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_ng_template_8_Template_button_click_3_listener() { const modal_r47 = ctx.$implicit; return modal_r47.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Leave Type Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveOverviewComponent_ng_template_8_Template_input_ngModelChange_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r50.addNewLeaveType.name = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Can Exceed Quota?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveOverviewComponent_ng_template_8_Template_input_ngModelChange_18_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r52.addNewLeaveType.isQuotaExceed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveOverviewComponent_ng_template_8_Template_input_ngModelChange_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r53.addNewLeaveType.isQuotaExceed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_ng_template_8_Template_button_click_26_listener() { const modal_r47 = ctx.$implicit; return modal_r47.close("Save click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_ng_template_8_Template_button_click_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r55.submitAddNewLeaveType(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](30, LeaveOverviewComponent_ng_template_8_span_30_Template, 1, 0, "span", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r4.addNewLeaveType.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r4.addNewLeaveType.isQuotaExceed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r4.addNewLeaveType.isQuotaExceed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r4.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.loader);
} }
function LeaveOverviewComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Edit Leave Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_ng_template_10_Template_button_click_3_listener() { const modal_r56 = ctx.$implicit; return modal_r56.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Leave Type Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "input", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveOverviewComponent_ng_template_10_Template_input_ngModelChange_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r59); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r58.editLeaveTypeDetail.name = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Can Exceed Quota?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "input", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveOverviewComponent_ng_template_10_Template_input_ngModelChange_18_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r59); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r60.editLeaveTypeDetail.isQuotaExceed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "input", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function LeaveOverviewComponent_ng_template_10_Template_input_ngModelChange_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r59); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r61.editLeaveTypeDetail.isQuotaExceed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_ng_template_10_Template_button_click_26_listener() { const modal_r56 = ctx.$implicit; return modal_r56.close("Save click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveOverviewComponent_ng_template_10_Template_button_click_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r59); const modal_r56 = ctx.$implicit; const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r63.submitEditLeaveType(); return modal_r56.close("Save click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r6.editLeaveTypeDetail.name)("disabled", ctx_r6.predefineLeaveType.includes(ctx_r6.editLeaveTypeDetail.name));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", ctx_r6.editLeaveTypeDetail.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true)("ngModel", ctx_r6.editLeaveTypeDetail.isQuotaExceed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", ctx_r6.editLeaveTypeDetail.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false)("ngModel", ctx_r6.editLeaveTypeDetail.isQuotaExceed);
} }
class LeaveOverviewComponent {
constructor(_usersService, toastService, roleService, modalService) {
this._usersService = _usersService;
this.toastService = toastService;
this.roleService = roleService;
this.modalService = modalService;
this.active = 1;
this.predefineLeaveTypeList = [
{
name: 'Annual Leave',
isQuotaExceed: false,
type: 'default',
},
{
name: 'No Pay Leave',
isQuotaExceed: false,
type: 'default',
},
{
name: 'Off-in-Lieu',
isQuotaExceed: false,
type: 'default',
},
];
this.editLeaveTypeDetail = {
_id: '',
name: '',
isQuotaExceed: false,
type: 'other',
};
this.addNewLeaveType = { name: '', isQuotaExceed: false, type: 'other' };
this.predefineLeaveType = ['Annual Leave', 'No Pay Leave', 'Off-in-Lieu'];
this.getLeaveTypeList = [];
this.deleteLeaveTypeId = '';
this.leaveTypeName = '';
this.isLeaveTypeAvailable = '';
this.isAddLeaveModalOpen = false;
this.isDeleteModalOpen = false;
this.isEditModalOpen = false;
this.leaveTypeListLoader = true;
this.loader = false;
this.leavetypeAccess = false;
}
ngOnInit() {
this.getLeaveTypeData();
const rolePrivileges = this.roleService
.getNewUserPrivilege()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
rolePrivileges.unsubscribe();
}))
.subscribe((res) => {
this.leavetypeAccess = res.privileges.hasOwnProperty('leaveSchemeLeaveType')
? res.privileges.leaveSchemeLeaveType
: false;
});
}
getLeaveTypeData() {
const subscribe = this._usersService
.getLeaveType()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
this.leaveTypeListLoader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
if (response.success) {
this.getLeaveTypeList = response.data;
this.getLeaveTypeList.forEach((leave) => {
leave.createdAt = moment__WEBPACK_IMPORTED_MODULE_2__(leave.createdAt).format('DD MMM YYYY');
leave.updatedAt = moment__WEBPACK_IMPORTED_MODULE_2__(leave.updatedAt).format('DD MMM YYYY');
});
this.isLeaveTypeAvailable =
this.getLeaveTypeList.length !== 0 ? 'yes' : 'no';
}
}, (error) => {
this.toastService.error('No list found');
});
}
createLeave() {
this.loader = true;
this._usersService.createLeaveType(this.predefineLeaveTypeList).subscribe((response) => {
if (response.success) {
this.toastService.success(response.message);
this.active = 1;
this.getLeaveTypeData();
}
else {
this.toastService.error(response.message);
}
this.loader = false;
}, (error) => {
this.loader = false;
this.toastService.error(error.message);
});
}
updateLeavea() {
this.isAddLeaveModalOpen = true;
}
openAddLeaveModal(isModalOpen) {
this.isAddLeaveModalOpen = isModalOpen;
}
open(content) {
this.modalService.open(content);
}
callLeaveUpdateService(requestPayload) {
this.loader = true;
this._usersService.updateLeaveType(requestPayload).subscribe((response) => {
if (response.success) {
this.toastService.success(response.message);
this.active = 1;
this.modalService.dismissAll();
this.resetEditModal();
this.getLeaveTypeData();
}
else {
this.resetEditModal();
this.toastService.error(response.message);
}
this.loader = false;
}, (error) => {
this.loader = false;
this.resetEditModal();
this.toastService.error(error.message);
});
}
submitAddNewLeaveType() {
if (this.addNewLeaveType.name.length === 0) {
this.isAddLeaveModalOpen = false;
return this.toastService.error('Leave name cannot be empty');
}
else {
//check if leave name already exists
const nameExist = this.getLeaveTypeList.findIndex((x) => {
//making case-insensitive
return x.name.toLowerCase() === this.addNewLeaveType.name.toLowerCase();
});
if (nameExist !== -1) {
this.toastService.error('Leave name already exists', 'Failed');
this.resetEditModal();
}
else {
this.callLeaveUpdateService({
name: this.addNewLeaveType.name,
isQuotaExceed: this.addNewLeaveType.isQuotaExceed,
type: 'any',
});
}
}
}
submitEditLeaveType() {
if (this.editLeaveTypeDetail.name.length === 0) {
this.isEditModalOpen = false;
return this.toastService.error('Leave name cannot be empty');
}
this.callLeaveUpdateService({
leaveTypeId: this.editLeaveTypeDetail._id,
name: this.editLeaveTypeDetail.name,
isQuotaExceed: this.editLeaveTypeDetail.isQuotaExceed,
type: 'any',
});
}
deleteLeaveType() {
this._usersService
.deleteLeaveType({ leaveTypeId: this.deleteLeaveTypeId })
.subscribe((response) => {
this.isDeleteModalOpen = false;
if (response.success) {
this.toastService.success(response.message);
this.active = 1;
this.getLeaveTypeData();
}
else {
this.toastService.error(response.message);
}
}, (error) => {
this.toastService.error(error.message);
});
}
openDeletemodal(leaveName) {
this.leaveTypeName = leaveName;
// this.isDeleteModalOpen = !this.isDeleteModalOpen;
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: 'Are you sure?',
text: 'You want to delete this ' + this.leaveTypeName + ' ?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
}).then((result) => {
if (result.isConfirmed) {
this.deleteLeaveType();
}
});
}
switchToEditDeletePage() {
this.active = 2;
}
editLeaveType(isOpen, editLeaveData, model) {
this.modalService.open(model);
this.editLeaveTypeDetail = Object.assign({}, editLeaveData);
}
resetEditModal() {
this.isAddLeaveModalOpen = false;
this.isEditModalOpen = false;
this.addNewLeaveType.name = '';
this.addNewLeaveType.isQuotaExceed = false;
this.editLeaveTypeDetail.name = '';
this.editLeaveTypeDetail._id = '';
this.editLeaveTypeDetail.isQuotaExceed = false;
}
}
LeaveOverviewComponent.ɵfac = function LeaveOverviewComponent_Factory(t) { return new (t || LeaveOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_6__["RoleService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbModal"])); };
LeaveOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LeaveOverviewComponent, selectors: [["leave-overview"]], decls: 12, vars: 4, consts: [["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["nav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavItem", 4, "ngIf"], [3, "ngbNavOutlet"], ["leaveType", ""], ["editleaveType", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], ["thenBlock", ""], ["noData", ""], ["class", "card", 4, "ngIf"], [1, "card"], [1, "card-body", "table-responsive", "p-0"], [1, "table", "table-hover"], ["scope", "col"], ["scope", "col", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "font-weight-500"], [4, "ngIf"], [1, "d-flex"], [1, "btn", "btn-warning", "btn-sm", 3, "click"], ["class", "btn btn-danger btn-sm ml-2", 3, "click", 4, "ngIf"], [1, "btn", "btn-danger", "btn-sm", "ml-2", 3, "click"], [1, "card-body", "p-0"], ["count", "6", 3, "theme"], [1, "card", "w-100"], [1, "card-header", "bg-theme", "addNewLeave", "p-3"], [1, "m-0"], ["type", "button", 1, "btn", "btn-info", 3, "click"], [4, "ngIf", "ngIfElse"], ["staticList", ""], [1, "table"], [1, "btn", "btn-warning", "btn-sm", "mr-2", 3, "click"], ["class", "btn btn-danger btn-sm", 3, "click", 4, "ngIf"], [1, "btn", "btn-danger", "btn-sm", 3, "click"], [1, "card-footer"], [1, "form-check"], ["type", "radio", "value", "true", 1, "form-check-input", 3, "ngModel", "name", "id", "ngModelChange"], [1, "form-check-label", 3, "for"], ["type", "radio", "value", "false", 1, "form-check-input", 3, "ngModel", "name", "id", "ngModelChange"], ["type", "button", 1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "modal-header", "bg-theme"], ["id", "modal-basic-title", 1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "close", "text-light", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "row"], [1, "col-md-12"], [1, "form-group"], ["name", "name", "required", "", 1, "form-control", 3, "ngModel", "ngModelChange"], [1, "form-check", "form-check-inline"], ["type", "radio", "id", "inlineRadio1", "value", "true", "name", "leave", 1, "form-check-input", 3, "ngModel", "ngModelChange"], ["for", "inlineRadio1", 1, "form-check-label"], ["type", "radio", "id", "inlineRadio2", "value", "false", "name", "leave", 1, "form-check-input", 3, "ngModel", "ngModelChange"], ["for", "inlineRadio2", 1, "form-check-label"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-outline-dark", 3, "click"], ["type", "button", 1, "btn", "btn-success", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm ml-2", "role", "status", "aria-hidden", "true", 4, "ngIf"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-2"], ["name", "name", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["type", "radio", "id", "inlineRadio1", 1, "form-check-input", 3, "value", "ngModel", "name", "ngModelChange"], ["type", "radio", "id", "inlineRadio2", 1, "form-check-input", 3, "value", "ngModel", "name", "ngModelChange"], ["type", "button", 1, "btn", "btn-success", 3, "click"]], template: function LeaveOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function LeaveOverviewComponent_Template_ul_activeIdChange_0_listener($event) { return ctx.active = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Overview");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LeaveOverviewComponent_ng_template_5_Template, 6, 4, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, LeaveOverviewComponent_li_6_Template, 4, 1, "li", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, LeaveOverviewComponent_ng_template_8_Template, 31, 5, "ng-template", null, 7, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, LeaveOverviewComponent_ng_template_10_Template, 30, 8, "ng-template", null, 8, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.active);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.leavetypeAccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_9__["NgxSkeletonLoaderComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["RequiredValidator"]], styles: [".show-modal[_ngcontent-%COMP%] {\n display: block;\n}\n\n.align-center[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n .modal-content {\n border: none;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n\n.addNewLeave[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 0.75rem 1.25rem !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtc2NoZW1lL2xlYXZlLW92ZXJ2aWV3L2xlYXZlLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsY0FBQTtBQUNGOztBQUVBO0VBQ0Usa0JBQUE7QUFDRjs7QUFFQTtFQUNFLFlBQUE7QUFDRjs7QUFFQTtFQUNFLHNCQUFBO0FBQ0Y7O0FBQUU7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFFSjs7QUFBSTtFQUNFLGNBQUE7QUFFTjs7QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTjs7QUFHQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLG1CQUFBO0VBQ0EsbUNBQUE7QUFBRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2h1bWFuLXJlc291cmNlL2xlYXZlLXNjaGVtZS9sZWF2ZS1vdmVydmlldy9sZWF2ZS1vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zaG93LW1vZGFsIHtcbiAgZGlzcGxheTogYmxvY2s7XG59XG5cbi5hbGlnbi1jZW50ZXIge1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbjo6bmctZGVlcCAubW9kYWwtY29udGVudCB7XG4gIGJvcmRlcjogbm9uZTtcbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbi5hZGROZXdMZWF2ZSB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgcGFkZGluZzogMC43NXJlbSAxLjI1cmVtICFpbXBvcnRhbnQ7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LeaveOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'leave-overview',
templateUrl: './leave-overview.component.html',
styleUrls: ['./leave-overview.component.scss'],
}]
}], function () { return [{ type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }, { type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_6__["RoleService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbModal"] }]; }, null); })();
/***/ }),
/***/ "4ak9":
/*!********************************************************!*\
!*** ./src/app/users/service/all-logs/logs.service.ts ***!
\********************************************************/
/*! exports provided: LogsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogsService", function() { return LogsService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class LogsService {
constructor(http, storageService) {
this.http = http;
this.storageService = storageService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getMasterIntegratinLogs(data) {
return this.http.get(`${this.baseUrl}/integration/readMasterData/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getUsersIntegratinLogs(data) {
return this.http.get(`${this.baseUrl}/integration/read?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getLbsQuotaIntegratinLogs(data) {
return this.http.get(`${this.baseUrl}/integration/readQuota?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getLbsApprovedIntegratinLogs(data) {
return this.http.get(`${this.baseUrl}/integration/readApprove?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
downloadFile(url) {
const fileUrl = url.startsWith('/') ? `${this.baseUrl}${url}` : `${this.baseUrl}/${url}`;
return this.http.get(fileUrl, { responseType: 'blob' });
}
}
LogsService.ɵfac = function LogsService_Factory(t) { return new (t || LogsService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
LogsService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: LogsService, factory: LogsService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](LogsService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "5B7r":
/*!******************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/password/password.component.ts ***!
\******************************************************************************************/
/*! exports provided: PasswordComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordComponent", function() { return PasswordComponent; });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
function PasswordComponent_div_56_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password change is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordComponent_div_56_small_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Change password should be between 1-100 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordComponent_div_56_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordComponent_div_56_small_1_Template, 2, 0, "small", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, PasswordComponent_div_56_small_2_Template, 2, 0, "small", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.passwordSetupForm.get("pwdSettings.pwdDuration").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.passwordSetupForm.get("pwdSettings.pwdDuration").errors.pattern);
} }
function PasswordComponent_div_63_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password Reuse is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordComponent_div_63_small_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password Reuse should be should be between 1-100 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordComponent_div_63_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordComponent_div_63_small_1_Template, 2, 0, "small", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, PasswordComponent_div_63_small_2_Template, 2, 0, "small", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.passwordSetupForm.get("pwdSettings.pwdReUse").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.passwordSetupForm.get("pwdSettings.pwdReUse").errors.pattern);
} }
function PasswordComponent_div_70_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password Retries is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordComponent_div_70_small_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password Retries should be should be between 1-100 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordComponent_div_70_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordComponent_div_70_small_1_Template, 2, 0, "small", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, PasswordComponent_div_70_small_2_Template, 2, 0, "small", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.passwordSetupForm.get("pwdSettings.maxLoginAttempt").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.passwordSetupForm.get("pwdSettings.maxLoginAttempt").errors.pattern);
} }
function PasswordComponent_div_95_div_7_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Default password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordComponent_div_95_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordComponent_div_95_div_7_small_1_Template, 2, 0, "small", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r10.passwordSetupForm.get("pwdSettings.defaultPassword").errors.required);
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
function PasswordComponent_div_95_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Default password");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "input", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, PasswordComponent_div_95_div_7_Template, 2, 1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](2, _c0, ctx_r3.submitted && ctx_r3.passwordSetupForm.get("pwdSettings.defaultPassword").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.passwordSetupForm.get("pwdSettings.defaultPassword").errors);
} }
const _c1 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
class PasswordComponent {
constructor(formbuilder, companySetupService, toastService, storageService) {
this.formbuilder = formbuilder;
this.companySetupService = companySetupService;
this.toastService = toastService;
this.storageService = storageService;
this.isUpdateLoading = false;
}
ngOnInit() {
this.submitted = true;
this.initForm();
this.getPasswordSetupDetails();
}
getPasswordSetupDetails() {
const sub = this.companySetupService
.getcompanySetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.passwordSettingId = res.data._id;
this.passwordSetupForm.patchValue({
pwdSettings: {
defaultPassword: res.data.pwdSettings.defaultPassword ? res.data.pwdSettings.defaultPassword : '',
status: res.data.pwdSettings.status,
charTypes: {
specialChar: res.data.pwdSettings.charTypes.specialChar,
numbers: res.data.pwdSettings.charTypes.numbers,
upperCase: res.data.pwdSettings.charTypes.upperCase,
lowerCase: res.data.pwdSettings.charTypes.lowerCase,
},
pwdReUse: res.data.pwdSettings.pwdReUse,
maxLoginAttempt: res.data.pwdSettings.maxLoginAttempt,
charLength: res.data.pwdSettings.charLength,
pwdDuration: res.data.pwdSettings.pwdDuration,
otpSentFor: res.data.pwdSettings.otpSentFor,
passwordType: res.data.pwdSettings.passwordType,
},
});
console.log(this.passwordSetupForm);
}, (error) => {
});
}
initForm() {
this.passwordSetupForm = this.formbuilder.group({
pwdSettings: this.formbuilder.group({
defaultPassword: [''],
status: [1],
charTypes: this.formbuilder.group({
specialChar: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required],
numbers: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required],
upperCase: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required],
lowerCase: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required]
}),
pwdReUse: [1, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern('^[1-9][0-9]?$|^100$')]],
maxLoginAttempt: [
1,
[_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern('^[1-9][0-9]?$|^100$')],
],
charLength: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern('^[4-9][0-9]?$|^100$')]],
pwdDuration: [1, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern('^[1-9][0-9]?$|^100$')]],
otpSentFor: [1, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required,]],
passwordType: [
1,
[_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required],
],
}),
});
}
// get pwdSettingsControl(): FormGroup {
// return this.passwordSetupForm.controls.pwdSettings ;
// }
onSubmitPasswordSetupForm() {
if (!this.passwordSetupForm.valid) {
this.submitted = true;
return;
}
this.isUpdateLoading = true;
let data = this.passwordSetupForm.value;
data.pageId = this.passwordSettingId;
this.companySetupService
.updatePasswordSettings(data)
.subscribe((res) => {
this.toastService.success('Updated SuccessFully');
this.isUpdateLoading = false;
this.ngOnInit();
}, (error) => {
this.isUpdateLoading = false;
});
}
}
PasswordComponent.ɵfac = function PasswordComponent_Factory(t) { return new (t || PasswordComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
PasswordComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: PasswordComponent, selectors: [["password"]], decls: 101, vars: 25, consts: [[1, "card", "mb-3"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body", 2, "padding", "30px"], [3, "formGroup"], ["formGroupName", "pwdSettings"], [1, "row"], [1, "red-heading", "col-md-3"], [1, "form-group", "col-md-2", "pr-0"], ["type", "radio", "id", "active", "formControlName", "status", 3, "value"], ["for", "active", 1, "radio-inline", "ml-2"], ["type", "radio", "id", "inactive", "formControlName", "status", 3, "value"], ["for", "inactive", 1, "radio-inline", "ml-2"], [1, "col-md-6"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "red-heading"], ["type", "tel", "placeholder", "Number of password character", "formControlName", "charLength", 1, "form-control"], ["formGroupName", "charTypes"], [1, "col"], [1, "red-heading"], ["type", "checkbox", "id", "54", "formControlName", "lowerCase"], ["for", "54", 1, "radio-inline", "ml-2"], ["type", "checkbox", "id", "55", "formControlName", "upperCase"], ["for", "55", 1, "radio-inline", "ml-2"], ["type", "checkbox", "id", "56", "formControlName", "numbers"], ["for", "56", 1, "radio-inline", "ml-2"], ["type", "checkbox", "id", "57", "formControlName", "specialChar"], ["for", "57", 1, "radio-inline", "ml-2"], ["type", "tel", "placeholder", " Password Change", "formControlName", "pwdDuration", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["type", "tel", "placeholder", " Password Reuse", "formControlName", "pwdReUse", 1, "form-control", 3, "ngClass"], ["type", "tel", "placeholder", "Password Retries", "formControlName", "maxLoginAttempt", 1, "form-control", 3, "ngClass"], ["type", "radio", "id", "otp2", "formControlName", "otpSentFor", 3, "value"], ["for", "otp2", 1, "radio-inline", "ml-2"], ["type", "radio", "id", "otp1", "formControlName", "otpSentFor", 3, "value"], ["for", "otp1", 1, "radio-inline", "ml-2"], [1, "form-group", "col-md-3", "pr-0"], ["type", "radio", "id", "ptype", "formControlName", "passwordType", 3, "value"], ["for", "ptype", 1, "radio-inline", "ml-2"], ["type", "radio", "id", "ptype1", "formControlName", "passwordType", 3, "value"], ["for", "ptype1", 1, "radio-inline", "ml-2"], [4, "ngIf"], [1, "col-md-4"], [1, "btn", "btn-submit", "update-button", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "invalid-feedback"], ["type", "title", "placeholder", "Default Password", "formControlName", "defaultPassword", 1, "form-control", 3, "ngClass"]], template: function PasswordComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "PASSWORD MANAGEMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Status");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Active");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Inactive");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "Number of password character");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "Types of character required in password");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](32, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, " Show Lowercase characters (a through)");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](37, "input", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, " Show Uppercase characters (A through Z)");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](42, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, " Show Forms Numbers (0 through 9)");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](47, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](49, "Show Special characters (e.g. !,@,#,$,%)");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](54, " Password change");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](55, "input", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](56, PasswordComponent_div_56_Template, 3, 2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](61, " Password reuse");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](62, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](63, PasswordComponent_div_63_Template, 3, 2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](68, "Password retries");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](69, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](70, PasswordComponent_div_70_Template, 3, 2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](73, " OTP sent for");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](76, "input", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](78, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](79, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](80, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](81, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](82, "Mobile");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](83, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](85, " Password type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](87, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](88, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](89, "label", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](90, "System generated password");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](91, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](92, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](93, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](94, "Default password");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](95, PasswordComponent_div_95_Template, 8, 4, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](96, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](97, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](98, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordComponent_Template_button_click_98_listener() { return ctx.onSubmitPasswordSetupForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](99, "i", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](100, " Update");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.passwordSetupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](16, _c0, ctx.submitted && ctx.passwordSetupForm.get("pwdSettings.pwdDuration").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.passwordSetupForm.get("pwdSettings.pwdDuration").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](18, _c0, ctx.submitted && ctx.passwordSetupForm.get("pwdSettings.pwdReUse").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.passwordSetupForm.get("pwdSettings.pwdReUse").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](20, _c0, ctx.submitted && ctx.passwordSetupForm.get("pwdSettings.maxLoginAttempt").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.passwordSetupForm.get("pwdSettings.maxLoginAttempt").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.passwordSetupForm.get("pwdSettings").get("passwordType").value == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isUpdateLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](22, _c1, ctx.isUpdateLoading, !ctx.isUpdateLoading));
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupName"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_6__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["CheckboxControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"]], styles: [".update-button[_ngcontent-%COMP%] {\n width: 100px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvcGFzc3dvcmQvcGFzc3dvcmQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxZQUFBO0FBQ0oiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9zeXN0ZW0tc2V0dGluZ3MvY29tcGFueS1zZXR1cC9wYXNzd29yZC9wYXNzd29yZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi51cGRhdGUtYnV0dG9ue1xuICAgIHdpZHRoOiAxMDBweDtcbiAgfSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](PasswordComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'password',
templateUrl: './password.component.html',
styleUrls: ['./password.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__["CompanySetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "5IPE":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/admin/users/facial-id/facial-overview/facial-overview.component.ts ***!
\************************************************************************************************/
/*! exports provided: FacialOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FacialOverviewComponent", function() { return FacialOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function FacialOverviewComponent_ngx_skeleton_loader_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 6);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function FacialOverviewComponent_table_8_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FacialOverviewComponent_table_8_tr_16_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const item_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r5.editFacialId(item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, " Edit Facial ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", item_r4.facialInfo, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.userInfo == null ? null : item_r4.userInfo.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.userInfo == null ? null : item_r4.userInfo.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.contactNumber ? item_r4.contactNumber : "-");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.appointmentInfo == null ? null : item_r4.appointmentInfo.name);
} }
function FacialOverviewComponent_table_8_ng_container_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "No data available");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} }
function FacialOverviewComponent_table_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "PHOTO ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "USER NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "CONTACT NUMBER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "APPOINTMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, FacialOverviewComponent_table_8_tr_16_Template, 15, 5, "tr", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, FacialOverviewComponent_table_8_ng_container_17_Template, 3, 0, "ng-container", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.facialList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r1.facialList == null ? null : ctx_r1.facialList.length) == 0);
} }
class FacialOverviewComponent {
constructor(userService) {
this.userService = userService;
this.edit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.facialIdLoader = true;
}
ngOnInit() {
const facialID = this.userService
.getFacialList(this.bu._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
this.facialIdLoader = false;
facialID.unsubscribe();
}))
.subscribe((res) => {
// if (res?.success) {
this.facialList = res === null || res === void 0 ? void 0 : res.message.facialOverviewData;
// }
});
}
editFacialId(item) {
this.edit.emit(item);
}
}
FacialOverviewComponent.ɵfac = function FacialOverviewComponent_Factory(t) { return new (t || FacialOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_2__["UsersService"])); };
FacialOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FacialOverviewComponent, selectors: [["app-facial-overview"]], inputs: { bu: "bu" }, outputs: { edit: "edit" }, decls: 9, vars: 3, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "m-0"], [1, "card-body", "table-responsive", "p-0"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table table-hover", 4, "ngIf"], ["count", "6", 3, "theme"], [1, "table", "table-hover"], ["scope", "col"], [4, "ngFor", "ngForOf"], [4, "ngIf"], ["alt", "", 1, "img-rounded", 3, "src"], [1, "font-weight-500"], [1, "btn", "btn-success", "btn-sm", 3, "click"], ["colspan", "6"]], template: function FacialOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "FACIAL ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, FacialOverviewComponent_ngx_skeleton_loader_7_Template, 1, 2, "ngx-skeleton-loader", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, FacialOverviewComponent_table_8_Template, 18, 2, "table", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.bu.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.facialIdLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.facialIdLoader);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_4__["NgxSkeletonLoaderComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgForOf"]], styles: [".bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.img-rounded[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n border-radius: 50%;\n object-fit: cover;\n}\n\n.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYWRtaW4vdXNlcnMvZmFjaWFsLWlkL2ZhY2lhbC1vdmVydmlldy9mYWNpYWwtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUFDRjs7QUFFQTtFQUNFLFdBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxpQkFBQTtBQUNGOztBQUVBO0VBQ0Usc0JBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2FkbWluL3VzZXJzL2ZhY2lhbC1pZC9mYWNpYWwtb3ZlcnZpZXcvZmFjaWFsLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJnLXRoZW1lIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG59XG5cbi5pbWctcm91bmRlZCB7XG4gIHdpZHRoOiA0MHB4O1xuICBoZWlnaHQ6IDQwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgb2JqZWN0LWZpdDogY292ZXI7XG59XG5cbi50YWJsZSB0ZCB7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FacialOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-facial-overview',
templateUrl: './facial-overview.component.html',
styleUrls: ['./facial-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_2__["UsersService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], edit: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "5JNx":
/*!*********************************************************************!*\
!*** ./src/app/users/pages/notification/create/create.component.ts ***!
\*********************************************************************/
/*! exports provided: CreateComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateComponent", function() { return CreateComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_app_shared_datePicker_format_datepicker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/datePicker/format-datepicker */ "FCJK");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/assign-users/assign-users.component */ "9Zea");
// import { AppDateAdapter, APP_DATE_FORMATS } from '../../../../../app/shared/datePicker/format-datepicker';
const _c0 = ["content"];
const _c1 = ["sendNotification"];
function CreateComponent_div_18_input_10_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 38, 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_div_18_input_10_Template_input_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1); return _r9.open(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("minDate", ctx_r6.minDate);
} }
function CreateComponent_div_18_input_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 40);
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r7.isView ? "" : null);
} }
function CreateComponent_div_18_option_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const time_r12 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", time_r12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", time_r12, " ");
} }
function CreateComponent_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Push Notification Date & Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Push Notification Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, CreateComponent_div_18_input_10_Template, 2, 1, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, CreateComponent_div_18_input_11_Template, 1, 1, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Push Notification Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "select", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, " Select Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, CreateComponent_div_18_option_21_Template, 2, 2, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r0.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", -1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.timeArr);
} }
function CreateComponent_div_24_input_10_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 58, 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function CreateComponent_div_24_input_10_Template_input_ngModelChange_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r20.setMinDate2(); })("click", function CreateComponent_div_24_input_10_Template_input_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1); return _r19.open(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("minDate", ctx_r13.minDate);
} }
function CreateComponent_div_24_input_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 60);
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r14.isView ? "" : null);
} }
function CreateComponent_div_24_input_16_Template(rf, ctx) { if (rf & 1) {
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 61, 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_div_24_input_16_Template_input_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r25); const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1); return _r23.open(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("minDate", ctx_r15.minDate2);
} }
function CreateComponent_div_24_input_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 63);
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r16.isView ? "" : null);
} }
function CreateComponent_div_24_option_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const day_r26 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", day_r26.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", day_r26.viewValue, " ");
} }
function CreateComponent_div_24_option_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const time_r27 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", time_r27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", time_r27, " ");
} }
function CreateComponent_div_24_Template(rf, ctx) { if (rf & 1) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Push Notification Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Push Notification Period");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, CreateComponent_div_24_input_10_Template, 2, 1, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, CreateComponent_div_24_input_11_Template, 1, 1, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Push Notification Till");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, CreateComponent_div_24_input_16_Template, 2, 1, "input", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, CreateComponent_div_24_input_17_Template, 1, 1, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, " Schedule Push");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "input", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CreateComponent_div_24_Template_input_change_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r29); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r28.scheduleChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "label", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "Daily");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "label", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Weekly");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](34, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Monthly");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Push Notification Day");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "select", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, CreateComponent_div_24_option_45_Template, 2, 2, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Push Notification Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "select", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "option", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, " Select Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](55, CreateComponent_div_24_option_55_Template, 2, 2, "option", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r1.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r1.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r1.notificationCreateForm.value.notificationType == 1 || ctx_r1.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r1.notificationCreateForm.value.notificationType == 1 || ctx_r1.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r1.notificationCreateForm.value.notificationType == 1 || ctx_r1.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r1.notificationCreateForm.value.notificationType == 1 || ctx_r1.notificationCreateForm.value.notificationSchedule == 2 || ctx_r1.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.weekDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r1.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", -1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.timeArr);
} }
function CreateComponent_ng_template_52_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_ng_template_52_Template_button_click_1_listener() { const modal_r30 = ctx.$implicit; return modal_r30.dismiss(0); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Do you want to inactive this notification?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_ng_template_52_Template_button_click_8_listener() { const modal_r30 = ctx.$implicit; return modal_r30.close(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_ng_template_52_Template_button_click_10_listener() { const modal_r30 = ctx.$implicit; return modal_r30.dismiss(0); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function CreateComponent_ng_template_54_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_ng_template_54_Template_button_click_1_listener() { const modal_r34 = ctx.$implicit; return modal_r34.dismiss(0); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Do you want to send notification immediately?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_ng_template_54_Template_button_click_8_listener() { const modal_r34 = ctx.$implicit; return modal_r34.close(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_ng_template_54_Template_button_click_10_listener() { const modal_r34 = ctx.$implicit; return modal_r34.close(0); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
class CreateComponent {
constructor(modalService, notificationService, formBuilder, toastService, route) {
this.modalService = modalService;
this.notificationService = notificationService;
this.formBuilder = formBuilder;
this.toastService = toastService;
this.route = route;
this.$selectedOption = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.weekDay = [
{ value: -1, viewValue: 'Select Day' },
{ value: 0, viewValue: 'Sunday' },
{ value: 1, viewValue: 'Monday' },
{ value: 2, viewValue: "Tuesday" },
{ value: 3, viewValue: 'Wednesday' },
{ value: 4, viewValue: 'Thursday' },
{ value: 5, viewValue: 'Friday' },
{ value: 6, viewValue: 'Saturday' }
];
this.timeArr = ["00:00", "00:05", "00:10", "00:15", "00:20", "00:25", "00:30", "00:35", "00:40", "00:45", "00:50", "00:55", "01:00", "01:05", "01:10", "01:15", "01:20", "01:25", "01:30", "01:35", "01:40", "01:45", "01:50", "01:55", "02:00", "02:05", "02:10", "02:15", "02:20", "02:25", "02:30", "02:35", "02:40", "02:45", "02:50", "02:55", "03:00", "03:05", "03:10", "03:15", "03:20", "03:25", "03:30", "03:35", "03:40", "03:45", "03:50", "03:55", "04:00", "04:05", "04:10", "04:15", "04:20", "04:25", "04:30", "04:35", "04:40", "04:45", "04:50", "04:55", "05:00", "05:05", "05:10", "05:15", "05:20", "05:25", "05:30", "05:35", "05:40", "05:45", "05:50", "05:55", "06:00", "06:05", "06:10", "06:15", "06:20", "06:25", "06:30", "06:35", "06:40", "06:45", "06:50", "06:55", "07:00", "07:05", "07:10", "07:15", "07:20", "07:25", "07:30", "07:35", "07:40", "07:45", "07:50", "07:55", "08:00", "08:05", "08:10", "08:15", "08:20", "08:25", "08:30", "08:35", "08:40", "08:45", "08:50", "08:55", "09:00", "09:05", "09:10", "09:15", "09:20", "09:25", "09:30", "09:35", "09:40", "09:45", "09:50", "09:55", "10:00", "10:05", "10:10", "10:15", "10:20", "10:25", "10:30", "10:35", "10:40", "10:45", "10:50", "10:55", "11:00", "11:05", "11:10", "11:15", "11:20", "11:25", "11:30", "11:35", "11:40", "11:45", "11:50", "11:55", "12:00", "12:05", "12:10", "12:15", "12:20", "12:25", "12:30", "12:35", "12:40", "12:45", "12:50", "12:55", "13:00", "13:05", "13:10", "13:15", "13:20", "13:25", "13:30", "13:35", "13:40", "13:45", "13:50", "13:55", "14:00", "14:05", "14:10", "14:15", "14:20", "14:25", "14:30", "14:35", "14:40", "14:45", "14:50", "14:55", "15:00", "15:05", "15:10", "15:15", "15:20", "15:25", "15:30", "15:35", "15:40", "15:45", "15:50", "15:55", "16:00", "16:05", "16:10", "16:15", "16:20", "16:25", "16:30", "16:35", "16:40", "16:45", "16:50", "16:55", "17:00", "17:05", "17:10", "17:15", "17:20", "17:25", "17:30", "17:35", "17:40", "17:45", "17:50", "17:55", "18:00", "18:05", "18:10", "18:15", "18:20", "18:25", "18:30", "18:35", "18:40", "18:45", "18:50", "18:55", "19:00", "19:05", "19:10", "19:15", "19:20", "19:25", "19:30", "19:35", "19:40", "19:45", "19:50", "19:55", "20:00", "20:05", "20:10", "20:15", "20:20", "20:25", "20:30", "20:35", "20:40", "20:45", "20:50", "20:55", "21:00", "21:05", "21:10", "21:15", "21:20", "21:25", "21:30", "21:35", "21:40", "21:45", "21:50", "21:55", "22:00", "22:05", "22:10", "22:15", "22:20", "22:25", "22:30", "22:35", "22:40", "22:45", "22:50", "22:55", "23:00", "23:05", "23:10", "23:15", "23:20", "23:25", "23:30", "23:35", "23:40", "23:45", "23:50", "23:55"];
this.submitted = false;
this.isView = false;
this.notficationId = null;
this.buttonText = "Publish";
this.isPublish = false;
this.userDetails = [];
this.buId = null;
this.UpdateduserDetails = [];
this.minDate = {
year: new Date().getFullYear(), month: new Date().getMonth() + 1, day: new Date().getDate()
};
}
inActive() {
this.modalService.open(this.content, { ariaLabelledBy: 'modal-basic-title' }).result.then((result) => {
if (result === 1) {
const data = { id: this.notficationId };
this.notificationService.cancelNotification(data)
.subscribe(response => {
this.$selectedOption.emit('schedule');
if (response.success) {
this.toastService.success(response.msg);
}
else {
this.toastService.error(response.msg);
}
}, error => {
this.$selectedOption.emit('schedule');
if (error.error) {
this.toastService.error(error.error.msg);
}
else {
this.toastService.error("Something went wrong");
}
});
}
}, (reason) => {
});
}
ngOnInit() {
this.notificationCreateForm = this.formBuilder.group({
notificationType: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
activeFrom: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
description: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
title: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
notificationTime: ['-1'],
day: [-1],
notificationSchedule: [''],
activeTo: ['']
});
this.resetData();
if (this.notiData) {
this.populateDetails(this.notiData.notificationId, this.notiData.isView);
}
}
setMinDate2() {
this.minDate2 = this.notificationCreateForm.value.activeFrom;
}
onDateSelection(date) {
let selectedDate = src_app_shared_datePicker_format_datepicker__WEBPACK_IMPORTED_MODULE_3__["NgbDateCustomParserFormatter"].formatDate(date);
}
notificationTypeChange() {
const selectedValue = this.notificationCreateForm.value.notificationType;
this.notificationCreateForm.reset({ notificationType: selectedValue, day: -1, notificationTime: -1 });
// this.notificationCreateForm.patchValue({ notificationType: selectedValue, day: -1, notificationTime: -1 })
}
scheduleChange() {
const selectedValue = this.notificationCreateForm.value.notificationSchedule;
if (selectedValue === 2) {
this.notificationCreateForm.patchValue({ day: -1 });
}
}
updatedUserDetails(userDetails) {
this.UpdateduserDetails = userDetails;
}
resetData() {
this.isView = false;
this.buttonText = 'Publish';
this.notficationId = null;
this.isPublish = false;
this.notificationCreateForm.reset({ notificationType: 1, day: -1, notificationTime: -1 });
this.userDetails = [];
this.notificationStatus = '';
}
cancelUpdate() {
if (this.notificationCreateForm.value.notificationType === 1) {
this.resetData();
this.$selectedOption.emit('push');
}
else {
this.resetData();
this.$selectedOption.emit('schedule');
}
}
publish(from) {
}
createUpdate(from) {
let isSend = false;
if (this.buttonText === 'Publish' || from === 0) {
this.onSubmit(from, isSend);
}
else {
if (this.notificationStatus === 'Active') {
this.modalService.open(this.sendNotification, { ariaLabelledBy: 'modal-basic-title' }).result.then((result) => {
if (result === 1) {
this.onSubmit(from, true);
}
else if (result === 0) {
this.onSubmit(from, isSend);
}
}, (reason) => {
});
}
else {
this.onSubmit(from, isSend);
}
}
}
onSubmit(from, isSend = false) {
let data = {
isSend: isSend,
title: this.notificationCreateForm.value.title,
description: this.notificationCreateForm.value.description,
notificationType: this.notificationCreateForm.value.notificationType,
notificationTime: this.notificationCreateForm.value.notificationTime,
day: this.notificationCreateForm.value.day,
notificationSchedule: this.notificationCreateForm.value.notificationSchedule,
activeTo: this.notificationCreateForm.value.activeTo,
activeFrom: this.notificationCreateForm.value.activeFrom,
timeZone: this.getTimeZone(),
"businessUnitId": this.buId,
isPublish: from === 1 ? true : false,
_id: null,
assignUsers: Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["getAssignedUsers"])(this.userDetails)
};
let isError = false;
if (!data.title) {
this.toastService.error(`‘Push Notification Title’ can not be blank.`);
return;
}
else if (!data.description) {
this.toastService.error(`‘Push Notification Content’ can not be blank.`);
return;
}
else if (data.assignUsers.length <= 0) {
this.toastService.error(`Please add assigned user`);
return;
}
if (data.notificationType === 1) {
data.notificationSchedule = 1;
delete data.activeTo;
delete data.day;
if (data.notificationTime === '-1') {
this.toastService.error(`Please select valid Push Notification time.`);
isError = true;
return;
}
if (!data.activeFrom) {
this.toastService.error("Please select valid Push Notification date.");
isError = true;
return;
}
}
else if (data.notificationType === 2) {
if (data.notificationTime === '-1') {
this.toastService.error("Please select valid Push Notification time.");
isError = true;
return;
}
if (!data.activeFrom) {
this.toastService.error("Please select start date of Push Notification period.");
isError = true;
return;
}
if (!data.activeTo) {
this.toastService.error("Please select end date of Push Notification period.");
isError = true;
return;
}
if (!data.notificationSchedule) {
this.toastService.error("Please select the type of Scheduled Push Notification.");
isError = true;
return;
}
if (data.notificationSchedule === 3 || data.notificationSchedule === 4) {
if ((!data.day && data.day !== 0) || data.day === -1) {
this.toastService.error("Please select the day of a week to schedule the Push Notification.");
isError = true;
return;
}
}
else {
delete data.day;
}
}
else {
this.toastService.error("Please Select push notification type");
isError = true;
return;
}
if (!isError) {
const dateFrom = `${moment__WEBPACK_IMPORTED_MODULE_2__(new Date(data.activeFrom.year, data.activeFrom.month - 1, data.activeFrom.day)).format("MM-DD-YYYY")} ${data.notificationTime}:00 ${data.timeZone}`;
data.activeFrom = `${moment__WEBPACK_IMPORTED_MODULE_2__(new Date(data.activeFrom.year, data.activeFrom.month - 1, data.activeFrom.day)).format("MM-DD-YYYY")} 00:00:00 ${data.timeZone}`;
if (data.activeTo) {
data.activeTo = `${moment__WEBPACK_IMPORTED_MODULE_2__(new Date(data.activeTo.year, data.activeTo.month - 1, data.activeTo.day)).format("MM-DD-YYYY")} 00:00:00 ${data.timeZone}`;
}
if (!this.notficationId) {
delete data._id;
delete data.isSend;
if (new Date(dateFrom).getTime() < new Date().getTime()) {
this.toastService.error(`Please select future time`);
return;
}
this.notificationService.createNotificationManage(data)
.subscribe(response => {
if (response.success) {
this.toastService.success(response.msg);
this.resetData();
if (data.notificationType === 2) {
this.$selectedOption.emit('schedule');
}
else {
this.$selectedOption.emit('push');
}
}
else {
this.toastService.error(response.msg);
}
}, error => {
if (error.error) {
this.toastService.error(error.error.msg);
}
else {
this.toastService.error("Something went wrong");
}
});
}
else {
data._id = this.notficationId;
this.notificationService.updateNotification(data)
.subscribe(response => {
if (response.success) {
this.toastService.success(response.msg);
this.resetData();
if (data.notificationType === 2) {
this.$selectedOption.emit('schedule');
}
else {
this.$selectedOption.emit('push');
}
}
else {
this.toastService.error(response.msg);
}
}, error => {
if (error.error) {
this.toastService.error(error.error.msg);
}
else {
this.toastService.error("Something went wrong");
}
});
}
}
}
populateDetails(notificationId, isView = false) {
this.resetData();
this.isView = isView;
this.notificationService.getSingleNotificationManage(notificationId)
.subscribe(response => {
if (response.success) {
const obj = response.data;
this.notficationId = obj._id;
this.notificationStatus = obj.notificationStatus;
if (obj.notificationStatus === "Draft") {
this.buttonText = "Publish";
}
else {
this.isPublish = true;
this.buttonText = "Update";
}
const dateFrom = new Date(obj.activeFrom);
this.notificationCreateForm.patchValue({
notificationType: obj.notificationType,
title: obj.title,
description: obj.description,
notificationTime: obj.notificationTime,
activeFrom: isView ? moment__WEBPACK_IMPORTED_MODULE_2__(dateFrom).format("DD/MM/YYYY") : {
year: dateFrom.getFullYear(),
month: dateFrom.getMonth() + 1, day: dateFrom.getDate()
},
});
this.userDetails = obj.assignUsers;
if (obj.notificationType === 2) {
const dateTo = new Date(obj.activeTo);
this.notificationCreateForm.patchValue({
activeTo: isView ? moment__WEBPACK_IMPORTED_MODULE_2__(dateTo).format("DD/MM/YYYY") : {
year: dateTo.getFullYear(),
month: dateTo.getMonth() + 1, day: dateTo.getDate()
},
notificationSchedule: obj.notificationSchedule,
notificationTime: obj.notificationTime
});
if (obj.notificationSchedule === 3 || obj.notificationSchedule === 4) {
this.notificationCreateForm.patchValue({
day: obj.day,
});
}
}
}
}, error => {
if (error.error) {
// this.openSnackBar(error.error.msg, true);
}
else {
// this.openSnackBar("Something went wrong", true);
}
});
}
getTimeZone() {
var split = new Date().toString().match(/([A-Z]+[\+-][0-9]+)/)[1];
return split;
}
}
CreateComponent.ɵfac = function CreateComponent_Factory(t) { return new (t || CreateComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_8__["ActivatedRoute"])); };
CreateComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CreateComponent, selectors: [["app-create"]], viewQuery: function CreateComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c1, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.content = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sendNotification = _t.first);
} }, inputs: { buId: "buId", notiData: "notiData" }, outputs: { $selectedOption: "$selectedOption" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([])], decls: 56, vars: 17, consts: [[1, "dashboardPanelCon"], [1, "panel", "panel-default"], [3, "formGroup"], [1, "panel-heading"], [1, "col-12", "p-3"], [1, "d-block", "redTitle"], [1, "field-mandatory"], [1, "chkBoxSection"], [1, "form-check"], ["formControlName", "notificationType", "name", "notificationType", "type", "radio", "id", "notificationTypeAdHoc", 1, "form-control", "form-check-input", "inputCheck", "form-control-input", 3, "value", "change"], ["for", "check1", 1, "form-check-label", "form-control-label", "red", "font-weight-bold", 2, "padding-top", "15px"], ["class", "mt-3", 4, "ngIf"], ["type", "radio", "formControlName", "notificationType", "id", "notificationTypeSchedule", "name", "notificationType", 1, "form-control", "form-check-input", "inputCheck", "form-control-input", 3, "value", "change"], ["for", "check2", 1, "form-check-label", "form-control-label", "red", "font-weight-bold", 2, "padding-top", "15px"], [1, "row", "mt-3"], [1, "col-md-3", "col-lg-3", "col-xl-3", "col-12", "redTitle", "marginFor"], [1, "col-md-8", "col-lg-8", "col-xl-8", "col-12"], ["formControlName", "title", "type", "text", "rows", "2", 1, "w-100", 2, "height", "40px"], ["formControlName", "description", "type", "text", 1, "w-100", 2, "height", "80px", "padding", "4px"], [2, "clear", "both"], [3, "userDetails", "isAdminView", "onSubmitAssignUsers"], [2, "margin", "10px", "float", "right"], [1, "btn", "btn-sm", "btn-primary", 2, "margin-right", "10px", "background-color", "#a42138", "font-size", "9px", "border-color", "#a42138", 3, "click"], [1, "btn", "btn-sm", "btn-warning", 2, "margin-right", "10px", 3, "click"], [1, "btn", "btn-sm", "btn-danger", 2, "margin-right", "10px", 3, "hidden", "click"], [1, "btn", "btn-sm", "btn-danger", 2, "background-color", "chocolate", 3, "hidden", "click"], ["content", ""], ["sendNotification", ""], [1, "mt-3"], [1, "col-md-3", "col-lg-3", "col-xl-3", "col-12", "marginFor"], [1, "col-md-4", "col-lg-4", "col-xl-4", "col-12"], [1, "form-check-inline", 2, "display", "flex"], [2, "padding-right", "10px", "width", "90%", "margin-bottom", "0px"], ["formControlName", "activeFrom", "style", "font-size: 12px; height: 38px;", "class", "form-control", "placeholder", "Select Date", "ngbDatepicker", "", 3, "minDate", "click", 4, "ngIf"], ["formControlName", "activeFrom", "class", "form-control", "style", "font-size: 12px; height: 38px;", "placeholder", "DD/MM/YYYY", 4, "ngIf"], ["formControlName", "notificationTime", 1, "form-control", 2, "font-size", "12px", "height", "38px"], [3, "value"], [3, "value", 4, "ngFor", "ngForOf"], ["formControlName", "activeFrom", "placeholder", "Select Date", "ngbDatepicker", "", 1, "form-control", 2, "font-size", "12px", "height", "38px", 3, "minDate", "click"], ["datepicker", "ngbDatepicker"], ["formControlName", "activeFrom", "placeholder", "DD/MM/YYYY", 1, "form-control", 2, "font-size", "12px", "height", "38px"], [1, "form-check-inline"], [1, "activeLabel", 2, "margin-bottom", "0px"], ["formControlName", "activeFrom", "style", "font-size: 12px; height: 38px;", "class", "form-control", "placeholder", "Select Date", "ngbDatepicker", "", 3, "minDate", "ngModelChange", "click", 4, "ngIf"], ["formControlName", "activeFrom", "class", "form-control", "style", "font-size: 12px; height: 38px;", "placeholder", "Select Date", 4, "ngIf"], ["formControlName", "activeTo", "class", "form-control", "style", "font-size: 12px; height: 38px;", "placeholder", "Select Date", "ngbDatepicker", "", 3, "minDate", "click", 4, "ngIf"], ["formControlName", "activeTo", "class", "form-control", "style", "font-size: 12px; height: 38px;", "placeholder", "Select Date", 4, "ngIf"], [1, "col-md-3", "col-lg-3", "col-xl-3", "col-12", "marginFor", 2, "margin-top", "20px"], [1, "form-check", "form-check-inline"], ["formControlName", "notificationSchedule", "type", "radio", "name", "notificationSchedule", "id", "inlineRadio1", 1, "form-control", "form-check-input", "inputSize", "red-x", 3, "value", "change"], ["for", "inlineRadio1", 1, "form-check-label"], ["formControlName", "notificationSchedule", "type", "radio", "name", "notificationSchedule", "id", "inlineRadio2", 1, "form-control", "form-check-input", "inputSize", "red-x", 3, "value"], ["for", "inlineRadio2", 1, "form-check-label"], ["formControlName", "notificationSchedule", "type", "radio", "name", "notificationSchedule", "id", "inlineRadio3", 1, "form-control", "form-check-input", "inputSize", "red", 3, "value"], ["for", "inlineRadio3", 1, "form-check-label"], [1, "row", 2, "margin-top", "15px", "margin-bottom", "15px"], [1, "col-md-6", "col-lg-6", "col-xl-6", "col-12"], ["formControlName", "day", 1, "form-control", 2, "font-size", "12px", "height", "38px"], ["formControlName", "activeFrom", "placeholder", "Select Date", "ngbDatepicker", "", 1, "form-control", 2, "font-size", "12px", "height", "38px", 3, "minDate", "ngModelChange", "click"], ["datepickerFrom", "ngbDatepicker"], ["formControlName", "activeFrom", "placeholder", "Select Date", 1, "form-control", 2, "font-size", "12px", "height", "38px"], ["formControlName", "activeTo", "placeholder", "Select Date", "ngbDatepicker", "", 1, "form-control", 2, "font-size", "12px", "height", "38px", 3, "minDate", "click"], ["datepickerTo", "ngbDatepicker"], ["formControlName", "activeTo", "placeholder", "Select Date", 1, "form-control", 2, "font-size", "12px", "height", "38px"], [1, "modal-header", 2, "border", "none"], ["type", "button", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [2, "font-size", "16px", "color", "#a42138", "text-align", "center", "font-weight", "bold"], [1, "modal-footer", 2, "border", "none"], ["type", "button", 1, "btn", "btn-sm", "btn-success", 3, "click"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", 3, "click"], ["type", "button", "aria-label", "Close", 1, "close", 3, "click"]], template: function CreateComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "form", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Basic Information");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Push Notification Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CreateComponent_Template_input_change_15_listener() { return ctx.notificationTypeChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Ad-Hoc Push Notification (1-time) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, CreateComponent_div_18_Template, 22, 5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "input", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CreateComponent_Template_input_change_20_listener() { return ctx.notificationTypeChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, " Scheduled Push Notification ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, CreateComponent_div_24_Template, 56, 15, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " Push Notification Title");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, " Push Notification Content");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](38, "textarea", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](39, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](40, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "assign-users", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("onSubmitAssignUsers", function CreateComponent_Template_assign_users_onSubmitAssignUsers_42_listener($event) { return ctx.updatedUserDetails($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_Template_button_click_44_listener() { return ctx.createUpdate(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_Template_button_click_46_listener() { return ctx.createUpdate(0); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "Draft");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_Template_button_click_48_listener() { return ctx.cancelUpdate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateComponent_Template_button_click_50_listener() { return ctx.inActive(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "Inactive");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](52, CreateComponent_ng_template_52_Template, 12, 0, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](54, CreateComponent_ng_template_54_Template, 12, 0, "ng-template", null, 27, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.notificationCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.notificationCreateForm.value.notificationType == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.notificationCreateForm.value.notificationType == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("userDetails", ctx.userDetails)("isAdminView", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.isView ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.buttonText);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.isView || ctx.isPublish ? "" : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx.notficationId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx.notficationId && !ctx.isView || ctx.notificationCreateForm.value.notificationType == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.isView ? "" : null);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_11__["AssignUsersComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbInputDatepicker"]], styles: [".headerBg[_ngcontent-%COMP%] {\n background-color: #b10f0f;\n font-size: 0.875rem;\n padding: 0.5rem 0.9rem;\n}\n\n.form-check[_ngcontent-%COMP%] {\n margin-top: 10px;\n}\n\n.snackSuccess[_ngcontent-%COMP%] {\n background-color: #b10f0f;\n}\n\n.redTitle[_ngcontent-%COMP%] {\n color: #a42138;\n font-weight: bold;\n}\n\n.marginFor[_ngcontent-%COMP%] {\n margin-top: 10px;\n}\n\n.paddingTop25[_ngcontent-%COMP%] {\n padding: 25px 0px;\n}\n\n.marginSide10[_ngcontent-%COMP%] {\n margin: 0px 5px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #ffffff;\n text-transform: uppercase;\n font-size: 13px;\n font-weight: 500;\n letter-spacing: 0.5px;\n padding: 20px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] {\n padding: 15px 0;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n padding: 10px 20px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading.editHeader[_ngcontent-%COMP%] {\n background-color: #842b3a;\n}\n\n.dashboardPanelCon.userTable.viewUserSection[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] {\n padding-top: 0;\n}\n\n.dashboardPanelCon.userTable.viewUserSection[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .collapseWrapper[_ngcontent-%COMP%] button.closePlane[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #fff;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .customFieldList[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n padding: 10px 20px !important;\n}\n\n.inputCheck[_ngcontent-%COMP%] {\n float: left;\n position: inherit;\n top: 0px;\n width: 16px;\n padding-left: 20px;\n}\n\n.activeLabel[_ngcontent-%COMP%] {\n padding-right: 10px;\n width: 90%;\n}\n\n.inputSize[_ngcontent-%COMP%] {\n width: 18px;\n}\n\n.form-control-input[_ngcontent-%COMP%]:checked ~ .form-control-label[_ngcontent-%COMP%]::before {\n color: #fff;\n border-color: #7B1FA2;\n}\n\n.form-control-input[_ngcontent-%COMP%]:checked ~ .form-control-label.red[_ngcontent-%COMP%]::before {\n background-color: red;\n}\n\n.form-control-input[_ngcontent-%COMP%]:checked ~ .form-control-label.green[_ngcontent-%COMP%]::before {\n background-color: green;\n}\n\n.form-control[_ngcontent-%COMP%] {\n box-shadow: none !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvbm90aWZpY2F0aW9uL2NyZWF0ZS9jcmVhdGUuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBQTtFQUNBLG1CQUFBO0VBQ0Esc0JBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBQ0E7RUFDRSx5QkFBQTtBQUVGOztBQUFBO0VBQ0UsY0FBQTtFQUNBLGlCQUFBO0FBR0Y7O0FBREE7RUFDRSxnQkFBQTtBQUlGOztBQUZBO0VBQ0UsaUJBQUE7QUFLRjs7QUFIQTtFQUNFLGVBQUE7QUFNRjs7QUFKQTtFQUNFLHlCQUFBO0VBQ0EsY0FBQTtFQUNBLHlCQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EscUJBQUE7RUFDQSxhQUFBO0FBT0Y7O0FBTEE7RUFDRSxlQUFBO0FBUUY7O0FBTEE7RUFDRSxrQkFBQTtBQVFGOztBQU5BO0VBQ0UseUJBQUE7QUFTRjs7QUFQQTtFQUNFLGNBQUE7QUFVRjs7QUFSQTtFQUNFLGtCQUFBO0FBV0Y7O0FBVEE7RUFDRSxXQUFBO0FBWUY7O0FBVkE7RUFDRSw2QkFBQTtBQWFGOztBQVhBO0VBQ0ksV0FBQTtFQUNBLGlCQUFBO0VBQ0EsUUFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtBQWNKOztBQVpBO0VBQ0ksbUJBQUE7RUFDQSxVQUFBO0FBZUo7O0FBWkE7RUFDSSxXQUFBO0FBZUo7O0FBWkE7RUFDSSxXQUFBO0VBQ0EscUJBQUE7QUFlSjs7QUFaRTtFQUNFLHFCQUFBO0FBZUo7O0FBWkU7RUFDRSx1QkFBQTtBQWVKOztBQVpFO0VBRUUsMkJBQUE7QUFjSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL25vdGlmaWNhdGlvbi9jcmVhdGUvY3JlYXRlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmhlYWRlckJnIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2IxMGYwZjtcbiAgZm9udC1zaXplOiAwLjg3NXJlbTtcbiAgcGFkZGluZzogMC41cmVtIDAuOXJlbTtcbn1cblxuLmZvcm0tY2hlY2sge1xuICBtYXJnaW4tdG9wOiAxMHB4O1xufVxuLnNuYWNrU3VjY2VzcyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNiMTBmMGY7XG59XG4ucmVkVGl0bGUge1xuICBjb2xvcjogI2E0MjEzODtcbiAgZm9udC13ZWlnaHQ6IGJvbGQ7XG59XG4ubWFyZ2luRm9yIHtcbiAgbWFyZ2luLXRvcDogMTBweDtcbn1cbi5wYWRkaW5nVG9wMjUge1xuICBwYWRkaW5nOiAyNXB4IDBweDtcbn1cbi5tYXJnaW5TaWRlMTAge1xuICBtYXJnaW46IDBweCA1cHg7XG59XG4uZGFzaGJvYXJkUGFuZWxDb24gLnBhbmVsIC5wYW5lbC1oZWFkaW5nIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmZmZmY7XG4gIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gIGZvbnQtc2l6ZTogMTNweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgbGV0dGVyLXNwYWNpbmc6IDAuNXB4O1xuICBwYWRkaW5nOiAyMHB4O1xufVxuLmRhc2hib2FyZFBhbmVsQ29uIC5wYW5lbCAucGFuZWwtYm9keSB7XG4gIHBhZGRpbmc6IDE1cHggMDtcbn1cblxuLmRhc2hib2FyZFBhbmVsQ29uIC5wYW5lbC1ib2R5IC5wYW5lbC1oZWFkaW5nIHtcbiAgcGFkZGluZzogMTBweCAyMHB4O1xufVxuLmRhc2hib2FyZFBhbmVsQ29uIC5wYW5lbCAucGFuZWwtaGVhZGluZy5lZGl0SGVhZGVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiKDEzMiwgNDMsIDU4KTtcbn1cbi5kYXNoYm9hcmRQYW5lbENvbi51c2VyVGFibGUudmlld1VzZXJTZWN0aW9uIC5wYW5lbC1ib2R5IHtcbiAgcGFkZGluZy10b3A6IDA7XG59XG4uZGFzaGJvYXJkUGFuZWxDb24udXNlclRhYmxlLnZpZXdVc2VyU2VjdGlvbiB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbn1cbi5kYXNoYm9hcmRQYW5lbENvbiAuY29sbGFwc2VXcmFwcGVyIGJ1dHRvbi5jbG9zZVBsYW5lIGkge1xuICBjb2xvcjogI2ZmZjtcbn1cbi5kYXNoYm9hcmRQYW5lbENvbiAuY3VzdG9tRmllbGRMaXN0IC5wYW5lbCAucGFuZWwtaGVhZGluZyB7XG4gIHBhZGRpbmc6IDEwcHggMjBweCAhaW1wb3J0YW50O1xufVxuLmlucHV0Q2hlY2t7XG4gICAgZmxvYXQ6IGxlZnQ7XG4gICAgcG9zaXRpb246IGluaGVyaXQ7XG4gICAgdG9wOiAwcHg7XG4gICAgd2lkdGg6IDE2cHg7XG4gICAgcGFkZGluZy1sZWZ0OiAyMHB4O1xufVxuLmFjdGl2ZUxhYmVse1xuICAgIHBhZGRpbmctcmlnaHQ6IDEwcHg7XG4gICAgd2lkdGg6IDkwJTsgXG59XG5cbi5pbnB1dFNpemV7XG4gICAgd2lkdGg6MThweFxufVxuXG4uZm9ybS1jb250cm9sLWlucHV0OmNoZWNrZWR+LmZvcm0tY29udHJvbC1sYWJlbDo6YmVmb3JlIHtcbiAgICBjb2xvcjogI2ZmZjtcbiAgICBib3JkZXItY29sb3I6ICM3QjFGQTI7XG4gIH1cbiAgXG4gIC5mb3JtLWNvbnRyb2wtaW5wdXQ6Y2hlY2tlZH4uZm9ybS1jb250cm9sLWxhYmVsLnJlZDo6YmVmb3JlIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZWQ7XG4gIH1cbiAgXG4gIC5mb3JtLWNvbnRyb2wtaW5wdXQ6Y2hlY2tlZH4uZm9ybS1jb250cm9sLWxhYmVsLmdyZWVuOjpiZWZvcmUge1xuICAgIGJhY2tncm91bmQtY29sb3I6IGdyZWVuO1xuICB9XG5cbiAgLmZvcm0tY29udHJvbHtcblxuICAgIGJveC1zaGFkb3c6IG5vbmUgIWltcG9ydGFudDtcblxuICB9Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CreateComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-create',
templateUrl: './create.component.html',
styleUrls: ['./create.component.scss'],
providers: []
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__["NotificationService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_8__["ActivatedRoute"] }]; }, { $selectedOption: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], buId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], content: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['content', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
}], sendNotification: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sendNotification', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
}], notiData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "6/Fc":
/*!********************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/integration-logs/integration-logs.component.ts ***!
\********************************************************************************************/
/*! exports provided: IntegrationLogsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegrationLogsComponent", function() { return IntegrationLogsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_all_logs_logs_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/all-logs/logs.service */ "4ak9");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function IntegrationLogsComponent_ng_template_6_span_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function IntegrationLogsComponent_ng_template_6_table_21_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](11, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.status);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.newTier2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.newTier3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.newTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](11, 6, item_r8.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.sourcePath);
} }
function IntegrationLogsComponent_ng_template_6_table_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "NEW USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "UPDATED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "FAILED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "ERROR FILE PATH");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, IntegrationLogsComponent_ng_template_6_table_21_tr_16_Template, 14, 8, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r6.mastersUnitPTable.data);
} }
function IntegrationLogsComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function IntegrationLogsComponent_ng_template_6_Template_select_change_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r9.onLimitChangeMaster(); })("ngModelChange", function IntegrationLogsComponent_ng_template_6_Template_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.mastersUnitPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, IntegrationLogsComponent_ng_template_6_span_18_Template, 2, 0, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function IntegrationLogsComponent_ng_template_6_Template_input_search_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.loadBussinessUnit(); })("keyup", function IntegrationLogsComponent_ng_template_6_Template_input_keyup_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.BussinessunitsearchInput.next($event); })("ngModelChange", function IntegrationLogsComponent_ng_template_6_Template_input_ngModelChange_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.mastersUnitPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, IntegrationLogsComponent_ng_template_6_table_21_Template, 17, 1, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "app-skliton-loading-table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ngb-pagination", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function IntegrationLogsComponent_ng_template_6_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.mastersUnitPTable.page = $event; })("pageChange", function IntegrationLogsComponent_ng_template_6_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.onPageChangeMaster($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.mastersUnitPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.mastersUnitPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.mastersUnitPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 6)("isTableLoading", ctx_r1.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r1.mastersUnitPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r1.mastersUnitPTable.total)("page", ctx_r1.mastersUnitPTable.page)("maxSize", 5)("pageSize", ctx_r1.mastersUnitPTable.limit);
} }
function IntegrationLogsComponent_ng_template_10_span_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function IntegrationLogsComponent_ng_template_10_table_21_tr_18_span_15_Template(rf, ctx) { if (rf & 1) {
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function IntegrationLogsComponent_ng_template_10_table_21_tr_18_span_15_Template_span_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const item_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r23.downloadFile(item_r21.errorFilePath, item_r21.errorFilePath); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Download");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function IntegrationLogsComponent_ng_template_10_table_21_tr_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, IntegrationLogsComponent_ng_template_10_table_21_tr_18_span_15_Template, 2, 0, "span", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r21 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r21.company == null ? null : item_r21.company.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r21.status);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r21.noOfNewUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r21.noOfUpdatedUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r21.faildUpdateUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](13, 7, item_r21.createdAt, "MMMM d, y h:mm a"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r21.status === "Partially completed");
} }
function IntegrationLogsComponent_ng_template_10_table_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "COMPANY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "NEW USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "UPDATED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "FAILED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "ERROR FILE PATH");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, IntegrationLogsComponent_ng_template_10_table_21_tr_18_Template, 16, 10, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r18.usersUnitTable.data);
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function IntegrationLogsComponent_ng_template_10_ngx_skeleton_loader_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ngx-skeleton-loader", 34);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c0));
} }
function IntegrationLogsComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function IntegrationLogsComponent_ng_template_10_Template_select_change_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r26.onLimitChangeUsers(); })("ngModelChange", function IntegrationLogsComponent_ng_template_10_Template_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r28.usersUnitTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, IntegrationLogsComponent_ng_template_10_span_18_Template, 2, 0, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function IntegrationLogsComponent_ng_template_10_Template_input_search_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r29.loadUserLogs(); })("search", function IntegrationLogsComponent_ng_template_10_Template_input_search_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r30.UserssearchInput.next($event); })("keyup", function IntegrationLogsComponent_ng_template_10_Template_input_keyup_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r31.UserssearchInput.next($event); })("ngModelChange", function IntegrationLogsComponent_ng_template_10_Template_input_ngModelChange_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r32.usersUnitTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, IntegrationLogsComponent_ng_template_10_table_21_Template, 19, 1, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, IntegrationLogsComponent_ng_template_10_ngx_skeleton_loader_22_Template, 1, 2, "ngx-skeleton-loader", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ngb-pagination", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function IntegrationLogsComponent_ng_template_10_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r33.usersUnitTable.page = $event; })("pageChange", function IntegrationLogsComponent_ng_template_10_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r34.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r2.usersUnitTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.usersUnitTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r2.usersUnitTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.isUserTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isUserTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r2.usersUnitTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r2.usersUnitTable.total)("page", ctx_r2.usersUnitTable.page)("maxSize", 5)("pageSize", ctx_r2.usersUnitTable.limit);
} }
function IntegrationLogsComponent_ng_template_14_span_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function IntegrationLogsComponent_ng_template_14_table_21_tr_18_span_15_Template(rf, ctx) { if (rf & 1) {
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function IntegrationLogsComponent_ng_template_14_table_21_tr_18_span_15_Template_span_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r43); const item_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r41.downloadFile(item_r39.errorFilePath, item_r39.errorFilePath); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Download");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function IntegrationLogsComponent_ng_template_14_table_21_tr_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, IntegrationLogsComponent_ng_template_14_table_21_tr_18_span_15_Template, 2, 0, "span", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r39 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r39.company == null ? null : item_r39.company.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r39.status);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r39.noOfNewUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r39.noOfUpdatedUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r39.faildUpdateUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](13, 7, item_r39.createdAt, "MMMM d, y h:mm a"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r39.status === "Partially completed");
} }
function IntegrationLogsComponent_ng_template_14_table_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "COMPANY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "NEW USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "UPDATED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "FAILED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "ERROR FILE PATH");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, IntegrationLogsComponent_ng_template_14_table_21_tr_18_Template, 16, 10, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r36.lbsQuotaUnitTable.data);
} }
function IntegrationLogsComponent_ng_template_14_ngx_skeleton_loader_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ngx-skeleton-loader", 34);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c0));
} }
function IntegrationLogsComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function IntegrationLogsComponent_ng_template_14_Template_select_change_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r44.onLimitChangeUsers(); })("ngModelChange", function IntegrationLogsComponent_ng_template_14_Template_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r46.lbsQuotaUnitTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, IntegrationLogsComponent_ng_template_14_span_18_Template, 2, 0, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function IntegrationLogsComponent_ng_template_14_Template_input_search_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r47.loadUserLogs(); })("search", function IntegrationLogsComponent_ng_template_14_Template_input_search_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r48.UserssearchInput.next($event); })("keyup", function IntegrationLogsComponent_ng_template_14_Template_input_keyup_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r49.UserssearchInput.next($event); })("ngModelChange", function IntegrationLogsComponent_ng_template_14_Template_input_ngModelChange_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r50.lbsQuotaUnitTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, IntegrationLogsComponent_ng_template_14_table_21_Template, 19, 1, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, IntegrationLogsComponent_ng_template_14_ngx_skeleton_loader_22_Template, 1, 2, "ngx-skeleton-loader", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ngb-pagination", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function IntegrationLogsComponent_ng_template_14_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r51.lbsQuotaUnitTable.page = $event; })("pageChange", function IntegrationLogsComponent_ng_template_14_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r52.onPageChangeLbsQuota($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r3.lbsQuotaUnitTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.lbsQuotaUnitTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r3.lbsQuotaUnitTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r3.lbsquotaTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.lbsquotaTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r3.lbsQuotaUnitTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r3.lbsQuotaUnitTable.total)("page", ctx_r3.lbsQuotaUnitTable.page)("maxSize", 5)("pageSize", ctx_r3.lbsQuotaUnitTable.limit);
} }
function IntegrationLogsComponent_ng_template_18_span_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function IntegrationLogsComponent_ng_template_18_table_21_tr_18_span_15_Template(rf, ctx) { if (rf & 1) {
const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function IntegrationLogsComponent_ng_template_18_table_21_tr_18_span_15_Template_span_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r61); const item_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r59.downloadFile(item_r57.errorFilePath, item_r57.errorFilePath); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Download");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function IntegrationLogsComponent_ng_template_18_table_21_tr_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, IntegrationLogsComponent_ng_template_18_table_21_tr_18_span_15_Template, 2, 0, "span", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r57 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r57.company == null ? null : item_r57.company.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r57.status);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r57.noOfNewUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r57.noOfUpdatedUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r57.faildUpdateUsers);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](13, 7, item_r57.createdAt, "MMMM d, y h:mm a"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r57.status === "Partially completed");
} }
function IntegrationLogsComponent_ng_template_18_table_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "COMPANY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "NEW USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "UPDATED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "FAILED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "ERROR FILE PATH");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, IntegrationLogsComponent_ng_template_18_table_21_tr_18_Template, 16, 10, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r54.lbsApprovedUnitTable.data);
} }
function IntegrationLogsComponent_ng_template_18_ngx_skeleton_loader_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ngx-skeleton-loader", 34);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c0));
} }
function IntegrationLogsComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
const _r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function IntegrationLogsComponent_ng_template_18_Template_select_change_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r63); const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r62.onLimitLbsApprovedUsers(); })("ngModelChange", function IntegrationLogsComponent_ng_template_18_Template_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r63); const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r64.lbsApprovedUnitTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, IntegrationLogsComponent_ng_template_18_span_18_Template, 2, 0, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function IntegrationLogsComponent_ng_template_18_Template_input_search_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r63); const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r65.loadLbsApproved(); })("search", function IntegrationLogsComponent_ng_template_18_Template_input_search_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r63); const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r66.lbsApprovedsearchInput.next($event); })("keyup", function IntegrationLogsComponent_ng_template_18_Template_input_keyup_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r63); const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r67.lbsApprovedsearchInput.next($event); })("ngModelChange", function IntegrationLogsComponent_ng_template_18_Template_input_ngModelChange_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r63); const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r68.lbsApprovedUnitTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, IntegrationLogsComponent_ng_template_18_table_21_Template, 19, 1, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, IntegrationLogsComponent_ng_template_18_ngx_skeleton_loader_22_Template, 1, 2, "ngx-skeleton-loader", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ngb-pagination", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function IntegrationLogsComponent_ng_template_18_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r63); const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r69.lbsApprovedUnitTable.page = $event; })("pageChange", function IntegrationLogsComponent_ng_template_18_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r63); const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r70.onPageChangeLbsApproved($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r4.lbsApprovedUnitTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.lbsApprovedUnitTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r4.lbsApprovedUnitTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r4.lbsApprovedTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.lbsApprovedTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r4.lbsApprovedUnitTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r4.lbsApprovedUnitTable.total)("page", ctx_r4.lbsApprovedUnitTable.page)("maxSize", 5)("pageSize", ctx_r4.lbsApprovedUnitTable.limit);
} }
class IntegrationLogsComponent {
constructor(logsService, toastService, tableService, sanitizer) {
this.logsService = logsService;
this.toastService = toastService;
this.tableService = tableService;
this.sanitizer = sanitizer;
this.userTableColumn = ['company.name', 'status', 'noOfNewUsers', 'noOfUpdatedUsers', 'faildUpdateUsers', 'createdAt', 'errorFilePath'];
this.lbsQuotaTableColumn = ['company.name', 'status', 'noOfNewUsers', 'noOfUpdatedUsers', 'faildUpdateUsers', 'createdAt', 'errorFilePath'];
this.lbsApprovedTableColumn = ['company.name', 'status', 'noOfNewUsers', 'noOfUpdatedUsers', 'faildUpdateUsers', 'createdAt', 'errorFilePath'];
this.userTableQueryParams = JSON.parse(JSON.stringify(src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__["tableParam"]));
this.lbsQuotaTableQueryParams = JSON.parse(JSON.stringify(src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__["tableParam"]));
this.lbsApprovedTableQueryParams = JSON.parse(JSON.stringify(src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__["tableParam"]));
this.isUserTableLoading = false;
this.lbsquotaTableLoading = false;
this.lbsApprovedTableLoading = false;
this.UserssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.lbsQuotasearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.lbsApprovedsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.isTableLoading = true;
this.UsersSearchSubscription = this.UserssearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.usersUnitTable.page = 1;
this.userTableQueryParams.start = 0;
this.userTableQueryParams.search.value = input;
this.loadUserLogs();
});
this.lbsQuotaSubscription = this.lbsQuotasearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.lbsQuotaUnitTable.page = 1;
this.lbsQuotaTableQueryParams.start = 0;
this.lbsQuotaTableQueryParams.search.value = input;
this.loadLbsQuota();
});
this.lbsApprovedSubscription = this.lbsApprovedsearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.lbsApprovedUnitTable.page = 1;
this.lbsApprovedTableQueryParams.start = 0;
this.lbsApprovedTableQueryParams.search.value = input;
this.loadLbsApproved();
});
}
ngOnInit() {
this.mastersUnitPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.usersUnitTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.lbsQuotaUnitTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.lbsApprovedUnitTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.loadMasterLogs();
this.loadUserLogs();
this.loadLbsQuota();
this.loadLbsApproved();
}
onSortMaster({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.mastersUnitPTable.sortBy = direction;
this.mastersUnitPTable.sortWith = column;
direction && this.loadMasterLogs();
}
onPageChangeMaster(page) {
this.mastersUnitPTable.page = page;
this.loadMasterLogs();
}
onLimitChangeMaster() {
this.loadMasterLogs();
}
onSortUsers({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersUnitTable.sortBy = direction;
this.usersUnitTable.sortWith = column;
direction && this.loadUserLogs();
}
onPageChangeUsers(page) {
this.usersUnitTable.page = page;
this.userTableQueryParams.start = +page > 1 ? (page - 1) * this.usersUnitTable.limit : 0;
this.loadUserLogs();
}
onLimitChangeUsers() {
this.usersUnitTable.page = 1;
this.userTableQueryParams.start = 0;
this.loadUserLogs();
}
onLimitLbsQuotaUsers() {
this.lbsQuotaUnitTable.page = 1;
this.lbsQuotaTableQueryParams.start = 0;
this.loadLbsQuota();
}
onLimitLbsApprovedUsers() {
this.lbsApprovedUnitTable.page = 1;
this.lbsApprovedTableQueryParams.start = 0;
this.loadLbsApproved();
}
onPageChangeLbsApproved(page) {
this.lbsApprovedUnitTable.page = page;
this.lbsApprovedTableQueryParams.start = +page > 1 ? (page - 1) * this.lbsApprovedUnitTable.limit : 0;
this.loadLbsApproved();
}
onPageChangeLbsQuota(page) {
this.lbsQuotaUnitTable.page = page;
this.lbsQuotaTableQueryParams.start = +page > 1 ? (page - 1) * this.lbsQuotaUnitTable.limit : 0;
this.loadLbsQuota();
}
loadMasterLogs() {
// this.bussinesUnitPTable.isLoading = true;
const _a = this.mastersUnitPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.logsService
.getMasterIntegratinLogs(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
// this.bussinesUnitPTable.isLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.mastersUnitPTable.data = data;
this.isTableLoading = false;
this.mastersUnitPTable.total = count;
}, (error) => {
this.mastersUnitPTable.data = [];
this.mastersUnitPTable.total = 0;
this.toastService.error('No list found');
});
}
loadUserLogs() {
let tableCol = this.tableService.initializeTableParamsColums(this.userTableColumn, [0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6]) || [];
this.userTableQueryParams.columns = tableCol;
this.userTableQueryParams.draw++;
this.userTableQueryParams.length = this.usersUnitTable.limit;
this.isUserTableLoading = true;
const subscribe = this.logsService
.getUsersIntegratinLogs(this.userTableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
// this.bussinesUnitPTable.isLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
//
const { recordsFiltered, data } = response;
this.usersUnitTable.data = data;
this.isUserTableLoading = false;
this.usersUnitTable.total = recordsFiltered;
}, (error) => {
this.usersUnitTable.data = [];
this.usersUnitTable.total = 0;
this.isUserTableLoading = false;
this.toastService.error('No list found');
});
}
loadLbsQuota() {
let tableCol = this.tableService.initializeTableParamsColums(this.lbsQuotaTableColumn, [0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6]) || [];
this.lbsQuotaTableQueryParams.columns = tableCol;
this.lbsQuotaTableQueryParams.draw++;
this.lbsQuotaTableQueryParams.length = this.lbsQuotaUnitTable.limit;
this.lbsquotaTableLoading = true;
const subscribe = this.logsService
.getLbsQuotaIntegratinLogs(this.lbsQuotaTableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
// this.bussinesUnitPTable.isLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
//
const { recordsFiltered, data } = response;
this.lbsQuotaUnitTable.data = data;
this.lbsquotaTableLoading = false;
this.lbsQuotaUnitTable.total = recordsFiltered;
}, (error) => {
this.lbsQuotaUnitTable.data = [];
this.lbsQuotaUnitTable.total = 0;
this.lbsquotaTableLoading = false;
this.toastService.error('No list found');
});
}
loadLbsApproved() {
let tableCol = this.tableService.initializeTableParamsColums(this.lbsApprovedTableColumn, [0, 1, 2, 3, 4, 5, 6], [0, 1, 2, 3, 4, 5, 6]) || [];
this.lbsApprovedTableQueryParams.columns = tableCol;
this.lbsApprovedTableQueryParams.draw++;
this.lbsApprovedTableQueryParams.length = this.lbsApprovedUnitTable.limit;
this.lbsApprovedTableLoading = true;
const subscribe = this.logsService
.getLbsApprovedIntegratinLogs(this.lbsApprovedTableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
// this.bussinesUnitPTable.isLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
//
const { recordsFiltered, data } = response;
this.lbsApprovedUnitTable.data = data;
this.lbsApprovedTableLoading = false;
this.lbsApprovedUnitTable.total = recordsFiltered;
}, (error) => {
this.lbsApprovedUnitTable.data = [];
this.lbsApprovedUnitTable.total = 0;
this.lbsApprovedTableLoading = false;
this.toastService.error('No list found');
});
}
downloadFile(url, fileName) {
if (!url) {
this.toastService.error('Failed to download the file. Please try again.');
return;
}
this.logsService.downloadFile(url).subscribe((response) => {
const blobUrl = window.URL.createObjectURL(response);
const link = document.createElement('a');
link.href = blobUrl;
const finalFileName = fileName.split('/').pop();
link.download = finalFileName;
link.click();
window.URL.revokeObjectURL(blobUrl);
this.toastService.success('File downloaded successfully!');
}, (error) => {
this.toastService.error('Failed to download the file. Please try again.');
});
}
safeUrl(url) {
const safeUrl = this.sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].URL, url);
return safeUrl ? this.sanitizer.bypassSecurityTrustUrl(safeUrl === null || safeUrl === void 0 ? void 0 : safeUrl.toString()) : null;
}
}
IntegrationLogsComponent.ɵfac = function IntegrationLogsComponent_Factory(t) { return new (t || IntegrationLogsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_all_logs_logs_service__WEBPACK_IMPORTED_MODULE_6__["LogsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_8__["TableService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__["DomSanitizer"])); };
IntegrationLogsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: IntegrationLogsComponent, selectors: [["app-integration-logs"]], viewQuery: function IntegrationLogsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 20, vars: 5, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table bg-white", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table", "bg-white"], [1, "table-header"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], ["scope", "col"], [4, "ngFor", "ngForOf"], ["count", "7", 3, "theme", 4, "ngIf"], ["scope", "col", "sortable", "company"], ["class", "btn btn-link p-0", 3, "click", 4, "ngIf"], [1, "btn", "btn-link", "p-0", 3, "click"], ["count", "7", 3, "theme"]], template: function IntegrationLogsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "MASTER DATA");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, IntegrationLogsComponent_ng_template_6_Template, 28, 16, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, IntegrationLogsComponent_ng_template_10_Template, 28, 15, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "LBSQUOTA");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, IntegrationLogsComponent_ng_template_14_Template, 28, 15, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "LBSAPPROVED");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, IntegrationLogsComponent_ng_template_18_Template, 28, 15, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavOutlet"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_14__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_15__["NgxSkeletonLoaderComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_13__["DatePipe"]], styles: [".logs-main[_ngcontent-%COMP%] {\n border: 1px solid #e0e0e0;\n height: auto;\n width: 100%;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2ludGVncmF0aW9uLWxvZ3MvaW50ZWdyYXRpb24tbG9ncy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7QUFDRjs7QUFFQTtFQUNFLHNCQUFBO0FBQ0Y7O0FBQUU7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFFSjs7QUFBSTtFQUNFLGNBQUE7QUFFTjs7QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3N5c3RlbS1zZXR0aW5ncy9pbnRlZ3JhdGlvbi1sb2dzL2ludGVncmF0aW9uLWxvZ3MuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubG9ncy1tYWluIHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2UwZTBlMDtcbiAgaGVpZ2h0OiBhdXRvO1xuICB3aWR0aDogMTAwJTtcbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](IntegrationLogsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-integration-logs',
templateUrl: './integration-logs.component.html',
styleUrls: ['./integration-logs.component.scss']
}]
}], function () { return [{ type: src_app_users_service_all_logs_logs_service__WEBPACK_IMPORTED_MODULE_6__["LogsService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_8__["TableService"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__["DomSanitizer"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "61Xx":
/*!***************************************************************************!*\
!*** ./src/app/users/service/manage-news & events/news-events.service.ts ***!
\***************************************************************************/
/*! exports provided: NewsEventsService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NewsEventsService", function() { return NewsEventsService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class NewsEventsService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
uploadFile(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http
.post(`${this.baseUrl}/post/uploadFile/`, formData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllNewsEventsOld(query) {
return this.http
.get(`${this.baseUrl}/common-post/myNewsAndEvents/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(query)}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllNewsEvents(query) {
return this.http
.post(`${this.baseUrl}/common/post/read`, query)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllNewsEventsOverview(companyId, data) {
return this.http
.get(`${this.baseUrl}/post/${companyId}?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllModules() {
return this.http
.get(`${this.baseUrl}/central-builder/module/`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getnonLinkModules() {
return this.http
.get(`${this.baseUrl}/centralBuilder/read?nonLinkedModules=true`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllReportedPosts(data, type) {
return this.http
.get(`${this.baseUrl}/post/reportedPosts/${type}?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllReportedComments(data, type) {
return this.http
.get(`${this.baseUrl}/post/reportedComments/${type}?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllChannels() {
return this.http
.get(`${this.baseUrl}/channel/getChannelsForAdmin/`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllCategories(id) {
return this.http
.get(`${this.baseUrl}/category/getChannelCategories/${id}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSingleNewsEvents(id) {
return this.http
.get(`${this.baseUrl}/post/one/${id}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSinglePostLog(data) {
return this.http
.get(`${this.baseUrl}/postLog/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateReportedPost(id, data) {
return this.http
.post(`${this.baseUrl}/post/updatereviewPost`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateReportedComment(data) {
return this.http
.post(`${this.baseUrl}/post/updateCommentStatus`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateNewsEvents(data, id = null) {
if (id) {
return this.http
.put(`${this.baseUrl}/post/one/${id}`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
return this.http
.post(`${this.baseUrl}/post/update`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateReviewPost(data, id) {
return this.http
.put(`${this.baseUrl}/post/updatereviewPost/${id}`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateReviewComment(data, id) {
return this.http
.put(`${this.baseUrl}/post/updateCommentStatus/${id}`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createNewsEvents(data) {
return this.http
.post(`${this.baseUrl}/post/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createEventsSessions(data) {
return this.http
.post(`${this.baseUrl}/event/session/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateEventsSessions(data) {
return this.http
.post(`${this.baseUrl}/event/session/editMultipleSessions`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
cancelSessions(id) {
return this.http
.post(`${this.baseUrl}/event/session/cancelSession`, { _id: id }, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getChannelForNewsAndEvents() {
return this.http
.get(`${this.baseUrl}/common/post/getUserChannels/`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getCategoriesForNewsAndEvents(id) {
return this.http
.get(`${this.baseUrl}/common-post/getChannelCategories/${id}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getReportedComments() {
return this.http.get(`${this.baseUrl}/post/reportedComments/event`, {
headers: this.Headers,
});
}
//
getSessionDetail(data) {
return this.http.post(`${this.baseUrl}/event/session/get/`, data, {
headers: this.Headers,
});
}
getRSVPAttendanceStatus(data) {
return this.http.post(`${this.baseUrl}/event/rsvp/list-attendees`, data, {
headers: this.Headers,
});
}
exportAttendance(data) {
return this.http.post(`${this.baseUrl}/event/attendance/export-attendees`, data, {
headers: this.Headers,
});
}
downloadFile(x) {
return this.http.get(`${this.baseUrl}/uploads/Postexport/` + x, {
responseType: "blob",
});
}
manualStaffAttendance(data) {
return this.http.post(`${this.baseUrl}/event/attendance/manual`, data, {
headers: this.Headers,
});
}
getSessions(data) {
return this.http.post(`${this.baseUrl}/event/session/getSessionsByPost`, data, {
headers: this.Headers,
});
}
}
NewsEventsService.ɵfac = function NewsEventsService_Factory(t) { return new (t || NewsEventsService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
NewsEventsService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: NewsEventsService, factory: NewsEventsService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NewsEventsService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "6CZB":
/*!*****************************************************************!*\
!*** ./src/app/shared/dynamic-fields/dynamic-form.component.ts ***!
\*****************************************************************/
/*! exports provided: DynamicFormBuilderComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicFormBuilderComponent", function() { return DynamicFormBuilderComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _field_builder_field_builder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./field-builder/field-builder */ "yrE4");
function DynamicFormBuilderComponent_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "field-builder", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r1 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r0.gridView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", field_r1)("form", ctx_r0.formGroup);
} }
class DynamicFormBuilderComponent {
constructor() {
this.onSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.fields = [];
}
ngOnInit() {
let fieldsCtrls = {};
for (let f of this.fields) {
if (f.type != 'checkbox') {
fieldsCtrls[f.name] = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"](f.value || '', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required);
}
else {
let opts = {};
for (let opt of f.options) {
opts[opt.key] = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"](opt.value);
}
fieldsCtrls[f.name] = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroup"](opts);
}
}
//this.form = new FormGroup(fieldsCtrls);
}
}
DynamicFormBuilderComponent.ɵfac = function DynamicFormBuilderComponent_Factory(t) { return new (t || DynamicFormBuilderComponent)(); };
DynamicFormBuilderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DynamicFormBuilderComponent, selectors: [["dynamic-form-builder"]], inputs: { fields: "fields", formGroup: "formGroup", gridView: "gridView" }, outputs: { onSubmit: "onSubmit" }, decls: 3, vars: 2, consts: [[1, "form-horizontal", 3, "formGroup"], [1, "row"], [3, "ngClass", 4, "ngFor", "ngForOf"], [3, "ngClass"], [3, "field", "form"]], template: function DynamicFormBuilderComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "form", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, DynamicFormBuilderComponent_div_2_Template, 2, 3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.fields);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgClass"], _field_builder_field_builder__WEBPACK_IMPORTED_MODULE_3__["FieldBuilderComponent"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicFormBuilderComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'dynamic-form-builder',
template: `
`,
}]
}], function () { return []; }, { onSubmit: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], fields: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], formGroup: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], gridView: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "6Sck":
/*!*****************************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/question-builder/create-edit-module/create-edit-module.component.ts ***!
\*****************************************************************************************************************/
/*! exports provided: CreateEditModuleComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEditModuleComponent", function() { return CreateEditModuleComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/sweet-alert/sweet-alert */ "xgpu");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _question_modal_question_modal_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../question-modal/question-modal.component */ "HCpM");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/admin/service/companyservice/company.service */ "RZ9m");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["createQuestion"];
const _c1 = ["updateModule"];
const _c2 = ["addSection"];
function CreateEditModuleComponent_a_11_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "a", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_a_11_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const item_r8 = ctx.$implicit; const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r9.openPopup(item_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.name);
} }
function CreateEditModuleComponent_button_19_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.openPopupForSection(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Add Section ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_button_20_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_button_20_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.saveAsDraft(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Save as Draft ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", (ctx_r2.selectedModule == null ? null : ctx_r2.selectedModule.status) == 1);
} }
function CreateEditModuleComponent_div_24_div_1_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditModuleComponent_div_24_div_1_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const section_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.selectSection(section_r15._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "strong", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "span", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "ul", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "li", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_div_24_div_1_Template_li_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const section_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.onEditSection(section_r15); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "a");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "li", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_div_24_div_1_Template_li_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const section_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r24.onDeleteSection(section_r15._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "a");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Delete");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
const section_r15 = ctx_r26.$implicit;
const i_r16 = ctx_r26.index;
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", ctx_r17.selectedSection == section_r15._id)("disabled", ctx_r17.selectedSection === section_r15._id)("value", section_r15._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r16 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](section_r15 == null ? null : section_r15.sectionName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r17.selectedSection !== section_r15._id);
} }
function CreateEditModuleComponent_div_24_div_2_div_17_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r49 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r49.value);
} }
function CreateEditModuleComponent_div_24_div_2_div_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditModuleComponent_div_24_div_2_div_17_div_2_Template, 4, 1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.options);
} }
function CreateEditModuleComponent_div_24_div_2_div_18_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r52 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r52.value);
} }
function CreateEditModuleComponent_div_24_div_2_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditModuleComponent_div_24_div_2_div_18_div_2_Template, 4, 1, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.options);
} }
function CreateEditModuleComponent_div_24_div_2_div_19_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r55 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r55.value, "");
} }
function CreateEditModuleComponent_div_24_div_2_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditModuleComponent_div_24_div_2_div_19_div_2_Template, 4, 1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.options);
} }
function CreateEditModuleComponent_div_24_div_2_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " True");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " False");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "textarea", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_div_22_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r58 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r58.questionName);
} }
function CreateEditModuleComponent_div_24_div_2_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditModuleComponent_div_24_div_2_div_22_div_2_Template, 4, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.profile);
} }
function CreateEditModuleComponent_div_24_div_2_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "textarea", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "textarea", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_div_26_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Seconds");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_div_26_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_div_26_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Seconds");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_div_26_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditModuleComponent_div_24_div_2_div_26_div_1_div_1_Template, 17, 0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditModuleComponent_div_24_div_2_div_26_div_1_div_2_Template, 5, 0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, CreateEditModuleComponent_div_24_div_2_div_26_div_1_div_3_Template, 13, 0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r61 = ctx.$implicit;
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r27.dateTime == null ? null : item_r27.dateTime.length) === 2 && option_r61 === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r27.dateTime == null ? null : item_r27.dateTime.length) === 1 && option_r61 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r61 === 2 && (item_r27.dateTime == null ? null : item_r27.dateTime.length) === 1);
} }
function CreateEditModuleComponent_div_24_div_2_div_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditModuleComponent_div_24_div_2_div_26_div_1_Template, 4, 3, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.dateTime);
} }
function CreateEditModuleComponent_div_24_div_2_div_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function CreateEditModuleComponent_div_24_div_2_div_28_span_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span");
} }
function CreateEditModuleComponent_div_24_div_2_div_28_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditModuleComponent_div_24_div_2_div_28_span_4_span_2_Template, 1, 0, "span", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r68 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r68.value + ",", "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r68.length != 0);
} }
function CreateEditModuleComponent_div_24_div_2_div_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CreateEditModuleComponent_div_24_div_2_div_28_span_4_Template, 3, 2, "span", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27 == null ? null : item_r27.options);
} }
function CreateEditModuleComponent_div_24_div_2_div_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ngb-rating", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("max", item_r27.value)("rate", 0);
} }
function CreateEditModuleComponent_div_24_div_2_div_30_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function CreateEditModuleComponent_div_24_div_2_div_31_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r73 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r73.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Answer Option: ", option_r73.value, "");
} }
function CreateEditModuleComponent_div_24_div_2_div_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditModuleComponent_div_24_div_2_div_31_div_2_Template, 6, 2, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.options);
} }
function CreateEditModuleComponent_div_24_div_2_div_32_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", item_r27.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function CreateEditModuleComponent_div_24_div_2_div_33_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function CreateEditModuleComponent_div_24_div_2_div_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function CreateEditModuleComponent_div_24_div_2_div_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_div_24_div_2_Template(rf, ctx) { if (rf & 1) {
const _r77 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "strong", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "p", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "span", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "ul", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "li", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_div_24_div_2_Template_li_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r77); const item_r27 = ctx.$implicit; const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r76.onEditPopup(item_r27); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "a");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "li", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_div_24_div_2_Template_li_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r77); const item_r27 = ctx.$implicit; const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r78.onDeleteQuestion(item_r27._id, item_r27.moduleId); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "a");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Delete");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, CreateEditModuleComponent_div_24_div_2_div_17_Template, 3, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, CreateEditModuleComponent_div_24_div_2_div_18_Template, 3, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, CreateEditModuleComponent_div_24_div_2_div_19_Template, 3, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, CreateEditModuleComponent_div_24_div_2_div_20_Template, 10, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, CreateEditModuleComponent_div_24_div_2_div_21_Template, 4, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, CreateEditModuleComponent_div_24_div_2_div_22_Template, 3, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, CreateEditModuleComponent_div_24_div_2_div_23_Template, 4, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, CreateEditModuleComponent_div_24_div_2_div_24_Template, 4, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](25, CreateEditModuleComponent_div_24_div_2_div_25_Template, 4, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, CreateEditModuleComponent_div_24_div_2_div_26_Template, 2, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, CreateEditModuleComponent_div_24_div_2_div_27_Template, 2, 1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, CreateEditModuleComponent_div_24_div_2_div_28_Template, 5, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, CreateEditModuleComponent_div_24_div_2_div_29_Template, 3, 2, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, CreateEditModuleComponent_div_24_div_2_div_30_Template, 2, 1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](31, CreateEditModuleComponent_div_24_div_2_div_31_Template, 3, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](32, CreateEditModuleComponent_div_24_div_2_div_32_Template, 3, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](33, CreateEditModuleComponent_div_24_div_2_div_33_Template, 2, 1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](34, CreateEditModuleComponent_div_24_div_2_div_34_Template, 2, 1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](35, CreateEditModuleComponent_div_24_div_2_div_35_Template, 2, 0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = ctx.$implicit;
const i_r28 = ctx.index;
const section_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r28 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 22, item_r27.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r18.selectedSection !== section_r15._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.type === 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !section_r15.questions.length);
} }
const _c3 = function (a0) { return { "section-border": a0 }; };
function CreateEditModuleComponent_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditModuleComponent_div_24_div_1_Template, 17, 6, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditModuleComponent_div_24_div_2_Template, 36, 24, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const section_r15 = ctx.$implicit;
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](3, _c3, ctx_r3.selectedSection === section_r15._id));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r3.selectedModule.isDefault);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", section_r15.questions);
} }
function CreateEditModuleComponent_ng_template_25_span_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_ng_template_25_div_27_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_ng_template_25_div_27_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditModuleComponent_ng_template_25_div_27_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r92); const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r91.welcomeBannerUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Upload Welcome Attachement ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CreateEditModuleComponent_ng_template_25_div_27_span_5_Template, 2, 0, "span", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r83.moduleUpdateForm.get("isQuestionForSinglePage").value);
} }
function CreateEditModuleComponent_ng_template_25_div_28_Template(rf, ctx) { if (rf & 1) {
const _r94 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_div_28_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r93.onDeleteWelcomeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "img", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r84.moduleUpdateForm.get("welComeAttachement").value, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function CreateEditModuleComponent_ng_template_25_span_33_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_ng_template_25_div_50_div_8_Template(rf, ctx) { if (rf & 1) {
const _r100 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditModuleComponent_ng_template_25_div_50_div_8_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r100); const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r99.postSubmissionImageUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Upload Post Submission message Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_ng_template_25_div_50_div_9_Template(rf, ctx) { if (rf & 1) {
const _r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_div_50_div_9_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r102); const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r101.onDeletePostSumissionImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "img", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r96.moduleUpdateForm.get("postSubmissionImage").value, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function CreateEditModuleComponent_ng_template_25_div_50_ng_option_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "p", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r103 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 2, item_r103.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function CreateEditModuleComponent_ng_template_25_div_50_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r107 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "img", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_div_50_tr_20_Template_img_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r107); const index_r105 = ctx.index; const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r106.deletePostSubmission(index_r105); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r104 = ctx.$implicit;
const index_r105 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 2, field_r104.get("name").value), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function CreateEditModuleComponent_ng_template_25_div_50_Template(rf, ctx) { if (rf & 1) {
const _r109 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Post Submission message");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "input", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, CreateEditModuleComponent_ng_template_25_div_50_div_8_Template, 4, 0, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, CreateEditModuleComponent_ng_template_25_div_50_div_9_Template, 4, 1, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Post Submission display submitted responses");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "ng-select", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditModuleComponent_ng_template_25_div_50_Template_ng_select_change_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r108 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r108.getSubmissionQuestions($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, CreateEditModuleComponent_ng_template_25_div_50_ng_option_17_Template, 4, 4, "ng-option", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "table", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, CreateEditModuleComponent_ng_template_25_div_50_tr_20_Template, 7, 4, "tr", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r86.moduleUpdateForm.get("postSubmissionImage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r86.moduleUpdateForm.get("postSubmissionImage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r86.finalSubmissionQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r86.postSumissionArray.controls);
} }
function CreateEditModuleComponent_ng_template_25_tr_60_td_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_ng_template_25_tr_60_Template(rf, ctx) { if (rf & 1) {
const _r113 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "p", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "input", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditModuleComponent_ng_template_25_tr_60_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r113); const ctx_r112 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r112.addQuestionToMandatory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CreateEditModuleComponent_ng_template_25_tr_60_td_6_Template, 2, 0, "td", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r110 = ctx.$implicit;
const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 4, item_r110.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r110.required)("value", item_r110._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r87.isScoring);
} }
function CreateEditModuleComponent_ng_template_25_div_76_div_12_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r116 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" Value should be not more than ", ctx_r116.questionsLength, " and greater than 0 ");
} }
function CreateEditModuleComponent_ng_template_25_div_76_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditModuleComponent_ng_template_25_div_76_div_12_small_1_Template, 2, 1, "small", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r114 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r114.f.viewCount.errors.pattern);
} }
function CreateEditModuleComponent_ng_template_25_div_76_div_13_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Value should not be empty ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditModuleComponent_ng_template_25_div_76_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditModuleComponent_ng_template_25_div_76_div_13_small_1_Template, 2, 0, "small", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r115.f.viewCount.errors.required);
} }
const _c4 = function (a0) { return { "is-invalid": a0 }; };
function CreateEditModuleComponent_ng_template_25_div_76_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Mandatory Questions");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "No of Questions to be answered");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "span", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "input", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, CreateEditModuleComponent_ng_template_25_div_76_div_12_Template, 2, 1, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, CreateEditModuleComponent_ng_template_25_div_76_div_13_Template, 2, 1, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx_r88.madatoryQuestionsArray.length);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](4, _c4, ctx_r88.f.viewCount.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r88.f.viewCount.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r88.f.viewCount.errors);
} }
function CreateEditModuleComponent_ng_template_25_div_83_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r119 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", cnt_r119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", cnt_r119, " ");
} }
function CreateEditModuleComponent_ng_template_25_div_83_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "select", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "option", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Select Score ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CreateEditModuleComponent_ng_template_25_div_83_option_4_Template, 2, 2, "option", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", null)("selected", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r89.scores);
} }
function CreateEditModuleComponent_ng_template_25_Template(rf, ctx) { if (rf & 1) {
const _r121 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "UPDATE MODULE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Module name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "input", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "input", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditModuleComponent_ng_template_25_Template_input_change_18_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r121); const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r120.setIsSinglePage($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "label", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, " Show question on single page ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, "Welcome Message ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](25, CreateEditModuleComponent_ng_template_25_span_25_Template, 2, 0, "span", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](26, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, CreateEditModuleComponent_ng_template_25_div_27_Template, 6, 1, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, CreateEditModuleComponent_ng_template_25_div_28_Template, 4, 1, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, "Closing Message");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](33, CreateEditModuleComponent_ng_template_25_span_33_Template, 2, 0, "span", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](34, "input", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "label", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "Post Submission message required?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "span", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "input", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_Template_input_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r121); const ctx_r122 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r122.onPostSubmistionChange(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "label", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, " Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_Template_input_click_47_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r121); const ctx_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r123.onPostSubmistionChange(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](49, " No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](50, CreateEditModuleComponent_ng_template_25_div_50_Template, 21, 7, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "table", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "th", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56, "QUESTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "th", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](58, " Make this question mandatory ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](60, CreateEditModuleComponent_ng_template_25_tr_60_Template, 7, 6, "tr", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "label", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](64, "Sequence Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "span", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](66, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "input", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_Template_input_click_69_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r121); const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r124.onSequenceChange(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "label", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](71, " All questions, by order given ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_Template_input_click_73_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r121); const ctx_r125 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r125.onSequenceChange(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "label", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](75, " Randomise questions ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](76, CreateEditModuleComponent_ng_template_25_div_76_Template, 14, 6, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "div", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](79, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "input", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_Template_input_click_80_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r121); const ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r126.enableScoring(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](81, "label", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](82, " Enable Scoring ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](83, CreateEditModuleComponent_ng_template_25_div_83_Template, 5, 3, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](85, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_Template_button_click_85_listener() { const d_r81 = ctx.dismiss; return d_r81("dismiss"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](86, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](87, "button", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_25_Template_button_click_87_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r121); const ctx_r128 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r128.moduleUpdate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](88, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r5.moduleUpdateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r5.moduleUpdateForm.get("isQuestionForSinglePage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r5.moduleUpdateForm.get("welComeAttachement").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.moduleUpdateForm.get("welComeAttachement").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r5.moduleUpdateForm.get("isQuestionForSinglePage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.moduleUpdateForm.get("postSubmissionRequired").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r5.finalSubmissionQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.sequenceType === true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.moduleUpdateForm.get("scoringEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.moduleUpdateForm.valid);
} }
function CreateEditModuleComponent_ng_template_27_div_38_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r133 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r133._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r133 == null ? null : item_r133.sectionName);
} }
function CreateEditModuleComponent_ng_template_27_div_38_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Conditional Section");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CreateEditModuleComponent_ng_template_27_div_38_ng_option_5_Template, 3, 2, "ng-option", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r131 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r131.sectionList);
} }
function CreateEditModuleComponent_ng_template_27_Template(rf, ctx) { if (rf & 1) {
const _r136 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Section Configuration");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_27_Template_button_click_8_listener() { const c_r129 = ctx.close; return c_r129("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "form", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Section Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "span", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "input", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, " Select Multiple Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "input", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_27_Template_input_click_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r136); const ctx_r135 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r135.setConfiguration("section_isSubmit", $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "input", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_27_Template_input_click_31_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r136); const ctx_r137 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r137.setConfiguration("section_isCancel", $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "label", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "input", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_27_Template_input_click_35_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r136); const ctx_r138 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r138.setConfiguration("section_isConditional", $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, " Conditional ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](38, CreateEditModuleComponent_ng_template_27_div_38_Template, 6, 4, "div", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_27_Template_button_click_40_listener() { const d_r130 = ctx.dismiss; return d_r130("dismiss"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "button", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_ng_template_27_Template_button_click_42_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r136); const ctx_r140 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r140.createSection(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r7.sectionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !!ctx_r7.sectionForm.get("section_isConditional").value)("value", !!ctx_r7.section_isSubmit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", true)("value", !!ctx_r7.section_isCancel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", !!ctx_r7.section_isConditional)("disabled", !!ctx_r7.sectionForm.get("section_isSubmit").value || !!ctx_r7.sectionForm.get("section_isCancel").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!ctx_r7.sectionForm.get("section_isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r7.sectionForm.valid);
} }
class CreateEditModuleComponent {
constructor(modalService, config, centralBuilderService, formBuilder, companyService, toastService) {
this.modalService = modalService;
this.config = config;
this.centralBuilderService = centralBuilderService;
this.formBuilder = formBuilder;
this.companyService = companyService;
this.toastService = toastService;
this.toogleView = false;
this.dropDownIndex = [];
this.sequenceType = true;
this.isScoring = false;
this.sectionList = [];
this.questionTypes = [
{
name: 'Multiple Choices',
type: 2,
},
{
name: 'Check Box',
type: 5,
},
{
name: 'Polling',
type: 4,
},
{
name: 'True or False Options',
type: 3,
},
{
name: 'Signature',
type: 6,
},
{
name: 'Profile Fields',
type: 7,
},
{
name: 'Free Text(Long)',
type: 1,
},
{
name: 'Free Text(Short)',
type: 8,
},
{
name: 'Numeric',
type: 9,
},
{
name: 'Date & Time',
type: 10,
},
{
name: 'Drop Down',
type: 11,
},
{
name: 'Attachment',
type: 12,
},
{
name: 'Star Rating',
type: 13,
},
{
name: 'Nominate User',
type: 14,
},
{
name: 'Sequence Type',
type: 15,
},
{
name: 'Photopick',
type: 16,
},
{
name: 'Auto Populate',
type: 21,
},
{
name: 'Button Action',
type: 22,
},
];
this.subSectionTypes = [
{
name: 'Submit',
value: 1,
type: 1,
selected: false,
},
{
name: 'Cancel',
value: 2,
type: 2,
selected: false,
},
{
name: 'Conditional',
value: 3,
type: 3,
selected: false,
},
];
this.scores = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
this.finalSubmissionQuestions = [];
this.validators = [];
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
// config.max = 5;
config.readonly = true;
}
onClickDropDown(Dropindex) {
if (this.dropDownIndex.includes(Dropindex)) {
const index = this.dropDownIndex.indexOf(Dropindex);
if (index > -1) {
this.dropDownIndex.splice(index, 1);
}
}
else {
this.dropDownIndex.push(Dropindex);
}
}
ngOnInit() {
this.getQuestions();
this.initSectionForm();
}
initForm() {
var _a;
this.moduleUpdateForm = this.formBuilder.group({
moduleName: (_a = this.selectedModule) === null || _a === void 0 ? void 0 : _a.moduleName,
questions: this.formBuilder.array([]),
postSubmissionResponse: this.formBuilder.array([]),
postSubmissionRequired: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
postSubmissionMessage: [''],
postSubmissionImage: [''],
closingMessage: ['', this.singlePageQuestion ? null : _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
randomOrder: true,
scorePerQuestion: 0,
scoringEnabled: false,
isQuestionForSinglePage: false,
status: '',
viewCount: [0, [
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern('^[1-9]\d*$'),
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern(this.questionsLength > 0 ? `^[1-${this.questionsLength}]` : '^$')
]],
welComeAttachement: ['', this.singlePageQuestion ? null : _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
welComeMessage: ['', this.singlePageQuestion ? null : _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
}
initSectionForm() {
this.sectionForm = this.formBuilder.group({
sectionName: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
section_isSubmit: false,
section_isCancel: false,
section_isConditional: false,
conditionalSection: "",
isEdited: false,
sectionId: "",
});
}
get f() {
return this.moduleUpdateForm.controls;
}
enableScoring() {
console.log(this.sectionForm.value.section_isConditional);
this.isScoring = !this.isScoring;
}
enableDefaultSection() {
// this.sectionForm.patchValue({
// defaultSection: '',
// });
}
welcomeBannerUpload(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.companyService
.uploadWallFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.moduleUpdateForm.patchValue({
welComeAttachement: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl}/${data.data.filePath}`,
});
}, (error) => {
this.toastService.error(error.error.message);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_7__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
postSubmissionImageUpload(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.companyService
.uploadWallFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
var _a;
this.moduleUpdateForm.patchValue({
postSubmissionImage: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl}/${(_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.filePath}`,
});
}, (error) => {
this.toastService.error(error.error.message);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_7__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
onDeleteWelcomeImage() {
this.moduleUpdateForm.patchValue({
welComeAttachement: '',
});
}
onDeletePostSumissionImage() {
this.moduleUpdateForm.patchValue({
postSubmissionImage: '',
});
}
setIsSinglePage(event) {
var _a, _b, _c;
if (!!event.target.checked) {
this.singlePageQuestion = true;
this.f.closingMessage.clearValidators();
this.f.closingMessage.updateValueAndValidity();
this.f.welComeAttachement.clearValidators();
this.f.welComeAttachement.updateValueAndValidity();
this.f.welComeMessage.clearValidators();
this.f.welComeMessage.updateValueAndValidity();
}
else {
this.singlePageQuestion = false;
(_a = this.f.welComeAttachement) === null || _a === void 0 ? void 0 : _a.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required);
this.f.welComeAttachement.updateValueAndValidity();
(_b = this.f.welComeMessage) === null || _b === void 0 ? void 0 : _b.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required);
this.f.welComeMessage.updateValueAndValidity();
(_c = this.f.closingMessage) === null || _c === void 0 ? void 0 : _c.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required);
this.f.closingMessage.updateValueAndValidity();
}
console.log(this.moduleUpdateForm, this.moduleUpdateForm.valid);
}
setConfiguration(key, event) {
var _a, _b, _c, _d, _e, _f;
this.sectionForm.patchValue({
[key]: event.target.checked,
});
if (!!this.sectionForm.value.section_isConditional) {
(_a = this.sectionForm.get('section_isSubmit')) === null || _a === void 0 ? void 0 : _a.disable();
(_b = this.sectionForm.get('section_isCancel')) === null || _b === void 0 ? void 0 : _b.disable();
}
else if (!!this.sectionForm.value.section_isSubmit || !!this.sectionForm.value.section_isCancel) {
(_c = this.sectionForm.get('section_isConditional')) === null || _c === void 0 ? void 0 : _c.disable();
}
else {
(_d = this.sectionForm.get('section_isSubmit')) === null || _d === void 0 ? void 0 : _d.enable();
(_e = this.sectionForm.get('section_isCancel')) === null || _e === void 0 ? void 0 : _e.enable();
(_f = this.sectionForm.get('section_isConditional')) === null || _f === void 0 ? void 0 : _f.enable();
}
}
moduleUpdate() {
const Control = this.postSumissionArray;
if (this.moduleUpdateForm.controls.postSubmissionRequired.value === false) {
delete this.moduleUpdateForm.value.postSubmissionResponse;
delete this.moduleUpdateForm.value.postSubmissionRequired;
delete this.moduleUpdateForm.value.postSubmissionMessage;
delete this.moduleUpdateForm.value.postSubmissionImage;
}
else {
if (this.moduleUpdateForm.value.postSubmissionResponse && this.moduleUpdateForm.value.postSubmissionResponse.length > 0) {
this.moduleUpdateForm.value.postSubmissionResponse = this.moduleUpdateForm.value.postSubmissionResponse.map(id => id._id);
}
}
const data = Object.assign(Object.assign({}, this.moduleUpdateForm.value), { status: 1 });
data._id = this.moduleId;
const sub = this.centralBuilderService.updateModule(data, this.moduleId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
})).subscribe((res) => {
this.overViewEvent.emit(null);
this.modalService.dismissAll();
this.toastService.success('Published Successfully');
});
}
saveAsDraft() {
delete this.moduleUpdateForm.value.postSubmissionResponse;
delete this.moduleUpdateForm.value.postSubmissionRequired;
delete this.moduleUpdateForm.value.postSubmissionMessage;
delete this.moduleUpdateForm.value.postSubmissionImage;
const data = Object.assign(Object.assign({}, this.moduleUpdateForm.value), { status: 0 });
data._id = this.moduleId;
const sub = this.centralBuilderService.updateModule(data, this.moduleId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
})).subscribe((res) => {
this.toastService.success('Saved as draft successfully');
this.overViewEvent.emit(null);
});
}
openPublishPopup() {
this.modalService.open(this.updateModule);
}
extractQuestions(data) {
return data.sections.flatMap(section => section.questions.map(question => ({
required: question.required,
question: question.question,
_id: question._id
})));
}
getQuestions() {
this.centralBuilderService
.getSingleQuestions(this.moduleId)
.subscribe((res) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
this.selectedModule = res.data.data;
console.log(this.selectedModule, "");
if (!!((_a = this.selectedModule) === null || _a === void 0 ? void 0 : _a.isDefault))
this.selectedSection = (_c = (_b = this.selectedModule) === null || _b === void 0 ? void 0 : _b.sections[0]) === null || _c === void 0 ? void 0 : _c._id;
if (!((_d = this.selectedModule) === null || _d === void 0 ? void 0 : _d.isDefault))
this.selectedSection = this.selectedSection ? this.selectedSection : (_g = (_e = this.selectedModule) === null || _e === void 0 ? void 0 : _e.sections[((_f = this.selectedModule) === null || _f === void 0 ? void 0 : _f.sections.length) - 1]) === null || _g === void 0 ? void 0 : _g._id;
this.sectionList = (_h = this.selectedModule) === null || _h === void 0 ? void 0 : _h.sections;
this.questionsLength = (_l = (_k = (_j = res.data.data) === null || _j === void 0 ? void 0 : _j.sections.filter((val) => (val === null || val === void 0 ? void 0 : val._id) === this.selectedSection)[0]) === null || _k === void 0 ? void 0 : _k.questions) === null || _l === void 0 ? void 0 : _l.length;
this.initForm();
const newData = (_q = (_p = (_o = (_m = res === null || res === void 0 ? void 0 : res.data) === null || _m === void 0 ? void 0 : _m.data) === null || _o === void 0 ? void 0 : _o.sections.filter((val) => (val === null || val === void 0 ? void 0 : val._id) === this.selectedSection)[0]) === null || _p === void 0 ? void 0 : _p.questions) === null || _q === void 0 ? void 0 : _q.map(({ _id, question }) => ({ _id, question }));
if (!!this.selectedModule.isQuestionForSinglePage) {
this.f.closingMessage.clearValidators();
this.f.closingMessage.updateValueAndValidity();
this.f.welComeAttachement.clearValidators();
this.f.welComeAttachement.updateValueAndValidity();
this.f.welComeMessage.clearValidators();
this.f.welComeMessage.updateValueAndValidity();
}
const modifiedData = newData.map((rawProduct) => {
return Object.assign(Object.assign({}, rawProduct), { flag: false });
});
this.finalSubmissionQuestions = this.extractQuestions(res.data.data).filter((val) => !!val);
console.log(this.finalSubmissionQuestions);
const Control = this.madatoryQuestionsArray;
let selectedQuestions = (_r = this.finalSubmissionQuestions) === null || _r === void 0 ? void 0 : _r.filter(i => i);
selectedQuestions.forEach(element => {
let field = this.formBuilder.group({
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
required: element.required,
});
Control.push(field);
});
this.moduleUpdateForm.patchValue({
postSubmissionRequired: this.selectedModule.postSubmissionRequired,
postSubmissionMessage: this.selectedModule.postSubmissionMessage,
postSubmissionImage: this.selectedModule.postSubmissionImage,
closingMessage: this.selectedModule.closingMessage,
randomOrder: this.selectedModule.randomOrder,
scorePerQuestion: this.selectedModule.scorePerQuestion,
scoringEnabled: this.selectedModule.scoringEnabled,
status: 1,
viewCount: this.selectedModule.viewCount,
welComeAttachement: this.selectedModule.welComeAttachement,
welComeMessage: this.selectedModule.welComeMessage,
isQuestionForSinglePage: this.selectedModule.isQuestionForSinglePage,
questions: selectedQuestions,
});
this.sequenceType = this.selectedModule.randomOrder;
this.onSequenceChange(this.sequenceType);
((_s = this.selectedModule) === null || _s === void 0 ? void 0 : _s.postSubmissionResponse.length) && ((_t = this.selectedModule) === null || _t === void 0 ? void 0 : _t.postSubmissionResponse.forEach(element => {
var _a;
const questionData = (_a = this.selectedModule) === null || _a === void 0 ? void 0 : _a.questions.find(id => id._id === element);
let field = this.formBuilder.group({
name: [questionData.question, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [questionData._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
this.postSumissionArray.push(field);
}));
});
}
get postSumissionArray() {
return this.moduleUpdateForm.get('postSubmissionResponse');
}
getSubmissionQuestions(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.postSumissionArray;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.toastService.error(`${value.name} is already added`);
}
else {
let field = this.formBuilder.group({
name: [value.question, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
}
}
});
}
deletePostSubmission(index) {
const Control = this.postSumissionArray;
Control.removeAt(index);
}
get madatoryQuestionsArray() {
return this.moduleUpdateForm.get('questions');
}
addQuestionToMandatory(event) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const value = event.target.value;
const checked = event.target.checked;
console.log(value, event);
const Control = this.madatoryQuestionsArray;
if (value && !!checked) {
console.log(Control);
const index = yield Control.value.findIndex((x) => x._id === value);
console.log(index);
if (index > -1) {
Control.at(index).patchValue({ _id: value, required: event.target.checked });
}
else {
let field = this.formBuilder.group({
_id: [value, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
required: event.target.checked,
});
Control.push(field);
}
}
else {
const index = yield Control.value.findIndex((x) => x._id === value);
if (index) {
Control.removeAt(index);
}
}
});
}
createSection() {
if (!this.sectionForm.valid) {
return;
}
// if (!this.sectionForm.value.section_isSubmit && !this.sectionForm.value.section_isCancel && !this.sectionForm.value.section_isConditional) {
// this.toastService.error("Please select atleast any one configuration");
// return
// }
if (!!this.sectionForm.value.isEdited) {
this.updateSection();
return;
}
let moduleData = this.selectedModule;
let payload = {
moduleId: moduleData._id,
isSubmit: this.sectionForm.value.section_isSubmit ? this.sectionForm.value.section_isSubmit : false,
isCancel: this.sectionForm.value.section_isCancel ? this.sectionForm.value.section_isCancel : false,
isConditional: this.sectionForm.value.section_isConditional ? this.sectionForm.value.section_isConditional : false,
sectionName: this.sectionForm.value.sectionName,
sectionIndex: moduleData.sections.length + 1,
};
if (!!(payload === null || payload === void 0 ? void 0 : payload.isConditional)) {
payload.conditionalSectionId = this.sectionForm.value.conditionalSection;
}
this.centralBuilderService.createSection(payload).subscribe((res) => {
var _a, _b;
this.modalService.dismissAll();
this.toastService.success("Section Created Successfully");
this.selectedSection = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.section) === null || _b === void 0 ? void 0 : _b._id;
this.getQuestions();
}, (error) => {
var _a, _b;
this.toastService.error((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
});
}
updateSection() {
if (!this.sectionForm.valid) {
return;
}
// if (!this.sectionForm.value.section_isSubmit && !this.sectionForm.value.section_isCancel && !this.sectionForm.value.section_isConditional) {
// this.toastService.error("Please select atleast any one configuration");
// return
// }
let moduleData = this.selectedModule;
let payload = {
moduleId: moduleData._id,
isSubmit: this.sectionForm.value.section_isSubmit ? this.sectionForm.value.section_isSubmit : false,
isCancel: this.sectionForm.value.section_isCancel ? this.sectionForm.value.section_isCancel : false,
isConditional: this.sectionForm.value.section_isConditional ? this.sectionForm.value.section_isConditional : false,
sectionName: this.sectionForm.value.sectionName,
sectionIndex: moduleData.sections.length + 1,
sectionId: this.sectionForm.value.sectionId
};
if (!!(payload === null || payload === void 0 ? void 0 : payload.isConditional)) {
payload.conditionalSectionId = "6698a8ffb57e5916c2e4ab45";
}
this.centralBuilderService.updateSection(payload).subscribe((res) => {
this.modalService.dismissAll();
this.toastService.success("Section Updated Successfully");
this.getQuestions();
}, (error) => {
var _a, _b;
this.toastService.error((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
});
}
getValidatorFnArray(setting) {
const validators = [];
if (setting.charTypes.lowerCase) {
validators.push(_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].minLength(0));
}
if (setting.charTypes.specialChar) {
validators.push(_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].maxLength(this.questionsLength));
}
this.validators.push(...validators);
}
onDeleteQuestion(questionId, moduleId) {
Object(src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_4__["deleteAlert"])().then((result) => {
this.toastService.success("Question Deleted Successfully");
if (result.value) {
const mobileData = {
moduleId,
questionId,
};
this.centralBuilderService.deleteQuestion(mobileData).subscribe((data) => {
this.getQuestions();
}, (error) => {
this.toastService.error(error.message, error.statusText);
});
}
});
}
onPostSubmistionChange(value) {
if (value) {
this.f.postSubmissionMessage.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]);
// this.f.postSubmissionImage.setValidators([Validators.required]);
this.f.closingMessage.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]);
}
else {
this.f.postSubmissionMessage.clearValidators();
this.f.postSubmissionMessage.updateValueAndValidity();
// this.f.postSubmissionImage.clearValidators();
// this.f.postSubmissionImage.updateValueAndValidity();
this.f.closingMessage.clearValidators();
this.f.closingMessage.updateValueAndValidity();
}
}
onSequenceChange(value) {
this.sequenceType = value;
if (value) {
this.f.viewCount.setValidators([
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern(`^([1-9]\d?|${this.questionsLength})`),
]);
this.f.viewCount.updateValueAndValidity();
}
else {
this.f.viewCount.clearValidators();
this.f.viewCount.updateValueAndValidity();
}
}
toogleButton() { }
selectSection(event) {
var _a, _b;
this.questionsLength = (_b = (_a = this.sectionList.filter((val) => (val === null || val === void 0 ? void 0 : val._id) === event)[0]) === null || _a === void 0 ? void 0 : _a.questions) === null || _b === void 0 ? void 0 : _b.length;
if (this.selectedSection !== event)
this.selectedSection = event;
}
openPopup(item) {
var _a;
if (!((_a = this.selectedModule) === null || _a === void 0 ? void 0 : _a.isDefault) && !this.selectedSection) {
this.toastService.error("Please create/select any section");
return;
}
const questions = this.questionsLength;
const data = Object.assign(Object.assign({}, item), { moduleId: this.moduleId, sectionId: this.selectedSection, questionslength: questions });
const modalRef = this.modalService.open(_question_modal_question_modal_component__WEBPACK_IMPORTED_MODULE_6__["QuestionModalComponent"], {
size: 'lg',
windowClass: 'modal-ui-fix right-align',
});
modalRef.componentInstance.value = data;
modalRef.componentInstance.isEdit = false;
modalRef.dismissed.subscribe((result) => {
this.getQuestions();
});
}
openPopupForSection() {
this.initSectionForm();
this.sectionForm.patchValue({
isEdited: false,
});
this.modalService.open(this.addSection, {
windowClass: 'modal-ui-fix right-align',
});
}
onEditPopup(item) {
const questions = this.questionsLength;
const data = Object.assign(Object.assign({}, item), { questionslength: questions, isEdited: true });
const modalRef = this.modalService.open(_question_modal_question_modal_component__WEBPACK_IMPORTED_MODULE_6__["QuestionModalComponent"], {
size: 'lg',
windowClass: 'modal-ui-fix right-align',
});
modalRef.componentInstance.value = data;
modalRef.componentInstance.isEdit = true;
modalRef.dismissed.subscribe((result) => {
this.getQuestions();
});
}
onEditSection(item) {
const data = Object.assign(Object.assign({}, item), { section_isSubmit: item === null || item === void 0 ? void 0 : item.isSubmit, section_isCancel: item === null || item === void 0 ? void 0 : item.isCancel, section_isConditional: item === null || item === void 0 ? void 0 : item.isConditional, isEdited: true });
this.sectionForm.patchValue(Object.assign(Object.assign({}, item), { section_isSubmit: item === null || item === void 0 ? void 0 : item.isSubmit, section_isCancel: item === null || item === void 0 ? void 0 : item.isCancel, section_isConditional: item === null || item === void 0 ? void 0 : item.isConditional, isEdited: true, sectionId: item === null || item === void 0 ? void 0 : item._id }));
const modalRef = this.modalService.open(this.addSection, {
size: 'lg',
windowClass: 'modal-ui-fix right-align',
});
modalRef.dismissed.subscribe((result) => {
this.getQuestions();
});
}
onDeleteSection(sectionId) {
Object(src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_4__["deleteSectionAlert"])().then((result) => {
if (result.value) {
const payloadData = {
moduleId: this.selectedModule._id,
sectionId,
};
this.centralBuilderService.deleteSection(payloadData).subscribe((data) => {
this.toastService.success("Question Deleted Successfully");
if (sectionId === this.selectedSection)
this.selectedSection = null;
this.getQuestions();
}, (error) => {
this.toastService.error(error.message, error.statusText);
});
}
});
}
}
CreateEditModuleComponent.ɵfac = function CreateEditModuleComponent_Factory(t) { return new (t || CreateEditModuleComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbRatingConfig"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_9__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_10__["CompanyService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_11__["ToastrService"])); };
CreateEditModuleComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: CreateEditModuleComponent, selectors: [["create-edit-module"]], viewQuery: function CreateEditModuleComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c2, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.createQuestion = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.updateModule = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.addSection = _t.first);
} }, inputs: { moduleId: "moduleId" }, outputs: { overViewEvent: "overViewEvent" }, decls: 29, vars: 5, consts: [[1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "row"], [1, "col-md-3"], [1, "card-header", "font-weight-bold"], [1, "card-body", 2, "padding", "5px"], ["class", "list-group-item", 3, "click", 4, "ngFor", "ngForOf"], [1, "col-md-9"], [1, "card-header-flexi"], [1, "d-flex", "justify-content-between"], ["class", "btn btn-primary", "type", "button", 3, "click", 4, "ngIf"], ["class", "btn btn-submit", "type", "button", 3, "disabled", "click", 4, "ngIf"], ["type", "button", 1, "btn", "btn-add", 3, "click"], [1, "card-body", 2, "word-break", "break-word", "padding", "5px"], ["class", "box d-flex flex-column", 3, "ngClass", 4, "ngFor", "ngForOf"], ["updateModule", ""], ["addSection", ""], [1, "list-group-item", 3, "click"], ["type", "button", 1, "btn", "btn-primary", 3, "click"], ["type", "button", 1, "btn", "btn-submit", 3, "disabled", "click"], [1, "box", "d-flex", "flex-column", 3, "ngClass"], ["class", "d-flex", 4, "ngIf"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [1, "d-flex"], ["type", "checkbox", 1, "text-center", "mr-4", 2, "height", "18px", "width", "18px", 3, "checked", "disabled", "value", "change"], [1, "mr-1"], [1, "box-heading", "ml-2", "d-flex", 2, "word-break", "break-word"], ["ngbDropdown", "", 1, "pull-right", 2, "margin-left", "auto"], ["ngbDropdownToggle", "", 1, "btn", "dropdown-toggle", 3, "disabled"], [1, "fa", "fa-ellipsis-v"], ["ngbDropdownMenu", "", 1, "dropdown-menu"], ["ngbDropdownItem", "", 2, "cursor", "pointer", 3, "click"], [1, "box", "d-flex", "flex-column"], [1, "box-heading", "ml-2", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["class", "box-body w-35", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "box-body"], [1, "d-flex", "flex-column", "answers-options"], ["class", "radio radio-danger radio-inline", 4, "ngFor", "ngForOf"], [1, "radio", "radio-danger", "radio-inline"], ["type", "radio", "disabled", "", 1, "disabled", "mt-2"], ["for", "consolidated"], ["class", "checkbox checkbox-danger checkbox-inline", 4, "ngFor", "ngForOf"], [1, "checkbox", "checkbox-danger", "checkbox-inline"], ["type", "checkbox", 1, "disabled", "mt-2"], ["type", "radio", "disabled", "", 1, "disabled"], [1, "d-flex", "flex-row", "answers-options"], ["disabled", "", "cols", "30", "rows", "5", 1, "disabled", "form-control", "flex-fill"], [1, "flex-fill", 2, "width", "100%"], [1, "d-flex", "flex-wrap", "answers-options"], ["class", "form-group flex-fill", "style", "margin: 1rem 1rem; width: 44%", 4, "ngFor", "ngForOf"], [1, "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["for", "my-input"], ["id", "my-input", "disabled", "", "type", "text", 1, "form-control"], ["disabled", "", "rows", "3", 1, "form-control"], ["disabled", "", "rows", "5", 1, "form-control"], ["type", "number", "disabled", "", 1, "form-control"], [4, "ngFor", "ngForOf"], ["class", "d-flex flex-wrap answers-options", 4, "ngIf"], ["class", "d-flex flex-wrap answers-options w-35", 4, "ngIf"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["id", "my-input", "type", "date", "disabled", "", 1, "form-control"], ["name", "", "id", "", "disabled", "", 1, "form-control"], [1, "d-flex", "flex-wrap", "answers-options", "w-35"], [1, "box-body", "w-35"], [1, "form-control"], [1, "form-group"], ["id", "my-input", "disabled", "", "type", "file", 1, "form-control-file"], [4, "ngIf"], [3, "max", "rate"], ["ng-model", "item.options", 1, "row"], ["class", "sequenceQuestion-container text-center", 4, "ngFor", "ngForOf"], [1, "sequenceQuestion-container", "text-center"], ["ng-if", "option.imageSrc", "crossorigin", "anonymous", 2, "height", "150px", 3, "src"], [1, "thumbnail", "flex-SB", "mt-3"], [1, "caption"], [2, "text-align", "center"], ["alt", "Photo Pick Image", 1, "w-50", 3, "src"], [1, "modal-content"], [1, "modal-body", 2, "padding", "0px", "min-height", "100vh"], [1, "card", "w-100"], [1, "card-header", "flexi-header"], [1, "col-md-12"], [3, "formGroup"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], ["type", "text", "formControlName", "moduleName", "placeholder", "Module Name", "disabled", "", 1, "form-control"], [1, "p-1"], ["type", "checkbox", "formControlName", "isQuestionForSinglePage", "id", "isQuestionForSinglePage", 3, "change"], ["for", "isQuestionForSinglePage", 1, "font-weight-bold", "ml-3"], [1, "lableMandatory"], ["class", "field-mandatory mandatory_Star", 4, "ngIf"], ["type", "text", "formControlName", "welComeMessage", "placeholder", "welcome Message", 1, "form-control"], ["class", "custom-file mt-0 w-100 pt-4 pb-4", "style", "width: 67px", 4, "ngIf"], ["type", "text", "formControlName", "closingMessage", "placeholder", "closing Message", 1, "form-control"], ["for", "", 1, "font-weight-bold"], [1, "field-mandatory", "mandatory_Star"], [1, "radio", "radio-danger", "radio-inline", "p-1"], ["type", "radio", "formControlName", "postSubmissionRequired", "id", "postSubReqTrue", 3, "value", "click"], ["for", "postSubReqTrue"], ["type", "radio", "id", "postSubReqFalse", "formControlName", "postSubmissionRequired", 3, "value", "click"], ["for", "postSubReqFalse"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["type", "radio", "formControlName", "randomOrder", "id", "postSubReqTrue1", 3, "value", "click"], ["for", "postSubReqTrue1"], ["type", "radio", "id", "postSubReqFalse2", "formControlName", "randomOrder", 3, "value", "click"], ["for", "postSubReqFalse2"], [1, "col-md-6"], ["type", "checkbox", "formControlName", "scoringEnabled", "id", "postSubReqTrue12", 3, "value", "click"], ["for", "postSubReqTrue12", 1, "ml-3"], [1, "p-3"], [1, "btn", "btn-clear", 3, "click"], [1, "btn", "btn-add", "ml-2", 3, "disabled", "click"], [1, "custom-file", "mt-0", "w-100", "pt-4", "pb-4", 2, "width", "67px"], ["accept", "image/png, image/gif, image/jpeg", "type", "file", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "100%", "opacity", "0", 3, "change"], ["for", "b", 1, "custom-file-label"], [1, "image-with-delete-icon", "width-180", "imgContent"], ["title", "Delete", "for", "4", 1, "fa", "fa-close", 3, "click"], ["id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 1, "centered-image", 3, "src"], ["type", "text", "formControlName", "postSubmissionMessage", "placeholder", "Post Submission Message", 1, "form-control"], [1, "mt-2"], [1, "font-weight-bold"], [1, "ml-2"], ["bindLabel", "name", "placeholder", "Select Questions", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], [3, "value", 4, "ngFor", "ngForOf"], [1, "table", "table-borderless", "mt-3"], ["formArrayName", "postSubmissionResponse", 4, "ngFor", "ngForOf"], [1, "image-with-delete-icon", "width-180"], [3, "value"], ["formArrayName", "postSubmissionResponse"], [1, "text-items", 3, "formGroupName"], ["alt", "", "src", "../../../../../../assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-1", "cancel-button", 3, "click"], [2, "word-break", "break-all"], [1, "text-center"], ["type", "checkbox", 1, "text-center", 3, "checked", "value", "change"], ["class", "text-center", 4, "ngIf"], ["type", "checkbox", "checked", "", "disabled", "", 1, "text-center"], ["type", "text", "placeholder", "", "disabled", "", 1, "form-control", 3, "value"], ["type", "text", "formControlName", "viewCount", "placeholder", "", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], [1, "invalid-feedback"], ["formControlName", "scorePerQuestion", 1, "dropdown-select", "w-100", "form-control"], [3, "value", "selected"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], ["type", "button", "aria-label", "Close", 1, "btn", "close-button", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], ["type", "text", "formControlName", "sectionName", "placeholder", "Enter section name", 1, "form-control"], [1, "d-flex", "flex-column"], [1, "ml-3"], ["type", "checkbox", "formControlName", "section_isSubmit", "id", "section_isSubmit", 3, "disabled", "value", "click"], ["for", "section_isSubmit", 1, "ml-3"], ["type", "checkbox", "formControlName", "section_isCancel", "id", "section_isCancel", 3, "disabled", "value", "click"], ["for", "section_isCancel", 1, "ml-3"], ["type", "checkbox", "formControlName", "section_isConditional", "id", "section_isConditional", 3, "value", "disabled", "click"], ["for", "section_isConditional", 1, "ml-3"], ["class", "row mt-2", 4, "ngIf"], [1, "row", "mt-2"], ["bindLabel", "name", "placeholder", "Select Section", "appendTo", "body", "formControlName", "conditionalSection", 1, "custom", 3, "multiple", "searchable", "clearable"]], template: function CreateEditModuleComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "EDIT QUESTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "QUESTION TYPES");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, CreateEditModuleComponent_a_11_Template, 2, 1, "a", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, CreateEditModuleComponent_button_19_Template, 2, 0, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, CreateEditModuleComponent_button_20_Template, 2, 1, "button", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditModuleComponent_Template_button_click_21_listener() { return ctx.openPublishPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, " Publish ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, CreateEditModuleComponent_div_24_Template, 3, 5, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](25, CreateEditModuleComponent_ng_template_25_Template, 89, 15, "ng-template", null, 16, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, CreateEditModuleComponent_ng_template_27_Template, 44, 9, "ng-template", null, 17, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.questionTypes);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.selectedModule == null ? null : ctx.selectedModule.moduleName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx.selectedModule == null ? null : ctx.selectedModule.isDefault) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx.selectedModule == null ? null : ctx.selectedModule.status) != "active");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.sectionList);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbDropdown"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbDropdownToggle"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbDropdownMenu"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbDropdownItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbRating"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_14__["SortableHeader"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_16__["SafeHtmlPipe"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}a.list-group-item[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n border: 1px dotted #cccccc;\n cursor: pointer;\n color: #555;\n}a[_ngcontent-%COMP%] {\n text-decoration: none;\n}a.list-group-item[_ngcontent-%COMP%]:hover {\n background-color: #e2e2e2;\n}.card-header-flexi[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n padding: 1rem;\n color: #a42138;\n text-transform: uppercase;\n}.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n margin: 1rem;\n box-shadow: 0px 0px 8px #ccc;\n padding: 1.2rem;\n}.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n padding: 1rem;\n}.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] {\n padding-bottom: 1rem;\n word-wrap: break-word;\n font-weight: 600;\n}.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 1rem;\n}.dropdown-toggle[_ngcontent-%COMP%]::after {\n content: none;\n}.cancel-button[_ngcontent-%COMP%] {\n float: right;\n}.my-modal-popup[_ngcontent-%COMP%] .modal-lg[_ngcontent-%COMP%] {\n width: 1000px;\n}.flex-SB[_ngcontent-%COMP%] {\n display: flex;\n}.sequenceQuestion-container[_ngcontent-%COMP%] {\n margin: 20px;\n}.centered-image[_ngcontent-%COMP%] {\n display: block;\n margin-left: auto;\n margin-right: auto;\n width: 200px;\n height: 200px;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}.imgContent[_ngcontent-%COMP%] {\n width: 270px;\n margin: auto;\n}.lableMandatory[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}.mandatory_Star[_ngcontent-%COMP%] {\n font-size: 25px;\n margin-left: 3px;\n}ngb-rating[_ngcontent-%COMP%] {\n font-size: 40px;\n}.w-35[_ngcontent-%COMP%] {\n width: 35%;\n}.section-border[_ngcontent-%COMP%] {\n border: 1px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9xdWVzdGlvbi1idWlsZGVyL2NyZWF0ZS1lZGl0LW1vZHVsZS9jcmVhdGUtZWRpdC1tb2R1bGUuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsaURBQWlELGVBQWUsQ0FBQyxpQ0FBaUMsQ0FBQyx1REFBdUQsZUFBZSxDQUFDLDJEQUEyRCxRQUFRLENBQUMseUNBQXlDLENBQUMsc0JBQXNCLENBQUMsaUVBQWlFLHlDQUF5QyxDQUFDLGtFQUFrRSw0QkFBNEIsQ0FBQywyQkFBMkIsQ0FBQywrREFBK0QseUJBQXlCLENBQUMsd0JBQXdCLENBQUMseUVBQXlFLG9CQUFvQixDQUFDLDBFQUEwRSxDQUFDLG1EQUFtRCx3QkFBd0IsQ0FBQyx5Q0FBeUMsWUFBWSxDQUFDLGdDQUFnQyxVQUFVLENBQUMscUJBQXFCLENBQUMsaUJBQWlCLENBQUMscUJBQXFCLENBQUMsZUFBZSxDQUFDLGtCQUFrQixDQUFDLHNDQUFzQyxtQ0FBbUMsQ0FBQyxvREFBb0Qsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsZ0VBQWdFLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxvRUFBb0UsVUFBVSxDQUFDLGlEQUFpRCxXQUFXLENBQUMsK0VBQStFLE9BQU8sQ0FBQyxNQUFNLENBQUMsaUJBQWlCLENBQUMsa0JBQWtCLENBQUMsMkZBQTJGLGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLG9HQUFvRyx3QkFBd0IsQ0FBQyx3QkFBd0IsQ0FBQyxvSEFBb0gsYUFBYSxDQUFDLHVFQUF1RSxlQUFlLENBQUMsZ0JBQWdCLENBQUMsbUZBQW1GLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyxpRkFBaUYsY0FBYyxDQUFDLGlCQUFpQixDQUFDLHdCQUF3QixDQUFDLGlCQUFpQixDQUFDLGdCQUFnQixDQUFDLDZGQUE2RixjQUFjLENBQUMsZUFBZSxDQUFDLG1HQUFtRyx3QkFBd0IsQ0FBQyxtSEFBbUgsZ0JBQWdCLENBQUMsK0hBQStILGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyxpR0FBaUcsb0JBQW9CLENBQUMsZUFBZSxDQUFDLGdHQUFnRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsc0dBQXNHLHdCQUF3QixDQUFDLHFHQUFxRyw4QkFBOEIsQ0FBQyxpSEFBaUgsNkJBQTZCLENBQUMsaUJBQWlCLENBQUMsc0dBQXNHLDZCQUE2QixDQUFDLGtIQUFrSCxhQUFhLENBQUMsOEJBQThCLENBQUMsaUZBQWlGLG1CQUFtQixDQUFDLDZGQUE2RixtQkFBbUIsQ0FBQyx1RkFBdUYsT0FBTyxDQUFDLGtCQUFrQixDQUFDLGdCQUFnQixDQUFDLG1HQUFtRyxpQkFBaUIsQ0FBQyxjQUFjLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyw2Q0FBNkMsYUFBYSxDQUFDLDRCQUE0QixtQkFBbUIsQ0FBQyx3Q0FBd0MsbUJBQW1CLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyxpQkFBaUIsQ0FBQyx5Q0FBeUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLDZDQUE2QyxxQkFBcUIsQ0FBQyx1Q0FBdUMseUNBQXlDLENBQUMsa0JBQWtCLENBQUMsMEJBQTBCLENBQUMsbUJBQW1CLHFCQUFxQixDQUFDLHFCQUFxQixDQUFDLG1DQUFtQyxDQUFDLE1BQU0sQ0FBQyxvQ0FBb0MsUUFBUSxDQUFDLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyxtRkFBbUYsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsaUNBQWlDLFdBQVcsQ0FBQywyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQywyQkFBMkIsQ0FBQyxrQkFBa0IsQ0FBQyxpRkFBaUYsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsdUNBQXVDLDRCQUE0QixDQUFDLGVBQWUsQ0FBQyx1Q0FBdUMseUJBQXlCLENBQUMsZUFBZSxDQUFDLHlEQUF5RCx3QkFBZ0IsQ0FBaEIsZ0JBQWdCLENBQUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLHNCQUFzQixDQUFDLGNBQWMsQ0FBQyw0RUFBNEUsY0FBYyxDQUFDLDBFQUEwRSx3QkFBd0IsQ0FBQyx5S0FBeUssd0JBQXdCLENBQUMsZUFBZSxDQUFDLHVEQUF1RCxxQkFBcUIsQ0FBQyxzQkFBc0IsQ0FBQyxnQkFBZ0IsQ0FBQyxxS0FBcUssVUFBVSxDQUFDLHdCQUF3QixDQUFDLHVNQUF1TSxlQUFlLENBQUMsd0VBQXdFLHdCQUF3QixDQUFDLFVBQVUsQ0FBQywwRUFBMEUsVUFBVSxDQUFDLHVFQUF1RSxpQkFBaUIsQ0FBQyxtRkFBbUYsa0JBQWtCLENBQUMsY0FBYyxDQUFDLHFFQUFxRSxhQUFhLENBQUMsZUFBZSxDQUFDLGlCQUFpQixDQUFDLGlGQUFpRixnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsK0JBQStCLGFBQWEsQ0FBQyxnQkFBZ0IsQ0NFMTRPO0VBQ0UsbUJBQUE7RUFDQSwwQkFBQTtFQUNBLGVBQUE7RUFDQSxXQUFBO0FBQUYsQ0FFQTtFQUNFLHFCQUFBO0FBQ0YsQ0FDQTtFQUNFLHlCQUFBO0FBRUYsQ0FDQTtFQUNFLDZCQUFBO0VBQ0EsYUFBQTtFQUNBLGNBQUE7RUFDQSx5QkFBQTtBQUVGLENBQUE7RUFDRSxZQUFBO0VBQ0EsNEJBQUE7RUFDQSxlQUFBO0FBR0YsQ0FGRTtFQUNFLGFBQUE7QUFJSixDQUZFO0VBQ0Usb0JBQUE7RUFDQSxxQkFBQTtFQUNBLGdCQUFBO0FBSUosQ0FISTtFQUNFLGVBQUE7QUFLTixDQUFBO0VBQ0UsYUFBQTtBQUdGLENBQUE7RUFDRSxZQUFBO0FBR0YsQ0FBQTtFQUNFLGFBQUE7QUFHRixDQUFBO0VBQ0UsYUFBQTtBQUdGLENBQUE7RUFDRSxZQUFBO0FBR0YsQ0FBQTtFQUNFLGNBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7QUFHRixDQUFBO0VBQ0Usb0NBQUE7RUFDQSx1QkFBQTtBQUdGLENBQUE7RUFDRSxZQUFBO0VBQ0EsWUFBQTtBQUdGLENBQUE7RUFDRSxhQUFBO0VBQ0EsbUJBQUE7QUFHRixDQUFBO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBR0YsQ0FBQTtFQUNFLGVBQUE7QUFHRixDQURBO0VBQ0UsVUFBQTtBQUlGLENBRkE7RUFDRSx5QkFBQTtBQUtGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL3F1ZXN0aW9uLWJ1aWxkZXIvY3JlYXRlLWVkaXQtbW9kdWxlL2NyZWF0ZS1lZGl0LW1vZHVsZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbmEubGlzdC1ncm91cC1pdGVtIHtcbiAgbWFyZ2luLWJvdHRvbTogMXJlbTtcbiAgYm9yZGVyOiAxcHggZG90dGVkIHJnYigyMDQsIDIwNCwgMjA0KTtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBjb2xvcjogIzU1NTtcbn1cbmEge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG59XG5hLmxpc3QtZ3JvdXAtaXRlbTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYigyMjYsIDIyNiwgMjI2KTtcbn1cblxuLmNhcmQtaGVhZGVyLWZsZXhpIHtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDFyZW07XG4gIGNvbG9yOiAjYTQyMTM4O1xuICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xufVxuLmNhcmQtYm9keSAuYm94IHtcbiAgbWFyZ2luOiAxcmVtO1xuICBib3gtc2hhZG93OiAwcHggMHB4IDhweCAjY2NjO1xuICBwYWRkaW5nOiAxLjJyZW07XG4gIC5ib3gtYm9keSB7XG4gICAgcGFkZGluZzogMXJlbTtcbiAgfVxuICAuYm94LWhlYWRpbmcge1xuICAgIHBhZGRpbmctYm90dG9tOiAxcmVtO1xuICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDtcbiAgICBmb250LXdlaWdodDogNjAwO1xuICAgIHNwYW4ge1xuICAgICAgcGFkZGluZzogMCAxcmVtO1xuICAgIH1cbiAgfVxufVxuXG4uZHJvcGRvd24tdG9nZ2xlOjphZnRlciB7XG4gIGNvbnRlbnQ6IG5vbmU7XG59XG5cbi5jYW5jZWwtYnV0dG9uIHtcbiAgZmxvYXQ6IHJpZ2h0O1xufVxuXG4ubXktbW9kYWwtcG9wdXAgLm1vZGFsLWxnIHtcbiAgd2lkdGg6IDEwMDBweDtcbn1cblxuLmZsZXgtU0Ige1xuICBkaXNwbGF5OiBmbGV4O1xufVxuXG4uc2VxdWVuY2VRdWVzdGlvbi1jb250YWluZXIge1xuICBtYXJnaW46IDIwcHg7XG59XG5cbi5jZW50ZXJlZC1pbWFnZSB7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBtYXJnaW4tbGVmdDogYXV0bztcbiAgbWFyZ2luLXJpZ2h0OiBhdXRvO1xuICB3aWR0aDogMjAwcHg7XG4gIGhlaWdodDogMjAwcHg7XG59XG5cbjo6bmctZGVlcCAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMyMTk2ZjMgIWltcG9ydGFudDtcbiAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG59XG5cbi5pbWdDb250ZW50IHtcbiAgd2lkdGg6IDI3MHB4O1xuICBtYXJnaW46IGF1dG87XG59XG5cbi5sYWJsZU1hbmRhdG9yeXtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbn1cblxuLm1hbmRhdG9yeV9TdGFye1xuICBmb250LXNpemU6IDI1cHg7XG4gIG1hcmdpbi1sZWZ0OiAzcHg7XG5cbn1cbm5nYi1yYXRpbmcge1xuICBmb250LXNpemU6IDQwcHg7XG59XG4udy0zNXtcbiAgd2lkdGg6IDM1JTtcbn1cbi5zZWN0aW9uLWJvcmRlciB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNhNDIxMzg7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CreateEditModuleComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'create-edit-module',
templateUrl: './create-edit-module.component.html',
styleUrls: ['./create-edit-module.component.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbRatingConfig"] }, { type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_9__["CentralBuilderService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_10__["CompanyService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_11__["ToastrService"] }]; }, { moduleId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], createQuestion: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['createQuestion', { static: true }]
}], updateModule: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['updateModule', { static: true }]
}], addSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['addSection', { static: true }]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "6VmK":
/*!***************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/service-setup/service-setup.component.ts ***!
\***************************************************************************************/
/*! exports provided: ServiceSetupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceSetupComponent", function() { return ServiceSetupComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/constants */ "l207");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _service_setup_overview_service_setup_overview_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./service-setup-overview/service-setup-overview.component */ "yOpY");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
function ServiceSetupComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-service-setup-overview", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("changeActiveEdit", function ServiceSetupComponent_ng_template_6_Template_app_service_setup_overview_changeActiveEdit_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r3.onEditBtn($event); })("changeActiveView", function ServiceSetupComponent_ng_template_6_Template_app_service_setup_overview_changeActiveView_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r5.onViewBtn($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ServiceSetupComponent_ng_template_10_ng_container_53_ng_option_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r11 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", item_r11, " ");
} }
function ServiceSetupComponent_ng_template_10_ng_container_53_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Activation Time Limit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "ng-select", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ServiceSetupComponent_ng_template_10_ng_container_53_ng_option_6_Template, 2, 2, "ng-option", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true)("multiple", false)("searchable", true)("clearable", ctx_r6.serviceSetUpForm.get("StandByActivationTime").value ? true : false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r6.timeLimit);
} }
function ServiceSetupComponent_ng_template_10_ng_container_119_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Select a time to receive a notification before the service starts.");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "span", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "ng-select", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "span", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "ng-select", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r7.hourList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r7.minList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
} }
function ServiceSetupComponent_ng_template_10_ng_container_137_ng_container_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Days");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "span", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "ng-select", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "span", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](23, "ng-select", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r12.hourList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r12.minList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
} }
function ServiceSetupComponent_ng_template_10_ng_container_137_ng_container_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Select Fixed Cut-off Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "span", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "ng-select", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r13.time)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
} }
function ServiceSetupComponent_ng_template_10_ng_container_137_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Select time duration before service start time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, ServiceSetupComponent_ng_template_10_ng_container_137_ng_container_13_Template, 24, 10, "ng-container", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ServiceSetupComponent_ng_template_10_ng_container_137_ng_container_14_Template, 9, 5, "ng-container", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.serviceSetUpForm.get("cutOffDurationBeforeStartTime").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r8.serviceSetUpForm.get("cutOffDurationBeforeStartTime").value);
} }
function ServiceSetupComponent_ng_template_10_div_139_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span", 60);
} }
function ServiceSetupComponent_ng_template_10_div_139_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ServiceSetupComponent_ng_template_10_div_139_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r15.activateDisable ? ctx_r15.updateSetupDetails() : ctx_r15.saveSetupDetails(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, ServiceSetupComponent_ng_template_10_div_139_span_3_Template, 1, 0, "span", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ServiceSetupComponent_ng_template_10_div_139_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r17.cancel(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r9.setupSaveLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r9.activateDisable ? "Update" : "Submit", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r9.setupSaveLoader);
} }
function ServiceSetupComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Service Type ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "ng-select", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("scrollToEnd", function ServiceSetupComponent_ng_template_10_Template_ng_select_scrollToEnd_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.loadMoreServiceTypes($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "Enter Service Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Add Weeks for service view");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](34, "ng-select", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "StandBy Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](45, "input", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](49, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](53, ServiceSetupComponent_ng_template_10_ng_container_53_Template, 7, 5, "ng-container", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](60, "Do you want to show ServiceEndTime on Manage Page?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](62, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](64, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](66, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](68, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](70, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](77, "Cancel Service");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](79, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](81, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](83, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](85, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](87, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](88, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](89, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](90, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](91, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](92, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](93, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](94, "Staff can cancel the booking even after the service has started?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](95, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](96, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](97, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](98, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](99, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](100, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](101, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](102, "input", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](103, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](104, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](105, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](106, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](108, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](109, "Can staff receive a notification before the service starts?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](110, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](111, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](112, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](113, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](114, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](115, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](116, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](117, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](118, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](119, ServiceSetupComponent_ng_template_10_ng_container_119_Template, 20, 10, "ng-container", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](120, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](121, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](122, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](123, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](124, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](125, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](126, "Cut-off Configuration for Booking Service");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](127, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](128, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](129, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](130, "input", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](131, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](132, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](133, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](134, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](135, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](136, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](137, ServiceSetupComponent_ng_template_10_ng_container_137_Template, 15, 4, "ng-container", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](138, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](139, ServiceSetupComponent_ng_template_10_div_139_Template, 6, 3, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.isHeading, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.serviceSetUpForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r2.serviceOption)("multiple", false)("searchable", true)("clearable", false)("loading", ctx_r2.serviceTypeLoader)("loadingText", "Loading more...")("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r2.viewWeeks)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.serviceSetUpForm.get("standBySlot").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.serviceSetUpForm.get("notifyBeforeStart").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.serviceSetUpForm.get("cutOffTimeRequired").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isVisibleActionButton);
} }
class ServiceSetupComponent {
constructor(toastService, service, fb) {
this.toastService = toastService;
this.service = service;
this.fb = fb;
this.activeId = 1;
this.isHeading = 'CREATE SERVICE SETUP';
this.serviceOption = [];
this.setupSaveLoader = false;
this.isVisibleActionButton = false;
this.time = src_app_constants__WEBPACK_IMPORTED_MODULE_4__["TIME_SLOTS"];
this.viewWeeks = src_app_constants__WEBPACK_IMPORTED_MODULE_4__["VIEW_WEEKS"];
this.minList = src_app_constants__WEBPACK_IMPORTED_MODULE_4__["DEFAULT_MIN_LIST"];
this.hourList = src_app_constants__WEBPACK_IMPORTED_MODULE_4__["DEFAULT_HOUR_LIST"];
this.timeLimit = [];
this.serviceTypeLoader = false;
this.pagination = {
page: 1,
limit: 10,
sort: '{"_id": -1}',
};
}
ngOnInit() {
this.timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
this.initializeForm();
this.loadInitialData();
}
onTabChange(event) {
if (this.activeId === 1) {
this.initializeForm();
this.loadInitialData();
this.serviceSetUpForm.enable();
}
}
initializeForm() {
this.activateDisable = false;
this.activeId = 1;
this.serviceSetUpForm = this.fb.group({
_id: [''],
serviceType: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
serviceName: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
serviceViewWeeks: [src_app_constants__WEBPACK_IMPORTED_MODULE_4__["DEFAULT_SERVICE_VIEW_WEEKS"], [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
standBySlot: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
StandByActivationTime: [0],
showServiceEndTime: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
allowCancelAfterStart: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
cancelService: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
cutOffTimeRequired: [true, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
cutOffDurationBeforeStartTime: [true],
notifyBeforeStart: [false],
cutOffConfiguration: this.fb.group({
cutOffDays: [0],
cutOffHours: [0],
cutOffMinutes: [0],
}),
notifyBeforeCutOffTime: this.fb.group({
notifyBeforeHours: [0],
notifyBeforeMinutes: [0],
}),
fixedCutOffTime: [null],
});
}
loadInitialData() {
this.isHeading = 'CREATE SERVICE SETUP';
this.isVisibleActionButton = true;
this.activateDisable = false;
this.timeLimit = Array.from({ length: 24 }, (_, i) => i + 1);
this.serviceOption = [];
this.getServiceType();
}
getServiceType() {
this.serviceTypeLoader = true;
const subscribe = this.service
.getServiceType(this.pagination)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
this.serviceTypeLoader = false;
}))
.subscribe((response) => {
const { data, totalRecords } = response.data;
this.serviceOption = [...this.serviceOption, ...data];
});
}
loadMoreServiceTypes() {
this.pagination.page++;
this.getServiceType();
}
onViewBtn(event) {
this.handleServiceSetup(event, 'view');
}
onEditBtn(event) {
this.handleServiceSetup(event, 'edit');
}
handleServiceSetup(event, mode) {
this.serviceSetUpForm.reset();
this.service.getSingleServiceSetup(event._id, this.timezone).subscribe((response) => {
if (mode === 'view') {
this.activeId = 2;
this.serviceSetUpForm.disable();
this.isHeading = 'VIEW SERVICE SETUP';
this.isVisibleActionButton = false;
}
else if (mode === 'edit') {
this.activateDisable = true;
this.isHeading = 'EDIT SERVICE SETUP';
this.activeId = 2;
this.isVisibleActionButton = true;
this.itemToUpdate = response.data;
this.serviceSetUpForm.enable();
this.serviceSetUpForm.get('serviceType').disable();
}
this.setFormGroupValue(response.data);
}, (error) => {
var _a, _b;
const errorMessage = ((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Service Not Found!';
this.toastService.error(errorMessage);
});
}
saveSetupDetails() {
if (this.serviceSetUpForm.valid) {
this.setupSaveLoader = true;
const payload = Object.assign({}, this.serviceSetUpForm.value);
delete payload._id;
payload.fixedCutOffTime = this.parseTime(payload.fixedCutOffTime);
payload.timezone = this.timezone;
payload.cutOffTimeRequired === false &&
(payload.cutOffDurationBeforeStartTime = false);
this.service
.saveServiceSetup(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.setupSaveLoader = false;
}))
.subscribe((res) => {
this.toastService.success('Service setup saved successfully!');
this.initializeForm();
}, (err) => {
var _a, _b;
const errorMessage = ((_b = (_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to save service setup';
this.toastService.error(errorMessage);
});
}
else {
this.toastService.error('Please complete all required fields before submitting', 'Missing Information');
}
}
cancel() {
this.initializeForm();
}
setFormGroupValue(data) {
var _a, _b;
this.serviceSetUpForm.patchValue({
_id: data._id,
serviceType: data.serviceType,
serviceName: data.serviceName,
serviceViewWeeks: data.serviceViewWeeks,
standBySlot: data.standBySlot,
StandByActivationTime: data.StandByActivationTime,
showServiceEndTime: data.showServiceEndTime,
allowCancelAfterStart: data === null || data === void 0 ? void 0 : data.allowCancelAfterStart,
cancelService: data.cancelService,
cutOffTimeRequired: data.cutOffTimeRequired,
cutOffDurationBeforeStartTime: data.cutOffDurationBeforeStartTime,
notifyBeforeStart: data === null || data === void 0 ? void 0 : data.notifyBeforeStart,
cutOffConfiguration: {
cutOffDays: data.cutOffConfiguration.cutOffDays,
cutOffHours: data.cutOffConfiguration.cutOffHours,
cutOffMinutes: data.cutOffConfiguration.cutOffMinutes,
},
notifyBeforeCutOffTime: {
notifyBeforeHours: ((_a = data === null || data === void 0 ? void 0 : data.notifyBeforeCutOffTime) === null || _a === void 0 ? void 0 : _a.notifyBeforeHours) || 0,
notifyBeforeMinutes: ((_b = data === null || data === void 0 ? void 0 : data.notifyBeforeCutOffTime) === null || _b === void 0 ? void 0 : _b.notifyBeforeMinutes) || 0,
},
fixedCutOffTime: `${data.fixedCutOffTime.hour}:${data.fixedCutOffTime.minute.toString().padStart(2, '0')}`,
});
}
updateSetupDetails() {
var _a;
if (this.serviceSetUpForm.valid) {
this.setupSaveLoader = true;
const _b = this.serviceSetUpForm.value, { _id } = _b, payload = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_b, ["_id"]);
payload.fixedCutOffTime = this.parseTime(payload.fixedCutOffTime);
payload.timezone = this.timezone;
if (((_a = this.itemToUpdate) === null || _a === void 0 ? void 0 : _a.serviceName) === payload.serviceName) {
delete payload.serviceName;
}
if (!payload.cutOffTimeRequired) {
payload.cutOffDurationBeforeStartTime = false;
}
this.service
.updateServiceSetup(_id, payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => (this.setupSaveLoader = false)))
.subscribe(() => {
this.toastService.success('Service setup updated successfully!');
this.initializeForm();
}, (err) => {
var _a, _b;
const errorMessage = ((_b = (_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to update service setup';
this.toastService.error(errorMessage);
});
}
else {
this.toastService.error('Please complete all required fields before submitting', 'Missing Information');
}
}
parseTime(input) {
if (!input) {
return { hour: 0, minute: 0 };
}
const [hour, minute] = input.split(':').map(Number);
return { hour: hour || 0, minute: minute || 0 };
}
}
ServiceSetupComponent.ɵfac = function ServiceSetupComponent_Factory(t) { return new (t || ServiceSetupComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"])); };
ServiceSetupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ServiceSetupComponent, selectors: [["app-service-setup"]], decls: 12, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange", "click"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [3, "changeActiveEdit", "changeActiveView"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [3, "formGroup"], [1, "card", "mb-3"], [1, "row"], [1, "col-md-3"], [1, "form-group"], [1, "font-weight-500"], [1, "field-mandatory", "required-sign"], ["bindLabel", "serviceTypeName", "bindValue", "serviceTypeName", "formControlName", "serviceType", "placeholder", "Select Service Type", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "loading", "loadingText", "closeOnSelect", "scrollToEnd"], [1, "col-md-5"], ["type", "text", "placeholder", "Enter Service Name", "formControlName", "serviceName", 1, "form-control"], [1, "col-md-2"], [1, "font-weight-500", 2, "width", "max-content"], ["placeholder", "No Of Weeks", "formControlName", "serviceViewWeeks", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "col"], [1, "form-group", "m-0"], [1, "form-check", "form-check-inline", "ml-2"], ["type", "radio", "id", "yesCheckin", "formControlName", "standBySlot", "name", "standBySlot", 1, "form-check-input", 3, "value"], [1, "form-check-label"], [1, "form-check", "form-check-inline"], ["type", "radio", "id", "noCheckin", "formControlName", "standBySlot", "name", "standBySlot", 1, "form-check-input", 3, "value"], [4, "ngIf"], ["type", "radio", "id", "yesCheckin", "formControlName", "showServiceEndTime", "name", "showServiceEndTime", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "noCheckin", "formControlName", "showServiceEndTime", "name", "showServiceEndTime", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "yesCheckin", "formControlName", "cancelService", "name", "cancelService", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "noCheckin", "formControlName", "cancelService", "name", "cancelService", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "yesCancelBooking", "formControlName", "allowCancelAfterStart", "name", "allowCancelAfterStart", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "noCancelBooking", "formControlName", "allowCancelAfterStart", "name", "allowCancelAfterStart", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "notifyBeforeStart", "formControlName", "notifyBeforeStart", "name", "notifyBeforeStart", 1, "form-check-input", 3, "value"], ["formGroupName", "notifyBeforeCutOffTime"], ["type", "radio", "id", "yesCheckin", "formControlName", "cutOffTimeRequired", "name", "cutOffTimeRequired", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "noCheckin", "formControlName", "cutOffTimeRequired", "name", "cutOffTimeRequired", 1, "form-check-input", 3, "value"], [1, "card-footer"], [1, "col-2"], ["bindLabel", "name", "placeholder", "Select Number of Days", "appendTo", "body", "formControlName", "StandByActivationTime", 1, "custom", 3, "value", "multiple", "searchable", "clearable"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "field-mandatory", "mandatory_Star"], ["bindLabel", "name", "formControlName", "notifyBeforeHours", "appendTo", "body", "placeholder", "Select Hours", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "name", "formControlName", "notifyBeforeMinutes", "appendTo", "body", "placeholder", "Select Minutes", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["type", "radio", "id", "cutOffDurationBeforeStartTime", "formControlName", "cutOffDurationBeforeStartTime", "name", "cutOffDurationBeforeStartTime", 1, "form-check-input", 3, "value"], ["formGroupName", "cutOffConfiguration"], ["type", "text", "formControlName", "cutOffDays", "placeholder", "Enter days", 1, "form-control"], ["bindLabel", "name", "formControlName", "cutOffHours", "appendTo", "body", "placeholder", "Select Hours", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "name", "formControlName", "cutOffMinutes", "appendTo", "body", "placeholder", "Select Minutes", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "row", "mt-3"], ["bindLabel", "name", "placeholder", "Select Time", "formControlName", "fixedCutOffTime", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["type", "submit", 1, "btn", "btn-lg", "btn-success", 3, "disabled", "click"], ["class", "spinner-border ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], ["type", "button", 1, "btn", "btn-lg", "btn-danger", "ml-2", 3, "click"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "ml-1"]], template: function ServiceSetupComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function ServiceSetupComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; })("click", function ServiceSetupComponent_Template_ul_click_1_listener($event) { return ctx.onTabChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ServiceSetupComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " SERVICE SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, ServiceSetupComponent_ng_template_10_Template, 140, 30, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavOutlet"], _service_setup_overview_service_setup_overview_component__WEBPACK_IMPORTED_MODULE_8__["ServiceSetupOverviewComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__["ɵr"]], styles: [".no-click[_ngcontent-%COMP%] {\n pointer-events: none;\n}\n\n.not-allowed[_ngcontent-%COMP%] {\n cursor: not-allowed !important;\n}\n\n.disabled[_ngcontent-%COMP%] {\n background-color: #dcdada;\n cursor: not-allowed;\n}\n\n.ng-select.disabled[_ngcontent-%COMP%] .ng-select-container {\n background-color: #dcdada;\n cursor: not-allowed;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9zZXJ2aWNlLXNldHVwL3NlcnZpY2Utc2V0dXAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxvQkFBQTtBQUNKOztBQUVFO0VBQ0UsOEJBQUE7QUFDSjs7QUFFRTtFQUNFLHlCQUFBO0VBQ0EsbUJBQUE7QUFDSjs7QUFFRTtFQUNFLHlCQUFBO0VBQ0EsbUJBQUE7QUFDSjs7QUFFRTtFQUNFLHNCQUFBO0FBQ0o7O0FBQUk7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0FBRU47O0FBQU07RUFDRSxjQUFBO0FBRVI7O0FBQ007RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBQ1IiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9vcGVyYXRpb25zL3NldHVwL3NlcnZpY2Utc2V0dXAvc2VydmljZS1zZXR1cC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uby1jbGljayB7XG4gICAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIH1cbiAgXG4gIC5ub3QtYWxsb3dlZCB7XG4gICAgY3Vyc29yOiBub3QtYWxsb3dlZCAhaW1wb3J0YW50O1xuICB9XG4gIFxuICAuZGlzYWJsZWQge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNkY2RhZGE7XG4gICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgfVxuICBcbiAgLm5nLXNlbGVjdC5kaXNhYmxlZCA6Om5nLWRlZXAgLm5nLXNlbGVjdC1jb250YWluZXIge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNkY2RhZGE7XG4gICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgfVxuICBcbiAgLm5hdi10YWJzIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgIC5uYXYtbGluayB7XG4gICAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgICAgYm9yZGVyOiBub25lO1xuICAgICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgXG4gICAgICAmOmhvdmVyIHtcbiAgICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICB9XG4gIFxuICAgICAgJi5hY3RpdmUge1xuICAgICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICAgIH1cbiAgICB9XG4gIH1cbiAgIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ServiceSetupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-service-setup',
templateUrl: './service-setup.component.html',
styleUrls: ['./service-setup.component.scss'],
}]
}], function () { return [{ type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }]; }, null); })();
/***/ }),
/***/ "6h1h":
/*!****************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/create-edit-forms/create-edit-forms.component.ts ***!
\****************************************************************************************************/
/*! exports provided: CreateEditFormsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEditFormsComponent", function() { return CreateEditFormsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/companyservice/company.service */ "xdkg");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/stepper */ "xHqg");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../shared/assign-users/assign-users.component */ "9Zea");
/* harmony import */ var angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! angular-froala-wysiwyg */ "81np");
function CreateEditFormsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "PLEASE SELECT FORM TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_0_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r3.chooseFormType(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " INTERNAL ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_0_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r5.chooseFormType(2); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " EXTERNAL ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditFormsComponent_div_1_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0, " STEP 1 ");
} }
function CreateEditFormsComponent_div_1_div_20_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_1_div_20_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r32.iconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Upload Form Logo ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditFormsComponent_div_1_div_24_Template(rf, ctx) { if (rf & 1) {
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_24_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r35); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r34.ondeleteImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "img", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r9.validateURLImage(ctx_r9.createForm.get("formLogo").value), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function CreateEditFormsComponent_div_1_ng_option_38_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r36 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r36._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r36.serviceTypeName, " ");
} }
function CreateEditFormsComponent_div_1_div_39_ng_option_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r38 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r38._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r38.serviceName, " ");
} }
const _c0 = function () { return { standalone: true }; };
function CreateEditFormsComponent_div_1_div_39_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Select Form SubType");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "ng-select", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function CreateEditFormsComponent_div_1_div_39_Template_ng_select_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r40); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r39.formSubTypeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CreateEditFormsComponent_div_1_div_39_ng_option_6_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r11.formSubTypeId)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](6, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r11.servicesSubTypeList);
} }
function CreateEditFormsComponent_div_1_div_48_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Indent Description");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("froalaEditor", ctx_r12.options);
} }
function CreateEditFormsComponent_div_1_ng_option_64_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r41 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r41.moduleName, " ");
} }
function CreateEditFormsComponent_div_1_div_65_Template(rf, ctx) { if (rf & 1) {
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "i", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_65_Template_i_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r43); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r42.deleteQuestionaari(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r14.createForm.get("moduleId.string").value, " ");
} }
function CreateEditFormsComponent_div_1_ng_template_71_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0, "STEP 2");
} }
function CreateEditFormsComponent_div_1_div_73_Template(rf, ctx) { if (rf & 1) {
const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_73_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2); return _r6.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_73_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2); return _r6.next(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Next Step ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditFormsComponent_div_1_ng_template_75_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0, " STEP 3");
} }
function CreateEditFormsComponent_div_1_div_110_tr_4_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Default ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const index_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r49);
} }
function CreateEditFormsComponent_div_1_div_110_tr_4_Template(rf, ctx) { if (rf & 1) {
const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditFormsComponent_div_1_div_110_tr_4_div_2_Template, 3, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "span", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "img", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_110_tr_4_Template_img_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r53); const index_r49 = ctx.index; const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r52.deleteQuestions(index_r49); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const fieldObj_r48 = ctx.$implicit;
const index_r49 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", fieldObj_r48.get("isDefault").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("background-color", fieldObj_r48.get("color").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", fieldObj_r48.get("field").value, " ");
} }
function CreateEditFormsComponent_div_1_div_110_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "table", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CreateEditFormsComponent_div_1_div_110_tr_4_Template, 7, 5, "tr", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r18.workFlowStatusControl.controls);
} }
function CreateEditFormsComponent_div_1_ng_option_117_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r54 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r54.name, " ");
} }
function CreateEditFormsComponent_div_1_div_121_Template(rf, ctx) { if (rf & 1) {
const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_121_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const index_r56 = ctx.index; const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r57.deleteWorkFlowAdmin(index_r56); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r55 = ctx.$implicit;
const index_r56 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r55.get("name").value, " ");
} }
function CreateEditFormsComponent_div_1_div_138_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ques_r61 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ques_r61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ques_r61.question, " ");
} }
function CreateEditFormsComponent_div_1_div_138_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r63 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r63.value, " ");
} }
function CreateEditFormsComponent_div_1_div_138_div_6_Template(rf, ctx) { if (rf & 1) {
const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CreateEditFormsComponent_div_1_div_138_div_6_ng_option_4_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_138_div_6_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r65); const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r64.addQuestionAndAnswer(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r60.answers);
} }
function CreateEditFormsComponent_div_1_div_138_Template(rf, ctx) { if (rf & 1) {
const _r67 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_1_div_138_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r67); const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r66.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CreateEditFormsComponent_div_1_div_138_ng_option_5_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CreateEditFormsComponent_div_1_div_138_div_6_Template, 7, 4, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r21.questions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r21.answers.length != 0);
} }
function CreateEditFormsComponent_div_1_div_139_div_1_Template(rf, ctx) { if (rf & 1) {
const _r72 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Q - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "p", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "img", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_139_div_1_Template_img_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r72); const index_r70 = ctx.index; const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r71.formsQuestionDelete(index_r70); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_139_div_1_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r72); const field_r69 = ctx.$implicit; const index_r70 = ctx.index; const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r73.editQuestions(field_r69.value, index_r70); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r69 = ctx.$implicit;
const index_r70 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("innerHtml", field_r69.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" A - ", field_r69.get("answer").value, "");
} }
function CreateEditFormsComponent_div_1_div_139_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditFormsComponent_div_1_div_139_div_1_Template, 12, 4, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r22.questionResponseControl.controls);
} }
function CreateEditFormsComponent_div_1_div_144_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r76 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r76.title, " ");
} }
function CreateEditFormsComponent_div_1_div_144_div_6_ng_option_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r78 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r78.field, " ");
} }
function CreateEditFormsComponent_div_1_div_144_div_6_Template(rf, ctx) { if (rf & 1) {
const _r80 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ng-select", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_1_div_144_div_6_Template_ng_select_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r80); const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r79.getContionalWorkflowAnswer($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditFormsComponent_div_1_div_144_div_6_ng_option_2_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_144_div_6_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r80); const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r81.showworkflowResponse(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](5, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r75.workFlowDropDown);
} }
function CreateEditFormsComponent_div_1_div_144_Template(rf, ctx) { if (rf & 1) {
const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Select a workflow form");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_1_div_144_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r83); const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r82.getContionalWorkflowID($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CreateEditFormsComponent_div_1_div_144_ng_option_5_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CreateEditFormsComponent_div_1_div_144_div_6_Template, 5, 6, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](6, _c0))("multiple", false)("searchable", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r23.workFlow);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r23.workFlowDropDown.length != 0);
} }
function CreateEditFormsComponent_div_1_div_145_div_1_Template(rf, ctx) { if (rf & 1) {
const _r88 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Selected workflow:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "img", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_145_div_1_Template_img_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r88); const index_r86 = ctx.index; const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r87.formsWorkflowDelete(index_r86); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r85 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", field_r85.get("question").value, " => ", field_r85.get("workFlowAnswer").value, " ");
} }
function CreateEditFormsComponent_div_1_div_145_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditFormsComponent_div_1_div_145_div_1_Template, 8, 2, "div", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r24.workflowResponseControl.controls);
} }
function CreateEditFormsComponent_div_1_ng_option_155_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r89 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r89.moduleName, " ");
} }
function CreateEditFormsComponent_div_1_div_156_Template(rf, ctx) { if (rf & 1) {
const _r91 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_156_Template_img_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r91); const ctx_r90 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r90.deleteAditionalModule(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r26.workFlowForm.get("additionalModuleId.string").value, " ");
} }
function CreateEditFormsComponent_div_1_button_159_Template(rf, ctx) { if (rf & 1) {
const _r93 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_button_159_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r93); const ctx_r92 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r92.addWorkFlow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Add WorkFlow ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r27.workFlowForm.valid);
} }
function CreateEditFormsComponent_div_1_button_160_Template(rf, ctx) { if (rf & 1) {
const _r95 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_button_160_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r95); const ctx_r94 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r94.updateWorkFlow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditFormsComponent_div_1_div_163_tr_20_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r100 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r100.field);
} }
function CreateEditFormsComponent_div_1_div_163_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CreateEditFormsComponent_div_1_div_163_tr_20_ul_6_Template, 3, 1, "ul", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_163_tr_20_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r102); const item_r97 = ctx.$implicit; const index_r98 = ctx.index; const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r101.editWorkflow(item_r97, index_r98); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_div_163_tr_20_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r102); const index_r98 = ctx.index; const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r103.deleteWorkFlow(index_r98); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "i", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r97 = ctx.$implicit;
const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r97.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r97.type, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r97.workflowStatus);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", (item_r97 == null ? null : item_r97.additionalModuleId == null ? null : item_r97.additionalModuleId.string) === "undefined" || (item_r97 == null ? null : item_r97.additionalModuleId == null ? null : item_r97.additionalModuleId.string) === null ? "No" : "Yes", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r96.isWorkflowEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r96.isWorkflowEdited);
} }
function CreateEditFormsComponent_div_1_div_163_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "SELECTED WORKFLOWS INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "table", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "WORKFLOW TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "WORKFLOW TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "WORKFLOW VALUES");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "ADDITIONAL QUESTIONNAIRE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "th", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, CreateEditFormsComponent_div_1_div_163_tr_20_Template, 14, 6, "tr", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r29.workFlow);
} }
const _c1 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function CreateEditFormsComponent_div_1_button_165_Template(rf, ctx) { if (rf & 1) {
const _r105 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_button_165_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r105); const ctx_r104 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r104.onSubmitWorkFlow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Publish ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r30.isLoadingSubmit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](2, _c1, ctx_r30.isLoadingSubmit, !ctx_r30.isLoadingSubmit));
} }
function CreateEditFormsComponent_div_1_button_166_Template(rf, ctx) { if (rf & 1) {
const _r107 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_button_166_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r107); const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r106.onUpdateWorkFlow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r31.isLoadingUpdate && ctx_r31.workFlow.length !== 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](2, _c1, ctx_r31.isLoadingUpdate, !ctx_r31.isLoadingUpdate));
} }
function CreateEditFormsComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r109 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "mat-horizontal-stepper", 8, 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "mat-step", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CreateEditFormsComponent_div_1_ng_template_5_Template, 1, 0, "ng-template", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "FORM");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Form Title");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, CreateEditFormsComponent_div_1_div_20_Template, 4, 0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, CreateEditFormsComponent_div_1_div_24_Template, 4, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, "Form Description");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](30, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, "Select Form Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "ng-select", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_1_Template_ng_select_change_37_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r108 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r108.addServiceType($event); })("ngModelChange", function CreateEditFormsComponent_div_1_Template_ng_select_ngModelChange_37_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r110 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r110.formTypeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](38, CreateEditFormsComponent_div_1_ng_option_38_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](39, CreateEditFormsComponent_div_1_div_39_Template, 7, 7, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](42, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, " Allow multiple submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](46, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, " Allow Create Indent ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](48, CreateEditFormsComponent_div_1_div_48_Template, 6, 1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](51, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](52, " Allow this form to be placed in quick navigation ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](55, "input", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56, " Allow Form Values to be Edited By Administrator after submission ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](60, "Select Questionnaire");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](62, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "ng-select", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_1_Template_ng_select_change_63_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r111.addQuestionaari($event); })("ngModelChange", function CreateEditFormsComponent_div_1_Template_ng_select_ngModelChange_63_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r112 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r112.questionDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](64, CreateEditFormsComponent_div_1_ng_option_64_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](65, CreateEditFormsComponent_div_1_div_65_Template, 6, 1, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "button", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_Template_button_click_67_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2); const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r113.goForward(_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](68, "Proceed to Next Step");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "mat-step", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](71, CreateEditFormsComponent_div_1_ng_template_71_Template, 1, 0, "ng-template", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "assign-users", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("onSubmitAssignUsers", function CreateEditFormsComponent_div_1_Template_assign_users_onSubmitAssignUsers_72_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r114 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r114.updateDUserDetails($event); })("getAssignUsersData", function CreateEditFormsComponent_div_1_Template_assign_users_getAssignUsersData_72_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r115.getUserBasedOnBuUnits($event); })("showCreateButton", function CreateEditFormsComponent_div_1_Template_assign_users_showCreateButton_72_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r116 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r116.showCreateButton(); })("hideCreateButton", function CreateEditFormsComponent_div_1_Template_assign_users_hideCreateButton_72_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r117 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r117.hideCreateButton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](73, CreateEditFormsComponent_div_1_div_73_Template, 5, 0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "mat-step", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](75, CreateEditFormsComponent_div_1_ng_template_75_Template, 1, 0, "ng-template", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](79, "WORKFLOW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](81, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](83, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](85, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](86, "Workflow Title");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](87, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](88, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](89, "input", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](90, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](91, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](92, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](93, "Workflow Values");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](94, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](95, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](96, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](97, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](98, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](99, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](100, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](101, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](102, "button", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_Template_button_click_102_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r118 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r118.adddWorkFlowStatus(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](103, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](104, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](105, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](106, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](107, "label", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](108, " Select as default value ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](109, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](110, CreateEditFormsComponent_div_1_div_110_Template, 5, 1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](111, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](112, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](113, "Administrator");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](114, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](115, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](116, "ng-select", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_1_Template_ng_select_change_116_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r119.addWorkFlowAdmin($event); })("ngModelChange", function CreateEditFormsComponent_div_1_Template_ng_select_ngModelChange_116_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r120.workFlowAdminDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](117, CreateEditFormsComponent_div_1_ng_option_117_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](118, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](119, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](120, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](121, CreateEditFormsComponent_div_1_div_121_Template, 4, 2, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](122, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](123, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](124, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](125, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](126, "Workflow Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](127, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](128, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](129, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](130, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](131, "input", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](132, "label", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](133, " Common Workflow");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](134, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](135, "input", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_Template_input_click_135_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r121.getQuestions(ctx_r121.createForm.get("moduleId._id").value); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](136, "label", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](137, " Conditional workflow based on specific question response");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](138, CreateEditFormsComponent_div_1_div_138_Template, 7, 5, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](139, CreateEditFormsComponent_div_1_div_139_Template, 2, 1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](140, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](141, "input", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](142, "label", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](143, " Conditional workflow based on specific workflow status ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](144, CreateEditFormsComponent_div_1_div_144_Template, 7, 7, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](145, CreateEditFormsComponent_div_1_div_145_Template, 2, 1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](146, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](147, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](148, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](149, "label", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](150, " \u00A0 Show workflow to staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](151, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](152, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](153, "Additional questionnaire for the admin of this workflow: ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](154, "ng-select", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_1_Template_ng_select_change_154_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r122 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r122.addAdditionalModuleId($event); })("ngModelChange", function CreateEditFormsComponent_div_1_Template_ng_select_ngModelChange_154_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r123.WorkFlowAddFieldDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](155, CreateEditFormsComponent_div_1_ng_option_155_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](156, CreateEditFormsComponent_div_1_div_156_Template, 8, 1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](157, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](158, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](159, CreateEditFormsComponent_div_1_button_159_Template, 2, 1, "button", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](160, CreateEditFormsComponent_div_1_button_160_Template, 2, 0, "button", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](161, "button", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_1_Template_button_click_161_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2); return _r6.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](162, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](163, CreateEditFormsComponent_div_1_div_163_Template, 21, 1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](164, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](165, CreateEditFormsComponent_div_1_button_165_Template, 3, 5, "button", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](166, CreateEditFormsComponent_div_1_button_166_Template, 3, 5, "button", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("linear", ctx_r1.isLinear);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("stepControl", ctx_r1.firstFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.createForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.createForm.get("formLogo").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.createForm.get("formLogo").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r1.formTypeId)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](57, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.servicesList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.formTypeId !== "1");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.createForm.get("isCreateIndent").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r1.questionDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](58, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.questionaarie);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.createForm.get("moduleId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("stepControl", ctx_r1.secondFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("isAdminView", true)("userDetails", ctx_r1.userDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.isNextBtnActive);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("stepControl", ctx_r1.thirdFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.workFlowForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.workflowstatusForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.workFlowForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.workFlowStatusControl.length != 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("virtualScroll", true)("ngModel", ctx_r1.workFlowAdminDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](59, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.userDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.workFlowAdminControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.workFlowForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.workFlowForm.get("type").value === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.workFlowForm.get("type").value === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.workFlowForm.get("type").value === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.workFlowForm.get("type").value === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r1.WorkFlowAddFieldDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](60, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.questionaarie);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.workFlowForm.get("additionalModuleId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.isWorkflowEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.isWorkflowEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.workFlow.length != 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.formId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.formId);
} }
function CreateEditFormsComponent_div_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0, " STEP 1 ");
} }
function CreateEditFormsComponent_div_2_div_17_Template(rf, ctx) { if (rf & 1) {
const _r147 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_2_div_17_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r147); const ctx_r146 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r146.iconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Upload Form Logo ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditFormsComponent_div_2_div_18_Template(rf, ctx) { if (rf & 1) {
const _r149 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_18_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r149); const ctx_r148 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r148.ondeleteImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "img", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r128 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r128.validateURLImage(ctx_r128.createForm.get("formLogo").value), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function CreateEditFormsComponent_div_2_ng_option_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r150 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r150);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r150.moduleName, " ");
} }
function CreateEditFormsComponent_div_2_div_37_Template(rf, ctx) { if (rf & 1) {
const _r152 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "i", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_37_Template_i_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r152); const ctx_r151 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r151.deleteQuestionaari(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r130 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r130.createForm.get("moduleId.string").value, " ");
} }
function CreateEditFormsComponent_div_2_ng_template_42_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0, " STEP 2");
} }
function CreateEditFormsComponent_div_2_div_73_tr_4_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Default ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const index_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r155);
} }
function CreateEditFormsComponent_div_2_div_73_tr_4_Template(rf, ctx) { if (rf & 1) {
const _r159 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditFormsComponent_div_2_div_73_tr_4_div_2_Template, 3, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "span", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "img", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_73_tr_4_Template_img_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r159); const index_r155 = ctx.index; const ctx_r158 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r158.deleteQuestions(index_r155); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r154 = ctx.$implicit;
const index_r155 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", field_r154.get("isDefault").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("background", field_r154.get("color").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r155);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r154.get("field").value, " ");
} }
function CreateEditFormsComponent_div_2_div_73_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "table", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CreateEditFormsComponent_div_2_div_73_tr_4_Template, 7, 5, "tr", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r132 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r132.workFlowStatusControl.controls);
} }
function CreateEditFormsComponent_div_2_ng_option_78_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r160 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r160);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r160.name, " ");
} }
function CreateEditFormsComponent_div_2_div_82_Template(rf, ctx) { if (rf & 1) {
const _r164 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_82_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r164); const index_r162 = ctx.index; const ctx_r163 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r163.deleteWorkFlowAdmin(index_r162); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r161 = ctx.$implicit;
const index_r162 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r162);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r161.get("name").value, " ");
} }
function CreateEditFormsComponent_div_2_div_97_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ques_r167 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ques_r167);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ques_r167.question, " ");
} }
function CreateEditFormsComponent_div_2_div_97_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r169 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r169);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r169.value, " ");
} }
function CreateEditFormsComponent_div_2_div_97_div_6_Template(rf, ctx) { if (rf & 1) {
const _r171 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CreateEditFormsComponent_div_2_div_97_div_6_ng_option_4_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_97_div_6_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r171); const ctx_r170 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r170.addQuestionAndAnswer(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r166 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r166.answers);
} }
function CreateEditFormsComponent_div_2_div_97_Template(rf, ctx) { if (rf & 1) {
const _r173 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_2_div_97_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r173); const ctx_r172 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r172.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CreateEditFormsComponent_div_2_div_97_ng_option_5_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CreateEditFormsComponent_div_2_div_97_div_6_Template, 7, 4, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r135 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r135.questions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r135.answers.length != 0);
} }
function CreateEditFormsComponent_div_2_div_98_div_1_Template(rf, ctx) { if (rf & 1) {
const _r178 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Q - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "p", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "img", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_98_div_1_Template_img_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r178); const index_r176 = ctx.index; const ctx_r177 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r177.formsQuestionDelete(index_r176); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r175 = ctx.$implicit;
const index_r176 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("innerHtml", field_r175.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r176);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r176);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" A - ", field_r175.get("answer").value, "");
} }
function CreateEditFormsComponent_div_2_div_98_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditFormsComponent_div_2_div_98_div_1_Template, 10, 4, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r136 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r136.questionResponseControl.controls);
} }
function CreateEditFormsComponent_div_2_div_103_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r181 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r181);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r181.title, " ");
} }
function CreateEditFormsComponent_div_2_div_103_div_6_ng_option_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r183 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r183);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r183.field, " ");
} }
function CreateEditFormsComponent_div_2_div_103_div_6_Template(rf, ctx) { if (rf & 1) {
const _r185 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ng-select", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_2_div_103_div_6_Template_ng_select_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r185); const ctx_r184 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r184.getContionalWorkflowAnswer($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditFormsComponent_div_2_div_103_div_6_ng_option_2_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_103_div_6_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r185); const ctx_r186 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r186.showworkflowResponse(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r180 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r180.workFlowDropDown);
} }
function CreateEditFormsComponent_div_2_div_103_Template(rf, ctx) { if (rf & 1) {
const _r188 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Select a workflow form");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_2_div_103_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r188); const ctx_r187 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r187.getContionalWorkflowID($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, CreateEditFormsComponent_div_2_div_103_ng_option_5_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CreateEditFormsComponent_div_2_div_103_div_6_Template, 5, 4, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r137 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r137.workFlow);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r137.workFlowDropDown.length != 0);
} }
function CreateEditFormsComponent_div_2_div_104_div_1_Template(rf, ctx) { if (rf & 1) {
const _r193 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Q - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "p", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "img", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_104_div_1_Template_img_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r193); const index_r191 = ctx.index; const ctx_r192 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r192.formsWorkflowDelete(index_r191); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r190 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("innerHtml", field_r190.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" A - ", field_r190.get("workFlowAnswer").value, "");
} }
function CreateEditFormsComponent_div_2_div_104_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditFormsComponent_div_2_div_104_div_1_Template, 10, 2, "div", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r138 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r138.workflowResponseControl.controls);
} }
function CreateEditFormsComponent_div_2_ng_option_114_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r194 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r194);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r194.moduleName, " ");
} }
function CreateEditFormsComponent_div_2_div_115_Template(rf, ctx) { if (rf & 1) {
const _r196 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_115_Template_img_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r196); const ctx_r195 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r195.deleteAditionalModule(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r140 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r140.workFlowForm.get("additionalModuleId.string").value, " ");
} }
function CreateEditFormsComponent_div_2_button_118_Template(rf, ctx) { if (rf & 1) {
const _r198 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_button_118_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r198); const ctx_r197 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r197.addWorkFlow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Add WorkFlow ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r141 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r141.workFlowForm.valid);
} }
function CreateEditFormsComponent_div_2_button_119_Template(rf, ctx) { if (rf & 1) {
const _r200 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_button_119_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r200); const ctx_r199 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r199.updateWorkFlow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditFormsComponent_div_2_div_120_tr_20_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r206 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r206.field);
} }
function CreateEditFormsComponent_div_2_div_120_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r208 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CreateEditFormsComponent_div_2_div_120_tr_20_ul_6_Template, 3, 1, "ul", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_120_tr_20_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r208); const item_r203 = ctx.$implicit; const index_r204 = ctx.index; const ctx_r207 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r207.editWorkflow(item_r203, index_r204); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_120_tr_20_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r208); const index_r204 = ctx.index; const ctx_r209 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r209.deleteWorkFlow(index_r204); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "i", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r203 = ctx.$implicit;
const ctx_r201 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r203.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r203.type, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r203.workflowStatus);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", (item_r203 == null ? null : item_r203.additionalModuleId == null ? null : item_r203.additionalModuleId.string) === "undefined" || (item_r203 == null ? null : item_r203.additionalModuleId == null ? null : item_r203.additionalModuleId.string) === null ? "No" : "Yes", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r201.isWorkflowEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r201.isWorkflowEdited);
} }
function CreateEditFormsComponent_div_2_div_120_button_21_Template(rf, ctx) { if (rf & 1) {
const _r211 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_div_120_button_21_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r211); const ctx_r210 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r210.ClearWorkFlowForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Clear All ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditFormsComponent_div_2_div_120_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "SELECTED WORKFLOWS INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "table", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "WORKFLOW TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "WORKFLOW TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "WORKFLOW VALUES");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "ADDITIONAL QUESTIONNAIRE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "th", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, CreateEditFormsComponent_div_2_div_120_tr_20_Template, 14, 6, "tr", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, CreateEditFormsComponent_div_2_div_120_button_21_Template, 2, 0, "button", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r143 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r143.workFlow);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r143.workFlow.length != 0);
} }
function CreateEditFormsComponent_div_2_button_124_Template(rf, ctx) { if (rf & 1) {
const _r213 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_button_124_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r213); const ctx_r212 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r212.onSubmitWorkFlow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r144 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r144.isLoadingSubmit && ctx_r144.workFlow.length === 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](2, _c1, ctx_r144.isLoadingSubmit, !ctx_r144.isLoadingSubmit));
} }
function CreateEditFormsComponent_div_2_button_125_Template(rf, ctx) { if (rf & 1) {
const _r215 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_button_125_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r215); const ctx_r214 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r214.onUpdateWorkFlow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r145 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r145.isLoadingUpdate && ctx_r145.workFlow.length !== 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](2, _c1, ctx_r145.isLoadingUpdate, !ctx_r145.isLoadingUpdate));
} }
function CreateEditFormsComponent_div_2_Template(rf, ctx) { if (rf & 1) {
const _r217 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "mat-horizontal-stepper", 8, 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "mat-step", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CreateEditFormsComponent_div_2_ng_template_4_Template, 1, 0, "ng-template", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "FORM");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Form Title");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, CreateEditFormsComponent_div_2_div_17_Template, 4, 0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, CreateEditFormsComponent_div_2_div_18_Template, 4, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "Form Description");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, " \u00A0 Allow this form to be placed in quick navigation ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](29, "input", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, " \u00A0 Allow Form Values to be Edited By Administrator after submission ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, "Select Questionnaire ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "ng-select", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_2_Template_ng_select_change_35_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const ctx_r216 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r216.addQuestionaari($event); })("ngModelChange", function CreateEditFormsComponent_div_2_Template_ng_select_ngModelChange_35_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const ctx_r218 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r218.questionDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](36, CreateEditFormsComponent_div_2_ng_option_36_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](37, CreateEditFormsComponent_div_2_div_37_Template, 6, 1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "button", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_Template_button_click_39_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const _r125 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2); return _r125.next(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "mat-step", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](42, CreateEditFormsComponent_div_2_ng_template_42_Template, 1, 0, "ng-template", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46, "WORKFLOW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, "Workflow Title");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](54, "input", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](58, "Workflow Values");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](61, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](63, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "button", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_Template_button_click_65_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const ctx_r220 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r220.adddWorkFlowStatus(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](66, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](69, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "label", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](71, " \u00A0 Select as default value ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](73, CreateEditFormsComponent_div_2_div_73_Template, 5, 1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](76, "Administrator");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "ng-select", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_2_Template_ng_select_change_77_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const ctx_r221 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r221.addWorkFlowAdmin($event); })("ngModelChange", function CreateEditFormsComponent_div_2_Template_ng_select_ngModelChange_77_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const ctx_r222 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r222.workFlowAdminDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](78, CreateEditFormsComponent_div_2_ng_option_78_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](79, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](81, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](82, CreateEditFormsComponent_div_2_div_82_Template, 4, 2, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](83, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](85, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](87, "Workflow Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](88, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](89, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](90, "input", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](91, "label", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](92, " Common Workflow");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](93, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](94, "input", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_Template_input_click_94_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const ctx_r223 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r223.getQuestions(ctx_r223.createForm.get("moduleId._id").value); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](95, "label", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](96, " Conditional workflow based on specific question response");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](97, CreateEditFormsComponent_div_2_div_97_Template, 7, 5, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](98, CreateEditFormsComponent_div_2_div_98_Template, 2, 1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](99, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](100, "input", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](101, "label", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](102, " Conditional workflow based on specific workflow status ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](103, CreateEditFormsComponent_div_2_div_103_Template, 7, 5, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](104, CreateEditFormsComponent_div_2_div_104_Template, 2, 1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](105, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](106, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](107, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](108, "label", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](109, " \u00A0 Show workflow to staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](110, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](111, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](112, "Additional questionnaire for the admin of this workflow: ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](113, "ng-select", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditFormsComponent_div_2_Template_ng_select_change_113_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const ctx_r224 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r224.addAdditionalModuleId($event); })("ngModelChange", function CreateEditFormsComponent_div_2_Template_ng_select_ngModelChange_113_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const ctx_r225 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r225.WorkFlowAddFieldDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](114, CreateEditFormsComponent_div_2_ng_option_114_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](115, CreateEditFormsComponent_div_2_div_115_Template, 8, 1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](116, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](117, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](118, CreateEditFormsComponent_div_2_button_118_Template, 2, 1, "button", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](119, CreateEditFormsComponent_div_2_button_119_Template, 2, 0, "button", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](120, CreateEditFormsComponent_div_2_div_120_Template, 22, 2, "div", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](121, "div", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](122, "button", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditFormsComponent_div_2_Template_button_click_122_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r217); const _r125 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2); return _r125.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](123, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](124, CreateEditFormsComponent_div_2_button_124_Template, 3, 5, "button", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](125, CreateEditFormsComponent_div_2_button_125_Template, 3, 5, "button", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("linear", ctx_r2.isLinear);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("stepControl", ctx_r2.fourFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.createForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.createForm.get("formLogo").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.createForm.get("formLogo").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r2.questionDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](46, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.questionaarie);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.createForm.get("moduleId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("stepControl", ctx_r2.fiveFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.workFlowForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.workflowstatusForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r2.workflowstatusForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.workFlowForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.workFlowStatusControl.length != 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("virtualScroll", true)("ngModel", ctx_r2.workFlowAdminDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](47, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.userDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.workFlowAdminControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.workFlowForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.workFlowForm.get("type").value === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.workFlowForm.get("type").value === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.workFlowForm.get("type").value === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.workFlowForm.get("type").value === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r2.WorkFlowAddFieldDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](48, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.questionaarie);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.workFlowForm.get("additionalModuleId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.isWorkflowEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isWorkflowEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.workFlow.length != 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.formId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.formId);
} }
class CreateEditFormsComponent {
constructor(formBuilder, companyService, toastService, setupService, customFormService, centralBuilderService, notificationService, tostService) {
this.formBuilder = formBuilder;
this.companyService = companyService;
this.toastService = toastService;
this.setupService = setupService;
this.customFormService = customFormService;
this.centralBuilderService = centralBuilderService;
this.notificationService = notificationService;
this.tostService = tostService;
this.step = 1;
this.planBuUnitDropDownLoading = false;
this.apppoinmentDropDownLoading = false;
this.CustomFieldDropDownLoading = false;
this.buDropDownToClear = null;
this.questionDropDownToClear = null;
this.apoinemntDropDownToClear = null;
this.customFeildDropDownToClear = null;
this.questionsDropDownToClear = null;
this.answersDropDownToClear = null;
this.isNextBtnActive = false;
this.workFlowAdminDropDownToClear = null;
this.WorkFlowAddFieldDropDownToClear = null;
this.authorDropDownToClear = null;
this.isUserDetailsEdited = false;
this.isWorkflowEdited = false;
this.isformEdited = false;
this.userDetails = [];
this.workFlow = [];
this.userDropDown = [];
this.workFlowDropDown = [];
this.isLoadingSubmit = false;
this.isLoadingUpdate = false;
this.workflowResponse = [];
this.isDefaultWorkflow = false;
this.options = {
key: src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].froalaEditorKey,
videoResponsive: true,
quickInsertEnabled: false,
videoInsertButtons: [
'videoBack',
'|',
'videoByURL',
'videoEmbed',
'videoUpload',
],
videoEditButtons: [
'videoReplace',
'videoRemove'
],
imageEditButtons: ['imageReplace', 'imageAlign', 'imageCaption', 'imageRemove'],
listAdvancedTypes: true,
toolbarButtons: [
'undo',
'redo',
'bold',
'italic',
'underline',
'strikeThrough',
'subscript',
'superscript',
'fontFamily',
'fontSize',
'color',
'formatBlock',
'blockStyle',
'inlineStyle',
'align',
'insertOrderedList',
'insertUnorderedList',
'outdent',
'indent',
'selectAll',
'createLink',
'insertImage',
'insertVideo',
'table',
'undo',
'redo',
'html',
'save',
'insertHorizontalRule',
'uploadFile',
'removeFormat',
'fullscreen',
],
videoUploadURL: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].baseUrl}/notification/uploadContentFiles/`,
requestHeaders: {
Authorization: localStorage.getItem('flexiusersToken'),
},
// Set the image upload URL.
imageUploadURL: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].baseUrl}/notification/uploadContentFiles/`,
// Set request type.
imageUploadMethod: 'POST',
attribution: false,
// Allow to upload PNG and JPG.
imageAllowedTypes: ['jpeg', 'jpg', 'png'],
// Set request type.
videoUploadMethod: 'POST',
// Set max video size to 50MB.
videoMaxSize: 50 * 1024 * 1024,
// Allow to upload MP4, WEBM and OGG
videoAllowedTypes: ['webm', 'jpg', 'ogg', 'mp4', 'mov', 'MKV'],
events: {
'video.beforeUpload': function (videos) {
// Return false if you want to stop the video upload.
},
'video.uploaded': function (response) {
// Video was uploaded to the server.
},
'video.inserted': function ($img, response) {
// Video was inserted in the editor.
},
'video.replaced': function ($img, response) {
// Video was replaced in the editor.
},
'video.error': function (error, response) { },
'image.beforeUpload': function (images) {
// Return false if you want to stop the image upload.
},
'image.uploaded': function (response) {
// Image was uploaded to the server.
},
'image.inserted': function ($img, response) {
// Image was inserted in the editor.
},
'image.replaced': function ($img, response) {
// Image was replaced in the editor.
},
},
};
this.questionaarie = [];
this.refreshModules = [];
this.questions = [];
this.answers = [];
this.formId = null;
this.editFormData = null;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.loggedInUserId = '';
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl;
this.servicesList = [{ serviceTypeName: 'Normal', _id: '1' }];
this.servicesSubTypeList = [];
this.formType = null;
this.formTypeId = null;
this.formSubTypeId = null;
this.clearFormArray = (formArray) => {
while (formArray.length !== 0) {
formArray.removeAt(0);
}
};
this.initForm();
this.inituserDetailsFrom();
this.initWorkFlowFrom();
this.initWorkFlowStatusForm();
this.getServicesDetails();
this.moduleTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
total: 0,
isLoading: true,
};
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.bussinesUnitplanPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
this.appoinmentPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.CustomFieldPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
}
ngOnInit() {
this.loggedInUserId = localStorage.getItem('loggedInUserId');
this.firstFormGroup = this.formBuilder.group({
firstCtrl: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
this.secondFormGroup = this.formBuilder.group({
secondCtrl: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
this.thirdFormGroup = this.formBuilder.group({
secondCtrl: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
this.fourFormGroup = this.formBuilder.group({
firstCtrl: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
this.fiveFormGroup = this.formBuilder.group({
secondCtrl: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
this.loadModules();
this.getAdminList();
// this.formId && this.getFormForEdit(this.formId);
}
ngOnChanges() {
if (this.editFormData) {
this.createForm.get('isDeployed').setValue(this.editFormData.isDeployed);
this.patchFormData(this.editFormData);
this.formTypeId = this.editFormData.formTypeId || '1';
this.formSubTypeId = this.editFormData.formSubTypeId;
}
}
getUserBasedOnBuUnits(data) {
// this.userDropDown = data;
}
getAdminList() {
this.userDropDown = [];
const subscribe = this.setupService
.getAdminWithfilter()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a;
// const { count, data } = response.data;
this.userDropDown = response.data || [];
if (this.userDropDown && this.userDropDown.length > 0) {
const Control = this.workFlowAdminControl;
const defaultSelectedData = (_a = this.userDropDown) === null || _a === void 0 ? void 0 : _a.find((x) => x._id == this.loggedInUserId);
let dataIndex = Control.value.findIndex((item) => item._id == defaultSelectedData._id);
if (dataIndex <= -1 && defaultSelectedData) {
let field = this.formBuilder.group({
name: [
defaultSelectedData === null || defaultSelectedData === void 0 ? void 0 : defaultSelectedData.name,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [
defaultSelectedData === null || defaultSelectedData === void 0 ? void 0 : defaultSelectedData._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
Control.push(field);
}
}
}, (error) => {
this.userDropDown = [];
});
}
patchFormData(data) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.userDetails = data.assignUsers ? data.assignUsers : [];
this.UpdateduserDetails = data.assignUsers
? yield Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["getAssignedUsers"])(data.assignUsers)
: [];
this.workFlow = data.workflow || [];
this.createForm.patchValue({
title: data.title,
isDeployed: data.isDeployed,
formLogo: data.formLogo,
description: data.description,
viewOnly: data.viewOnly,
userStatusVisibility: false,
quickNavEnabled: data.quickNavEnabled,
_id: data._id,
moduleId: {
string: data.moduleId.moduleName,
_id: data.moduleId._id,
},
status: data.status,
formStatus: data.formStatus,
formDisplayType: data.formDisplayType,
timeZone: -330,
isMultipleSubmit: data.isMultipleSubmit,
isCreateIndent: data.isCreateIndent,
createIndentDescription: data.createIndentDescription,
formTypeId: data.formTypeId || '1',
formSubTypeId: data.formSubTypeId,
});
});
}
getFormForEdit(id) {
this.isformEdited = true;
const sub = this.notificationService
.getModuleQuestions(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data }) => Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.userDetails = data.assignUsers ? data.assignUsers : [];
this.UpdateduserDetails = data.assignUsers
? yield Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["getAssignedUsers"])(data.assignUsers)
: [];
this.workFlow = data.workflow;
this.createForm.patchValue({
title: data.title,
isDeployed: data.isDeployed,
formLogo: data.formLogo,
description: data.description,
viewOnly: data.viewOnly,
userStatusVisibility: false,
quickNavEnabled: data.quickNavEnabled,
moduleId: {
string: data.moduleId.moduleName,
_id: data.moduleId._id,
},
formStatus: [],
formDisplayType: data.formDisplayType,
timeZone: -330,
isMultipleSubmit: data.isMultipleSubmit,
isCreateIndent: data.isCreateIndent,
createIndentDescription: data === null || data === void 0 ? void 0 : data.createIndentDescription,
formTypeId: data.formTypeId || '1',
formSubTypeId: data.formSubTypeId,
});
}), (error) => {
this.toastService.error('No list found');
});
}
goForward(stepper) {
if (!this.createForm.valid) {
this.toastService.error('Please Fill all the form fields');
}
else {
stepper.next();
this.getQuestions(this.createForm.get('moduleId._id').value);
}
}
chooseFormType(value) {
this.createForm.patchValue({
isDeployed: value,
});
}
initForm() {
this.createForm = this.formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
isDeployed: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
formLogo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
description: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
viewOnly: false,
userStatusVisibility: false,
quickNavEnabled: false,
moduleId: this.formBuilder.group({
string: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
}),
status: 1,
formStatus: this.formBuilder.array([]),
formDisplayType: null,
timeZone: -330,
_id: [null],
isMultipleSubmit: false,
isCreateIndent: false,
formTypeId: '',
formSubTypeId: '',
createIndentDescription: ''
});
}
getServicesDetails() {
const sub = this.customFormService
.getServicesList()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((data) => {
this.servicesList = [...this.servicesList, ...data.data];
if (this.editFormData) {
this.addServiceType(this.editFormData.formTypeId || '1');
}
}, (error) => {
this.isLoadingSubmit = false;
this.toastService.error(error === null || error === void 0 ? void 0 : error.message);
});
}
addServiceType($event) {
if ($event === '1') {
this.servicesSubTypeList = [];
this.formSubTypeId = null;
this.formTypeId = '1';
}
else {
const result = this.servicesList.filter((services) => services._id === $event);
this.servicesSubTypeList = result[0].serviceName;
}
}
inituserDetailsFrom() {
return (this.userDetailsForm = this.formBuilder.group({
businessUnits: this.formBuilder.array([], [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
buFilterType: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
appointments: this.formBuilder.array([]),
subSkillSets: this.formBuilder.array([]),
user: this.formBuilder.array([]),
allBuToken: '',
allBuTokenStaffId: '',
customField: this.formBuilder.array([]),
}));
}
initWorkFlowFrom() {
return (this.workFlowForm = this.formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
type: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
status: 1,
additionalModuleId: this.formBuilder.group({
string: null,
_id: null,
}),
question: null,
workflow: null,
answer: null,
workFlowAnswer: null,
questionResponse: this.formBuilder.array([]),
workflowResponse: this.formBuilder.array([]),
userStatusVisibility: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
workflowStatus: this.formBuilder.array([]),
admin: this.formBuilder.array([]),
tempId: null,
_id: null,
}));
}
initWorkFlowStatusForm() {
this.workflowstatusForm = this.formBuilder.group({
field: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
tempId: [Date.now(), _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
isDefault: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
color: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
}
ondeleteImage() {
this.createForm.patchValue({
formLogo: '',
});
}
showCreateButton() {
this.isNextBtnActive = true;
}
hideCreateButton() {
this.isNextBtnActive = false;
}
loadModules() {
const _a = this.moduleTable, { data, total, isLoading } = _a, moduleTbale = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total", "isLoading"]);
const subscribe = this.centralBuilderService
.getAllNonLinedModules()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b;
this.questionaarie = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.moduleList) || [];
this.refreshModules = ((_b = response.data) === null || _b === void 0 ? void 0 : _b.moduleList) || [];
}, (error) => {
this.toastService.error('No list found');
});
}
iconUpload(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.companyService
.uploadFile(file, true)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.createForm.patchValue({
formLogo: `${data.filePath}`,
});
this.tostService.success('Form Logo Uploaded Successfully');
}, (error) => {
this.toastService.error(error.error.message);
});
}
else {
this.tostService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
addQuestionaari(value) {
if (value) {
var index = this.questionaarie.indexOf(value);
this.questionaarie.splice(index, 1);
this.createForm.patchValue({
moduleId: {
string: value.moduleName,
_id: value._id,
},
});
this.questionare = value.moduleName;
this.questionDropDownToClear = [];
}
}
addAdditionalModuleId(value) {
if (value) {
this.workFlowForm.patchValue({
additionalModuleId: {
string: value.moduleName,
_id: value._id,
},
});
}
}
deleteQuestionaari() {
this.loadModules();
this.questionDropDownToClear = null;
this.createForm.patchValue({
moduleId: {
string: null,
_id: null,
},
});
}
deleteAditionalModule() {
this.loadModules();
this.WorkFlowAddFieldDropDownToClear = null;
this.workFlowForm.patchValue({
additionalModuleId: {
string: null,
_id: null,
},
});
}
get workFlowStatusControl() {
return this.workFlowForm.get('workflowStatus');
}
get questionResponseControl() {
return this.workFlowForm.get('questionResponse');
}
get workflowResponseControl() {
return this.workFlowForm.get('workflowResponse');
}
adddWorkFlowStatus() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.workFlowStatusControl;
const index = yield Control.value.findIndex((x) => x.field === this.workflowstatusForm.get('field').value);
if (index > -1) {
this.toastService.error(`${this.workflowstatusForm.get('field').value} is already added`);
}
else {
if (!this.workflowstatusForm.valid) {
this.toastService.error('Please select color');
}
let field = this.formBuilder.group({
field: [
this.workflowstatusForm.get('field').value,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
tempId: [
this.workflowstatusForm.get('tempId').value,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
isDefault: [
this.workflowstatusForm.get('isDefault').value,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
color: [
this.workflowstatusForm.get('color').value,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
Control.push(field);
this.initWorkFlowStatusForm();
}
});
}
deleteQuestions(index) {
const Control = this.workFlowStatusControl;
Control.removeAt(index);
}
deleteWorkFlowStatus(index) {
this.workflowResponse.splice(index, 1);
}
get workFlowAdminControl() {
return this.workFlowForm.get('admin');
}
addWorkFlowAdmin(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.workFlowAdminControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.toastService.error(`${value.name} is already added`);
this.workFlowAdminDropDownToClear = [];
}
else {
let field = this.formBuilder.group({
name: [value.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
this.workFlowAdminDropDownToClear = [];
}
}
});
}
defaultSelectedAdmin() {
setTimeout(() => {
var _a;
const Control = this.workFlowAdminControl;
Control === null || Control === void 0 ? void 0 : Control.clear();
const defaultSelectedData = (_a = this.userDropDown) === null || _a === void 0 ? void 0 : _a.find((x) => x._id == this.loggedInUserId);
let dataIndex = Control.value.findIndex((item) => item._id == defaultSelectedData._id);
if (dataIndex <= -1 && defaultSelectedData) {
let field = this.formBuilder.group({
name: [
defaultSelectedData === null || defaultSelectedData === void 0 ? void 0 : defaultSelectedData.name,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [
defaultSelectedData === null || defaultSelectedData === void 0 ? void 0 : defaultSelectedData._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
Control.push(field);
}
}, 500);
}
deleteWorkFlowAdmin(index) {
const Control = this.workFlowAdminControl;
Control.removeAt(index);
}
addWorkFlow() {
if (this.workFlowForm.valid) {
this.workFlowForm.value.tempId = Date.now();
this.workFlow.push(this.workFlowForm.value);
this.initWorkFlowFrom();
this.initWorkFlowStatusForm();
this.defaultSelectedAdmin();
this.WorkFlowAddFieldDropDownToClear = null;
}
}
ClearWorkFlowForm() {
this.initWorkFlowFrom();
this.initWorkFlowStatusForm();
this.workFlow = [];
this.defaultSelectedAdmin();
this.WorkFlowAddFieldDropDownToClear = null;
}
editWorkflow(workFlow, index) {
const WorkFlowStatus = this.workFlowStatusControl;
const WorkFlowAdmin = this.workFlowAdminControl;
const QuestionRespose = this.questionResponseControl;
const WorkflowRespose = this.workflowResponseControl;
this.workflowEditIndex = index;
this.isWorkflowEdited = true;
this.workFlowForm.patchValue({
title: workFlow.title,
type: workFlow.type,
status: workFlow.status,
additionalModuleId: {
string: workFlow.additionalModuleId
? workFlow.additionalModuleId.moduleName
: null,
_id: workFlow.additionalModuleId
? workFlow.additionalModuleId._id
: null,
},
userStatusVisibility: workFlow.userStatusVisibility,
tempId: workFlow.tempId,
_id: workFlow._id,
});
WorkFlowAdmin === null || WorkFlowAdmin === void 0 ? void 0 : WorkFlowAdmin.clear();
workFlow.admin.forEach((element) => {
let field = this.formBuilder.group({
name: [element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
WorkFlowAdmin.push(field);
});
workFlow.workflowResponse.forEach((element) => {
const workFlowData = this.workFlow.find((id) => id._id === element.workflowId);
const workflowResponseData = workFlowData.workflowStatus.find((id) => id._id === element.statusId);
let field = this.formBuilder.group({
question: [
workFlowData.title,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
statusId: [element.statusId, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
workFlowAnswer: [
workflowResponseData.field,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
workflowId: [
element.workflowId,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
WorkflowRespose.push(field);
});
workFlow.questionResponse.forEach((element) => {
var _a;
const questionDetails = this.questions.find((id) => id._id === element.questionId);
const answerDetails = (_a = questionDetails.options) === null || _a === void 0 ? void 0 : _a.find((id) => id.value === element.answerId);
let field = this.formBuilder.group({
question: [
questionDetails.question,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
questionId: [
questionDetails._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
answer: [
answerDetails.value,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
answerId: [
answerDetails._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
QuestionRespose.push(field);
});
workFlow.workflowStatus.forEach((element) => {
let field = this.formBuilder.group({
field: [element.field, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
isDefault: [
element.isDefault,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
color: [element === null || element === void 0 ? void 0 : element.color, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [element === null || element === void 0 ? void 0 : element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
WorkFlowStatus.push(field);
});
}
deleteWorkFlow(index) {
this.workFlow.splice(index, 1);
}
updateWorkFlow() {
this.workFlow[this.workflowEditIndex] = this.workFlowForm.value;
this.initWorkFlowFrom();
this.initWorkFlowStatusForm();
this.isWorkflowEdited = false;
this.workflowEditIndex = null;
this.defaultSelectedAdmin();
this.WorkFlowAddFieldDropDownToClear = null;
}
onWorkFlowSubmit() {
const Output = [];
this.workFlow.forEach((element) => {
let questionResponse = element.questionResponse.map(({ questionId, answer }) => ({ questionId, answerId: answer }));
const responseData = element.workflowResponse;
responseData.map((ele) => {
ele.workflowId = ele.workflowId;
ele.statusId = ele.statusId ? ele.statusId : ele.tempId;
if (ele._id) {
ele._id = ele._id;
}
else {
delete ele._id;
}
delete ele.tempId;
delete ele.workFlowAnswer;
delete ele.question;
});
let workflowResponse = responseData;
let admin = element.admin.map((item) => item._id);
const { question, answer, workflow, workFlowAnswer } = element, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(element, ["question", "answer", "workflow", "workFlowAnswer"]);
let _id = element._id ? element._id : null;
let additionalModuleId = element.additionalModuleId
? element.additionalModuleId._id
: null;
let obj = Object.assign(Object.assign({}, rest), { _id,
questionResponse,
workflowResponse,
additionalModuleId,
admin });
Output.push(obj);
});
return Output;
}
goToNext() {
if (!this.createForm.valid) {
this.toastService.error('Please Fill all the form fields');
}
}
editQuestions(questionDetails, index) {
const Control = this.questionResponseControl;
Control.removeAt(index);
const questionnaireDetails = this.questions.find((id) => id._id === questionDetails.questionId);
this.getContionalAnswers(questionnaireDetails);
this.workFlowForm.controls.question.setValue(questionnaireDetails);
this.workFlowForm.controls.answer.setValue(this.answers.find((id) => id._id === questionDetails.answerId));
}
onSubmitWorkFlow() {
this.isLoadingSubmit = true;
const data = Object.assign(Object.assign({}, this.createForm.value), { moduleId: this.createForm.get('moduleId._id').value, assignUsers: this.UpdateduserDetails || [], workflow: this.onWorkFlowSubmit() || [], formTypeId: this.formTypeId || '1', formSubTypeId: this.formSubTypeId });
const sub = this.customFormService
.createForm(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((data) => {
var _a;
this.overViewEvent.emit(null);
this.initForm();
this.isLoadingSubmit = false;
this.toastService.success((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.message);
}, (error) => {
this.isLoadingSubmit = false;
this.toastService.error(error === null || error === void 0 ? void 0 : error.message);
});
}
onUpdateWorkFlow() {
this.isLoadingUpdate = true;
const data = Object.assign(Object.assign({}, this.createForm.value), { _id: this.formId, moduleId: this.createForm.get('moduleId._id').value, assignUsers: this.UpdateduserDetails, workflow: this.onWorkFlowSubmit() });
const sub = this.customFormService
.createForm(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((data) => {
if (data.success) {
this.overViewEvent.emit(null);
this.initForm();
this.isLoadingUpdate = false;
this.toastService.success('Form Updated SuccessFully');
}
}, (error) => {
this.isLoadingUpdate = false;
});
}
getQuestions(moduleId) {
this.centralBuilderService.getSingleQuestions(moduleId).subscribe((res) => {
const newData = res.data.data.sections
.flatMap((section) => section.questions)
.filter((element) => element.options && element.options.length > 0)
.map((element) => ({
_id: element._id,
question: element.question.replace(/<[^>]*>/g, ''),
options: element.options,
}));
// Assign the processed questions to this.questions
this.questions = newData;
});
}
getContionalAnswers(question) {
this.workFlowForm.patchValue({
answer: null,
});
this.questions.forEach((ele) => {
if (ele._id === question._id) {
this.answers = ele.options;
return;
}
});
}
getContionalWorkflowID(workflowResponse) {
if (this.workFlowDropDown.includes(workflowResponse.workflowStatus)) {
this.toastService.error('Workflow already added');
}
else {
this.workFlowDropDown = workflowResponse.workflowStatus;
}
}
getContionalWorkflowAnswer(workflowResponse) {
this.workFlowAnswer = workflowResponse.field;
}
formsQuestionDelete(index) {
const Control = this.questionResponseControl;
Control.removeAt(index);
}
formsWorkflowDelete(index) {
const Control = this.workflowResponseControl;
Control.removeAt(index);
}
showworkflowResponse() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (this.workFlowForm.value.workflow === null) {
this.toastService.error(`Please add the workflow`);
}
else {
const { workflow, workFlowAnswer } = this.workFlowForm.value;
const Control = this.workflowResponseControl;
const index = yield Control.value.findIndex((x) => x.tempId === workflow._id);
if (index > -1) {
this.workFlowForm.patchValue({
workFlowAnswer: null,
});
this.toastService.error(`${workflow.title} is already added`);
}
else {
let field = this.formBuilder.group({
question: [workflow.title, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
tempId: [
workFlowAnswer.tempId,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
workFlowAnswer: [
workFlowAnswer.field,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
workflowId: [
workflow.tempId,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
Control.push(field);
this.workFlowForm.patchValue({
workflow: null,
workFlowAnswer: null,
});
}
}
});
}
addQuestionAndAnswer() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const { question, answer } = this.workFlowForm.value;
const Control = this.questionResponseControl;
const index = yield Control.value.findIndex((x) => x.questionId === question._id);
if (index > -1) {
this.workFlowForm.patchValue({
answer: null,
});
this.toastService.error(`${question.question} is already added`);
}
else {
let field = this.formBuilder.group({
question: [
question.question,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
questionId: [question._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
answer: [answer.value, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
answerId: [answer._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
this.workFlowForm.patchValue({
question: null,
answer: null,
});
}
});
}
updateDUserDetails(userDetails) {
this.UpdateduserDetails = userDetails;
}
onCancelEdit() {
this.initForm();
this.userDetails.length = 0;
}
validateURLImage(str) {
return Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["generateImageUrl"])(str);
}
}
CreateEditFormsComponent.ɵfac = function CreateEditFormsComponent_Factory(t) { return new (t || CreateEditFormsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_6__["CompanyService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_8__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_9__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_10__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_11__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"])); };
CreateEditFormsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: CreateEditFormsComponent, selectors: [["app-create-edit-forms"]], inputs: { formId: "formId", editFormData: "editFormData" }, outputs: { overViewEvent: "overViewEvent" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]], decls: 3, vars: 3, consts: [["class", "card mb-3", "style", "width: 36.5em; margin: 0 auto", 4, "ngIf"], [4, "ngIf"], [1, "card", "mb-3", 2, "width", "36.5em", "margin", "0 auto"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "d-flex", "justify-content-between", "m-1"], [1, "btn", "btn-clear", "p-2", "btn-block", 3, "click"], [1, "btn", "btn-submit", "p-2", "btn-block", 2, "margin", "2px", 3, "click"], [3, "linear"], ["stepper", ""], [3, "stepControl"], [3, "formGroup"], ["matStepLabel", ""], [1, "card"], [1, "row"], [1, "col-md-6"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], [1, "field-mandatory"], ["type", "text", "formControlName", "title", "placeholder", "Please enter Form Title here", 1, "form-control"], [1, "custom-logo"], ["class", "custom-file mt-0 w-50 pt-4 pb-4", "style", "width: 67px", 4, "ngIf"], [1, "field-mandatory_custom-logo"], [1, "field-mandatory", "custom-logo-mandatory"], [1, "form-group", "mt-2"], ["type", "text", "formControlName", "description", "placeholder", "Please enter Form Description here", 1, "form-control"], [1, "row", "mb-2"], [1, "font-weight-bold"], ["bindLabel", "name", "placeholder", "Select Service", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["class", "col-md-6", 4, "ngIf"], [1, ""], [1, "form-group", "pr-0"], ["type", "checkbox", "formControlName", "isMultipleSubmit"], ["type", "checkbox", "formControlName", "isCreateIndent"], ["class", "row", 4, "ngIf"], ["type", "checkbox", "formControlName", "quickNavEnabled"], ["type", "checkbox", "formControlName", "viewOnly"], [1, "col-md-12"], ["bindLabel", "name", "placeholder", "Select Questionnaire", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["class", "col-3 mt-3", 4, "ngIf"], [1, "btn", "btn-danger", 3, "click"], [3, "isAdminView", "userDetails", "onSubmitAssignUsers", "getAssignUsersData", "showCreateButton", "hideCreateButton"], ["class", "ml-1", 4, "ngIf"], [1, "card", "mb-3"], ["type", "text", "formControlName", "title", "placeholder", "Please enter Workflow Title here", 1, "form-control"], ["type", "text", "formControlName", "field", "placeholder", "Please enter Workflow Value here", 1, "form-control"], [1, "col-md-2"], ["type", "color", "formControlName", "color", "placeholder", "Please enter Workflow Value here", 1, "form-control"], [1, "col-md-3"], [1, "btn", "btn-add", 3, "click"], ["type", "checkbox", "id", "ter", "formControlName", "isDefault"], ["for", "ter", 1, "ml-2"], ["bindLabel", "name", "placeholder", "Select admin", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "virtualScroll", "ngModel", "ngModelOptions", "change", "ngModelChange"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap"], ["formArrayName", "admin", 4, "ngFor", "ngForOf"], ["for", "", 1, "font-weight-bold"], [1, "d-flex", "flex-column"], [1, "radio", "radio-danger", "radio-inline", "p-1"], ["type", "radio", "formControlName", "type", "id", "postSubReqTrue", 3, "value"], ["for", "postSubReqTrue"], [1, "radio", "radio-danger", "radio-inline", "mt-2", "p-1"], ["type", "radio", "id", "postSubReqFalse", "formControlName", "type", 3, "value", "click"], ["for", "postSubReqFalse"], ["class", "row mt-2", 4, "ngIf"], ["class", "col-md-12", 4, "ngIf"], [1, "radio", "radio-danger", "radio-inline", "p-1", "mt-2"], ["type", "radio", "id", "postSubReqFalse1", "formControlName", "type", 3, "value"], ["for", "postSubReqFalse1"], ["class", "col-md-12 workFlow_item", 4, "ngIf"], ["type", "checkbox", "id", "ter1", "formControlName", "userStatusVisibility"], ["for", "ter1"], ["bindLabel", "name", "placeholder", "Additional questionnaire", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["class", "col-md-6 mt-3", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "pull-right"], ["class", "btn btn-add", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-submit", 3, "click", 4, "ngIf"], [1, "btn", "btn-danger", "ml-3", 3, "click"], ["class", "card mb-3", 4, "ngIf"], [1, "flex-direction", "p-3"], ["class", "btn btn-submit float-right", 3, "disabled", "click", 4, "ngIf"], [1, "custom-file", "mt-0", "w-50", "pt-4", "pb-4", 2, "width", "67px"], ["type", "file", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "100%", "opacity", "0", 3, "change"], ["for", "b", 1, "custom-file-label"], [1, "image-with-delete-icon", 2, "width", "300px"], ["title", "Delete", "for", "4", 1, "fa", "fa-close", 3, "click"], ["width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], [3, "value"], ["bindLabel", "name", "placeholder", "Select Service Sub Type", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "ngModelChange"], ["formControlName", "createIndentDescription", 3, "froalaEditor"], [1, "col-3", "mt-3"], [1, "flex-SB"], [1, "text-items", "list-ui"], [2, "margin-top", "10px"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x", 2, "color", "#a42138", 3, "click"], [1, "ml-1"], [1, "btn", "btn-warning", "mt-4", 3, "click"], [1, "btn", "btn-danger", "ml-1", "mt-4", 3, "click"], [1, "table", "table-borderless", "mt-3"], ["formArrayName", "workflowStatus", 4, "ngFor", "ngForOf"], ["formArrayName", "workflowStatus"], [1, "text-items", "list-workflow", 2, "word-break", "break-all", 3, "formGroupName"], ["alt", "", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-2", 3, "click"], [1, "badge", "badge-warning", 3, "formGroupName"], ["formArrayName", "admin"], [1, "text-items", "list-ui", 3, "formGroupName"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-3", 3, "click"], [1, "row", "mt-2"], ["bindLabel", "name", "placeholder", " Questionnaire", "appendTo", "body", "formControlName", "question", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], ["class", "col-md-12 mt-3", 4, "ngIf"], [1, "col-md-12", "mt-3"], ["bindLabel", "name", "placeholder", " Answers", "appendTo", "body", "formControlName", "answer", 1, "custom", 3, "multiple", "searchable", "clearable"], [1, "btn", "btn-add", "p-2", "m-2", "pull-right", 3, "click"], ["class", "questions-container", "formArrayName", "questionResponse", 4, "ngFor", "ngForOf"], ["formArrayName", "questionResponse", 1, "questions-container"], [1, "questions", 3, "formGroupName", "innerHtml"], [1, "text-items", "mt-2", 2, "word-break", "break-all", 3, "formGroupName"], [1, "cancel-button"], ["alt", "", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-1", "cancel-icon", 3, "click"], [1, "btn", "btn-red-back", "ml-2", 3, "click"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", "formControlName", "workflow", 1, "custom", 3, "ngModelOptions", "multiple", "searchable", "clearable", "change"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", "formControlName", "workFlowAnswer", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModelOptions", "change"], [1, "col-md-12", "workFlow_item"], ["formArrayName", "workflowResponse", 4, "ngFor", "ngForOf"], ["formArrayName", "workflowResponse"], [1, "workFlow"], [1, "Selected"], [1, "cancel"], [1, "col-md-6", "mt-3"], [1, "text-items", "list-ui", "pr-1"], [1, "btn", "btn-add", 3, "disabled", "click"], [1, "btn", "btn-submit", 3, "click"], [1, "card-header", "flexi-header"], [1, "table-responsive"], [1, "table"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-add", "p-2", "m-1", 3, "disabled", "click"], ["aria-hidden", "true", 1, "fa", "fa-pencil-square-o"], [1, "btn", "btn-danger", "p-2", "m-1", 3, "disabled", "click"], ["aria-hidden", "true", 1, "fa", "fa-trash"], [1, "btn", "btn-submit", "float-right", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "card", "mb-3", "w-100"], [1, "form-group", "mt-3"], [1, "btn", "btn-danger", "mt-4", 3, "click"], ["for", "ter"], ["bindLabel", "name", "placeholder", "Select Admin", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "virtualScroll", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["class", "card mb-3 w-100", 4, "ngIf"], [1, "flex-direction", "mt-2"], [1, "btn", "btn-red-back", 3, "click"], ["class", "btn btn-add float-right", 3, "disabled", "click", 4, "ngIf"], ["bindLabel", "name", "placeholder", "Questionnaire", "appendTo", "body", "formControlName", "question", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], [1, "text-items", 2, "word-break", "break-all", 3, "formGroupName"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", "formControlName", "workflow", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", "formControlName", "workFlowAnswer", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], ["class", "questions-container", "formArrayName", "workflowResponse", 4, "ngFor", "ngForOf"], ["formArrayName", "workflowResponse", 1, "questions-container"], [1, "questions", 3, "innerHtml"], ["class", "btn btn-clear", 3, "click", 4, "ngIf"], [1, "btn", "btn-clear", 3, "click"], [1, "btn", "btn-add", "float-right", 3, "disabled", "click"]], template: function CreateEditFormsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, CreateEditFormsComponent_div_0_Template, 10, 0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CreateEditFormsComponent_div_1_Template, 167, 61, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, CreateEditFormsComponent_div_2_Template, 126, 49, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.createForm.get("isDeployed").value === null && !ctx.isformEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.createForm.get("isDeployed").value === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.createForm.get("isDeployed").value === 2);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_13__["MatHorizontalStepper"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_13__["MatStep"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_13__["MatStepLabel"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__["NativeElementInjectorDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgForm"], _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_16__["AssignUsersComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["ɵr"], angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_17__["FroalaEditorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\n\ninput[type=radio][_ngcontent-%COMP%] {\n margin-right: 10px;\n}\n\n.flex-SB[_ngcontent-%COMP%] {\n display: flex;\n width: auto;\n justify-content: unset;\n}\n\n.questions[_ngcontent-%COMP%] {\n display: inline-block;\n}\n\n.questions-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n border: 1px solid #e0e0e0;\n border-radius: 5px;\n padding: 15px;\n}\n\n.cancel-button[_ngcontent-%COMP%] {\n position: relative;\n right: 10px;\n top: 20px;\n}\n\n.cancel-icon[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.question-dropdown[_ngcontent-%COMP%] {\n height: 20px;\n}\n\n.workFlow_item[_ngcontent-%COMP%] {\n padding: 10px 0px;\n}\n\n.workFlow[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.workFlow[_ngcontent-%COMP%] .cancel[_ngcontent-%COMP%] {\n padding-left: 10px;\n}\n\n.mat-stepper-horizontal[_ngcontent-%COMP%] .mat-horizontal-stepper-header-container {\n background-color: #fff;\n border-radius: 0.25rem;\n margin-bottom: 0.5rem;\n}\n\n.mat-stepper-horizontal[_ngcontent-%COMP%] .mat-horizontal-content-container {\n padding: 0;\n}\n\n.custom-logo-mandatory[_ngcontent-%COMP%] {\n font-size: 18px;\n font-weight: 600;\n padding: 3px;\n}\n\n.custom-logo[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.field-mandatory_custom-logo[_ngcontent-%COMP%] {\n position: absolute;\n top: 59px;\n left: 50%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2NyZWF0ZS1lZGl0LWZvcm1zL2NyZWF0ZS1lZGl0LWZvcm1zLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UscUJBQUE7RUFDQSxVQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtBQUNGOztBQUVBO0VBQ0UsYUFBQTtFQUNBLFdBQUE7RUFDQSxzQkFBQTtBQUNGOztBQUVBO0VBQ0UscUJBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGdCQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtFQUNBLGFBQUE7QUFDRjs7QUFFQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFNBQUE7QUFDRjs7QUFFQTtFQUNFLGVBQUE7QUFDRjs7QUFFQTtFQUNFLFlBQUE7QUFDRjs7QUFFQTtFQUNFLGlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxhQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFDRTtFQUNFLGtCQUFBO0FBQ0o7O0FBR0U7RUFDRSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EscUJBQUE7QUFBSjs7QUFHRTtFQUNFLFVBQUE7QUFESjs7QUFLQTtFQUNFLGVBQUE7RUFDQSxnQkFBQTtFQUNBLFlBQUE7QUFGRjs7QUFLQTtFQUNFLGFBQUE7QUFGRjs7QUFJQTtFQUNFLGtCQUFBO0VBQ0EsU0FBQTtFQUNBLFNBQUE7QUFERiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9mb3Jtcy9jcmVhdGUtZWRpdC1mb3Jtcy9jcmVhdGUtZWRpdC1mb3Jtcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbInVsIHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICBwYWRkaW5nOiAwO1xufVxuXG5pbnB1dFt0eXBlPVwicmFkaW9cIl0ge1xuICBtYXJnaW4tcmlnaHQ6IDEwcHg7XG59XG5cbi5mbGV4LVNCIHtcbiAgZGlzcGxheTogZmxleDtcbiAgd2lkdGg6IGF1dG8gO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHVuc2V0O1xufVxuXG4ucXVlc3Rpb25zIHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xufVxuXG4ucXVlc3Rpb25zLWNvbnRhaW5lciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgbWFyZ2luLXRvcDogMTBweDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2UwZTBlMDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICBwYWRkaW5nOiAxNXB4O1xufVxuXG4uY2FuY2VsLWJ1dHRvbiB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgcmlnaHQ6IDEwcHg7XG4gIHRvcDogMjBweDtcbn1cblxuLmNhbmNlbC1pY29uIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4ucXVlc3Rpb24tZHJvcGRvd24ge1xuICBoZWlnaHQ6IDIwcHg7XG59XG5cbi53b3JrRmxvd19pdGVtIHtcbiAgcGFkZGluZzogMTBweCAwcHg7XG59XG5cbi53b3JrRmxvdyB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgLmNhbmNlbCB7XG4gICAgcGFkZGluZy1sZWZ0OiAxMHB4O1xuICB9XG59XG4ubWF0LXN0ZXBwZXItaG9yaXpvbnRhbCB7XG4gICY6Om5nLWRlZXAgLm1hdC1ob3Jpem9udGFsLXN0ZXBwZXItaGVhZGVyLWNvbnRhaW5lciB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICBib3JkZXItcmFkaXVzOiAwLjI1cmVtO1xuICAgIG1hcmdpbi1ib3R0b206IDAuNXJlbTtcbiAgfVxuXG4gICY6Om5nLWRlZXAgLm1hdC1ob3Jpem9udGFsLWNvbnRlbnQtY29udGFpbmVyIHtcbiAgICBwYWRkaW5nOiAwO1xuICB9XG59XG5cbi5jdXN0b20tbG9nby1tYW5kYXRvcnkge1xuICBmb250LXNpemU6IDE4cHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIHBhZGRpbmc6IDNweDtcbn1cblxuLmN1c3RvbS1sb2dvIHtcbiAgZGlzcGxheTogZmxleDtcbn1cbi5maWVsZC1tYW5kYXRvcnlfY3VzdG9tLWxvZ297XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiA1OXB4O1xuICBsZWZ0OiA1MCU7XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CreateEditFormsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-create-edit-forms',
templateUrl: './create-edit-forms.component.html',
styleUrls: ['./create-edit-forms.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_6__["CompanyService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_8__["SetupService"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_9__["CustomFormService"] }, { type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_10__["CentralBuilderService"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_11__["NotificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }]; }, { formId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], editFormData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "7//P":
/*!*************************************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/notification/manage-notification/notification-overview/notification-overview.component.ts ***!
\*************************************************************************************************************************************/
/*! exports provided: NotificationOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationOverviewComponent", function() { return NotificationOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _view_notification_view_notification_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../view-notification/view-notification.component */ "GSla");
function NotificationOverviewComponent_div_0_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function NotificationOverviewComponent_div_0_tr_40_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "i", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](10, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NotificationOverviewComponent_div_0_tr_40_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const item_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r5.onViewNotification(item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NotificationOverviewComponent_div_0_tr_40_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const item_r4 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r7.onEditNotification(item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r4.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r4 == null ? null : item_r4.subCategoryId == null ? null : item_r4.subCategoryId.categoryId == null ? null : item_r4.subCategoryId.categoryId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r3.getAcknowledge(item_r4) + "%", "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](10, 6, item_r4 == null ? null : item_r4.activeFrom, "short"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r3.getStatus(item_r4) === "Expired" ? "badge-danger" : ctx_r3.getStatus(item_r4) === "Active" ? "badge-success" : "badge-warning");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r3.getStatus(item_r4), " ");
} }
function NotificationOverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "NOTIFICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function NotificationOverviewComponent_div_0_Template_select_change_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onLimitChangeUsers(); })("ngModelChange", function NotificationOverviewComponent_div_0_Template_select_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, NotificationOverviewComponent_div_0_span_21_Template, 2, 0, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function NotificationOverviewComponent_div_0_Template_input_search_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.loadUsers(); })("keyup", function NotificationOverviewComponent_div_0_Template_input_keyup_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.userssearchInput.next($event); })("ngModelChange", function NotificationOverviewComponent_div_0_Template_input_ngModelChange_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NotificationOverviewComponent_div_0_Template_th_sort_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, " TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NotificationOverviewComponent_div_0_Template_th_sort_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, " CATEGORY ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NotificationOverviewComponent_div_0_Template_th_sort_31_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.onSortUsers($event, "activeFrom"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, " ACKNOWLEDGE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NotificationOverviewComponent_div_0_Template_th_sort_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.onSortUsers($event, "updatedAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, " ACTIVE FROM ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](40, NotificationOverviewComponent_div_0_tr_40_Template, 19, 9, "tr", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "ngb-pagination", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function NotificationOverviewComponent_div_0_Template_ngb_pagination_pageChange_45_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.usersPTable.page = $event; })("pageChange", function NotificationOverviewComponent_div_0_Template_ngb_pagination_pageChange_45_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.usersPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total Records ", ctx_r0.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r0.usersPTable.total)("page", ctx_r0.usersPTable.page)("maxSize", 5)("pageSize", ctx_r0.usersPTable.limit);
} }
function NotificationOverviewComponent_app_view_notification_1_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-view-notification", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("overViewNotification", function NotificationOverviewComponent_app_view_notification_1_Template_app_view_notification_overViewNotification_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.viewEnable($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("notificationViewData", ctx_r1.notificationViewData);
} }
class NotificationOverviewComponent {
constructor(notificationService, toastService, storageService, formBuilder) {
this.notificationService = notificationService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.isNotificationViewEnabled = false;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.editEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.overViewNotification = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.notificatioNid = null;
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
total: 0,
data: [],
page: 1,
limit: 10,
search: '',
};
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = !!direction ? field : 'createdAt';
this.usersPTable.sortBy = !!direction ? direction : 'desc';
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
this.getCurrentDate();
}
getCurrentDate() {
const currentDate = new Date();
this.todayDate = moment__WEBPACK_IMPORTED_MODULE_4__(currentDate).utc().format();
}
overview() {
this.overViewEvent.next(null);
}
viewEnable(value) {
this.isNotificationViewEnabled = false;
this.overViewNotification.next(false);
}
onEditNotification(id) {
this.editEvent.next(id);
}
getAcknowledge(notification) {
let count = isNaN(notification.notifyAcknowledgedUsers.length /
notification.notifyOverAllUsers.length)
? 0
: notification.notifyAcknowledgedUsers.length /
notification.notifyOverAllUsers.length;
return Math.floor(count * 100);
}
onViewNotification(item) {
this.notificationViewData = item;
this.isNotificationViewEnabled = true;
this.overViewNotification.next(true);
}
loadUsers() {
const _a = this.usersPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.notificationService
.getAllNotifications(rest, this.notificatioNid)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.usersPTable.data = data;
this.usersPTable.total = count;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
getStatus(notification) {
return notification.status === 0 ? 'Draft' :
notification.status === 2 ? 'In Active' :
(!this.checkWithDate(notification.activeTo) && this.checkWithDate(notification.activeFrom) && notification.status == 1) ? 'Active' :
(!this.checkWithDate(notification.activeFrom) && !this.checkWithDate(notification.activeFrom) && notification.status == 1) ? 'Pending' :
'Expired';
;
}
checkWithDate(d, format = null, toDate = null) {
if (format) {
toDate = toDate || moment__WEBPACK_IMPORTED_MODULE_4__().format(format);
return moment__WEBPACK_IMPORTED_MODULE_4__(d, format) < moment__WEBPACK_IMPORTED_MODULE_4__(toDate, format);
}
else {
toDate = toDate || moment__WEBPACK_IMPORTED_MODULE_4__();
return moment__WEBPACK_IMPORTED_MODULE_4__(d) < moment__WEBPACK_IMPORTED_MODULE_4__(toDate);
}
}
}
NotificationOverviewComponent.ɵfac = function NotificationOverviewComponent_Factory(t) { return new (t || NotificationOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"])); };
NotificationOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: NotificationOverviewComponent, selectors: [["app-notification-overview"]], viewQuery: function NotificationOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { notificatioNid: "notificatioNid" }, outputs: { overViewEvent: "overViewEvent", editEvent: "editEvent", overViewNotification: "overViewNotification" }, decls: 2, vars: 2, consts: [["class", "card mb-3 w-100", 4, "ngIf"], [3, "notificationViewData", "overViewNotification", 4, "ngIf"], [1, "card", "mb-3", "w-100"], [1, "card-header", "flexi-header", "pt-4"], [2, "display", "inline-block"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], ["aria-hidden", "true", 1, "fa", "fa-spinner"], [1, "badge", 3, "ngClass"], [1, "btn", "btn-submit", "p-2", "m-1", 3, "click"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [3, "notificationViewData", "overViewNotification"]], template: function NotificationOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, NotificationOverviewComponent_div_0_Template, 46, 14, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, NotificationOverviewComponent_app_view_notification_1_Template, 1, 1, "app-view-notification", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.notificatioNid && !ctx.isNotificationViewEnabled);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isNotificationViewEnabled);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["DefaultValueAccessor"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _view_notification_view_notification_component__WEBPACK_IMPORTED_MODULE_13__["ViewNotificationComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: [".btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ub3RpZmljYXRpb24vbWFuYWdlLW5vdGlmaWNhdGlvbi9ub3RpZmljYXRpb24tb3ZlcnZpZXcvbm90aWZpY2F0aW9uLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7QUFDSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbm90aWZpY2F0aW9uL21hbmFnZS1ub3RpZmljYXRpb24vbm90aWZpY2F0aW9uLW92ZXJ2aWV3L25vdGlmaWNhdGlvbi1vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5idG4tc3VibWl0e1xuICAgIGNvbG9yOiAjZmZmO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICMzMzdhYjc7XG4gICAgYm9yZGVyLWNvbG9yOiAjMmU2ZGE0O1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NotificationOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-notification-overview',
templateUrl: './notification-overview.component.html',
styleUrls: ['./notification-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__["NotificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"] }]; }, { overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], editEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], overViewNotification: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], notificatioNid: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "7JBP":
/*!*********************************************************************!*\
!*** ./src/app/shared/bootstrap-alert/bootstrap-alert.component.ts ***!
\*********************************************************************/
/*! exports provided: BootstrapAlertComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BootstrapAlertComponent", function() { return BootstrapAlertComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
const _c0 = ["selfClosingAlert"];
function BootstrapAlertComponent_ngb_alert_0_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ngb-alert", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("closed", function BootstrapAlertComponent_ngb_alert_0_Template_ngb_alert_closed_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r3.departmentCustomMessage = ""; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("type", ctx_r0.alertType);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r0.departmentCustomMessage, "\n");
} }
function BootstrapAlertComponent_ngb_alert_1_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ngb-alert", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("closed", function BootstrapAlertComponent_ngb_alert_1_Template_ngb_alert_closed_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.sectionCustomMessage = ""; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("type", ctx_r1.alertType);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r1.sectionCustomMessage, "\n");
} }
class BootstrapAlertComponent {
constructor() { }
ngOnInit() {
setTimeout(() => this.selfClosingAlert.close(), 3000);
}
}
BootstrapAlertComponent.ɵfac = function BootstrapAlertComponent_Factory(t) { return new (t || BootstrapAlertComponent)(); };
BootstrapAlertComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: BootstrapAlertComponent, selectors: [["app-bootstrap-alert"]], viewQuery: function BootstrapAlertComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.selfClosingAlert = _t.first);
} }, inputs: { departmentCustomMessage: "departmentCustomMessage", sectionCustomMessage: "sectionCustomMessage", alertType: "alertType" }, decls: 2, vars: 2, consts: [[3, "type", "closed", 4, "ngIf"], [3, "type", "closed"], ["selfClosingAlert", ""]], template: function BootstrapAlertComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, BootstrapAlertComponent_ngb_alert_0_Template, 3, 2, "ngb-alert", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, BootstrapAlertComponent_ngb_alert_1_Template, 3, 2, "ngb-alert", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.departmentCustomMessage);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.sectionCustomMessage);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbAlert"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3NoYXJlZC9ib290c3RyYXAtYWxlcnQvYm9vdHN0cmFwLWFsZXJ0LmNvbXBvbmVudC5zY3NzIn0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BootstrapAlertComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-bootstrap-alert',
templateUrl: './bootstrap-alert.component.html',
styleUrls: ['./bootstrap-alert.component.scss']
}]
}], function () { return []; }, { departmentCustomMessage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], sectionCustomMessage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], alertType: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], selfClosingAlert: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['selfClosingAlert', { static: false }]
}] }); })();
/***/ }),
/***/ "7PPy":
/*!****************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/bussiness-unit/bussiness-unit.component.ts ***!
\****************************************************************************************/
/*! exports provided: BussinessUnitComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BussinessUnitComponent", function() { return BussinessUnitComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/sweet-alert/sweet-alert */ "xgpu");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _bussiness_unit_overview_bussiness_unit_overview_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./bussiness-unit-overview/bussiness-unit-overview.component */ "uY0s");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
const _c0 = ["AddDepartment"];
const _c1 = ["AddSection"];
const _c2 = ["AddSubSection"];
function BussinessUnitComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "bussiness-unit-overview");
} }
function BussinessUnitComponent_ng_template_10_ng_option_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r11 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r11.name);
} }
function BussinessUnitComponent_ng_template_10_ng_option_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r12 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r12.name, " ");
} }
function BussinessUnitComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "ADD BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Tier 1 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "input", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, " Select / Add Tier 2 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_10_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.addDepartment(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "ng-select", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function BussinessUnitComponent_ng_template_10_Template_ng_select_search_18_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.onSeachDepartment($event); })("scrollToEnd", function BussinessUnitComponent_ng_template_10_Template_ng_select_scrollToEnd_18_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.loadMoreDepartmentItems($event); })("clear", function BussinessUnitComponent_ng_template_10_Template_ng_select_clear_18_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.onClearDepartmentDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, BussinessUnitComponent_ng_template_10_ng_option_19_Template, 3, 2, "ng-option", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, " Select/ Add Tier 3 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_10_Template_button_click_23_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.addSection(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "ng-select", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function BussinessUnitComponent_ng_template_10_Template_ng_select_search_25_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.onSeachSection($event); })("scrollToEnd", function BussinessUnitComponent_ng_template_10_Template_ng_select_scrollToEnd_25_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.loadMoreSectionItems($event); })("clear", function BussinessUnitComponent_ng_template_10_Template_ng_select_clear_25_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.onClearSectionDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, BussinessUnitComponent_ng_template_10_ng_option_26_Template, 2, 2, "ng-option", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, " Select / Add Tier 4 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_10_Template_button_click_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.addSubSection(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.createBussinessUnitForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx_r2.companyName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("loading", ctx_r2.deparmentDropDownLoading)("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.departmentDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("searchable", true)("loading", ctx_r2.sectionDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.sectionDropDown);
} }
function BussinessUnitComponent_ng_template_12_div_24_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter a valid department name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BussinessUnitComponent_ng_template_12_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, BussinessUnitComponent_ng_template_12_div_24_small_1_Template, 2, 0, "small", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r25.createDepartmentForm.get("name").errors.pattern);
} }
function BussinessUnitComponent_ng_template_12_span_49_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BussinessUnitComponent_ng_template_12_table_52_tr_12_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_12_table_52_tr_12_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const item_r30 = ctx.$implicit; const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r32.onEditDepartment(item_r30); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_12_table_52_tr_12_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const item_r30 = ctx.$implicit; const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r34.onDeleteDepartment(item_r30._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r30 = ctx.$implicit;
const i_r31 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](i_r31 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r30 == null ? null : item_r30.companyId == null ? null : item_r30.companyId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r30.name);
} }
function BussinessUnitComponent_ng_template_12_table_52_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "S.NO");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "COMPANY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BussinessUnitComponent_ng_template_12_table_52_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r36); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r35.onSortDepartment($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " DEPARTMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, BussinessUnitComponent_ng_template_12_table_52_tr_12_Template, 12, 3, "tr", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](13, 1, ctx_r27.departmentPTable.data, (ctx_r27.departmentPTable.page - 1) * ctx_r27.departmentPTable.limit, ctx_r27.departmentPTable.page * ctx_r27.departmentPTable.limit));
} }
const _c3 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function BussinessUnitComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "ADD DEPARTMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_12_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r37.closeModal(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, " Company ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "select", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Department");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](23, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, BussinessUnitComponent_ng_template_12_div_24_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "button", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_12_Template_button_click_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r39.DepartmentCreate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](26, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "DEPARTMENT LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "select", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function BussinessUnitComponent_ng_template_12_Template_select_change_37_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r40.onLimitChangeDepartment(); })("ngModelChange", function BussinessUnitComponent_ng_template_12_Template_select_ngModelChange_37_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r41.departmentPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](49, BussinessUnitComponent_ng_template_12_span_49_Template, 2, 0, "span", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function BussinessUnitComponent_ng_template_12_Template_input_keyup_50_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r42.DepartmentsearchInput.next($event); })("ngModelChange", function BussinessUnitComponent_ng_template_12_Template_input_ngModelChange_50_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r43.departmentPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](52, BussinessUnitComponent_ng_template_12_table_52_Template, 14, 5, "table", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](53, "app-skliton-loading-table", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "ngb-pagination", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function BussinessUnitComponent_ng_template_12_Template_ngb_pagination_pageChange_58_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r44.departmentPTable.page = $event; })("pageChange", function BussinessUnitComponent_ng_template_12_Template_ngb_pagination_pageChange_58_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r45.onPageChangeDepartment($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r4.createDepartmentForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r4.companyName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.createDepartmentForm.get("name").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r4.departmentLoading)("disabled", !ctx_r4.createDepartmentForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](23, _c3, ctx_r4.departmentLoading, !ctx_r4.departmentLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r4.isDepartmentEdited ? "UPDATE" : " ADD", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r4.departmentPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.departmentPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r4.departmentPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r4.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx_r4.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r4.departmentPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r4.departmentPTable.total)("page", ctx_r4.departmentPTable.page)("maxSize", 5)("pageSize", ctx_r4.departmentPTable.limit);
} }
function BussinessUnitComponent_ng_template_14_ng_option_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r52 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r52.name, " ");
} }
function BussinessUnitComponent_ng_template_14_div_24_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter a valid section name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BussinessUnitComponent_ng_template_14_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, BussinessUnitComponent_ng_template_14_div_24_small_1_Template, 2, 0, "small", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r49.createSectionForm.get("name").errors.pattern);
} }
function BussinessUnitComponent_ng_template_14_span_49_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BussinessUnitComponent_ng_template_14_table_52_tr_10_Template(rf, ctx) { if (rf & 1) {
const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_14_table_52_tr_10_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const item_r55 = ctx.$implicit; const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r57.editSection(item_r55); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_14_table_52_tr_10_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const item_r55 = ctx.$implicit; const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r59.onDeleteSection(item_r55._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r55 = ctx.$implicit;
const i_r56 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](i_r56 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r55.name);
} }
function BussinessUnitComponent_ng_template_14_table_52_Template(rf, ctx) { if (rf & 1) {
const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "S.NO");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BussinessUnitComponent_ng_template_14_table_52_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r61); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r60.onSortSection($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " SECTION ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, BussinessUnitComponent_ng_template_14_table_52_tr_10_Template, 10, 2, "tr", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](11, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](11, 1, ctx_r51.sectionPTable.data, (ctx_r51.sectionPTable.page - 1) * ctx_r51.sectionPTable.limit, ctx_r51.sectionPTable.page * ctx_r51.sectionPTable.limit));
} }
function BussinessUnitComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "ADD SECTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_14_Template_button_click_8_listener() { const c_r46 = ctx.close; return c_r46("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, " Department ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "ng-select", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function BussinessUnitComponent_ng_template_14_Template_ng_select_search_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r63.onSeachDepartment($event); })("scrollToEnd", function BussinessUnitComponent_ng_template_14_Template_ng_select_scrollToEnd_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r65.loadMoreDepartmentItems($event); })("clear", function BussinessUnitComponent_ng_template_14_Template_ng_select_clear_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r66.onClearDepartmentDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, BussinessUnitComponent_ng_template_14_ng_option_17_Template, 2, 2, "ng-option", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Section");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](23, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, BussinessUnitComponent_ng_template_14_div_24_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "button", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_14_Template_button_click_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r67.SectionCreate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](26, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "SECTION LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "select", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function BussinessUnitComponent_ng_template_14_Template_select_change_37_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r68.onLimitChangeSection(); })("ngModelChange", function BussinessUnitComponent_ng_template_14_Template_select_ngModelChange_37_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r69.sectionPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](49, BussinessUnitComponent_ng_template_14_span_49_Template, 2, 0, "span", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "input", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function BussinessUnitComponent_ng_template_14_Template_input_keyup_50_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r70.SectionsearchInput.next($event); })("ngModelChange", function BussinessUnitComponent_ng_template_14_Template_input_ngModelChange_50_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r71.sectionPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](52, BussinessUnitComponent_ng_template_14_table_52_Template, 12, 5, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](53, "app-skliton-loading-table", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "ngb-pagination", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function BussinessUnitComponent_ng_template_14_Template_ngb_pagination_pageChange_58_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r72.sectionPTable.page = $event; })("pageChange", function BussinessUnitComponent_ng_template_14_Template_ngb_pagination_pageChange_58_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r73.onPageChangeSection($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r6.createBussinessUnitForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("loading", ctx_r6.deparmentDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r6.departmentDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r6.createSectionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.createSectionForm.get("name").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r6.createSectionForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](27, _c3, ctx_r6.sectionLoading, !ctx_r6.sectionLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r6.isSectionEdited ? "UPDATE" : " ADD", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r6.sectionPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.sectionPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r6.sectionPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r6.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 4)("isTableLoading", ctx_r6.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r6.sectionPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r6.sectionPTable.total)("page", ctx_r6.sectionPTable.page)("maxSize", 5)("pageSize", ctx_r6.sectionPTable.limit);
} }
function BussinessUnitComponent_ng_template_16_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Please wait, data is updating.... ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BussinessUnitComponent_ng_template_16_ng_option_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r81 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r81.name, " ");
} }
function BussinessUnitComponent_ng_template_16_div_25_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter a valid sub section name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BussinessUnitComponent_ng_template_16_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, BussinessUnitComponent_ng_template_16_div_25_small_1_Template, 2, 0, "small", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r78.createSubsectionForm.get("name").errors.pattern);
} }
function BussinessUnitComponent_ng_template_16_span_52_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BussinessUnitComponent_ng_template_16_table_55_tr_12_Template(rf, ctx) { if (rf & 1) {
const _r87 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_16_table_55_tr_12_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r87); const item_r84 = ctx.$implicit; const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r86.editSubSection(item_r84); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_16_table_55_tr_12_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r87); const item_r84 = ctx.$implicit; const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r88.onDeleteSubSection(item_r84._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r84 = ctx.$implicit;
const index_r85 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](index_r85 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r84.sectionId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r84 == null ? null : item_r84.name, " ");
} }
function BussinessUnitComponent_ng_template_16_table_55_Template(rf, ctx) { if (rf & 1) {
const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "S.NO");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BussinessUnitComponent_ng_template_16_table_55_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r90); const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r89.onSortSubSection($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " SECTION ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BussinessUnitComponent_ng_template_16_table_55_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r90); const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r91.onSortSubSection($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " SUBSECTION ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, BussinessUnitComponent_ng_template_16_table_55_tr_12_Template, 12, 3, "tr", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](13, 1, ctx_r80.subSectionPTable.data, (ctx_r80.subSectionPTable.page - 1) * ctx_r80.subSectionPTable.limit, ctx_r80.subSectionPTable.page * ctx_r80.subSectionPTable.limit));
} }
function BussinessUnitComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
const _r94 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, BussinessUnitComponent_ng_template_16_div_1_Template, 5, 0, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "h3", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "ADD SUB SECTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_16_Template_button_click_9_listener() { const c_r74 = ctx.close; return c_r74("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, " Section ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "ng-select", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function BussinessUnitComponent_ng_template_16_Template_ng_select_search_17_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r93.onSeachSection($event); })("scrollToEnd", function BussinessUnitComponent_ng_template_16_Template_ng_select_scrollToEnd_17_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r95.loadMoreSectionItems($event); })("clear", function BussinessUnitComponent_ng_template_16_Template_ng_select_clear_17_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r96.onClearSectionDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, BussinessUnitComponent_ng_template_16_ng_option_18_Template, 2, 2, "ng-option", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "Sub Section");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](25, BussinessUnitComponent_ng_template_16_div_25_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "button", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BussinessUnitComponent_ng_template_16_Template_button_click_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r97.bussinessunitCreate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, "SUB SECTION LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "select", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function BussinessUnitComponent_ng_template_16_Template_select_change_38_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r98.onLimitChangeSubSection(); })("ngModelChange", function BussinessUnitComponent_ng_template_16_Template_select_ngModelChange_38_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r99.subSectionPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "option", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "5");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](52, BussinessUnitComponent_ng_template_16_span_52_Template, 2, 0, "span", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "input", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function BussinessUnitComponent_ng_template_16_Template_input_keyup_53_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r100.SubSectionsearchInput.next($event); })("ngModelChange", function BussinessUnitComponent_ng_template_16_Template_input_ngModelChange_53_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r101.subSectionPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](55, BussinessUnitComponent_ng_template_16_table_55_Template, 14, 5, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](56, "app-skliton-loading-table", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "ngb-pagination", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function BussinessUnitComponent_ng_template_16_Template_ngb_pagination_pageChange_61_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r102.subSectionPTable.page = $event; })("pageChange", function BussinessUnitComponent_ng_template_16_Template_ngb_pagination_pageChange_61_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r103.onPageChangeSubSection($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r8.createBussinessUnitForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("loading", ctx_r8.sectionDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r8.sectionDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r8.createSubsectionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.createSubsectionForm.get("name").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r8.subsectionLoading)("disabled", !ctx_r8.createSubsectionForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](30, _c3, ctx_r8.subsectionLoading, !ctx_r8.subsectionLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r8.isSubSectionEdited ? "UPDATE" : " ADD", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r8.subSectionPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.subSectionPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r8.subSectionPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r8.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 4)("isTableLoading", ctx_r8.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r8.subSectionPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r8.subSectionPTable.total)("page", ctx_r8.subSectionPTable.page)("maxSize", 5)("pageSize", ctx_r8.subSectionPTable.limit);
} }
class BussinessUnitComponent {
constructor(modelService, buUnit, toastService, storageService, formBuilder, tableService) {
this.modelService = modelService;
this.buUnit = buUnit;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.tableService = tableService;
this.customMessage = '';
this.companyId = "";
this.BussinessunitsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.DepartmentsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.SectionsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.SubSectionsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.activeId = 1;
this.tableParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_7__["tableParam"];
this.tableCol = {
deptCols: ['sno', 'companyId.name', 'name', ""]
};
this.isDepartmentEdited = false;
this.isSectionEdited = false;
this.isSubSectionEdited = false;
this.departmentDropDown = [];
this.sectionDropDown = [];
this.successMessage = '';
this.errorMessage = '';
this.loader = false;
this.subSectionDropDown = [];
this.deparmentDropDownLoading = false;
this.sectionDropDownLoading = false;
this.departmentLoading = false;
this.sectionLoading = false;
this.subsectionLoading = false;
this.companyId = localStorage.getItem("flexicompanyId");
this.departmentPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.sectionPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.subSectionPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.companyName = this.storageService.getByKey('companyName');
// this.clearFields();
this.DepartmentsearchSubscription = this.DepartmentsearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.departmentPTable.page = 1;
this.loaddepartment();
});
this.SectionsearchSubscription = this.SectionsearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.sectionPTable.page = 1;
this.loadSection(this.departmentId);
});
this.SubsectionsearchSubscription = this.SubSectionsearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.subSectionPTable.page = 1;
this.loadSubSection(this.sectionId);
});
}
/// department popup table configuration
onSortDepartment({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.departmentPTable.sortBy = direction;
this.departmentPTable.sortWith = column;
direction && this.loaddepartment();
}
onPageChangeDepartment(page) {
var _a;
this.departmentPTable.page = page;
this.tableParams.start = (_a = this.departmentPTable.data) === null || _a === void 0 ? void 0 : _a.length;
this.loaddepartment();
}
onLimitChangeDepartment() {
this.tableParams.start = 0;
this.loaddepartment();
}
// section popup table configuration
onSortSection({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.sectionPTable.sortBy = direction;
this.sectionPTable.sortWith = column;
direction && this.loadSection(this.departmentId);
}
onPageChangeSection(page) {
this.sectionPTable.page = page;
this.loadSection(this.departmentId);
}
onLimitChangeSection() {
this.loadSection(this.departmentId);
}
/// subsection popup table configuration
onSortSubSection({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.subSectionPTable.sortBy = direction;
this.subSectionPTable.sortWith = column;
direction && this.loadSubSection(this.sectionId);
}
onPageChangeSubSection(page) {
this.subSectionPTable.page = page;
this.loadSubSection(this.sectionId);
}
onLimitChangeSubSection() {
this.loadSubSection(this.sectionId);
}
ngOnInit() {
const _a = this.departmentPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
this.tableParams.draw = 0;
this.loaddepartment(rest);
this.initForm();
this.getSection();
this.getSubsection();
}
onClearDepartmentDropdown(value) {
if (value === undefined) {
this.createBussinessUnitForm.patchValue({
sectionName: null,
});
this.departmentPTable.search = '';
this.departmentId = null;
this.tableParams.search.value = '';
this.loaddepartment();
this.subSectionDropDown = [];
this.sectionDropDown = [];
this.sectionPTable.data = [];
this.subSectionPTable.data = [];
}
}
onClearSectionDropdown(value) {
if (value === undefined) {
this.createBussinessUnitForm.patchValue({
subSectionName: null,
});
this.sectionPTable.search = '';
this.loadSection(this.departmentId);
this.subSectionDropDown = [];
this.sectionDropDown = [];
this.subSectionPTable.data = [];
}
}
getSection() {
this.createBussinessUnitForm
.get('departmentName')
.valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["pairwise"])())
.subscribe(([prev, next]) => {
if (next != null) {
this.createBussinessUnitForm.patchValue({
sectionName: null,
});
const { _id } = next;
this.sectionDropDownLoading = true;
this.subSectionDropDown = [];
this.departmentId = _id;
// this.createBussinessUnitForm.patchValue({
// sectionName: next,
// });
this.loadSection(this.departmentId);
}
});
}
getSubsection() {
this.createBussinessUnitForm
.get('sectionName')
.valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["pairwise"])())
.subscribe(([prev, next]) => {
if (next != null) {
const { _id } = next;
this.subSectionDropDown = [];
this.createDepartmentForm.patchValue({
subSectionName: '',
});
this.sectionId = _id;
this.loadSubSection(this.sectionId);
}
});
}
initForm() {
this.createBussinessUnitForm = this.formBuilder.group({
companyName: this.companyName,
departmentName: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required]],
sectionName: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required]],
subSectionName: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required]],
});
this.departmentInit();
this.sectionInit();
this.subSectionInit();
}
departmentInit() {
this.createDepartmentForm = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].pattern('[a-zA-Z0-9_]+.*$')]],
status: 1,
companyId: [localStorage.getItem('flexicompanyId') || '']
});
}
sectionInit() {
this.createSectionForm = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].pattern('[a-zA-Z0-9_]+.*$')]],
status: 1,
});
}
subSectionInit() {
this.createSubsectionForm = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].pattern('[a-zA-Z0-9_]+.*$')]],
status: 1,
});
}
get f() {
return this.createBussinessUnitForm.controls;
}
// createBussinessUnit() {
// const {
// companyName,
// departmentName,
// sectionName,
// subSectionName,
// } = this.createBussinessUnitForm.value;
// const titile = 'Create Bussiness Unit';
// const text = `${companyName} > ${departmentName} > ${sectionName} > ${subSectionName}`;
// const buttonText = 'Create';
// updateAlert(titile, text, buttonText).then((result) => {
// if (result.value) {
//
// }
// });
// }
// createDepartment() {
// if (!this.createDepartmentForm.valid) {
// return;
// }
// this.buUnit
// .createDepartment(this.createDepartmentForm.value)
// .subscribe((res) => {
// this.createDepartmentForm.patchValue({
// name: '',
// });
//
// this.loaddepartment();
// });
// }
loaddepartment(value) {
this.deparmentDropDownLoading = true;
const _a = this.departmentPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
let tableCol = this.tableService.initializeTableParamsColums(this.tableCol.deptCols, [0, 1, 2, 3], [0, 1, 2]) || [];
this.tableParams.columns = tableCol;
this.tableParams.draw++;
this.tableParams.start = this.departmentPTable.limit - 10;
this.tableParams.length = this.departmentPTable.limit;
//this.tableParams.search.value = value ? value : ''
// this.tableParams=this.buUnit.tableParams;
const subscribe = this.buUnit
.getDepartments(this.tableParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, departments } = response;
this.departmentPTable.data = [...departments];
this.departmentDropDown = [...departments];
this.deparmentDropDownLoading = false;
this.departmentPTable.total = recordsTotal;
}, (error) => {
this.deparmentDropDownLoading = false;
this.departmentPTable.data = [];
this.departmentPTable.total = 0;
// this.toastService.error('No list found');
});
}
loadSection(departmentId) {
this.sectionDropDownLoading = true;
// const { data, total, ...rest } = this.sectionPTable
const payload = { "departmentId": departmentId };
const subscribe = this.buUnit
.getSection(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b, _c, _d;
// const { count, data } = response.data;
this.sectionPTable.data = ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.sections) || [];
this.sectionDropDown = ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.sections) || [];
this.sectionDropDownLoading = false;
this.sectionPTable.total = ((_d = (_c = response === null || response === void 0 ? void 0 : response.data) === null || _c === void 0 ? void 0 : _c.sections) === null || _d === void 0 ? void 0 : _d.length) || 0;
}, (error) => {
this.sectionDropDownLoading = false;
this.sectionPTable.data = [];
this.sectionPTable.total = 0;
// this.toastService.error('No list found');
});
}
loadSubSection(sectionId) {
const _a = this.subSectionPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const payload = { sectionId: sectionId };
const subscribe = this.buUnit
.getSubsection(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b, _c, _d;
// const { count, data } = response.data;
this.subSectionPTable.data = ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.subSections) || [];
this.subSectionDropDown = ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.subSections) || [];
this.subSectionPTable.total = ((_d = (_c = response === null || response === void 0 ? void 0 : response.data) === null || _c === void 0 ? void 0 : _c.subSections) === null || _d === void 0 ? void 0 : _d.length) || 0;
}, (error) => {
this.subSectionPTable.data = [];
this.subSectionPTable.total = 0;
// this.toastService.error('No list found');
});
}
/// bu unit deparment drop down and popup of department section and subsectionb
onSeachDepartment(value) {
this.departmentPTable.limit = 10;
this.tableParams.search.value = value.term;
this.departmentPTable.page = 1;
const _a = this.departmentPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
this.loaddepartment(rest);
}
onSeachSection(value) {
this.sectionPTable.limit = 10;
this.sectionPTable.search = value.term;
this.sectionPTable.page = 1;
}
loadMoreDepartmentItems(value) {
this.departmentPTable.limit = this.departmentPTable.limit + 10;
this.departmentPTable.page = this.departmentPTable.page + 1;
const _a = this.departmentPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
this.loaddepartment(rest);
}
loadMoreSectionItems(value) {
this.sectionPTable.limit = this.sectionPTable.limit + 10;
this.loadSection(this.sectionPTable);
}
DepartmentCreate() {
if (!this.createDepartmentForm.valid) {
return;
}
this.departmentLoading = true;
if (!this.isDepartmentEdited) {
this.buUnit
.createDepartment(this.createDepartmentForm.value)
.subscribe(() => {
this.departmentInit();
this.departmentPTable.search = '';
this.loaddepartment();
this.departmentLoading = false;
this.toastService.success('Department Created Successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-left',
});
}, (error) => {
var _a;
this.departmentLoading = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
else {
const payload = {
"departmentId": this.editedDepartmentID,
"name": this.createDepartmentForm.get('name').value,
"status": this.createDepartmentForm.get('status').value,
"companyId": this.createDepartmentForm.get('companyId').value
};
this.buUnit
.updateDepartment(payload)
.subscribe((res) => {
this.isDepartmentEdited = false;
this.editedDepartmentID = null;
this.departmentInit();
this.departmentPTable.search = '';
this.loaddepartment();
this.departmentLoading = false;
this.toastService.success('Department Updated Successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-left',
});
}, (error) => {
var _a;
this.departmentLoading = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
}
closeModal() {
this.modelService.dismissAll();
this.departmentPTable.search = '';
this.sectionPTable.search = '';
this.subSectionPTable.search = '';
}
onEditDepartment(department) {
this.isDepartmentEdited = true;
this.editedDepartmentID = department._id;
this.createDepartmentForm.patchValue({
name: department.name,
status: department.status,
});
}
onDeleteDepartment(id) {
Object(src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_6__["deleteAlert"])().then((result) => {
if (result.value) {
const payload = { "departmentId": id };
this.buUnit.deleteDepartment(payload).subscribe((res) => {
this.loaddepartment();
this.toastService.success('Department Deleted Successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
});
}
SectionCreate() {
if (!this.createSectionForm.valid) {
return;
}
this.sectionLoading = true;
if (!this.isSectionEdited) {
const payload = {
name: this.createSectionForm.get('name').value,
departmentId: this.departmentId,
status: this.createSectionForm.get('status').value
};
this.buUnit
.createSection(payload)
.subscribe(() => {
this.sectionInit();
this.sectionPTable.search = '';
this.loadSection(this.departmentId);
this.sectionLoading = false;
this.toastService.success('Section Successfully Added', '', {
timeOut: 3000,
positionClass: 'toast-top-left',
});
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
else {
const payload = {
sectionId: this.editedSectionID,
name: this.createSectionForm.get('name').value,
status: this.createSectionForm.get('status').value
};
this.buUnit
.updateSection(payload)
.subscribe((res) => {
this.isSectionEdited = false;
this.editedSectionID = null;
this.sectionPTable.search = '';
this.sectionInit();
this.loadSection(this.departmentId);
this.sectionLoading = false;
this.toastService.success('Section Updated Successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-left',
});
}, (error) => {
var _a;
this.sectionLoading = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
}
editSection(section) {
this.isSectionEdited = true;
this.editedSectionID = section._id;
this.createSectionForm.patchValue({
name: section.name,
status: section.status,
});
}
onDeleteSection(id) {
Object(src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_6__["deleteAlert"])().then((result) => {
if (result.value) {
const payload = {
sectionId: id
};
this.buUnit.deleteSection(payload).subscribe((res) => {
this.loadSection(this.departmentId);
this.toastService.success('Section Deleted Successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
});
}
bussinessunitCreate() {
if (!this.createSubsectionForm.valid) {
return;
}
this.subsectionLoading = true;
this.loader = true;
if (!this.isSubSectionEdited) {
const payload = {
name: this.createSubsectionForm.get('name').value,
sectionId: this.sectionId,
status: this.createSubsectionForm.get('status').value
};
this.buUnit
.createSubsection(payload)
.subscribe((res) => {
this.ngOnInit();
this.modelService.dismissAll();
this.departmentDropDown = [];
this.sectionDropDown = [];
this.subSectionDropDown = [];
this.toastService.success('Business unit Created Successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-left',
});
this.activeId = 1;
this.subsectionLoading = false;
this.loader = false;
}, (error) => {
var _a;
this.subsectionLoading = false;
this.loader = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
else {
const payload = {
name: this.createSubsectionForm.get('name').value,
subSectionId: this.editedSubSectionID,
sectionId: this.sectionId
};
this.buUnit
.updateSubsection(payload)
.subscribe((res) => {
this.subSectionInit();
this.isSubSectionEdited = false;
this.loader = false;
this.editedSubSectionID = null;
this.loadSubSection(this.sectionId);
this.toastService.success('Business unit Updated Successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-left',
});
this.subsectionLoading = false;
}, (error) => {
var _a;
this.subsectionLoading = false;
this.loader = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
}
editSubSection(Subsection) {
this.isSubSectionEdited = true;
this.editedSubSectionID = Subsection._id;
this.createSubsectionForm.patchValue({
name: Subsection.name,
status: Subsection.status,
});
}
onDeleteSubSection(id) {
Object(src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_6__["deleteAlert"])().then((result) => {
if (result.value) {
const payload = {
subSectionId: id
};
this.buUnit.deleteSubsection(payload).subscribe((res) => {
this.loadSubSection(this.sectionId);
this.toastService.success('Subsection Deleted Successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
});
}
addDepartment() {
this.departmentPTable.limit = 10;
this.loaddepartment();
this.modelService.open(this.AddDepartment, {
windowClass: 'modal-ui-fix right-align',
}).result.then((result) => {
this.departmentPTable.limit = 10;
this.departmentPTable.page = 1;
this.loaddepartment();
}, (reason) => {
this.departmentPTable.limit = 10;
this.departmentPTable.page = 1;
this.loaddepartment();
});
}
addSection() {
this.sectionPTable.limit = 10;
this.modelService.open(this.AddSection, {
windowClass: 'modal-ui-fix right-align',
}).result.then((result) => {
this.subSectionPTable.limit = 10;
this.subSectionPTable.page = 1;
}, (reason) => {
this.subSectionPTable.limit = 10;
this.subSectionPTable.page = 1;
});
}
addSubSection() {
this.subSectionPTable.limit = 10;
this.modelService.open(this.AddSubSection, {
windowClass: 'modal-ui-fix right-align',
}).result.then((result) => {
this.subSectionPTable.limit = 10;
this.subSectionPTable.page = 1;
}, (reason) => {
this.subSectionPTable.limit = 10;
this.subSectionPTable.page = 1;
});
}
ngOnDestroy() {
this.DepartmentsearchSubscription &&
this.DepartmentsearchSubscription.unsubscribe();
this.SectionsearchSubscription &&
this.SectionsearchSubscription.unsubscribe();
this.SubsectionsearchSubscription &&
this.SubsectionsearchSubscription.unsubscribe();
}
}
BussinessUnitComponent.ɵfac = function BussinessUnitComponent_Factory(t) { return new (t || BussinessUnitComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_11__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_12__["TableService"])); };
BussinessUnitComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: BussinessUnitComponent, selectors: [["app-bussiness-unit"]], viewQuery: function BussinessUnitComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c2, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddDepartment = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddSection = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddSubSection = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 18, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["AddDepartment", ""], ["AddSection", ""], ["AddSubSection", ""], [1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body", "mt-4"], [3, "formGroup"], [1, "row"], [1, "col-md-12"], [1, "col-md-3"], [1, "font-weight-bold"], ["type", "text", "placeholder", " Role Description", "readonly", "", 1, "form-control", "tier-1-input", 2, "margin-top", "8px", "height", "35px", 3, "value"], [1, "btn", "p-1", "ml-1", 2, "color", "#a51f38", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-2x", "fa-plus-circle", "fa-lg"], ["bindLabel", "name", "placeholder", "Select department", "appendTo", "body", "formControlName", "departmentName", 1, "custom", 3, "loading", "multiple", "searchable", "clearable", "search", "scrollToEnd", "clear"], ["class", "option-select", 3, "value", 4, "ngFor", "ngForOf"], ["bindLabel", "name", "placeholder", "Select section", "appendTo", "body", "formControlName", "sectionName", 1, "custom", 3, "multiple", "searchable", "clearable", "loading", "search", "scrollToEnd", "clear"], [3, "value", 4, "ngFor", "ngForOf"], [1, "option-select", 3, "value"], [1, "options-color"], [3, "value"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], [1, "add-header"], ["type", "button", "aria-label", "Close", 1, "btn", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [1, "card-body"], [1, "col-md-6"], ["disabled", "", 1, "dropdown-select", "form-control"], ["selected", "", "disabled", ""], [1, "form-group"], ["for", "exampleInputEmail1"], ["type", "text", "formControlName", "name", "placeholder", "", "maxlength", "40", 1, "form-control"], ["class", "invalid-feedback", 4, "ngIf"], [1, "btn", "btn-add", "pull-right", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table table-body", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "invalid-feedback"], [1, "table", "table-body"], ["scope", "col"], ["scope", "col", "sortable", "name", 3, "sort"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"], ["bindLabel", "name", "placeholder", "Select Department", "appendTo", "body", "formControlName", "departmentName", 1, "custom", 3, "multiple", "searchable", "clearable", "loading", "search", "scrollToEnd", "clear"], ["type", "text", "formControlName", "name", "placeholder", "", "maxlength", "40", 1, "form-control", 2, "height", "36px"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], ["class", "table", 4, "ngIf"], [1, "table"], [1, "btn", "btn-add", 3, "click"], [1, "btn", "btn-clear", 3, "click"], ["class", "loader", 4, "ngIf"], ["bindLabel", "name", "placeholder", "Select Section", "appendTo", "body", "formControlName", "sectionName", 1, "custom", 3, "multiple", "searchable", "clearable", "loading", "search", "scrollToEnd", "clear"], ["selected", "", 3, "ngValue"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "btn", "btn-clear", "p", "-2", "m-1", 3, "click"]], template: function BussinessUnitComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function BussinessUnitComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, BussinessUnitComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "ADD");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, BussinessUnitComponent_ng_template_10_Template, 32, 13, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, BussinessUnitComponent_ng_template_12_Template, 59, 26, "ng-template", null, 7, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, BussinessUnitComponent_ng_template_14_Template, 59, 30, "ng-template", null, 8, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, BussinessUnitComponent_ng_template_16_Template, 62, 33, "ng-template", null, 9, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavOutlet"], _bussiness_unit_overview_bussiness_unit_overview_component__WEBPACK_IMPORTED_MODULE_13__["BussinessUnitOverviewComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_15__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_16__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["MaxLengthValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_16__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_16__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgModel"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_17__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_16__["SlicePipe"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.dropdown-select[_ngcontent-%COMP%] {\n \n border: none !important;\n border-bottom: 2px solid #d2d2d2 !important;\n background-repeat: no-repeat;\n background-position: right;\n transition: none;\n font-size: 0.9rem;\n border-radius: 0;\n background-clip: unset;\n}.loader[_ngcontent-%COMP%] {\n background-color: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-repeat: no-repeat;\n background-position: center;\n z-index: 1050;\n opacity: 0.8;\n}.loader[_ngcontent-%COMP%] .pageLoading[_ngcontent-%COMP%] {\n text-align: center;\n color: white;\n font-size: 40px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}.box[_ngcontent-%COMP%] {\n float: left;\n}.box[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%] .fa-plus-circle[_ngcontent-%COMP%] {\n color: red;\n}.col-md-3[_ngcontent-%COMP%] {\n max-width: 100%;\n}input[readonly][_ngcontent-%COMP%] {\n background-color: transparent;\n}.tier-1-input[_ngcontent-%COMP%] {\n background-color: #e0e0e0 !important;\n}.btn[_ngcontent-%COMP%]:focus {\n box-shadow: none !important;\n}.create-business-button[_ngcontent-%COMP%] {\n color: whitesmoke;\n background-color: #a00000;\n box-shadow: none;\n border: none;\n width: 150px;\n}.add-header[_ngcontent-%COMP%] {\n font-size: 15px;\n margin-top: 10px;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL3N5c3RlbS1zZXR0aW5ncy9idXNzaW5lc3MtdW5pdC9idXNzaW5lc3MtdW5pdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxpREFBaUQsZUFBZSxDQUFDLGlDQUFpQyxDQUFDLHVEQUF1RCxlQUFlLENBQUMsMkRBQTJELFFBQVEsQ0FBQyx5Q0FBeUMsQ0FBQyxzQkFBc0IsQ0FBQyxpRUFBaUUseUNBQXlDLENBQUMsa0VBQWtFLDRCQUE0QixDQUFDLDJCQUEyQixDQUFDLCtEQUErRCx5QkFBeUIsQ0FBQyx3QkFBd0IsQ0FBQyx5RUFBeUUsb0JBQW9CLENBQUMsMEVBQTBFLENBQUMsbURBQW1ELHdCQUF3QixDQUFDLHlDQUF5QyxZQUFZLENBQUMsZ0NBQWdDLFVBQVUsQ0FBQyxxQkFBcUIsQ0FBQyxpQkFBaUIsQ0FBQyxxQkFBcUIsQ0FBQyxlQUFlLENBQUMsa0JBQWtCLENBQUMsc0NBQXNDLG1DQUFtQyxDQUFDLG9EQUFvRCxrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxnRUFBZ0Usa0JBQWtCLENBQUMsY0FBYyxDQUFDLG9FQUFvRSxVQUFVLENBQUMsaURBQWlELFdBQVcsQ0FBQywrRUFBK0UsT0FBTyxDQUFDLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxrQkFBa0IsQ0FBQywyRkFBMkYsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsb0dBQW9HLHdCQUF3QixDQUFDLHdCQUF3QixDQUFDLG9IQUFvSCxhQUFhLENBQUMsdUVBQXVFLGVBQWUsQ0FBQyxnQkFBZ0IsQ0FBQyxtRkFBbUYsaUJBQWlCLENBQUMsY0FBYyxDQUFDLGlGQUFpRixjQUFjLENBQUMsaUJBQWlCLENBQUMsd0JBQXdCLENBQUMsaUJBQWlCLENBQUMsZ0JBQWdCLENBQUMsNkZBQTZGLGNBQWMsQ0FBQyxlQUFlLENBQUMsbUdBQW1HLHdCQUF3QixDQUFDLG1IQUFtSCxnQkFBZ0IsQ0FBQywrSEFBK0gsY0FBYyxDQUFDLGlCQUFpQixDQUFDLGlHQUFpRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsZ0dBQWdHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxzR0FBc0csd0JBQXdCLENBQUMscUdBQXFHLDhCQUE4QixDQUFDLGlIQUFpSCw2QkFBNkIsQ0FBQyxpQkFBaUIsQ0FBQyxzR0FBc0csNkJBQTZCLENBQUMsa0hBQWtILGFBQWEsQ0FBQyw4QkFBOEIsQ0FBQyxpRkFBaUYsbUJBQW1CLENBQUMsNkZBQTZGLG1CQUFtQixDQUFDLHVGQUF1RixPQUFPLENBQUMsa0JBQWtCLENBQUMsZ0JBQWdCLENBQUMsbUdBQW1HLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLDZDQUE2QyxhQUFhLENBQUMsNEJBQTRCLG1CQUFtQixDQUFDLHdDQUF3QyxtQkFBbUIsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLGlCQUFpQixDQUFDLHlDQUF5QyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsNkNBQTZDLHFCQUFxQixDQUFDLHVDQUF1Qyx5Q0FBeUMsQ0FBQyxrQkFBa0IsQ0FBQywwQkFBMEIsQ0FBQyxtQkFBbUIscUJBQXFCLENBQUMscUJBQXFCLENBQUMsbUNBQW1DLENBQUMsTUFBTSxDQUFDLG9DQUFvQyxRQUFRLENBQUMsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsd0JBQXdCLENBQUMsZUFBZSxDQUFDLG1GQUFtRiw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyxpQ0FBaUMsV0FBVyxDQUFDLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLDJCQUEyQixDQUFDLGtCQUFrQixDQUFDLGlGQUFpRiwyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQyx1Q0FBdUMsNEJBQTRCLENBQUMsZUFBZSxDQUFDLHVDQUF1Qyx5QkFBeUIsQ0FBQyxlQUFlLENBQUMseURBQXlELHdCQUFnQixDQUFoQixnQkFBZ0IsQ0FBQyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsc0JBQXNCLENBQUMsY0FBYyxDQUFDLDRFQUE0RSxjQUFjLENBQUMsMEVBQTBFLHdCQUF3QixDQUFDLHlLQUF5Syx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsdURBQXVELHFCQUFxQixDQUFDLHNCQUFzQixDQUFDLGdCQUFnQixDQUFDLHFLQUFxSyxVQUFVLENBQUMsd0JBQXdCLENBQUMsdU1BQXVNLGVBQWUsQ0FBQyx3RUFBd0Usd0JBQXdCLENBQUMsVUFBVSxDQUFDLDBFQUEwRSxVQUFVLENBQUMsdUVBQXVFLGlCQUFpQixDQUFDLG1GQUFtRixrQkFBa0IsQ0FBQyxjQUFjLENBQUMscUVBQXFFLGFBQWEsQ0FBQyxlQUFlLENBQUMsaUJBQWlCLENBQUMsaUZBQWlGLGdCQUFnQixDQUFDLGVBQWUsQ0FBQywrQkFBK0IsYUFBYSxDQUFDLGdCQUFnQixDQ0UxNE87RUFDRSxzQ0FBQTtFQUNBLHVCQUFBO0VBQ0EsMkNBQUE7RUFFQSw0QkFBQTtFQUNBLDBCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxpQkFBQTtFQUNBLGdCQUFBO0VBQ0Esc0JBQUE7QUFERixDQUdBO0VBQ0Usb0NBQUE7RUFDQyxlQUFBO0VBQ0QsTUFBQTtFQUNBLFFBQUE7RUFDQSxPQUFBO0VBQ0EsU0FBQTtFQUNBLDRCQUFBO0VBQ0EsMkJBQUE7RUFDQSxhQUFBO0VBQ0EsWUFBQTtBQUFGLENBQ0U7RUFDRSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0VBQ0EsZUFBQTtFQUNBLFFBQUE7RUFDQSxTQUFBO0VBQ0EsZ0NBQUE7QUFDSixDQUdBO0VBQ0UsV0FBQTtBQUFGLENBQ0U7RUFDRSxVQUFBO0FBQ0osQ0FFQTtFQUNFLGVBQUE7QUFDRixDQUVBO0VBQ0UsNkJBQUE7QUFDRixDQUVBO0VBQ0Usb0NBQUE7QUFDRixDQUVBO0VBQ0UsMkJBQUE7QUFDRixDQUVBO0VBQ0UsaUJBQUE7RUFDQSx5QkFBQTtFQUNBLGdCQUFBO0VBQ0EsWUFBQTtFQUNBLFlBQUE7QUFDRixDQUVBO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBQ0YsQ0FFQTtFQUNFLG9DQUFBO0VBQ0EsdUJBQUE7QUFDRixDQUVBO0VBQ0Usc0JBQUE7QUFDRixDQUFFO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0FBRUosQ0FBSTtFQUNFLGNBQUE7QUFFTixDQUNJO0VBQ0UsY0FBQTtFQUNBLHNCQUFBO0VBQ0EsNkNBQUE7RUFDQSxnQ0FBQTtBQUNOIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2J1c3NpbmVzcy11bml0L2J1c3NpbmVzcy11bml0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQ6I2ZmZjtib3JkZXItY29sb3I6I2IzYjNiMyAjY2NjICNkOWQ5ZDl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyOmhvdmVye2JveC1zaGFkb3c6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLWFycm93e3RvcDotMnB4O2JvcmRlci1jb2xvcjp0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjOTk5O2JvcmRlci13aWR0aDowIDVweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvdzpob3Zlcntib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzMzM30ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LWJvdHRvbT4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czowO2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LXRvcD4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItdG9wLXJpZ2h0LXJhZGl1czowO2JvcmRlci10b3AtbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1mb2N1c2VkOm5vdCgubmctc2VsZWN0LW9wZW5lZCk+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWNvbG9yOiMwMDdlZmY7Ym94LXNoYWRvdzppbnNldCAwIDFweCAxcHggcmdiYSgwLDAsMCwwLjA3NSksMCAwIDAgM3B4IHJnYmEoMCwxMjYsMjU1LDAuMSl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXJ7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3QgLm5nLWhhcy12YWx1ZSAubmctcGxhY2Vob2xkZXJ7ZGlzcGxheTpub25lfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXJ7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Ym9yZGVyLXJhZGl1czo0cHg7Ym9yZGVyOjFweCBzb2xpZCAjY2NjO21pbi1oZWlnaHQ6MzZweDthbGlnbi1pdGVtczpjZW50ZXJ9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7YWxpZ24taXRlbXM6Y2VudGVyO3BhZGRpbmctbGVmdDoxMHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVye2hlaWdodDozNnB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHt0b3A6NXB4O2xlZnQ6MDtwYWRkaW5nLWxlZnQ6MTBweDtwYWRkaW5nLXJpZ2h0OjUwcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZy1yaWdodDoxMHB4O3BhZGRpbmctbGVmdDo1MHB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjk7Ym9yZGVyOjFweCBzb2xpZCAjZTZlNmU2fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtbGFiZWx7cGFkZGluZzowIDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctdG9wOjVweDtwYWRkaW5nLWxlZnQ6N3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjdweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtmb250LXNpemU6LjllbTttYXJnaW4tYm90dG9tOjVweDtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Ym9yZGVyLXJhZGl1czoycHg7bWFyZ2luLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle21hcmdpbi1yaWdodDowO21hcmdpbi1sZWZ0OjVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZCAubmctdmFsdWUtbGFiZWx7cGFkZGluZy1sZWZ0OjA7cGFkZGluZy1yaWdodDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse2Rpc3BsYXk6aW5saW5lLWJsb2NrO3BhZGRpbmc6MXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbntkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb246aG92ZXJ7YmFja2dyb3VuZC1jb2xvcjojZDFlOGZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ubGVmdHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZjtib3JkZXItcmlnaHQ6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLnJpZ2h0e2JvcmRlci1sZWZ0OjA7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmc6MCAwIDNweCAzcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgM3B4IDNweCAwfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye3RvcDo1cHg7cGFkZGluZy1ib3R0b206NXB4O3BhZGRpbmctbGVmdDozcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntwYWRkaW5nLXJpZ2h0OjNweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1jbGVhci13cmFwcGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcjpob3ZlciAubmctY2xlYXJ7Y29sb3I6I0QwMDIxQn0ubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggNXB4IDAgMH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNwaW5uZXItem9uZXtwYWRkaW5nOjVweCAwIDAgNXB4fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7d2lkdGg6MjVweDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcjpob3ZlciAubmctYXJyb3d7Ym9yZGVyLXRvcC1jb2xvcjojNjY2fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXIgLm5nLWFycm93e2JvcmRlci1jb2xvcjojOTk5IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O2JvcmRlci1zdHlsZTpzb2xpZDtib3JkZXItd2lkdGg6NXB4IDVweCAyLjVweH0ubmctZHJvcGRvd24tcGFuZWx7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlcjoxcHggc29saWQgI2NjYztib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KTtsZWZ0OjB9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b217dG9wOjEwMCU7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4O2JvcmRlci10b3AtY29sb3I6I2U2ZTZlNjttYXJnaW4tdG9wOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b20gLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246bGFzdC1jaGlsZHtib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czo0cHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3B7Ym90dG9tOjEwMCU7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tY29sb3I6I2U2ZTZlNjttYXJnaW4tYm90dG9tOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3AgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246Zmlyc3QtY2hpbGR7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24taGVhZGVye2JvcmRlci1ib3R0b206MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tZm9vdGVye2JvcmRlci10b3A6MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3Vwe3VzZXItc2VsZWN0Om5vbmU7cGFkZGluZzo4cHggMTBweDtmb250LXdlaWdodDo1MDA7Y29sb3I6cmdiYSgwLDAsMCwwLjU0KTtjdXJzb3I6cG9pbnRlcn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tZGlzYWJsZWR7Y3Vyc29yOmRlZmF1bHR9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLXNlbGVjdGVkLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2ViZjVmZjtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9ue2JhY2tncm91bmQtY29sb3I6I2ZmZjtjb2xvcjpyZ2JhKDAsMCwwLDAuODcpO3BhZGRpbmc6OHB4IDEwcHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWR7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCAubmctb3B0aW9uLWxhYmVsLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZCAubmctb3B0aW9uLWxhYmVse2ZvbnQtd2VpZ2h0OjYwMH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmY7Y29sb3I6IzMzM30ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWRpc2FibGVke2NvbG9yOiNjY2N9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1jaGlsZHtwYWRkaW5nLWxlZnQ6MjJweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1yaWdodDoyMnB4O3BhZGRpbmctbGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse2ZvbnQtc2l6ZTo4MCU7Zm9udC13ZWlnaHQ6NDAwO3BhZGRpbmctcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uIC5uZy10YWctbGFiZWx7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWx7ZGlyZWN0aW9uOnJ0bDt0ZXh0LWFsaWduOnJpZ2h0fVxuIiwiQGltcG9ydCBcIn5Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3NcIjtcblxuLmRyb3Bkb3duLXNlbGVjdCB7XG4gIC8qY29udGFpbmVyIGZvciBjdXN0b20gZHJvcGRvd24gYXJyb3cqL1xuICBib3JkZXI6IG5vbmUgIWltcG9ydGFudDtcbiAgYm9yZGVyLWJvdHRvbTogMnB4IHNvbGlkICNkMmQyZDIgIWltcG9ydGFudDtcblxuICBiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiByaWdodDtcbiAgdHJhbnNpdGlvbjogbm9uZTtcbiAgZm9udC1zaXplOiAwLjlyZW07XG4gIGJvcmRlci1yYWRpdXM6IDA7XG4gIGJhY2tncm91bmQtY2xpcDogdW5zZXQ7XG59XG4ubG9hZGVye1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICBwb3NpdGlvbjogZml4ZWQ7XG4gIHRvcDogMDtcbiAgcmlnaHQ6MDtcbiAgbGVmdDowO1xuICBib3R0b206MDtcbiAgYmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcbiAgYmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuICB6LWluZGV4OiAxMDUwO1xuICBvcGFjaXR5OiAwLjg7XG4gIC5wYWdlTG9hZGluZyB7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIGNvbG9yOiB3aGl0ZTtcbiAgICBmb250LXNpemU6IDQwcHg7XG4gICAgcG9zaXRpb246IGZpeGVkO1xuICAgIHRvcDogNTAlO1xuICAgIGxlZnQ6IDUwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbiAgfVxufVxuXG4uYm94IHtcbiAgZmxvYXQ6IGxlZnQ7XG4gIC5mYSAuZmEtcGx1cy1jaXJjbGUge1xuICAgIGNvbG9yOiByZWQ7XG4gIH1cbn1cbi5jb2wtbWQtMyB7XG4gIG1heC13aWR0aDogMTAwJTtcbn1cblxuaW5wdXRbcmVhZG9ubHldIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG59XG5cbi50aWVyLTEtaW5wdXQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZTBlMGUwICFpbXBvcnRhbnQ7XG59XG5cbi5idG46Zm9jdXMge1xuICBib3gtc2hhZG93OiBub25lICFpbXBvcnRhbnQ7XG59XG5cbi5jcmVhdGUtYnVzaW5lc3MtYnV0dG9uIHtcbiAgY29sb3I6IHdoaXRlc21va2U7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYigxNjAsIDAsIDApO1xuICBib3gtc2hhZG93OiBub25lO1xuICBib3JkZXI6IG5vbmU7XG4gIHdpZHRoOiAxNTBweDtcbn1cblxuLmFkZC1oZWFkZXIge1xuICBmb250LXNpemU6IDE1cHg7XG4gIG1hcmdpbi10b3A6IDEwcHg7XG59XG5cbjo6bmctZGVlcCAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMyMTk2ZjMgIWltcG9ydGFudDtcbiAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG59XG5cbi5uYXYtdGFicyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC5uYXYtbGluayB7XG4gICAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgIHRyYW5zaXRpb246IGNvbG9yIDAuMnM7XG4gICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BussinessUnitComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-bussiness-unit',
templateUrl: './bussiness-unit.component.html',
styleUrls: ['./bussiness-unit.component.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"] }, { type: _service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_11__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormBuilder"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_12__["TableService"] }]; }, { AddDepartment: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddDepartment', { static: true }]
}], AddSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddSection', { static: true }]
}], AddSubSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddSubSection', { static: true }]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "7XWF":
/*!****************************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/manage-service/manage-service-logs/manage-service-logs.component.ts ***!
\****************************************************************************************************************************/
/*! exports provided: ManageServiceLogsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageServiceLogsComponent", function() { return ManageServiceLogsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function ManageServiceLogsComponent_div_0_ngx_skeleton_loader_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 8);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function ManageServiceLogsComponent_div_0_table_8_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceLogsComponent_div_0_table_8_tr_14_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const i_r6 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r7.changeOverview(false, i_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 4, i_r6.createdAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 7, i_r6.createdAt, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r6.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r6.status !== 3 && i_r6.status !== 6 ? i_r6.cancelledBy : i_r6.staffId, " ");
} }
function ManageServiceLogsComponent_div_0_table_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "USER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ManageServiceLogsComponent_div_0_table_8_tr_14_Template, 14, 10, "tr", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.logsData);
} }
function ManageServiceLogsComponent_div_0_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Data Available ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceLogsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "SERVICE LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ManageServiceLogsComponent_div_0_ngx_skeleton_loader_7_Template, 1, 2, "ngx-skeleton-loader", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ManageServiceLogsComponent_div_0_table_8_Template, 15, 1, "table", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ManageServiceLogsComponent_div_0_div_9_Template, 2, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Service : ", ctx_r0.selectedServiceName.serviceName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.logsLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.logsLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.logsLoader && (ctx_r0.logsData == null ? null : ctx_r0.logsData.length) === 0);
} }
function ManageServiceLogsComponent_div_1_div_44_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceLogsComponent_div_1_div_44_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const j_r12 = ctx.$implicit; const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r13.changeShiftDetailsView(true, j_r12); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r12 = ctx.$implicit;
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r10.serviceDetail == j_r12 ? "selected" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r10.logDetail == null ? null : ctx_r10.logDetail.serviceName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 6, j_r12.serviceStartTime, "HH:mm"), "-", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](7, 9, j_r12.serviceEndTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", j_r12 == null ? null : j_r12.confirmSlot, "/", j_r12 == null ? null : j_r12.standBySlot, " ");
} }
function ManageServiceLogsComponent_div_1_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Details of Service");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Service Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Start Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "End Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](23, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r11.logDetail == null ? null : ctx_r11.logDetail.serviceName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 6, ctx_r11.serviceDetail.serviceStartTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](23, 9, ctx_r11.serviceDetail.serviceEndTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function ManageServiceLogsComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "LOG DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceLogsComponent_div_1_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.changeOverview(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "General");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 27, 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](20, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](26, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Service Listing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, ManageServiceLogsComponent_div_1_div_44_Template, 11, 12, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, ManageServiceLogsComponent_div_1_div_45_Template, 24, 12, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](20, 10, ctx_r1.logDetail == null ? null : ctx_r1.logDetail.createdAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](26, 13, ctx_r1.logDetail == null ? null : ctx_r1.logDetail.createdAt, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", ctx_r1.logDetail.status !== 3 && ctx_r1.logDetail.status !== 6 ? ctx_r1.logDetail.cancelledBy : ctx_r1.logDetail.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", ctx_r1.logDetail == null ? null : ctx_r1.logDetail.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.logDetail == null ? null : ctx_r1.logDetail.services);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.showServiceDetails);
} }
class ManageServiceLogsComponent {
constructor(setupService, toastrService) {
this.setupService = setupService;
this.toastrService = toastrService;
this.logsLoader = false;
this.logsData = [];
this.isOverview = true;
this.showServiceDetails = false;
}
ngOnInit() {
this.getLogs();
}
ngOnChanges(changes) {
if (changes.refreshNum && !changes.refreshNum.firstChange) {
this.handleRefresh();
}
}
getLogs() {
this.logsLoader = true;
const payload = {
weekRangeStartAt: this.serviceRequest.weekRangeStartAt,
weekRangeEndAt: this.serviceRequest.weekRangeEndAt,
status: [3, 4, 5, 6],
};
this.setupService
.getServiceLogs(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
this.logsLoader = false;
}))
.subscribe((response) => {
var _a;
this.logsData = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.data) || [];
}, (error) => {
var _a, _b;
this.toastrService.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to load service logs');
});
}
handleRefresh() {
this.logsData = [];
this.logDetail = null;
this.serviceDetail = null;
this.isOverview = true;
this.showServiceDetails = false;
this.getLogs();
}
changeOverview(value, item) {
this.showServiceDetails = false;
this.serviceDetail = null;
this.logDetail = item;
this.isOverview = value;
}
changeShiftDetailsView(value, item) {
this.serviceDetail = item;
this.showServiceDetails = value;
}
}
ManageServiceLogsComponent.ɵfac = function ManageServiceLogsComponent_Factory(t) { return new (t || ManageServiceLogsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"])); };
ManageServiceLogsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageServiceLogsComponent, selectors: [["app-manage-service-logs"]], inputs: { selectedServiceName: "selectedServiceName", serviceRequest: "serviceRequest", refreshNum: "refreshNum" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 2, vars: 2, consts: [["class", "card", 4, "ngIf"], [1, "card"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body", "table-responsive", "p-0"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table m-0", 4, "ngIf"], ["class", "bg-white text-center p-3", 4, "ngIf"], ["count", "6", 3, "theme"], [1, "table", "m-0"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-success", 3, "click"], [1, "bg-white", "text-center", "p-3"], [1, "card-header", "d-flex", "align-items-center", "justify-content-between", "bg-theme"], [1, "btn", "btn-outline-light", "btn-sm", 3, "click"], [1, "card-body"], [1, "card", "mb-3"], [1, "card-header"], [1, "row"], [1, "col-md-4"], [1, "form-group"], ["for", ""], ["placeholder", "date", 1, "form-control", 3, "disabled", "value"], ["date", ""], ["placeholder", "time", 1, "form-control", 3, "disabled", "value"], ["placeholder", "user", 1, "form-control", 3, "disabled", "value"], [1, "col-md-6"], ["placeholder", "Description", 1, "form-control", 3, "disabled", "value"], ["class", "shiftTab d-flex align-items-center mb-2", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["class", "col-md-6", 4, "ngIf"], [1, "shiftTab", "d-flex", "align-items-center", "mb-2", 3, "ngClass", "click"], [1, "d-flex", "justify-content-between", "w-100"], [1, "d-flex", "justify-content-end", "mt-1"], [1, "badge", "badge-pill", "bg-theme"], [1, "col-md-12"], ["placeholder", "Service Name", 1, "form-control", 3, "disabled", "value"], [1, "form-group", "row"], ["placeholder", "Timing", 1, "form-control", 3, "disabled", "value"]], template: function ManageServiceLogsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageServiceLogsComponent_div_0_Template, 10, 4, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageServiceLogsComponent_div_1_Template, 46, 16, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOverview);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isOverview);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_5__["NgxSkeletonLoaderComponent"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_6__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgForm"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgClass"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DatePipe"]], styles: [".bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.copyIcon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 15px;\n}\n\n.copyIcon[_ngcontent-%COMP%]:hover {\n cursor: pointer;\n color: #2dafe2;\n}\n\n.copyIcon[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%] {\n color: blue;\n}\n\n.shiftTab[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0.5rem 0.8rem;\n border-radius: 4px;\n min-height: 60px;\n cursor: pointer;\n}\n\n.shiftTab[_ngcontent-%COMP%]:hover {\n background-color: #eee;\n}\n\n.shiftTab.selected[_ngcontent-%COMP%] {\n background-color: #721c2414;\n border: 1px solid #a73535;\n border-radius: 4px;\n}\n\n.weekbtn[_ngcontent-%COMP%] {\n width: 36px;\n border: 1px solid #a42138;\n height: 36px;\n text-align: center;\n float: left;\n background: #faacac;\n color: #a42138;\n cursor: pointer;\n transition: all 0.3s;\n}\n\n.weekbtn[_ngcontent-%COMP%]:hover {\n background: #a42138;\n color: #fff;\n}\n\n.weekInput[_ngcontent-%COMP%] {\n height: 36px;\n border-top: 1px solid #a42138;\n border-bottom: 1px solid #a42138;\n text-align: center;\n float: left;\n padding: 5px;\n font-weight: bold;\n padding-left: 15px;\n padding-right: 15px;\n background: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNlcnZpY2UvbWFuYWdlLXNlcnZpY2UtbG9ncy9tYW5hZ2Utc2VydmljZS1sb2dzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0kseUJBQUE7RUFDQSxXQUFBO0FBQ0o7O0FBR0k7RUFDSSxlQUFBO0FBQVI7O0FBR0k7RUFDSSxlQUFBO0VBQ0EsY0FBQTtBQURSOztBQUdRO0VBQ0ksV0FBQTtBQURaOztBQU1BO0VBQ0ksc0JBQUE7RUFDQSxzQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxlQUFBO0FBSEo7O0FBS0k7RUFDSSxzQkFBQTtBQUhSOztBQU1JO0VBQ0ksMkJBQUE7RUFDQSx5QkFBQTtFQUNBLGtCQUFBO0FBSlI7O0FBUUE7RUFDSSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsbUJBQUE7RUFDQSxjQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0FBTEo7O0FBT0k7RUFDSSxtQkFBQTtFQUNBLFdBQUE7QUFMUjs7QUFTQTtFQUNJLFlBQUE7RUFDQSw2QkFBQTtFQUNBLGdDQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0FBTkoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9vcGVyYXRpb25zL3NoaWZ0LXNjaGVkdWxlci9tYW5hZ2Utc2VydmljZS9tYW5hZ2Utc2VydmljZS1sb2dzL21hbmFnZS1zZXJ2aWNlLWxvZ3MuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYmctdGhlbWUge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gICAgY29sb3I6ICNmZmY7XG59XG5cbi5jb3B5SWNvbiB7XG4gICAgaSB7XG4gICAgICAgIGZvbnQtc2l6ZTogMTVweDtcbiAgICB9XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgICAgY3Vyc29yOiBwb2ludGVyO1xuICAgICAgICBjb2xvcjogcmdiKDQ1LCAxNzUsIDIyNik7XG5cbiAgICAgICAgaSB7XG4gICAgICAgICAgICBjb2xvcjogYmx1ZTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuLnNoaWZ0VGFiIHtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgIHBhZGRpbmc6IDAuNXJlbSAwLjhyZW07XG4gICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgIG1pbi1oZWlnaHQ6IDYwcHg7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gICAgfVxuXG4gICAgJi5zZWxlY3RlZCB7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICM3MjFjMjQxNDtcbiAgICAgICAgYm9yZGVyOiAxcHggc29saWQgI2E3MzUzNTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgIH1cbn1cblxuLndlZWtidG4ge1xuICAgIHdpZHRoOiAzNnB4O1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICNhNDIxMzg7XG4gICAgaGVpZ2h0OiAzNnB4O1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBmbG9hdDogbGVmdDtcbiAgICBiYWNrZ3JvdW5kOiAjZmFhY2FjO1xuICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICB0cmFuc2l0aW9uOiBhbGwgMC4zcztcblxuICAgICY6aG92ZXIge1xuICAgICAgICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICAgICAgICBjb2xvcjogI2ZmZjtcbiAgICB9XG59XG5cbi53ZWVrSW5wdXQge1xuICAgIGhlaWdodDogMzZweDtcbiAgICBib3JkZXItdG9wOiAxcHggc29saWQgI2E0MjEzODtcbiAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2E0MjEzODtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgZmxvYXQ6IGxlZnQ7XG4gICAgcGFkZGluZzogNXB4O1xuICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xuICAgIHBhZGRpbmctbGVmdDogMTVweDtcbiAgICBwYWRkaW5nLXJpZ2h0OiAxNXB4O1xuICAgIGJhY2tncm91bmQ6ICNmZmY7XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageServiceLogsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-manage-service-logs',
templateUrl: './manage-service-logs.component.html',
styleUrls: ['./manage-service-logs.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }]; }, { selectedServiceName: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], serviceRequest: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], refreshNum: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "8/z8":
/*!***************************************************************************************************!*\
!*** ./src/app/users/pages/communication/notification/my-notification/unread/unread.component.ts ***!
\***************************************************************************************************/
/*! exports provided: UnreadComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnreadComponent", function() { return UnreadComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! file-saver */ "Iab2");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function UnreadComponent_span_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UnreadComponent_table_26_tr_8_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UnreadComponent_table_26_tr_8_Template_tr_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r6 = ctx.$implicit; const index_r7 = ctx.index; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r8.onSelectNotification(item_r6, index_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r6 = ctx.$implicit;
const index_r7 = ctx.index;
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r5.selectedIndex === index_r7 ? "active-item" : "inactive-item");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 4, item_r6.title), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r6.subTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](9, 6, item_r6.activeFrom, "dd/MM/yyyy HH:mm"));
} }
function UnreadComponent_table_26_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function UnreadComponent_table_26_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function UnreadComponent_table_26_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortUsers($event, "activeFrom"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " DATE & TIME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, UnreadComponent_table_26_tr_8_Template, 10, 9, "tr", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
function UnreadComponent_div_33_div_49_div_6_div_7_div_1_img_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 54);
} if (rf & 2) {
const option_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", option_r20.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function UnreadComponent_div_33_div_49_div_6_div_7_div_1_span_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Correct answer");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UnreadComponent_div_33_div_49_div_6_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function UnreadComponent_div_33_div_49_div_6_div_7_div_1_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const option_r20 = ctx.$implicit; return option_r20.selected = $event; })("click", function UnreadComponent_div_33_div_49_div_6_div_7_div_1_Template_input_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const option_r20 = ctx.$implicit; const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r27.setCurrentQOption(ctx_r27.key, option_r20._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, UnreadComponent_div_33_div_49_div_6_div_7_div_1_img_3_Template, 1, 1, "img", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, UnreadComponent_div_33_div_49_div_6_div_7_div_1_span_8_Template, 2, 0, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r20 = ctx.$implicit;
const ikey_r21 = ctx.$implicit;
const q_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", option_r20.selected)("disabled", ctx_r19.currentQAnswered || q_r15.qnsAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate1"]("for", "option_", ikey_r21, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r20.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r20.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r20.correctAns && q_r15.qnsAnswered);
} }
function UnreadComponent_div_33_div_49_div_6_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, UnreadComponent_div_33_div_49_div_6_div_7_div_1_Template, 9, 6, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
const q_r15 = ctx_r29.$implicit;
const index_r16 = ctx_r29.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", q_r15.options)("ngForOf", index_r16);
} }
function UnreadComponent_div_33_div_49_div_6_i_9_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UnreadComponent_div_33_div_49_div_6_i_9_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r32); const star_r30 = ctx.$implicit; const q_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return !(ctx_r31.currentQAnswered || q_r15.qnsAnswered) ? ctx_r31.makeActive(star_r30) : null; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UnreadComponent_div_33_div_49_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "strong", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "span", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, UnreadComponent_div_33_div_49_div_6_div_7_Template, 2, 2, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, UnreadComponent_div_33_div_49_div_6_i_9_Template, 1, 0, "i", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const q_r15 = ctx.$implicit;
const index_r16 = ctx.index;
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", index_r16 + 1, ". ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", q_r15.type == 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r14.starCount);
} }
function UnreadComponent_div_33_div_49_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, UnreadComponent_div_33_div_49_div_6_Template, 10, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r13.moduleDetail == null ? null : ctx_r13.moduleDetail.moduleName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r13.moduleDetail == null ? null : ctx_r13.moduleDetail.questions);
} }
function UnreadComponent_div_33_Template(rf, ctx) { if (rf & 1) {
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "NOTIFICATION DETAIL");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](12, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "small", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "p", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](20, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Effective From");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](28, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, "Effective Till");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](35, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "Main Category");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46, "Sub Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](49, UnreadComponent_div_33_div_49_Template, 7, 2, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UnreadComponent_div_33_Template_button_click_52_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r35); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r34.downloadAttachmentOfNOtification(ctx_r34.notificationViewData.notificationAttachment); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, " Click to download attachment ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "button", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UnreadComponent_div_33_Template_button_click_55_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r35); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r36.onAcknowlege(ctx_r36.notificationViewData._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56, " Click to Acknowledge ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](12, 9, ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.activeTo, "short"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.subTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.description, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](28, 12, ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.effectiveFrom), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](35, 14, ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.effectiveTo), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.subCategory == null ? null : ctx_r2.notificationViewData.subCategory.categoryId == null ? null : ctx_r2.notificationViewData.subCategory.categoryId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.subCategory == null ? null : ctx_r2.notificationViewData.subCategory.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.moduleId);
} }
function UnreadComponent_ng_template_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "NOTIFICATION DETAIL");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "No Data Availabale");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
class UnreadComponent {
constructor(notificationService, toastService, storageService, formBuilder) {
this.notificationService = notificationService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.isTableLoading = true;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'activeFrom',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
// this.usersPTable.sort = { key: column, order: direction as any };
this.usersPTable.sortWith = field;
this.usersPTable.sortBy = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
onSelectNotification(item, index) {
this.selectedIndex = index;
this.notificationViewData = item;
if (item === null || item === void 0 ? void 0 : item.moduleId)
this.getModuleQuestions(item);
}
onAcknowlege(id) {
const sub = this.notificationService
.getAcknowledgeNotification(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
this.loadUsers();
this.toastService.success((res === null || res === void 0 ? void 0 : res.data) || (res === null || res === void 0 ? void 0 : res.message), '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}, (err) => {
this.toastService.error("Already acknowledged to this notification", '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
getModuleQuestions(item) {
const payloadData = {
moduleType: "notification",
notificationId: item._id,
moduleId: item.moduleId,
trackQns: true
};
const sub = this.notificationService
.getModuleQuestions(payloadData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
this.moduleDetail = res.data.data;
}, (err) => {
this.moduleDetail = null;
});
}
loadUsers() {
const _a = this.usersPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.notificationService
.getUnreadNofications(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { data, count } = response.data;
const unread = response.data.filter((data) => {
return !(data === null || data === void 0 ? void 0 : data.isAcknowledged);
});
this.usersPTable.data = unread;
this.usersPTable.total = unread.length;
this.isTableLoading = false;
this.onSelectNotification(unread[0], 0);
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
onexportNotification(id) {
const event = new Date();
const data = {
date: event.toString(),
notificationId: id,
};
const sub = this.notificationService
.exportNotification(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => sub.unsubscribe()))
.subscribe(({ data }) => {
window.open(`${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl}/${data.csvLink}`);
// this.loadUsers();
});
}
downloadAttachmentOfNOtification(attachment) {
var lastFileName = attachment.split('/');
lastFileName = lastFileName[lastFileName.length - 1];
this.notificationService.getMimeType({
fileName: lastFileName
}).subscribe((data) => {
this.notificationService.downloadUrl(attachment).subscribe((content) => {
file_saver__WEBPACK_IMPORTED_MODULE_6__["saveAs"](new Blob([content], { type: data.type }), attachment);
});
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
UnreadComponent.ɵfac = function UnreadComponent_Factory(t) { return new (t || UnreadComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_7__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__["FormBuilder"])); };
UnreadComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: UnreadComponent, selectors: [["app-unread"]], viewQuery: function UnreadComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 36, vars: 18, consts: [[1, "row"], [1, "col-md-6", "col-sm-6"], [1, "card", "mb-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], ["class", "col-md-6 col-sm-6", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], [3, "ngClass", "click", 4, "ngFor", "ngForOf"], [3, "ngClass", "click"], [1, "panel-body"], [1, "row", "m-0"], [1, "col-md-12"], [1, "d-block"], [1, "ng-binding"], [1, "col-md-6"], [1, "form-group"], [1, "form-text-conteol", "ng-binding"], [1, "form-text-control", "ng-binding"], ["class", "row m-0 mb-15", 4, "ngIf"], [1, "btn", "btn-add", 3, "click"], [1, "btn", "btn-submit", 3, "click"], [1, "row", "m-0", "mb-15"], [1, "panel", "panel-default"], [1, "panel-heading"], ["class", "row m-0", 4, "ngFor", "ngForOf"], [1, "d-flex"], ["ng-bind-html", "q.question | unsafe"], ["class", "custom-control custom-radio", 4, "ngIf"], ["class", "fa fa-2x", "style", "margin: 0 0.5rem", 3, "click", 4, "ngFor", "ngForOf"], [1, "custom-control", "custom-radio"], ["class", "checkbox checkbox-danger", 4, "ngFor", "ngForOf"], [1, "checkbox", "checkbox-danger"], ["type", "checkbox", "type", "checkbox", 1, "custom-control-input", 3, "ngModel", "disabled", "ngModelChange", "click"], [1, "card", 3, "for"], ["alt", "", "srcset", "", "style", "width: 100%", 3, "src", 4, "ngIf"], [1, "card-container"], ["alt", "", "srcset", "", 2, "width", "100%", 3, "src"], [1, "fa", "fa-2x", 2, "margin", "0 0.5rem", 3, "click"], [1, "card", "my-3", "w-100"]], template: function UnreadComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "NOTIFICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function UnreadComponent_Template_select_change_11_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function UnreadComponent_Template_select_ngModelChange_11_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, UnreadComponent_span_23_Template, 2, 0, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function UnreadComponent_Template_input_keyup_24_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function UnreadComponent_Template_input_ngModelChange_24_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, UnreadComponent_table_26_Template, 9, 1, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "app-skliton-loading-table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "ngb-pagination", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function UnreadComponent_Template_ngb_pagination_pageChange_32_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function UnreadComponent_Template_ngb_pagination_pageChange_32_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](33, UnreadComponent_div_33_Template, 57, 16, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](34, UnreadComponent_ng_template_34_Template, 9, 0, "ng-template", null, 21, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 2)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total Records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.notificationViewData)("ngIfElse", _r3);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_10__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["CheckboxControlValueAccessor"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["UpperCasePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["DatePipe"]], styles: [".form-text-conteol[_ngcontent-%COMP%] {\n border: 1px solid #efefef;\n padding: 6px 8px;\n}\n\n.inactive-item[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.active-item[_ngcontent-%COMP%] {\n background-color: #e0e0e0;\n cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ub3RpZmljYXRpb24vbXktbm90aWZpY2F0aW9uL3VucmVhZC91bnJlYWQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxlQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtFQUNBLGVBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbm90aWZpY2F0aW9uL215LW5vdGlmaWNhdGlvbi91bnJlYWQvdW5yZWFkLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZvcm0tdGV4dC1jb250ZW9se1xuICBib3JkZXI6IDFweCBzb2xpZCAjZWZlZmVmO1xuICBwYWRkaW5nOiA2cHggOHB4O1xufVxuXG4uaW5hY3RpdmUtaXRlbXtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uYWN0aXZlLWl0ZW17XG4gIGJhY2tncm91bmQtY29sb3I6ICNlMGUwZTA7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UnreadComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-unread',
templateUrl: './unread.component.html',
styleUrls: ['./unread.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_7__["NotificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_10__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "8SeZ":
/*!********************************************!*\
!*** ./src/app/users/guards/auth.guard.ts ***!
\********************************************/
/*! exports provided: AuthGuard */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthGuard", function() { return AuthGuard; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../service/auth/auth.service */ "PxIJ");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "tyNb");
class AuthGuard {
constructor(authService, router) {
this.authService = authService;
this.router = router;
}
canActivate() {
return this.authService.isAuthenticated.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["filter"])((val) => val !== null), // Filter out initial Behaviour subject value
Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["take"])(1), // Otherwise the Observable doesn't complete!
Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((isAuthenticated) => {
if (isAuthenticated) {
return true;
}
else {
const company = localStorage.getItem('flexiurlCompanyName');
if (company) {
this.router.navigate(['/users/login', company]);
}
else {
this.router.navigateByUrl('/');
}
return false;
}
}));
}
}
AuthGuard.ɵfac = function AuthGuard_Factory(t) { return new (t || AuthGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"])); };
AuthGuard.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: AuthGuard, factory: AuthGuard.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AuthGuard, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }]; }, null); })();
/***/ }),
/***/ "8X4c":
/*!*************************************************!*\
!*** ./src/app/core/service/storage.service.ts ***!
\*************************************************/
/*! exports provided: StorageService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StorageService", function() { return StorageService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
class StorageService {
constructor() { }
addItem(item) {
localStorage.setItem(`flexi${item.key}`, item.value);
}
getByKey(key) {
return localStorage.getItem(`flexi${key}`);
}
removeByKey(key) {
localStorage.removeItem(`flexi${key}`);
}
clearAll() {
for (const key in localStorage) {
if (localStorage.hasOwnProperty(key)) {
const element = localStorage[key];
if (key.startsWith('flexi')) {
localStorage.removeItem(key);
}
}
}
}
}
StorageService.ɵfac = function StorageService_Factory(t) { return new (t || StorageService)(); };
StorageService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: StorageService, factory: StorageService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StorageService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "8kvr":
/*!****************************************************************!*\
!*** ./src/app/shared/skliton-loading-table/loop.directive.ts ***!
\****************************************************************/
/*! exports provided: TableTdLoop */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableTdLoop", function() { return TableTdLoop; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
class TableTdLoop {
constructor(viewContainer, templateRef) {
this.viewContainer = viewContainer;
this.templateRef = templateRef;
}
set render(times) {
this.viewContainer.clear();
for (let i = 0; i < times; i++) {
this.viewContainer.createEmbeddedView(this.templateRef, {});
}
}
}
TableTdLoop.ɵfac = function TableTdLoop_Factory(t) { return new (t || TableTdLoop)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
TableTdLoop.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: TableTdLoop, selectors: [["", "tdloop", ""]], inputs: { render: ["tdloop", "render"] } });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TableTdLoop, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
args: [{
selector: '[tdloop]',
}]
}], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, { render: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
args: ['tdloop']
}] }); })();
/***/ }),
/***/ "8yhi":
/*!******************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-news/news-reported-comments/news-reported-comments.component.ts ***!
\******************************************************************************************************************/
/*! exports provided: NewsReportedCommentsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NewsReportedCommentsComponent", function() { return NewsReportedCommentsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function NewsReportedCommentsComponent_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function NewsReportedCommentsComponent_table_24_tr_16_ul_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const user_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 1, user_r6 == null ? null : user_r6.reportedAt));
} }
function NewsReportedCommentsComponent_table_24_tr_16_ul_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const user_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](user_r7 == null ? null : user_r7.name);
} }
function NewsReportedCommentsComponent_table_24_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, NewsReportedCommentsComponent_table_24_tr_16_ul_8_Template, 4, 3, "ul", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, NewsReportedCommentsComponent_table_24_tr_16_ul_10_Template, 3, 1, "ul", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NewsReportedCommentsComponent_table_24_tr_16_Template_input_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r3 = ctx.$implicit; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r8.changeCommentStatus(item_r3._id, item_r3.status); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3 == null ? null : item_r3.comment, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3 == null ? null : item_r3.postTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.channelName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r3.reportList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r3.reportList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r3.status === 1 ? "checked" : "");
} }
function NewsReportedCommentsComponent_table_24_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedCommentsComponent_table_24_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "comment"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Comments ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedCommentsComponent_table_24_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortUsers($event, "postTitle"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Post Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedCommentsComponent_table_24_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.onSortUsers($event, "channelName"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Channel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedCommentsComponent_table_24_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.onSortUsers($event, "reportedAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Reported Date / Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsReportedCommentsComponent_table_24_Template_th_sort_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " USER NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, NewsReportedCommentsComponent_table_24_tr_16_Template, 15, 6, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class NewsReportedCommentsComponent {
constructor(boardService, toastService, storageService, formBuilder) {
this.boardService = boardService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.isTableLoading = true;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
// this.usersPTable.sort = { key: column, order: direction as any };
this.usersPTable.sortWith = !!direction ? field : 'createdAt';
this.usersPTable.sortBy = !!direction ? direction : 'desc';
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
changeCommentStatus(id, status) {
const data = {
status: status === 1 ? 2 : 1,
postId: id,
};
const subscribe = this.boardService
.updateReportedComment(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success(response === null || response === void 0 ? void 0 : response.data);
this.loadUsers();
}, (error) => {
var _a;
this.toastService.success((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.message);
});
}
loadUsers() {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.boardService
.getAllReportedComments(rest, 'news')
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsFiltered, data } = response;
this.usersPTable.data = data;
this.usersPTable.total = recordsFiltered;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
NewsReportedCommentsComponent.ɵfac = function NewsReportedCommentsComponent_Factory(t) { return new (t || NewsReportedCommentsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"])); };
NewsReportedCommentsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: NewsReportedCommentsComponent, selectors: [["app-news-reported-comments"]], viewQuery: function NewsReportedCommentsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 31, vars: 16, consts: [[1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "switch"], ["type", "checkbox", 3, "checked", "click"], [1, "slider", "round"]], template: function NewsReportedCommentsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "COMMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function NewsReportedCommentsComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function NewsReportedCommentsComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, NewsReportedCommentsComponent_span_21_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function NewsReportedCommentsComponent_Template_input_search_22_listener() { return ctx.loadUsers(); })("keyup", function NewsReportedCommentsComponent_Template_input_keyup_22_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function NewsReportedCommentsComponent_Template_input_ngModelChange_22_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, NewsReportedCommentsComponent_table_24_Template, 17, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function NewsReportedCommentsComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function NewsReportedCommentsComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 6)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\n\ninput[type=radio][_ngcontent-%COMP%] {\n margin-right: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtbmV3cy9uZXdzLXJlcG9ydGVkLWNvbW1lbnRzL25ld3MtcmVwb3J0ZWQtY29tbWVudHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0E7RUFDRSxxQkFBQTtFQUNBLFVBQUE7QUFBRjs7QUFHQTtFQUNFLGtCQUFBO0FBQUYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jb21tdW5pY2F0aW9uL21hbmFnZS1uZXdzL25ld3MtcmVwb3J0ZWQtY29tbWVudHMvbmV3cy1yZXBvcnRlZC1jb21tZW50cy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxudWx7XG4gIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbiAgcGFkZGluZzogMDtcbn1cblxuaW5wdXRbdHlwZT1cInJhZGlvXCJdIHtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xufVxuXG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NewsReportedCommentsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-news-reported-comments',
templateUrl: './news-reported-comments.component.html',
styleUrls: ['./news-reported-comments.component.scss']
}]
}], function () { return [{ type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "90oE":
/*!*******************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-planner/dashboard/dashboard.component.ts ***!
\*******************************************************************************************/
/*! exports provided: CustomAdapter, CustomDateParserFormatter, DashboardComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomAdapter", function() { return CustomAdapter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDateParserFormatter", function() { return CustomDateParserFormatter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DashboardComponent", function() { return DashboardComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var date_fns__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! date-fns */ "b/SL");
/* harmony import */ var angular_calendar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! angular-calendar */ "kRoH");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/human-resources/leave-planner.service */ "Z/ig");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function DashboardComponent_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div");
} }
function DashboardComponent_ng_template_21_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Select Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ng-select", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function DashboardComponent_ng_template_21_Template_ng_select_change_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.getOpsTeam(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Select Ops Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "ng-select", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r2.opsList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r2.dashParaForm.controls.opsGrpSelect.value == null ? null : ctx_r2.dashParaForm.controls.opsGrpSelect.value.team)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
} }
function DashboardComponent_ng_template_23_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Please wait data is loading... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DashboardComponent_ng_template_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ng-select", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, DashboardComponent_ng_template_23_div_5_Template, 2, 0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r4.buList)("loader", ctx_r4.buLoader)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.buLoader);
} }
function DashboardComponent_span_48_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 39);
} }
function DashboardComponent_ng_container_49_button_22_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_container_49_button_22_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](51); return ctx_r23.open(_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Manage Leave ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DashboardComponent_ng_container_49_ng_container_68_p_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const leave_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", leave_r25.name, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](leave_r25.total);
} }
function DashboardComponent_ng_container_49_ng_container_68_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DashboardComponent_ng_container_49_ng_container_68_p_1_Template, 5, 2, "p", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const leave_r25 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", leave_r25.total != 0);
} }
function DashboardComponent_ng_container_49_p_70_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Leave for this day ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DashboardComponent_ng_container_49_tr_98_li_20_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_container_49_tr_98_li_20_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r33); const history_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](57); return ctx_r31.gotToSwapLog(history_r28.swapLogId, _r13); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Swap Logs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DashboardComponent_ng_container_49_tr_98_Template(rf, ctx) { if (rf & 1) {
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, DashboardComponent_ng_container_49_tr_98_li_20_Template, 4, 0, "li", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "button", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_container_49_tr_98_Template_button_click_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r35); const history_r28 = ctx.$implicit; const i_r29 = ctx.index; const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r34.viewUser(history_r28, i_r29); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const history_r28 = ctx.$implicit;
const i_r29 = ctx.index;
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selected", i_r29 === ctx_r21.highlightIndex);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](history_r28.userId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](history_r28.userId.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](7, 11, history_r28.startDate, "dd-MM-yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](10, 14, history_r28.endDate, "dd-MM-yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](history_r28.totalDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](history_r28.leaveTypeId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", history_r28.submittedFrom == 1 ? "Apply Leave" : history_r28.submittedFrom == 2 ? "Leave Request" : history_r28.submittedFrom == 3 ? "Allocated" : "Bid Successful", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", history_r28.status == 0 ? "Pending Approval" : history_r28.status == 1 ? "Approved" : history_r28.status == 2 ? "Rejected" : history_r28.status == 5 ? "Cancelled" : history_r28.status == 3 ? "-" : "-", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (history_r28 == null ? null : history_r28.swapLogId.length) > 0);
} }
function DashboardComponent_ng_container_49_div_99_ng_container_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", (ctx_r36.viewUserDet == null ? null : ctx_r36.viewUserDet.userId == null ? null : ctx_r36.viewUserDet.userId.profilePicture) ? ctx_r36.viewUserDet == null ? null : ctx_r36.viewUserDet.userId == null ? null : ctx_r36.viewUserDet.userId.profilePicture : "./assets/images/user1.png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("alt", (ctx_r36.viewUserDet == null ? null : ctx_r36.viewUserDet.userId == null ? null : ctx_r36.viewUserDet.userId.profilePicture) ? "Profile Picture" : "No Profile Picture");
} }
function DashboardComponent_ng_container_49_div_99_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " USER DETAILS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, DashboardComponent_ng_container_49_div_99_ng_container_9_Template, 2, 2, "ng-container", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "h5", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "ul", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "li", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Phone");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "li", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "li", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "li", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " LEAVE DETAILS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "Leave Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "Leave Start Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](49, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](50, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, "Leave End Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](55, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r22.viewUserDet);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.userId == null ? null : ctx_r22.viewUserDet.userId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.userId == null ? null : ctx_r22.viewUserDet.userId.staffId, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.userId == null ? null : ctx_r22.viewUserDet.userId.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.userId == null ? null : ctx_r22.viewUserDet.userId.email);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.userId == null ? null : ctx_r22.viewUserDet.userId.parentBussinessUnitId == null ? null : ctx_r22.viewUserDet.userId.parentBussinessUnitId.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r22.dashParaForm.controls.buOps.value == "true" ? (ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.opsGroup == null ? null : ctx_r22.viewUserDet.opsGroup.name) + " > " + (ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.opsTeam) : (ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.opsGroupName) + " > " + (ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.opsTeam), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.leaveTypeId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](50, 10, ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.startDate, "dd-MM-yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](55, 13, ctx_r22.viewUserDet == null ? null : ctx_r22.viewUserDet.endDate, "dd-MM-yyyy"));
} }
function DashboardComponent_ng_container_49_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "LEAVE OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("viewDateChange", function DashboardComponent_ng_container_49_Template_div_viewDateChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r37.viewDate = $event; })("viewDateChange", function DashboardComponent_ng_container_49_Template_div_viewDateChange_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r39.closeOpenMonthViewDay(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Previous ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("viewDateChange", function DashboardComponent_ng_container_49_Template_div_viewDateChange_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r40.viewDate = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Today ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("viewDateChange", function DashboardComponent_ng_container_49_Template_div_viewDateChange_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r41.viewDate = $event; })("viewDateChange", function DashboardComponent_ng_container_49_Template_div_viewDateChange_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r42.closeOpenMonthViewDay(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "h5", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](19, "calendarDate");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "mwl-calendar-month-view", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("dayClicked", function DashboardComponent_ng_container_49_Template_mwl_calendar_month_view_dayClicked_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r43.dayClicked($event.day); return ctx_r43.selectedD($event.day); })("beforeViewRender", function DashboardComponent_ng_container_49_Template_mwl_calendar_month_view_beforeViewRender_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r44.beforeMonthViewRender($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, DashboardComponent_ng_container_49_button_22_Template, 2, 0, "button", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_container_49_Template_button_click_23_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](53); return ctx_r45.open(_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, " Export Leave ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "LEAVE DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "h6", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Selected Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "p", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "span", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "h6", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, "Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "p", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, " Quota ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](49, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "span", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "p", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, " Used Quota ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "span", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "p", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, " Balance Quota ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](59, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "span", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "h6", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66, "Leaves");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](68, DashboardComponent_ng_container_49_ng_container_68_Template, 2, 1, "ng-container", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](70, DashboardComponent_ng_container_49_p_70_Template, 2, 0, "p", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "table", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "thead", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](78, "STAFF NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](82, "LEAVE START");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](84, "LEAVE END");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](85, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](86, "DAYS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](87, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](88, "LEAVE TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](90, "LEAVE PLAN STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](91, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](92, "LEAVE APPLICATION STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](93, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](94, "SWAP LOG");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](96, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](97, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](98, DashboardComponent_ng_container_49_tr_98_Template, 24, 17, "tr", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](99, DashboardComponent_ng_container_49_div_99_Template, 56, 16, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("view", ctx_r6.view)("viewDate", ctx_r6.viewDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("viewDate", ctx_r6.viewDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("view", ctx_r6.view)("viewDate", ctx_r6.viewDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind3"](19, 18, ctx_r6.viewDate, ctx_r6.view + "ViewTitle", ctx_r6.locale), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("viewDate", ctx_r6.viewDate)("events", ctx_r6.events)("refresh", ctx_r6.refresh);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.viewAccess || ctx_r6.manageAccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r6.selectedDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r6.quotaData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r6.quotaUsedData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r6.quotaBalanceData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r6.leaveTypeData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.noLeave.length == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r6.leavesCal);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.viewUserDet);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "img", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h5", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "p", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "ul", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "li", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Phone");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "li", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "li", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "li", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", (ctx_r50.opsStaffSelect == null ? null : ctx_r50.opsStaffSelect.profilePicture) ? ctx_r50.validateURLImage(ctx_r50.opsStaffSelect.profilePicture) : "./assets/images/user1.png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r50.opsStaffSelect == null ? null : ctx_r50.opsStaffSelect.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r50.opsStaffSelect == null ? null : ctx_r50.opsStaffSelect.staffId, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r50.opsStaffSelect == null ? null : ctx_r50.opsStaffSelect.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r50.opsStaffSelect == null ? null : ctx_r50.opsStaffSelect.email);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r50.opsStaffSelect.parentBussinessUnitId == null ? null : ctx_r50.opsStaffSelect.parentBussinessUnitId.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", ctx_r50.opsStaffSelect.opsGroupName, " ", " > " + ctx_r50.opsStaffSelect.opsTeam, " ");
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Annual Leave: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Quota ", ctx_r51.annualLeave == null ? null : ctx_r51.annualLeave.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Balance ", ctx_r51.annualLeave == null ? null : ctx_r51.annualLeave.planQuota, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Taken ", (ctx_r51.annualLeave == null ? null : ctx_r51.annualLeave.total) - (ctx_r51.annualLeave == null ? null : ctx_r51.annualLeave.quota), "");
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function DashboardComponent_ng_template_50_div_0_ng_container_14_ngx_skeleton_loader_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 119);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_th_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_1_Template(rf, ctx) { if (rf & 1) {
const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r65); const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](55); return ctx_r64.changeAllocateModal(_r11, data_r57); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Change ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", data_r57.canChangePlanDisable);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_2_Template(rf, ctx) { if (rf & 1) {
const _r69 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r69); const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](55); return ctx_r68.changeAllocateModal(_r11, data_r57); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Change ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", data_r57.canChangeActualDisable);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_3_Template(rf, ctx) { if (rf & 1) {
const _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r74); const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r72.remove(data_r57); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", data_r57.canCancelPlanDisable);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_4_Template(rf, ctx) { if (rf & 1) {
const _r78 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r78); const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r76.remove(data_r57); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", data_r57.canCancelActualDisable);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_1_Template, 2, 1, "button", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_2_Template, 2, 1, "button", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_3_Template, 2, 1, "button", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_button_4_Template, 2, 1, "button", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", data_r57.canChangePlanShow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", data_r57.canChangeActualShow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", data_r57.canCancelPlanShow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", data_r57.canCancelActualShow);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_div_1_Template, 5, 4, "div", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r58.setup);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_td_15_Template, 2, 1, "td", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r57 = ctx.$implicit;
const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 7, data_r57.startDate, "dd-MM-yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 10, data_r57.endDate, "dd-MM-yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r57.totalDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r57.leaveTypeId == null ? null : data_r57.leaveTypeId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", data_r57.submittedFrom == 1 ? "Apply Leave" : data_r57.submittedFrom == 2 ? "Leave Request" : data_r57.submittedFrom == 3 ? "Allocated" : "Bid Successful", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", data_r57.status == 0 ? "Pending Approval" : data_r57.status == 1 ? "Approved" : data_r57.status == 2 ? "Rejected" : data_r57.status == 5 ? "Cancelled" : data_r57.status == 3 ? "-" : "-", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r56.viewAccess);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "LEAVE START");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "LEAVE END");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "DAYS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "LEAVE TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "LEAVE PLAN STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "LEAVE APPLICATION STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_th_15_Template, 2, 0, "th", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_tr_17_Template, 16, 13, "tr", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r53.viewAccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r53.leaveHistory);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_div_6_div_4_Template(rf, ctx) { if (rf & 1) {
const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_div_6_div_4_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r90); const staff_r87 = ctx.$implicit; const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](6); return ctx_r89.handleLeaveType(staff_r87); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const staff_r87 = ctx.$implicit;
const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r86.i);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", ctx_r86.i);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", ctx_r86.i);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", staff_r87.leaveTypeName, " ");
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "legend", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Select Leave Type ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_div_6_div_4_Template, 4, 4, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r81.staffLeaveType);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_fieldset_7_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "fieldset", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "legend", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Is Leave Swappable? ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "input", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_fieldset_7_Template_input_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r92); const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r91.swapRadio = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "input", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_fieldset_7_Template_input_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r92); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r93.swapRadio = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1)("ngModel", ctx_r82.swapRadio);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2)("ngModel", ctx_r82.swapRadio);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_span_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 39);
} }
const _c1 = function (a0) { return { year: a0, month: 1, day: 1 }; };
const _c2 = function () { return { standalone: true }; };
function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template(rf, ctx) { if (rf & 1) {
const _r95 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h6", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Allocation of Leave ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "fieldset", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_div_6_Template, 5, 1, "div", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_fieldset_7_Template, 13, 4, "fieldset", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "From");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "input", 131, 132);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template_input_ngModelChange_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r94 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r94.fromDate = $event; })("click", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template_input_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](13); return _r83.toggle(); })("ngModelChange", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template_input_ngModelChange_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r97.onFromDateChange($event); })("dateSelect", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template_input_dateSelect_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r98.getStartDate($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "input", 134, 135);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template_input_ngModelChange_17_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r99.toDate = $event; })("click", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template_input_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const _r84 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](18); return _r84.toggle(); })("dateSelect", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template_input_dateSelect_17_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r101.getEndDate($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "button", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template_button_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r102.handleAllocate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " Allocate ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_span_22_Template, 1, 0, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r54.staffLeaveType);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r54.isLeaveSwap);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r54.fromDate)("minDate", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](10, _c1, ctx_r54.yearRadio))("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](12, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r54.toDate)("minDate", ctx_r54.allocationMinDate)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](13, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r54.allocateLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r54.allocateLoader);
} }
function DashboardComponent_ng_template_50_div_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h6", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "USER DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, DashboardComponent_ng_template_50_div_0_ng_container_14_div_5_Template, 30, 8, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "h6", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Leave History");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, DashboardComponent_ng_template_50_div_0_ng_container_14_div_10_Template, 9, 3, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, DashboardComponent_ng_template_50_div_0_ng_container_14_ngx_skeleton_loader_12_Template, 1, 2, "ngx-skeleton-loader", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, DashboardComponent_ng_template_50_div_0_ng_container_14_table_13_Template, 18, 2, "table", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, DashboardComponent_ng_template_50_div_0_ng_container_14_div_14_Template, 23, 14, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r49.opsStaffSelect);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r49.annualLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r49.leaveHistoryLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r49.leaveHistoryLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r49.viewAccess);
} }
function DashboardComponent_ng_template_50_div_0_Template(rf, ctx) { if (rf & 1) {
const _r105 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Manage Leave");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_0_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r105); const modal_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return modal_r46.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "span", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Select Staff ID / Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "ng-select", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function DashboardComponent_ng_template_50_div_0_Template_ng_select_change_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r105); const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r106.handleStaffSelect(); })("ngModelChange", function DashboardComponent_ng_template_50_div_0_Template_ng_select_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r105); const ctx_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r107.opsStaffSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_0_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r105); const ctx_r108 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r108.seeLogsButton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " See Logs ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, DashboardComponent_ng_template_50_div_0_ng_container_14_Template, 15, 5, "ng-container", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_0_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r105); const modal_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return modal_r46.close("Save click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r47.staffList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r47.opsStaffSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](9, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r47.opsStaffSelect == null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r47.opsStaffSelect);
} }
const _c3 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px 0", display: "block" }; };
function DashboardComponent_ng_template_50_div_1_ngx_skeleton_loader_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 119);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c3));
} }
function DashboardComponent_ng_template_50_div_1_table_23_tr_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](13, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const logs_r114 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 9, logs_r114.createdAt, "dd-MM-yyyy hh:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", logs_r114.isChangeDate ? logs_r114.changedBy == null ? null : logs_r114.changedBy.changeBy == null ? null : logs_r114.changedBy.changeBy.name : logs_r114.status == 5 ? logs_r114.cancelledBy == null ? null : logs_r114.cancelledBy.name : logs_r114.status == 3 ? logs_r114.allocatedBy == null ? null : logs_r114.allocatedBy.name : "-", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate3"](" Leave ", logs_r114.status == 0 ? "Pending" : logs_r114.status == 1 ? "Approved to" : logs_r114.status == 2 ? "Rejected to" : logs_r114.status == 3 && !logs_r114.isChangeDate ? "Allocated to" : logs_r114.isChangeDate ? "Changed to" : logs_r114.status == 5 ? "Cancelled to" : "Balloted", " ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 12, logs_r114.startDate, "dd-MM-yyyy"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](9, 15, logs_r114.endDate, "dd-MM-yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate3"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 18, logs_r114.changedBy == null ? null : logs_r114.changedBy.oldData == null ? null : logs_r114.changedBy.oldData.startDate, "dd-MM-yyyy"), " ", logs_r114.changedBy ? "To" : "--", " ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](13, 21, logs_r114.changedBy == null ? null : logs_r114.changedBy.oldData == null ? null : logs_r114.changedBy.oldData.endDate, "dd-MM-yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", logs_r114.status == 0 ? "Pending" : logs_r114.status == 1 ? "Approved" : logs_r114.status == 2 ? "Rejected" : logs_r114.status == 3 && !logs_r114.isChangeDate ? "Allocated" : logs_r114.isChangeDate ? "Changed" : logs_r114.status == 5 ? "Cancelled" : "Balloted", " ");
} }
function DashboardComponent_ng_template_50_div_1_table_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Action By User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Old Leave Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Leave Status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, DashboardComponent_ng_template_50_div_1_table_23_tr_14_Template, 16, 24, "tr", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r112 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r112.seeLogsData);
} }
function DashboardComponent_ng_template_50_div_1_Template(rf, ctx) { if (rf & 1) {
const _r116 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_50_div_1_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r116); const ctx_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r115.showLog = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "select", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Leave Planner Logs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, DashboardComponent_ng_template_50_div_1_ngx_skeleton_loader_22_Template, 1, 2, "ngx-skeleton-loader", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, DashboardComponent_ng_template_50_div_1_table_23_Template, 15, 1, "table", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "p", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "b", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r48.logLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r48.logLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r48.seeLogsData == null ? null : ctx_r48.seeLogsData.length);
} }
function DashboardComponent_ng_template_50_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, DashboardComponent_ng_template_50_div_0_Template, 18, 10, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DashboardComponent_ng_template_50_div_1_Template, 30, 8, "div", 96);
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r8.showLog);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r8.showLog);
} }
function DashboardComponent_ng_template_52_span_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 39);
} }
function DashboardComponent_ng_template_52_Template(rf, ctx) { if (rf & 1) {
const _r123 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "EXPORT LEAVES");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_52_Template_button_click_3_listener() { const modal_r117 = ctx.$implicit; return modal_r117.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Select Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "ng-select", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function DashboardComponent_ng_template_52_Template_ng_select_change_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r123); const ctx_r122 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r122.getExportTeam(); })("ngModelChange", function DashboardComponent_ng_template_52_Template_ng_select_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r123); const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r124.opsGrpSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Select Ops Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "ng-select", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_52_Template_ng_select_ngModelChange_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r123); const ctx_r125 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r125.opsTeamSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Select start date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "input", 165, 166);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_52_Template_input_ngModelChange_21_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r123); const ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r126.fromDateExport = $event; })("click", function DashboardComponent_ng_template_52_Template_input_click_21_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r123); const _r118 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](22); return _r118.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Select end date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "input", 165, 167);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_52_Template_input_ngModelChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r123); const ctx_r128 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r128.toDateExport = $event; })("click", function DashboardComponent_ng_template_52_Template_input_click_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r123); const _r119 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](28); return _r119.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "button", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_52_Template_button_click_30_listener() { const modal_r117 = ctx.$implicit; return modal_r117.close("Closed"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "button", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_52_Template_button_click_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r123); const ctx_r131 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r131.exportButton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " Export ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, DashboardComponent_ng_template_52_span_34_Template, 1, 0, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r10.opsList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r10.opsGrpSelect);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r10.teamListExport)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r10.opsTeamSelect);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r10.fromDateExport)("minDate", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](18, _c1, ctx_r10.yearRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r10.toDateExport)("minDate", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](20, _c1, ctx_r10.yearRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r10.exportLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.exportLoader);
} }
function DashboardComponent_ng_template_54_Template(rf, ctx) { if (rf & 1) {
const _r137 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 168);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Change Leave");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_54_Template_button_click_3_listener() { const modal_r132 = ctx.$implicit; return modal_r132.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "h4", 169);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "span", 170);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " to ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "span", 171);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "span", 172);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 173);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Period From");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "input", 174, 175);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_54_Template_input_ngModelChange_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const ctx_r136 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r136.changefromDate = $event; })("click", function DashboardComponent_ng_template_54_Template_input_click_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const _r133 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](25); return _r133.toggle(); })("dateSelect", function DashboardComponent_ng_template_54_Template_input_dateSelect_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const ctx_r139 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r139.getChangeStartDate($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Period To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "input", 176, 177);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_54_Template_input_ngModelChange_31_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const ctx_r140 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r140.changetoDate = $event; })("click", function DashboardComponent_ng_template_54_Template_input_click_31_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const _r134 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](32); return _r134.toggle(); })("dateSelect", function DashboardComponent_ng_template_54_Template_input_dateSelect_31_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const ctx_r142 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r142.getChangeEndDate($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, " Is Leave Swappable? ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "input", 178);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_54_Template_input_ngModelChange_39_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const ctx_r143 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r143.swapRadioChange = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "label", 179);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "input", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DashboardComponent_ng_template_54_Template_input_ngModelChange_43_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const ctx_r144 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r144.swapRadioChange = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "label", 179);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "button", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_54_Template_button_click_47_listener() { const modal_r132 = ctx.$implicit; return modal_r132.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "button", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_54_Template_button_click_49_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r137); const modal_r132 = ctx.$implicit; const ctx_r146 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r146.changeAllocate(); return modal_r132.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, " Change ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r12.displayDate, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r12.displayDateEnd, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r12.submittedFromValue == 1 ? "Apply Leave" : ctx_r12.submittedFromValue == 2 ? "Leave Request" : ctx_r12.submittedFromValue == 3 ? "Allocated" : "Bid Successful", "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r12.swapValue == 1 ? "Swappable" : ctx_r12.swapValue == 2 ? "Not Swappable" : ctx_r12.swapValue == 3 ? "" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r12.changefromDate)("minDate", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](10, _c1, ctx_r12.yearRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r12.changetoDate)("minDate", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](12, _c1, ctx_r12.yearRadio));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r12.swapRadioChange);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r12.swapRadioChange);
} }
function DashboardComponent_ng_template_56_tr_37_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](11, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](13, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const Swaplogs_r149 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 11, Swaplogs_r149.createdAt, "dd-MM-yyyy HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", Swaplogs_r149.fromUserId.name, " - ", Swaplogs_r149.fromUserId.staffId, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", Swaplogs_r149.toUserId.name, " - ", Swaplogs_r149.toUserId.staffId, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate5"](" ", Swaplogs_r149.fromUserId.name, " wants to swap ( ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](10, 14, Swaplogs_r149.from.startDate, "dd-MM-yyyy"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](11, 17, Swaplogs_r149.from.endDate, "dd-MM-yyyy"), " ) leave dates with ( ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 20, Swaplogs_r149.to.startDate, "dd-MM-yyyy"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](13, 23, Swaplogs_r149.to.endDate, "dd-MM-yyyy"), " ) leave dates . ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", Swaplogs_r149.status == 0 ? "Pending" : Swaplogs_r149.status == 1 ? "Accepted" : Swaplogs_r149.status == 2 ? "Rejected" : "", " ");
} }
function DashboardComponent_ng_template_56_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_ng_template_56_Template_button_click_3_listener() { const modal_r147 = ctx.$implicit; return modal_r147.close("Save click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "select", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "option", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Swap Logs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "table", 183);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "thead", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "Request Submitted date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Sender");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Receiver");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "th", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Swap Status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](37, DashboardComponent_ng_template_56_tr_37_Template, 16, 26, "tr", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Total Records");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "ngb-pagination");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r14.swapLogData);
} }
class CustomAdapter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateAdapter"] {
constructor() {
super(...arguments);
this.DELIMITER = '-';
}
fromModel(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1], 10),
year: parseInt(date[2], 10),
};
}
return null;
}
toModel(date) {
return date
? date.day + this.DELIMITER + date.month + this.DELIMITER + date.year
: null;
}
}
CustomAdapter.ɵfac = function CustomAdapter_Factory(t) { return ɵCustomAdapter_BaseFactory(t || CustomAdapter); };
CustomAdapter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: CustomAdapter, factory: CustomAdapter.ɵfac });
const ɵCustomAdapter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CustomAdapter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CustomAdapter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
}], null, null); })();
/**
* This Service handles how the date is rendered and parsed from keyboard i.e. in the bound input field.
*/
class CustomDateParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"] {
constructor() {
super(...arguments);
this.DELIMITER = '/';
}
parse(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1], 10),
year: parseInt(date[2], 10),
};
}
return null;
}
format(date) {
return date
? date.day + this.DELIMITER + date.month + this.DELIMITER + date.year
: '';
}
}
CustomDateParserFormatter.ɵfac = function CustomDateParserFormatter_Factory(t) { return ɵCustomDateParserFormatter_BaseFactory(t || CustomDateParserFormatter); };
CustomDateParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: CustomDateParserFormatter, factory: CustomDateParserFormatter.ɵfac });
const ɵCustomDateParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CustomDateParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CustomDateParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
}], null, null); })();
class DashboardComponent {
constructor(modalService, usersService, leaveService, ngbCalendar, dateAdapter, toastrService, roleService, companyService, fb, setupService) {
this.modalService = modalService;
this.usersService = usersService;
this.leaveService = leaveService;
this.ngbCalendar = ngbCalendar;
this.dateAdapter = dateAdapter;
this.toastrService = toastrService;
this.roleService = roleService;
this.companyService = companyService;
this.fb = fb;
this.setupService = setupService;
this.isLeaveSwap = false;
this.appliedLeaveType = [];
this.selectedDays = [];
this.noLeave = [];
this.viewAccess = false;
this.manageAccess = false;
this.viewclicked = false;
this.imageURL = src_environments_environment__WEBPACK_IMPORTED_MODULE_9__["environment"].imageUrl;
this.yearRadio = new Date().getFullYear();
this.yearArr = [
parseInt(moment__WEBPACK_IMPORTED_MODULE_4__().subtract(1, 'year').format('YYYY')),
parseInt(moment__WEBPACK_IMPORTED_MODULE_4__().format('YYYY')),
parseInt(moment__WEBPACK_IMPORTED_MODULE_4__().add(1, 'year').format('YYYY')),
];
this.swapRadio = 3;
this.swapRadioChange = '3';
this.refresh = new rxjs__WEBPACK_IMPORTED_MODULE_7__["Subject"]();
this.allocationMinDate = { year: new Date().getFullYear(), month: 1, day: 1 };
this.view = angular_calendar__WEBPACK_IMPORTED_MODULE_3__["CalendarView"].Month;
this.viewDate = new Date(this.yearRadio, 0, 1);
this.viewDate2 = moment__WEBPACK_IMPORTED_MODULE_4__().add(1, 'month').toDate();
this.locale = 'en';
this.events = [];
this.logsPTable = {
sortBy: 'desc',
sortWith: 'createdBy',
data: [],
page: 1,
limit: 10,
};
this.dashParaForm = this.fb.group({
buOps: new _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormControl"]('true', [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["Validators"].required]),
buSelect: new _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormControl"](null, [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["Validators"].required]),
opsGrpSelect: new _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormControl"](null),
opsTeamSelect: new _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormControl"](null),
yearRadio: new _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormControl"](this.yearArr[1], [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["Validators"].required]),
});
// switch validators on BU and Ops Grp Selection
this.dashParaForm.controls.buOps.valueChanges.subscribe(() => this.switchValidators());
this.timeZone = moment__WEBPACK_IMPORTED_MODULE_4__().format('[GMT]Z');
}
get today() {
return this.dateAdapter.toModel(this.ngbCalendar.getToday());
}
ngOnInit() {
this.getBuShift();
const loggedInUserID = localStorage.getItem("loggedInUserId");
const bu = this.setupService
.getOPSGroupAndTeam(loggedInUserID)
//.pipe(concatMap((res: { data }) => this.getLoggedUser(res)))
.subscribe((data) => {
this.leaveData = data['data']['leavedata'];
this.opsList = data['data']['opsids'];
});
const privileges = this.roleService
.getNewUserPrivilege()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
privileges.unsubscribe();
}))
.subscribe((res) => {
this.manageAccess = res.privileges.hasOwnProperty('leavePlannerDashboardManage')
? res.privileges.leavePlannerDashboardManage
: false;
});
this.getSetup();
}
setYearRadio(event) {
this.yearRadio = event;
}
getLoggedUser(data) {
this.loggedInUser = data.data;
return this.leaveService.getSwapOpsGroup(data.data._id);
}
switchValidators() {
this.viewclicked = false;
this.viewUserDet = null;
this.leaveTypeData = [];
if (this.dashParaForm.controls.buOps.value == 'true') {
this.dashParaForm.controls.buSelect.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_8__["Validators"].required);
this.dashParaForm.controls.opsGrpSelect.clearValidators();
}
else {
this.dashParaForm.controls.opsGrpSelect.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_8__["Validators"].required);
this.dashParaForm.controls.buSelect.clearValidators();
}
this.dashParaForm.get('buSelect').updateValueAndValidity();
this.dashParaForm.get('opsGrpSelect').updateValueAndValidity();
}
getSetup() {
this.companyService.getcompanySetting().subscribe((res) => {
this.setup = res.data.opsGroup;
});
}
getOpsTeam() {
this.dashParaForm.patchValue({
opsTeamSelect: null,
});
this.opsTeam = this.dashParaForm.controls.opsGrpSelect.value.team;
}
getExportTeam() {
this.opsTeamSelect = null; //reset team after grp change
this.teamListExport = this.opsGrpSelect.team;
}
viewLeaveAndUser() {
if (this.dashParaForm.controls.buOps.value == 'true') {
this.calendarData = null;
this.viewclicked = true;
}
this.firstActive = true;
this.selectedDays = this.appliedLeaveType = [];
const date = '01-01-' + this.yearRadio;
this.selectedDate = moment__WEBPACK_IMPORTED_MODULE_4__(date, 'MM-DD-YYYY').format('DD MMM, yyyy');
this.viewDate = moment__WEBPACK_IMPORTED_MODULE_4__(date, 'MM-DD-YYYY').toDate();
this.leaveCalenderLoader = true;
this.refresh.next();
this.getLeaveAndUser(moment__WEBPACK_IMPORTED_MODULE_4__(date, 'MM-DD-YYYY').toDate());
this.allocationMinDate = { year: this.yearRadio, month: 1, day: 1 };
}
getstaffUsers() {
var _a, _b;
const form = this.dashParaForm.controls;
let staffObj = {
isOpsGroup: form.buOps.value == 'false',
};
staffObj.isOpsGroup
? (staffObj['opsGroupId'] = (_a = form.opsGrpSelect.value) === null || _a === void 0 ? void 0 : _a.id)
: (staffObj['buId'] = (_b = form.buSelect.value) === null || _b === void 0 ? void 0 : _b._id);
const staffUsers = this.leaveService
.getBallotUser(staffObj)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
staffUsers.unsubscribe();
}))
.subscribe((res) => {
this.staffList = res.success ? res.data : [];
this.staffList = this.staffList.map((i) => { i.staffName = `${i.name} ( ${i.staffId} )`; return i; });
});
}
//getting staffLeaveType and LeaveHistory in 1 api
handleStaffSelect() {
var _a;
this.annualLeave = null;
const staffObj = {
userId: (_a = this.opsStaffSelect) === null || _a === void 0 ? void 0 : _a._id,
year: this.yearRadio,
};
this.leaveHistory = [];
this.leaveHistoryLoader = true;
const leaveHistoryObj = this.leaveService
.newLeavePlanner(staffObj)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.leaveHistoryLoader = false;
leaveHistoryObj.unsubscribe();
}))
.subscribe((res) => {
var _a, _b, _c;
if (res.success) {
this.staffLeaveType = res.leaveTypeData
? res.leaveTypeData.filter((val) => {
return val.isAdminAllocate;
})
: [];
this.isLeaveSwap = false;
this.leaveGroupId = (_a = res.leaveGroupId) !== null && _a !== void 0 ? _a : '';
//get annual leave: Quota balance & taken
this.annualLeave = res.leaveTypeData.find((val) => val.leaveTypeName == 'Annual Leave');
if (res.leaveApplied.length) {
//sort by date ascending
this.leaveHistory = res.leaveApplied.sort((a, b) => parseInt(moment__WEBPACK_IMPORTED_MODULE_4__(a.startDate).format('X')) -
parseInt(moment__WEBPACK_IMPORTED_MODULE_4__(b.startDate).format('X')));
}
//change and cancel leave history btn
if ((_b = res.leaveApplied) === null || _b === void 0 ? void 0 : _b.length) {
(_c = this.leaveHistory) === null || _c === void 0 ? void 0 : _c.forEach((v) => {
const start = v.startDate;
var lastweek = moment__WEBPACK_IMPORTED_MODULE_4__(start).subtract(this.setup.adminCutOffTime, 'w');
if (v.status != 1 &&
v.status != 5 &&
this.setup.isAdminCanChangePlan) {
v['canChangePlanShow'] = true;
if (moment__WEBPACK_IMPORTED_MODULE_4__().isAfter(lastweek))
v['canChangePlanDisable'] = true;
else
v['canChangePlanDisable'] = false;
}
else
v['canChangePlanShow'] = false;
if (v.status == 1 &&
v.status != 5 &&
this.setup.isadminCanChange) {
v['canChangeActualShow'] = true;
if (moment__WEBPACK_IMPORTED_MODULE_4__().isAfter(lastweek))
v['canChangeActualDisable'] = true;
else
v['canChangeActualDisable'] = false;
}
else
v['canChangeActualShow'] = false;
//canCancel
if (v.status != 1 &&
v.status != 5 &&
this.setup.isAdminCanCancelPlan) {
v['canCancelPlanShow'] = true;
if (moment__WEBPACK_IMPORTED_MODULE_4__().isAfter(lastweek))
v['canCancelPlanDisable'] = true;
else
v['canCancelPlanDisable'] = false;
}
else
v['canCancelPlanShow'] = false;
if (v.status == 1 &&
v.status != 5 &&
this.setup.isAdminCanCancel) {
v['canCancelActualShow'] = true;
if (moment__WEBPACK_IMPORTED_MODULE_4__().isAfter(lastweek))
v['canCancelActualDisable'] = true;
else
v['canCancelActualDisable'] = false;
}
else
v['canCancelActualShow'] = false;
});
}
}
else
this.toastrService.error('Somthing went wrong', 'Failed');
}, () => {
this.annualLeave = null;
});
}
handleLeaveType(staffLeavetype) {
this.leaveTypeId = staffLeavetype.leaveTypeId;
this.leaveTypeGroupId = staffLeavetype._id;
this.isLeaveSwap =
staffLeavetype.leaveTypeName === 'Annual Leave' ? true : false;
}
getBuShift() {
this.buLoader = true;
const buplan = this.setupService
.getBusinessUnitBUShift()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.buLoader = false;
buplan.unsubscribe();
}))
.subscribe((res) => {
this.buList = res.data.planBussinessUnitId;
});
}
open(content) {
this.modalService
.open(content, { windowClass: 'modal-ui-fix right-align', backdrop: 'static', animation: false, })
.result.then(() => this.resetManageLeave(), () => this.resetManageLeave());
}
resetManageLeave() {
this.leaveHistory = this.staffLeaveType = [];
this.opsStaffSelect = null;
this.resetAllocateLeave();
this.resetExport();
}
resetAllocateLeave() {
this.fromDate = null;
this.toDate = null;
this.swapRadio = 3; //reset to swap value 3 means nor Yes neither No
this.isLeaveSwap = false; //reset swap hide
this.showLog = false; //reset log hidden
}
getLeavecalender() {
// get ops calendar data for pre color dates on basis of quota
if (this.dashParaForm.controls.buOps.value == 'false') {
const payload = {
opsGroupId: this.dashParaForm.get('opsGrpSelect').value.id,
year: this.yearRadio,
};
if (this.dashParaForm.get('opsTeamSelect').value) {
payload['opsTeamId'] = this.dashParaForm.get('opsTeamSelect').value.id;
}
this.viewDate = moment__WEBPACK_IMPORTED_MODULE_4__()
.set({ y: this.yearRadio, month: 0, date: 1 })
.toDate();
this.events$ = this.leaveService.getcalenderforyear(payload);
this.leaveCalenderLoader = true;
this.events$.subscribe((res) => {
if (res.data != null) {
this.calendarData = res.data[this.yearRadio.toString()];
}
else {
this.toastrService.info('Ops Group/Team quota is not added.', 'Note');
this.calendarData = null;
}
this.viewclicked = true;
}, () => { }, () => (this.leaveCalenderLoader = false));
}
}
leavePlannerUserByDate() {
if (this.dashParaForm.controls.buOps.value == 'false') {
this.selectedDate = moment__WEBPACK_IMPORTED_MODULE_4__()
.set({ y: this.yearRadio, month: 0, date: 1 })
.format('DD MMM, YYYY');
const tz = 'GMT+0530';
let usersData = {
opsGroupId: this.dashParaForm.controls.opsGrpSelect.value.id,
year: this.yearRadio,
date: '01-01-' + this.yearRadio,
timeZone: tz,
};
if (this.dashParaForm.controls.opsTeamSelect.value)
usersData['opsTeamId'] =
this.dashParaForm.controls.opsTeamSelect.value.id;
this.leaveService
.leavePlanner(usersData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])((val) => {
const la = val['leaveApplied'].filter((lv) => {
if (lv.status != 2) {
return true;
}
});
val['leaveApplied'] = la;
return val;
}))
.subscribe((res) => {
var _a;
this.quotaData = (_a = res['data'].date) === null || _a === void 0 ? void 0 : _a.value;
this.quotaUsedData = res['data'].totalLeaveApplied;
this.quotaBalanceData = res['data'].balance;
});
}
}
handleAllocate() {
var _a;
const overLapObj = {
leaveTypeId: this.leaveTypeId,
leaveGroupId: this.leaveGroupId,
userId: (_a = this.opsStaffSelect) === null || _a === void 0 ? void 0 : _a._id,
businessUnitId: '',
timeZone: '+0530',
};
const allocateObj = Object.assign(Object.assign({}, new Object(overLapObj)), { startDate: this.startDate, endDate: this.endDate, type: this.leaveTypeId, isSwappable: this.swapRadio, remark: '', submittedFrom: 3, startAt: 'AM', endAt: 'AM' });
const swd = moment__WEBPACK_IMPORTED_MODULE_4__().add(this.setup.adminCutOffTime, 'weeks');
this.allocateLoader = true;
if (moment__WEBPACK_IMPORTED_MODULE_4__(this.fromDate, 'DD-MM-YYYY').isAfter(swd)) {
overLapObj['startDate'] = this.startDate + ' 00:00:00 GMT+0530';
overLapObj['endDate'] = this.endDate + ' 00:00:00 GMT+0530';
const checkOverlap = this.leaveService
.checkOverLap(overLapObj)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
checkOverlap.unsubscribe();
}))
.subscribe((res) => {
if (res.success) {
sweetalert2__WEBPACK_IMPORTED_MODULE_5___default.a.fire({
title: 'Are you sure?',
text: 'You want to Allocte this?',
icon: 'question',
showCancelButton: true,
cancelButtonText: 'No',
confirmButtonText: 'Yes',
}).then((result) => {
if (result.isConfirmed) {
if (this.dashParaForm.controls.buOps.value == 'false') {
//buOps false is Ops Group is selected
allocateObj['opsGroupId'] =
this.dashParaForm.controls.opsGrpSelect.value.id;
if (this.dashParaForm.controls.opsTeamSelect.value) {
allocateObj['opsTeamId'] =
this.dashParaForm.controls.opsTeamSelect.value.id;
}
}
const allocate = this.leaveService
.getLeaveAllocate(allocateObj)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.allocateLoader = false;
allocate.unsubscribe();
}))
.subscribe((res) => {
if (res.success) {
this.toastrService.success(res.message, 'Successful');
this.handleStaffSelect();
this.getLeaveAndUser(this.clickedDate); //refresh Leave and User on dashboard
this.seeLogsButton();
this.resetAllocateLeave(); //allocate form reset
}
else {
res.message
? this.toastrService.warning(res.message, 'Warning')
: this.toastrService.error('Somthing went wrong', 'Failed');
}
});
}
else {
this.allocateLoader = false;
}
});
}
else {
this.allocateLoader = false;
res.message
? this.toastrService.warning(res.message, 'Warning')
: this.toastrService.error('Somthing went wrong', 'Failed');
}
});
}
else {
this.allocateLoader = false;
this.toastrService.warning('Cut-off time is set for allocation of leaves, please check in the company setup', 'Warning');
}
}
getLeaveAndUser(date) {
var _a, _b;
const leaveTypePara = {
date: moment__WEBPACK_IMPORTED_MODULE_4__(date).format('MM-DD-yyyy'),
timeZone: 'GMT+0530',
year: this.yearRadio
};
this.leavesCal = this.leaveTypeData = this.appliedLeaveType = [];
if (this.dashParaForm.controls.buOps.value == 'true') {
leaveTypePara['buId'] = this.dashParaForm.controls.buSelect.value._id;
this.buLeaveType(leaveTypePara);
this.buUser(leaveTypePara);
}
else {
leaveTypePara['opsGroupId'] = (_a = this.dashParaForm.controls.opsGrpSelect.value) === null || _a === void 0 ? void 0 : _a.id;
if (this.dashParaForm.controls.opsTeamSelect.value) {
leaveTypePara['opsTeamId'] = (_b = this.dashParaForm.controls.opsTeamSelect.value) === null || _b === void 0 ? void 0 : _b.id;
}
this.opsLeaveType(leaveTypePara);
this.opsUser(leaveTypePara);
}
}
dayClicked({ date, events }) {
if (Object(date_fns__WEBPACK_IMPORTED_MODULE_2__["isSameMonth"])(date, this.viewDate)) {
if ((Object(date_fns__WEBPACK_IMPORTED_MODULE_2__["isSameDay"])(this.viewDate, date) && this.activeDayIsOpen === true) ||
events.length === 0)
this.activeDayIsOpen = false;
else
this.activeDayIsOpen = true;
this.viewDate = date;
}
this.clickedDate = date;
this.viewUserDet = null; //reset user view
this.selectedDate = moment__WEBPACK_IMPORTED_MODULE_4__(date).format('DD MMM, yyyy');
this.getLeaveAndUser(this.clickedDate);
}
opsLeaveType(data) {
this.leaveService
.getLeaveType(data)
.subscribe((res) => {
this.leaveTypeData = res.leaveType;
this.noLeave = [];
this.noLeave = this.leaveTypeData.filter((nl) => {
if (nl.total != 0)
return true;
});
});
}
buLeaveType(data) {
this.events$ = this.leaveService.getLeaveTypeBu(data);
this.events$.subscribe((res) => {
this.leaveTypeData = res.leaveType;
this.noLeave = [];
this.noLeave = this.leaveTypeData.filter((nl) => {
if (nl.total != 0)
return true;
});
});
}
opsUser(data) {
this.leaveService
.leavePlanner(data)
.subscribe((res) => {
var _a;
this.leavesCal = res.leaveApplied;
this.quotaData = (_a = res.data.date) === null || _a === void 0 ? void 0 : _a.value;
this.quotaUsedData = res.data.totalLeaveApplied;
this.quotaBalanceData = res.data.balance;
this.leavesCal.forEach((item) => {
this.appliedLeaveType.push(item.leaveTypeId);
});
});
}
buUser(data) {
this.leaveService
.leavePlannerBu(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["map"])((val) => {
const la = val['leaveApplied'].filter((lv) => {
if (lv.status != 2)
return true;
});
val['leaveApplied'] = la;
return val;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.leaveCalenderLoader = false;
}))
.subscribe((res) => {
this.appliedLeaveType = [];
this.leaves = res;
this.leavesCal = res.leaveApplied;
this.leavesCal.forEach((item) => {
this.appliedLeaveType.push(item.leaveTypeId);
});
this.leaveTypeData = this.appliedLeaveCount(this.appliedLeaveType);
this.noLeave = [];
this.noLeave = this.leaveTypeData.filter((nl) => {
if (nl.total != 0)
return true;
});
});
}
selectedD(day) {
this.selectedDays = [];
if (day.date.getTime() !=
moment__WEBPACK_IMPORTED_MODULE_4__()
.set({
year: this.yearRadio,
month: 0,
date: 1,
h: 0,
minute: 0,
second: 0,
})
.toDate()
.getTime()) {
this.selectedDays = [];
}
this.selectedMonthViewDay = day;
delete this.selectedMonthViewDay.cssClass;
this.selectedMonthViewDay.cssClass = 'cal-day-selected';
this.selectedDays.push(this.selectedMonthViewDay);
day.cssClass = 'cal-day-selected';
this.selectedMonthViewDay = day;
this.firstActive = false;
}
beforeMonthViewRender(renderEvent) {
renderEvent.body.forEach((day) => {
const dayOfMonth = moment__WEBPACK_IMPORTED_MODULE_4__(day.date).format('DD-MM-YYYY');
if (this.calendarData) {
const dv = this.calendarData.findIndex((v) => {
if (dayOfMonth == v.date)
return true;
});
if (dv != -1) {
if (this.calendarData[dv].value > 0 &&
this.calendarData[dv].value != 0) {
day.cssClass = 'cal-balance-notzero';
}
else if (this.calendarData[dv].value < 1) {
day.cssClass = 'cal-balance-zero';
}
}
}
if (dayOfMonth ==
moment__WEBPACK_IMPORTED_MODULE_4__()
.set({ year: this.yearRadio, month: 0, date: 1 })
.format('DD-MM-YYYY') &&
this.firstActive)
this.selectedDays.push(day);
if (this.selectedDays.some((selectedDay) => selectedDay.date.getTime() == day.date.getTime()))
day.cssClass = 'cal-day-selected';
});
}
appliedLeaveCount(arr) {
let objArr = [
...arr.map((item) => {
return item.name;
}),
];
const uniqueArr = [...new Set(objArr)];
const arrObj3 = [];
for (let index = 0; index < uniqueArr.length; index++) {
const count = this.getOccurence(objArr, uniqueArr[index]);
arrObj3.push({ name: uniqueArr[index], total: count });
}
return arrObj3;
}
getOccurence(arr, val) {
return arr.filter((value) => value === val).length;
}
closeOpenMonthViewDay() {
this.activeDayIsOpen = false;
}
viewUser(history, index) {
this.viewUserDet = history;
this.highlightIndex = index;
}
remove(item) {
const cancelObj = { leaveAppliedId: item._id };
sweetalert2__WEBPACK_IMPORTED_MODULE_5___default.a.fire({
title: 'Are you sure?',
text: 'You want to cancel this leave',
icon: 'question',
showCancelButton: true,
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.leaveService.cancel(cancelObj).subscribe((res) => {
this.toastrService.success('Leave successfully cancelled');
this.handleStaffSelect();
});
}
});
}
changeAllocateModal(changeModal, item) {
this.changeAllocateData = item;
this.displayDate = moment__WEBPACK_IMPORTED_MODULE_4__(item === null || item === void 0 ? void 0 : item.startDate).format('DD-MM-YYYY');
this.displayDateEnd = moment__WEBPACK_IMPORTED_MODULE_4__(item === null || item === void 0 ? void 0 : item.endDate).format('DD-MM-YYYY');
this.swapValue = item.isSwappable;
this.swapRadioChange = item.isSwappable.toString();
this.submittedFromValue = item.submittedFrom;
this.changefromDate = moment__WEBPACK_IMPORTED_MODULE_4__(item.startDate).format('D-M-YYYY');
this.changetoDate = moment__WEBPACK_IMPORTED_MODULE_4__(item.endDate).format('D-M-YYYY');
this.modalService.open(changeModal);
}
changeAllocate() {
const changeObj = {
userId: this.changeAllocateData.userId,
startDate: moment__WEBPACK_IMPORTED_MODULE_4__(this.changefromDate, 'D-M-YYYY').format('MM-DD-YYYY'),
endDate: moment__WEBPACK_IMPORTED_MODULE_4__(this.changetoDate, 'D-M-YYYY').format('MM-DD-YYYY'),
remark: 'medical',
timeZone: this.timeZone,
leaveAppliedId: this.changeAllocateData._id,
startAt: 'AM',
endAt: 'AM',
isSwappable: this.swapRadioChange,
};
this.leaveService
.change(changeObj)
.subscribe((res) => {
if (res.success) {
this.toastrService.success(res.message, 'Successful');
this.resetChange();
this.handleStaffSelect();
}
else {
res.message
? this.toastrService.error(res.message, 'Failed')
: this.toastrService.error('Something went wrong', 'Failed');
}
});
}
resetChange() {
this.changefromDate = this.changetoDate = null;
this.swapRadioChange = '3';
}
exportButton() {
const exportObj = {
startDate: moment__WEBPACK_IMPORTED_MODULE_4__(this.fromDateExport, 'D-M-YYYY').format('MM-DD-YYYY'),
endDate: moment__WEBPACK_IMPORTED_MODULE_4__(this.toDateExport, 'D-M-YYYY').format('MM-DD-YYYY'),
timeZone: this.timeZone,
};
if (this.opsGrpSelect && !this.opsTeamSelect) {
exportObj['opsGroupId'] = this.opsGrpSelect.id;
exportObj['opsTeamId'] = null;
}
else if (this.opsGrpSelect && this.opsTeamSelect) {
exportObj['opsGroupId'] = this.opsGrpSelect.id;
exportObj['opsTeamId'] = this.opsTeamSelect.id;
}
this.exportLoader = true;
this.leaveService.export(exportObj).subscribe((res) => {
this.exportLoader = false;
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + encodeURI(res['csv']);
a.target = '_blank';
a.download = "Leaves.csv";
document.body.appendChild(a);
a.click();
this.toastrService.success("success", "Leaves exported succesfully");
}, () => {
this.exportLoader = false;
this.toastrService.error('Something went wrong', 'Failed');
});
}
resetExport() {
this.opsGrpSelect = this.opsTeamSelect = null;
this.fromDateExport = this.toDateExport = null;
}
seeLogsButton() {
this.showLog = true;
const logObj = {
userId: this.opsStaffSelect._id,
year: this.yearRadio,
};
this.logLoader = true;
const log = this.leaveService
.seeLogs(logObj)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
this.logLoader = false;
log.unsubscribe();
}))
.subscribe((res) => {
this.seeLogsData = res.data;
this.logsPTable.page = 1;
});
}
gotToSwapLog(data, swapLogsModal) {
this.swapLogData = data;
this.modalService.open(swapLogsModal);
}
getStartDate(e) {
this.startDate = this.momFormat(e);
this.allocationMinDate = { year: e.year, month: e.month, day: e.day };
}
getEndDate(e) {
this.endDate = this.momFormat(e);
}
onFromDateChange(event) {
this.toDate = null;
if (!event) {
this.allocationMinDate = { year: this.yearRadio, month: 1, day: 1 };
}
}
//common method from above methods MM-DD-YYYY date format
momFormat(e) {
return moment__WEBPACK_IMPORTED_MODULE_4__()
.set({ year: e.year, month: e.month - 1, date: e.day })
.format('MM-DD-YYYY');
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.imageURL}${pathName}`;
}
if (str.startsWith('/'))
return this.imageURL + str;
return `${this.imageURL}/${str}`;
}
}
DashboardComponent.ɵfac = function DashboardComponent_Factory(t) { return new (t || DashboardComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_11__["LeavePlannerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbCalendar"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateAdapter"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_12__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_13__["RoleService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_14__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_15__["SetupService"])); };
DashboardComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DashboardComponent, selectors: [["app-dashboard"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateAdapter"], useClass: CustomAdapter },
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
])], decls: 58, vars: 13, consts: [[1, "row"], [1, "col-md-12"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [3, "formGroup"], [1, "form-group"], [1, "col-form-label", "col-sm-2", "pt-0", "font-weight-500"], [1, "col-sm-10"], [1, "form-check", "form-check-inline"], ["type", "radio", "name", "buOps", "value", "true", "formControlName", "buOps", 1, "form-check-input"], [1, "form-check-label"], ["type", "radio", "name", "buOps", "value", "false", "formControlName", "buOps", 1, "form-check-input"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["thenBlock", ""], ["elseBlock", ""], ["type", "radio", "name", "yearRadio", "formControlName", "yearRadio", 1, "form-check-input", 3, "value", "click"], [1, "card-footer"], [1, "d-flex"], ["type", "button", 1, "btn", "btn-danger"], ["type", "submit", 1, "btn", "btn-success", "ml-2", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], [4, "ngIf"], ["content", ""], ["export", ""], ["changeModal", ""], ["swapLogsModal", ""], [1, "form-row"], [1, "form-group", "col-md-6"], ["bindLabel", "name", "placeholder", "Select Ops Group", "appendTo", "body", "formControlName", "opsGrpSelect", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "change"], [1, "form-group", "col-md-4"], [1, "font-weight-500"], ["bindLabel", "name", "placeholder", "Select Ops Team", "appendTo", "body", "formControlName", "opsTeamSelect", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "form-group", "row"], [1, "col-sm-2", "col-form-label", "font-weight-500"], [1, "col-8"], ["bindLabel", "orgName", "placeholder", "Select/Search Business Unit", "appendTo", "body", "formControlName", "buSelect", 1, "custom", "margin", 3, "items", "loader", "multiple", "searchable", "clearable", "closeOnSelect"], ["class", "text-danger", 4, "ngIf"], [1, "text-danger"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-1"], [1, "card", "my-2"], [1, "col-md-3"], [1, "btn-group"], ["mwlCalendarPreviousView", "", 1, "btn", "btn-info", 3, "view", "viewDate", "viewDateChange"], ["mwlCalendarToday", "", 1, "btn", "btn-outline-info", 3, "viewDate", "viewDateChange"], ["mwlCalendarNextView", "", 1, "btn", "btn-info", 3, "view", "viewDate", "viewDateChange"], [1, "col-md-6", "text-center"], [1, "bg-theme", "p-2", "text-center"], [3, "viewDate", "events", "refresh", "dayClicked", "beforeViewRender"], [1, "col-md-3", "text-right"], ["type", "button", "class", "btn btn-info", 3, "click", 4, "ngIf"], [1, "btn", "btn-info", "ml-1", 3, "click"], [1, "col-2"], [1, "card", "h-100", "border-theme"], [1, "card-title", "mb-3"], [1, "d-flex", "text-center"], [1, "text-center", "m-0"], [1, "h4"], [1, "col-4", "pl-md-0"], [1, "d-flex", "text-center", "justify-content-between"], [1, "text-center", "m-0", "text-muted"], [1, "text-dark", "h4"], [1, "col-6", "pl-md-0"], [4, "ngFor", "ngForOf"], ["class", "text-center m-0 text-muted", 4, "ngIf"], [1, "row", "mt-3"], [1, "col-md-8"], [1, "table-responsive", "border-theme", "rounded"], [1, "table", "table-hover", "m-0"], [1, "theme"], ["scope", "col"], [3, "selected", 4, "ngFor", "ngForOf"], ["class", "col-md-4 pl-md-0", 4, "ngIf"], ["type", "button", 1, "btn", "btn-info", 3, "click"], ["class", "text-center my-0 mx-2 text-muted", 4, "ngIf"], [1, "text-center", "my-0", "mx-2", "text-muted"], ["class", "tooltips", 3, "click", 4, "ngIf"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "tooltips", 3, "click"], [1, "fa", "fa-info-circle", 2, "float", "right", "margin-top", "5px"], [1, "tooltiptext"], [1, "col-md-4", "pl-md-0"], [1, "d-flex", "flex-column"], [1, "card-header", "bg-theme", "text-center"], [1, "d-flex", "align-items-center"], [1, "profile-img", "mr-3"], [1, "flex-fill"], [1, "card-title", "m-0"], [1, "card-text"], [1, "my-4"], [1, "list-group"], [1, "list-group-item", "d-flex", "justify-content-between", "align-items-center"], [1, "ml-3", "text-right"], [1, "card", "mt-3"], ["type", "text", 1, "form-control", 3, "value"], ["crossorigin", "anonymous", 1, "img-fluid", "rounded", 3, "src", "alt"], ["class", "modal-body", 4, "ngIf"], [1, "bg-theme", "modal-header", "rounded-0"], [1, "modal-title", "text-uppercase"], ["type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "mb-2"], ["bindLabel", "staffName", "placeholder", "Select Staff", "appendTo", "body", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["type", "submit", 1, "btn", "btn-success", "mb-2", 3, "disabled", "click"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-outline-dark", 3, "click"], [1, "card", "my-3"], ["class", "d-flex flex-column", 4, "ngIf"], [1, "card-header", "bg-theme", "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-uppercase"], [1, "card-body", "table-responsive", "rounded", "p-0"], ["count", "5", 3, "theme", 4, "ngIf"], ["class", "table table-hover m-0", 4, "ngIf"], ["class", "card my-3", 4, "ngIf"], [1, "align-items-center", "d-flex", "mb-3"], [1, "mr-3", "profile-img", "rounded"], ["crossorigin", "anonymous", 1, "img-fluid", "rounded", 3, "src"], [1, "ml-2"], ["count", "5", 3, "theme"], [1, "fontBold"], ["scope", "col", 4, "ngIf"], ["class", "d-flex", 4, "ngIf"], ["class", "btn btn-info btn-sm", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-danger btn-sm ml-1", 3, "disabled", "click", 4, "ngIf"], [1, "btn", "btn-info", "btn-sm", 3, "disabled", "click"], [1, "btn", "btn-danger", "btn-sm", "ml-1", 3, "disabled", "click"], [1, "card-header", "bg-theme", "text-uppercase"], ["class", "row", 4, "ngIf"], ["class", "form-group", 4, "ngIf"], ["for", "inputEmail4", 1, "font-weight-500"], ["type", "text", "id", "inputEmail4", "placeholder", "Select date", "ngbDatepicker", "", "autocomplete", "off", 1, "form-control", 3, "ngModel", "minDate", "ngModelOptions", "ngModelChange", "click", "dateSelect"], ["d", "ngbDatepicker"], ["for", "inputPassword4", 1, "font-weight-500"], ["type", "text", "id", "inputPassword4", "placeholder", "Select date", "ngbDatepicker", "", "autocomplete", "off", 1, "form-control", 3, "ngModel", "minDate", "ngModelOptions", "ngModelChange", "click", "dateSelect"], ["d1", "ngbDatepicker"], ["type", "button", 1, "btn", "btn-success", 3, "disabled", "click"], [1, "col-form-label", "col-sm-4", "pt-0", "font-weight-500"], [1, "col-sm-8"], ["class", "form-check", 4, "ngFor", "ngForOf"], [1, "form-check"], ["type", "radio", "name", "gridRadios", 1, "form-check-input", 3, "value", "id", "change"], [1, "form-check-label", 3, "for"], [1, "row", "d-flex"], ["type", "radio", "name", "gridRadios1", "id", "swap1", 1, "form-check-input", 3, "value", "ngModel", "ngModelChange"], ["for", "swap1", 1, "form-check-label"], ["type", "radio", "name", "gridRadios1", "id", "swap2", 1, "form-check-input", 3, "value", "ngModel", "ngModelChange"], ["for", "swap2", 1, "form-check-label"], [1, "d-flex", "justify-content-end", "mt-2", "mb-3"], ["type", "button", 1, "btn", "btn-success", 3, "click"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["name", "searchTerm", "placeholder", "Search here", "type", "search", 1, "form-control", "ml-2"], [1, "card-body", "table-responsive", "p-0"], ["class", "table table-striped", 4, "ngIf"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [1, "table", "table-striped"], ["bindLabel", "name", "placeholder", "Select Ops Group", "appendTo", "body", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select Ops Team", "appendTo", "body", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], [1, "col-md-6"], [1, "input-group"], ["type", "text", "id", "inputEmail4", "placeholder", "Select date", "ngbDatepicker", "", "autocomplete", "off", 1, "form-control", 3, "ngModel", "minDate", "ngModelChange", "click"], ["d5", "ngbDatepicker"], ["d6", "ngbDatepicker"], [1, "modal-header", "bg-theme"], [1, "h4", "d-flex", "justify-content-between"], [1, "text-muted"], [1, "badge", "badge-pill", "badge-primary", "mr-2", "py-2"], [1, "badge", "badge-pill", "badge-warning", "py-2"], [1, "row", "mb-3"], ["type", "text", "id", "inputEmail4", "placeholder", "Select date", "ngbDatepicker", "", "autocomplete", "off", 1, "form-control", 3, "ngModel", "minDate", "ngModelChange", "click", "dateSelect"], ["d3", "ngbDatepicker"], ["type", "text", "id", "inputPassword4", "placeholder", "Select date", "ngbDatepicker", "", "autocomplete", "off", 1, "form-control", 3, "ngModel", "minDate", "ngModelChange", "click", "dateSelect"], ["d4", "ngbDatepicker"], ["type", "radio", "name", "gridRadios1", "value", "1", 1, "form-check-input", 3, "ngModel", "ngModelChange"], ["for", "gridRadios1", 1, "form-check-label"], ["type", "radio", "name", "gridRadios1", "value", "2", 1, "form-check-input", 3, "ngModel", "ngModelChange"], [1, "card", "my-3", "border-0"], [1, "table-responsive"], [1, "table", "table-hover", "border"]], template: function DashboardComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DASHBOARD PARAMETERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "form", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "fieldset", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "legend", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " Select ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " Ops Group ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, DashboardComponent_div_20_Template, 1, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, DashboardComponent_ng_template_21_Template, 9, 10, "ng-template", null, 14, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, DashboardComponent_ng_template_23_Template, 6, 7, "ng-template", null, 15, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "fieldset", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "legend", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " Select Year ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_Template_input_click_31_listener() { return ctx.setYearRadio(ctx.yearArr[0]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_Template_input_click_35_listener() { return ctx.setYearRadio(ctx.yearArr[1]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_Template_input_click_39_listener() { return ctx.setYearRadio(ctx.yearArr[2]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DashboardComponent_Template_button_click_46_listener() { ctx.leavePlannerUserByDate(); ctx.getLeavecalender(); ctx.viewLeaveAndUser(); return ctx.getstaffUsers(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](48, DashboardComponent_span_48_Template, 1, 0, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](49, DashboardComponent_ng_container_49_Template, 100, 22, "ng-container", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](50, DashboardComponent_ng_template_50_Template, 2, 2, "ng-template", null, 23, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](52, DashboardComponent_ng_template_52_Template, 35, 22, "ng-template", null, 24, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](54, DashboardComponent_ng_template_54_Template, 51, 14, "ng-template", null, 25, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](56, DashboardComponent_ng_template_56_Template, 42, 6, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](22);
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.dashParaForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.dashParaForm.get("buOps").value == "false")("ngIfThen", _r1)("ngIfElse", _r3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.yearArr[0]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.yearArr[0], " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.yearArr[1]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.yearArr[1], " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.yearArr[2]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.yearArr[2], " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.dashParaForm.invalid || ctx.leaveCalenderLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.leaveCalenderLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.viewclicked);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__["NgSelectComponent"], angular_calendar__WEBPACK_IMPORTED_MODULE_3__["ɵf"], angular_calendar__WEBPACK_IMPORTED_MODULE_3__["ɵh"], angular_calendar__WEBPACK_IMPORTED_MODULE_3__["ɵg"], angular_calendar__WEBPACK_IMPORTED_MODULE_3__["CalendarMonthViewComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgForm"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_19__["NgxSkeletonLoaderComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbInputDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPagination"]], pipes: [angular_calendar__WEBPACK_IMPORTED_MODULE_3__["ɵi"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["DatePipe"]], styles: ["thead.theme[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n color: #a42138;\n font-size: smaller;\n font-weight: 500;\n}\n\nthead.fontBold[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n color: #a42138;\n font-size: x-small;\n font-weight: bolder;\n}\n\nthead.fontBold[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n color: #a42138;\n font-size: x-small;\n font-weight: bolder;\n}\n\n.btn-indigo[_ngcontent-%COMP%] {\n background-color: indigo;\n color: #fff;\n}\n\n.btn-indigo[_ngcontent-%COMP%]:hover {\n background-color: #340058;\n}\n\n.selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #d3d0d0;\n color: black !important;\n}\n\n.border-theme[_ngcontent-%COMP%] {\n border: 1px solid #a42138;\n}\n\n.tooltips[_ngcontent-%COMP%] {\n position: relative;\n display: inline-block;\n font-size: 14px;\n \n}\n\n.tooltips[_ngcontent-%COMP%] .tooltiptext[_ngcontent-%COMP%] {\n visibility: hidden;\n width: 120px;\n background-color: black;\n color: #fff;\n text-align: center;\n border-radius: 6px;\n padding: 5px 0;\n \n position: absolute;\n z-index: 1;\n}\n\n.tooltips[_ngcontent-%COMP%]:hover .tooltiptext[_ngcontent-%COMP%] {\n visibility: visible;\n}\n\n.profile-img[_ngcontent-%COMP%] {\n width: 8rem;\n height: 8rem;\n}\n\nngb-datepicker[_ngcontent-%COMP%] {\n border: 1px solid #dfdfdf;\n border-radius: 0.25rem;\n display: inline-block;\n}\n\nngb-datepicker-month[_ngcontent-%COMP%] {\n pointer-events: auto;\n}\n\nngb-datepicker.dropdown-menu[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n .cal-month-view .cal-day-cell {\n min-height: 35px;\n}\n\n .cal-month-view .cal-day-number {\n margin-top: 8px;\n margin-right: 8px;\n margin-bottom: 6px;\n}\n\n .cal-month-view .cal-cell-top {\n min-height: 35px;\n}\n\n .cal-month-view .cal-balance-zero {\n background-color: #ffb3ec;\n}\n\n .cal-month-view .cal-balance-notzero {\n background-color: #b3d1ff;\n}\n\n .cal-month-view .cal-day-selected, .cal-month-view .cal-day-selected:hover {\n background-color: #00cc00;\n}\n\n.btn-group[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] {\n width: 7em;\n}\n\n.spinner-border[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\n .modal-content {\n border: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtcGxhbm5lci9kYXNoYm9hcmQvZGFzaGJvYXJkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsY0FBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLGNBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBQ0Y7O0FBRUE7RUFDRSxjQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtBQUNGOztBQUVBO0VBQ0Usd0JBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBQUU7RUFDRSx5QkFBQTtBQUVKOztBQUVBO0VBQ0UsYUFBQTtFQUNBLHlCQUFBO0VBQ0EsdUJBQUE7QUFDRjs7QUFDQTtFQUNFLHlCQUFBO0FBRUY7O0FBQ0E7RUFDRSxrQkFBQTtFQUNBLHFCQUFBO0VBQ0EsZUFBQTtFQUNBLHVCQUFBO0FBRUY7O0FBQ0E7RUFDRSxrQkFBQTtFQUNBLFlBQUE7RUFDQSx1QkFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsY0FBQTtFQUVBLHlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxVQUFBO0FBQ0Y7O0FBRUE7RUFDRSxtQkFBQTtBQUNGOztBQUNBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7QUFFRjs7QUFDQTtFQUNFLHlCQUFBO0VBQ0Esc0JBQUE7RUFDQSxxQkFBQTtBQUVGOztBQUFFO0VBQ0Usb0JBQUE7QUFFSjs7QUFDRTtFQUNFLFVBQUE7QUFDSjs7QUFJRTtFQUNFLGdCQUFBO0FBREo7O0FBSUU7RUFDRSxlQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtBQUZKOztBQUtFO0VBQ0UsZ0JBQUE7QUFISjs7QUFNRTtFQUNFLHlCQUFBO0FBSko7O0FBT0U7RUFDRSx5QkFBQTtBQUxKOztBQVFFOztFQUVFLHlCQUFBO0FBTko7O0FBV0U7RUFDRSxVQUFBO0FBUko7O0FBWUE7RUFDRSxzQkFBQTtBQVRGOztBQVlBO0VBQ0UsWUFBQTtBQVRGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtcGxhbm5lci9kYXNoYm9hcmQvZGFzaGJvYXJkLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsidGhlYWQudGhlbWUgdGgge1xuICBjb2xvcjogI2E0MjEzODtcbiAgZm9udC1zaXplOiBzbWFsbGVyO1xuICBmb250LXdlaWdodDogNTAwO1xufVxuXG50aGVhZC5mb250Qm9sZCB0aCB7XG4gIGNvbG9yOiAjYTQyMTM4O1xuICBmb250LXNpemU6IHgtc21hbGw7XG4gIGZvbnQtd2VpZ2h0OiBib2xkZXI7XG59XG5cbnRoZWFkLmZvbnRCb2xkIHRoIHtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGZvbnQtc2l6ZTogeC1zbWFsbDtcbiAgZm9udC13ZWlnaHQ6IGJvbGRlcjtcbn1cblxuLmJ0bi1pbmRpZ28ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiBpbmRpZ287XG4gIGNvbG9yOiAjZmZmO1xuICAmOmhvdmVyIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzQwMDU4O1xuICB9XG59XG5cbi5zZWxlY3RlZCB7XG4gIG91dGxpbmU6IG5vbmU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNkM2QwZDA7XG4gIGNvbG9yOiBibGFjayAhaW1wb3J0YW50O1xufVxuLmJvcmRlci10aGVtZSB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNhNDIxMzg7XG59XG5cbi50b29sdGlwcyB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBmb250LXNpemU6IDE0cHg7XG4gIC8qIGZvbnQtd2VpZ2h0OiBib2xkOyAqL1xufVxuXG4udG9vbHRpcHMgLnRvb2x0aXB0ZXh0IHtcbiAgdmlzaWJpbGl0eTogaGlkZGVuO1xuICB3aWR0aDogMTIwcHg7XG4gIGJhY2tncm91bmQtY29sb3I6IGJsYWNrO1xuICBjb2xvcjogI2ZmZjtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBib3JkZXItcmFkaXVzOiA2cHg7XG4gIHBhZGRpbmc6IDVweCAwO1xuXG4gIC8qIFBvc2l0aW9uIHRoZSB0b29sdGlwICovXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgei1pbmRleDogMTtcbn1cblxuLnRvb2x0aXBzOmhvdmVyIC50b29sdGlwdGV4dCB7XG4gIHZpc2liaWxpdHk6IHZpc2libGU7XG59XG4ucHJvZmlsZS1pbWcge1xuICB3aWR0aDogOHJlbTtcbiAgaGVpZ2h0OiA4cmVtO1xufVxuXG5uZ2ItZGF0ZXBpY2tlciB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNkZmRmZGY7XG4gIGJvcmRlci1yYWRpdXM6IDAuMjVyZW07XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcblxuICAmLW1vbnRoIHtcbiAgICBwb2ludGVyLWV2ZW50czogYXV0bztcbiAgfVxuXG4gICYuZHJvcGRvd24tbWVudSB7XG4gICAgcGFkZGluZzogMDtcbiAgfVxufVxuXG46Om5nLWRlZXAgLmNhbC1tb250aC12aWV3IHtcbiAgLmNhbC1kYXktY2VsbCB7XG4gICAgbWluLWhlaWdodDogMzVweDtcbiAgfVxuXG4gIC5jYWwtZGF5LW51bWJlciB7XG4gICAgbWFyZ2luLXRvcDogOHB4O1xuICAgIG1hcmdpbi1yaWdodDogOHB4O1xuICAgIG1hcmdpbi1ib3R0b206IDZweDtcbiAgfVxuXG4gIC5jYWwtY2VsbC10b3Age1xuICAgIG1pbi1oZWlnaHQ6IDM1cHg7XG4gIH1cblxuICAuY2FsLWJhbGFuY2UtemVybyB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmYjNlYztcbiAgfVxuXG4gIC5jYWwtYmFsYW5jZS1ub3R6ZXJvIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYjNkMWZmO1xuICB9XG5cbiAgLmNhbC1kYXktc2VsZWN0ZWQsXG4gIC5jYWwtZGF5LXNlbGVjdGVkOmhvdmVyIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMDBjYzAwO1xuICB9XG59XG5cbi5idG4tZ3JvdXAge1xuICAuYnRuIHtcbiAgICB3aWR0aDogN2VtO1xuICB9XG59XG5cbi5zcGlubmVyLWJvcmRlciB7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG59XG5cbjo6bmctZGVlcCAubW9kYWwtY29udGVudCB7XG4gIGJvcmRlcjogbm9uZTtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DashboardComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss'],
providers: [
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateAdapter"], useClass: CustomAdapter },
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"] }, { type: src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_11__["LeavePlannerService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbCalendar"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateAdapter"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_12__["ToastrService"] }, { type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_13__["RoleService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_14__["CompanySetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_15__["SetupService"] }]; }, null); })();
/***/ }),
/***/ "9DX1":
/*!***********************************************************************************************************!*\
!*** ./src/app/users/pages/users/locked-account/lock-account-overview/lock-account-overview.component.ts ***!
\***********************************************************************************************************/
/*! exports provided: LockAccountOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LockAccountOverviewComponent", function() { return LockAccountOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/sweet-alert/sweet-alert */ "xgpu");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function LockAccountOverviewComponent_span_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LockAccountOverviewComponent_tr_39_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LockAccountOverviewComponent_tr_39_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const item_r2 = ctx.$implicit; const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r3.unLockAccount(item_r2._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Unlock ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r2 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r2.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.appointment.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.businessUnit);
} }
class LockAccountOverviewComponent {
constructor(userService, toastService, tableService) {
this.userService = userService;
this.toastService = toastService;
this.tableService = tableService;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this.isTableLoading = false;
this.locAccTableColumn = ['name', 'staffId', 'doj', 'contactNumber', 'appointment.name', 'businessUnit', '_id'];
this.tableQueryParamsForLC = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_5__["tableParam"];
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'createdBy',
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
total: 0,
search: '',
filter: {
status: ['locked'],
parentBussinessUnitId: [],
},
order: [{
column: 0,
dir: 'desc'
}]
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.tableQueryParamsForLC.start = 0;
this.tableQueryParamsForLC.search.value = input;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field, colNum) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sort = { key: column, order: direction };
this.tableQueryParamsForLC.order[0].column = colNum;
this.tableQueryParamsForLC.order[0].dir = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.tableQueryParamsForLC.start = +page > 1 ? (page - 1) * this.usersPTable.limit : 0;
this.loadUsers();
}
onLimitChangeUsers() {
this.tableQueryParamsForLC.start = 0;
this.loadUsers();
}
ngOnInit() {
this.tableQueryParamsForLC.draw = 0;
this.tableQueryParamsForLC.start = 0;
this.tableQueryParamsForLC.search.value = '';
this.loadUsers();
}
loadUsers() {
let tableCol = this.tableService.initializeTableParamsColums(this.locAccTableColumn, [0], [0]) || [];
this.tableQueryParamsForLC.columns = tableCol;
this.tableQueryParamsForLC.draw++;
this.tableQueryParamsForLC.length = this.usersPTable.limit;
this.isTableLoading = true;
const subscribe = this.userService
.getLockedUser(this.tableQueryParamsForLC)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.usersPTable.data = response === null || response === void 0 ? void 0 : response.data;
this.usersPTable.total = response === null || response === void 0 ? void 0 : response.recordsFiltered;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.isTableLoading = false;
this.toastService.error('No list found');
});
}
unLockAccount(id) {
const data = {
userId: id,
};
Object(src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_4__["updateAlert"])('Do you want to unlock this user ?', '', 'Unlock').then((resut) => {
if (resut.value) {
this.userService.unLockUser(data).subscribe((res) => {
this.loadUsers();
this.toastService.success('Unlocked Successfully');
}, (error) => {
var _a;
console.error(error);
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
LockAccountOverviewComponent.ɵfac = function LockAccountOverviewComponent_Factory(t) { return new (t || LockAccountOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_8__["TableService"])); };
LockAccountOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LockAccountOverviewComponent, selectors: [["lock-account-overview"]], viewQuery: function LockAccountOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 46, vars: 16, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "1", 3, "sort"], ["scope", "col", "sortable", "2", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"]], template: function LockAccountOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "LOCKED ACCOUNTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function LockAccountOverviewComponent_Template_select_change_8_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function LockAccountOverviewComponent_Template_select_ngModelChange_8_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, LockAccountOverviewComponent_span_20_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function LockAccountOverviewComponent_Template_input_search_21_listener() { return ctx.loadUsers(); })("keyup", function LockAccountOverviewComponent_Template_input_keyup_21_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function LockAccountOverviewComponent_Template_input_ngModelChange_21_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "th", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function LockAccountOverviewComponent_Template_th_sort_26_listener($event) { return ctx.onSortUsers($event, "name", 1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " USER NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "th", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function LockAccountOverviewComponent_Template_th_sort_28_listener($event) { return ctx.onSortUsers($event, "staffId", 2); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " STAFF ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " CONTACT NUMBER ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " APPOINMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, " PARENT BUSSINESS UNIT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](39, LockAccountOverviewComponent_tr_39_Template, 14, 5, "tr", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](40, "app-skliton-loading-table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "ngb-pagination", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function LockAccountOverviewComponent_Template_ngb_pagination_pageChange_45_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function LockAccountOverviewComponent_Template_ngb_pagination_pageChange_45_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.usersPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("numberOfCols", 6)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_9__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["DefaultValueAccessor"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbPagination"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3VzZXJzL2xvY2tlZC1hY2NvdW50L2xvY2stYWNjb3VudC1vdmVydmlldy9sb2NrLWFjY291bnQtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MifQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LockAccountOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'lock-account-overview',
templateUrl: './lock-account-overview.component.html',
styleUrls: ['./lock-account-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_8__["TableService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "9Zea":
/*!***************************************************************!*\
!*** ./src/app/shared/assign-users/assign-users.component.ts ***!
\***************************************************************/
/*! exports provided: AssignUsersComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AssignUsersComponent", function() { return AssignUsersComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/admin/service/companyservice/company.service */ "RZ9m");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
function AssignUsersComponent_ng_container_12_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r18.orgName, " ");
} }
const _c0 = function () { return { standalone: true }; };
function AssignUsersComponent_ng_container_12_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ng-select", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_ng_container_12_Template_ng_select_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.addbussinesUnitPlan($event); })("ngModelChange", function AssignUsersComponent_ng_container_12_Template_ng_select_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.buDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Select All Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AssignUsersComponent_ng_container_12_ng_option_4_Template, 2, 2, "ng-option", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r0.buDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](9, _c0))("virtualScroll", true)("loading", ctx_r0.planBuUnitDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", "All Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.planBuUnitDropDown);
} }
function AssignUsersComponent_ng_template_13_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r23.orgName, " ");
} }
function AssignUsersComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-select", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_ng_template_13_Template_ng_select_change_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r24.addbussinesUnitPlan($event); })("ngModelChange", function AssignUsersComponent_ng_template_13_Template_ng_select_ngModelChange_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r26.buDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Select All Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AssignUsersComponent_ng_template_13_ng_option_3_Template, 2, 2, "ng-option", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r2.buDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](7, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", "All Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.planBuUnitDropDown);
} }
function AssignUsersComponent_div_17_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_17_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r30); const index_r28 = ctx.index; const field_r27 = ctx.$implicit; const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r29.deletePlanBuUnitFields(index_r28, field_r27.get("_id").value); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r27 = ctx.$implicit;
const index_r28 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", field_r27.get("orgName").value ? field_r27.get("orgName").value : field_r27.get("orgName").value, " ");
} }
function AssignUsersComponent_ng_option_47_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r31 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r31.name, " ");
} }
function AssignUsersComponent_div_50_Template(rf, ctx) { if (rf & 1) {
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_50_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r35); const index_r33 = ctx.index; const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r34.deleteAppoinemnt(index_r33); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r32 = ctx.$implicit;
const index_r33 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r32.get("name").value, " ");
} }
function AssignUsersComponent_ng_option_57_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r36 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r36.fieldName, " ");
} }
function AssignUsersComponent_div_58_div_1_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 40, 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_58_div_1_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r42); const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](4); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r41.customFieldADD(_r40.value, ctx_r41.addedCustomfield.fieldName, ctx_r41.addedCustomfield._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_58_div_1_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r42); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r43.addedCustomfield = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r37.addedCustomfield.fieldName);
} }
function AssignUsersComponent_div_58_div_2_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r46 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r46.value);
} }
function AssignUsersComponent_div_58_div_2_Template(rf, ctx) { if (rf & 1) {
const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "select", 43, 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AssignUsersComponent_div_58_div_2_option_5_Template, 2, 1, "option", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_58_div_2_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r48); const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](4); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r47.customFieldADD(_r44.value, ctx_r47.addedCustomfield.fieldName, ctx_r47.addedCustomfield._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_58_div_2_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r48); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r49.addedCustomfield = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r38.addedCustomfield.fieldName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r38.addedCustomfield.options);
} }
function AssignUsersComponent_div_58_div_3_Template(rf, ctx) { if (rf & 1) {
const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 45, 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_58_div_3_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r52); const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](4); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r51.customFieldADD(_r50.value, ctx_r51.addedCustomfield.fieldName, ctx_r51.addedCustomfield._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_58_div_3_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r52); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r53.addedCustomfield = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r39.addedCustomfield.fieldName);
} }
function AssignUsersComponent_div_58_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AssignUsersComponent_div_58_div_1_Template, 10, 1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AssignUsersComponent_div_58_div_2_Template, 11, 2, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AssignUsersComponent_div_58_div_3_Template, 10, 1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r7.addedCustomfield == null ? null : ctx_r7.addedCustomfield.type) === "text");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r7.addedCustomfield == null ? null : ctx_r7.addedCustomfield.type) === "dropdown");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r7.addedCustomfield == null ? null : ctx_r7.addedCustomfield.type) === "date");
} }
function AssignUsersComponent_div_61_Template(rf, ctx) { if (rf & 1) {
const _r57 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_61_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r57); const index_r55 = ctx.index; const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r56.deleteCustomField(index_r55); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r54 = ctx.$implicit;
const index_r55 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r54.get("name").value, " ");
} }
function AssignUsersComponent_ng_option_68_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r58 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r58.name, " ");
} }
function AssignUsersComponent_div_70_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r60 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r60.name, " ");
} }
function AssignUsersComponent_div_70_Template(rf, ctx) { if (rf & 1) {
const _r62 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Select SubSkill Set ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_div_70_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r62); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r61.addSubSkillSet($event); })("ngModelChange", function AssignUsersComponent_div_70_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r62); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r63.subSkillSetDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AssignUsersComponent_div_70_ng_option_4_Template, 2, 2, "ng-option", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", false)("ngModel", ctx_r10.subSkillSetDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](9, _c0))("clearable", true)("hideSelected", true)("disabled", ctx_r10.isDisabledFormFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r10.subSkillSetDropDown);
} }
function AssignUsersComponent_div_73_Template(rf, ctx) { if (rf & 1) {
const _r67 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_73_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r67); const index_r65 = ctx.index; const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r66.deleteSkillSet(index_r65); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r64 = ctx.$implicit;
const index_r65 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r64.get("name").value, " ");
} }
function AssignUsersComponent_div_74_ng_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r70 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r70.name, " ");
} }
function AssignUsersComponent_div_74_div_10_Template(rf, ctx) { if (rf & 1) {
const _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_74_div_10_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r74); const index_r72 = ctx.index; const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r73.deleteAuthor(index_r72); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r71 = ctx.$implicit;
const index_r72 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r71.get("name").value, " ");
} }
function AssignUsersComponent_div_74_Template(rf, ctx) { if (rf & 1) {
const _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Assign Users ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ng-select", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_div_74_Template_ng_select_change_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r76); const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r75.addAuthor($event); })("clear", function AssignUsersComponent_div_74_Template_ng_select_clear_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r76); const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r77.onClearAuthor($event); })("close", function AssignUsersComponent_div_74_Template_ng_select_close_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r76); const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r78.loadAssignedUser(); })("ngModelChange", function AssignUsersComponent_div_74_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r76); const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r79.authorDropDownToClear = $event; })("scrollToEnd", function AssignUsersComponent_div_74_Template_ng_select_scrollToEnd_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r76); const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r80.loadMoreAssignUsers($event); })("search", function AssignUsersComponent_div_74_Template_ng_select_search_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r76); const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r81.onSearchAssignUser($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, AssignUsersComponent_div_74_ng_option_7_Template, 2, 2, "ng-option", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, AssignUsersComponent_div_74_div_10_Template, 4, 2, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r12.authorDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](8, _c0))("disabled", ctx_r12.isDisabledFormFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r12.userDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r12.authorControl.controls);
} }
function AssignUsersComponent_div_76_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r84 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r84.name, " ");
} }
function AssignUsersComponent_div_76_div_8_Template(rf, ctx) { if (rf & 1) {
const _r88 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_76_div_8_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r88); const index_r86 = ctx.index; const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r87.deleteAdmin(index_r86); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r85 = ctx.$implicit;
const index_r86 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r85.get("name").value, " ");
} }
function AssignUsersComponent_div_76_Template(rf, ctx) { if (rf & 1) {
const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Administrator ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_div_76_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r90); const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r89.addAdmin($event); })("ngModelChange", function AssignUsersComponent_div_76_Template_ng_select_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r90); const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r91.adminDropDownToClear = $event; })("clear", function AssignUsersComponent_div_76_Template_ng_select_clear_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r90); const ctx_r92 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r92.onClearAdmin(); })("close", function AssignUsersComponent_div_76_Template_ng_select_close_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r90); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r93.loadAdminData(); })("search", function AssignUsersComponent_div_76_Template_ng_select_search_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r90); const ctx_r94 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r94.onSeachAdmin($event); })("scrollToEnd", function AssignUsersComponent_div_76_Template_ng_select_scrollToEnd_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r90); const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r95.loadMoreAdmin($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AssignUsersComponent_div_76_ng_option_5_Template, 2, 2, "ng-option", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AssignUsersComponent_div_76_div_8_Template, 4, 2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", ctx_r13.adminDropDownPlaceholderText)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r13.adminDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](10, _c0))("virtualScroll", true)("loading", ctx_r13.adminLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r13.adminDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r13.adminControl.controls);
} }
function AssignUsersComponent_button_78_Template(rf, ctx) { if (rf & 1) {
const _r97 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_button_78_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r97); const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r96.addUserDetails(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Add");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AssignUsersComponent_button_79_Template(rf, ctx) { if (rf & 1) {
const _r99 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_button_79_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r99); const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r98.updateUserDetails(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Update");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AssignUsersComponent_div_82_th_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " SELECTED ADMINISTRATOR ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AssignUsersComponent_div_82_tr_19_ul_2_li_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const buUnit_r110 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](buUnit_r110.orgName);
} }
function AssignUsersComponent_div_82_tr_19_ul_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AssignUsersComponent_div_82_tr_19_ul_2_li_1_Template, 2, 1, "li", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r102.allBuToken == "");
} }
function AssignUsersComponent_div_82_tr_19_ul_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("All Business Units Selected (", item_r102.allBuTokenStaffId, ")");
} }
function AssignUsersComponent_div_82_tr_19_ul_4_li_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const buUnit_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](buUnit_r115.name);
} }
function AssignUsersComponent_div_82_tr_19_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AssignUsersComponent_div_82_tr_19_ul_4_li_1_Template, 2, 1, "li", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r102.allBuToken == false);
} }
function AssignUsersComponent_div_82_tr_19_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r120 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r120.name, "");
} }
function AssignUsersComponent_div_82_tr_19_ul_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r121 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r121.name, "");
} }
function AssignUsersComponent_div_82_tr_19_td_9_ul_1_li_1_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](current_r123.name);
} }
function AssignUsersComponent_div_82_tr_19_td_9_ul_1_li_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AssignUsersComponent_div_82_tr_19_td_9_ul_1_li_1_span_1_Template, 2, 1, "span", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", current_r123.staffId !== "admin001");
} }
function AssignUsersComponent_div_82_tr_19_td_9_ul_1_li_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", current_r123.name, "");
} }
function AssignUsersComponent_div_82_tr_19_td_9_ul_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AssignUsersComponent_div_82_tr_19_td_9_ul_1_li_1_Template, 2, 1, "li", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AssignUsersComponent_div_82_tr_19_td_9_ul_1_li_2_Template, 2, 1, "li", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r102.firstAdminAddedAsDefault == true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r102 == null ? null : item_r102.firstAdminAddedAsDefault) == false || !(item_r102 == null ? null : item_r102.firstAdminAddedAsDefault));
} }
function AssignUsersComponent_div_82_tr_19_td_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AssignUsersComponent_div_82_tr_19_td_9_ul_1_Template, 3, 2, "ul", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r102.admin);
} }
function AssignUsersComponent_div_82_tr_19_Template(rf, ctx) { if (rf & 1) {
const _r133 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AssignUsersComponent_div_82_tr_19_ul_2_Template, 2, 1, "ul", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AssignUsersComponent_div_82_tr_19_ul_3_Template, 3, 1, "ul", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AssignUsersComponent_div_82_tr_19_ul_4_Template, 2, 1, "ul", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AssignUsersComponent_div_82_tr_19_ul_6_Template, 3, 1, "ul", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AssignUsersComponent_div_82_tr_19_ul_8_Template, 3, 1, "ul", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, AssignUsersComponent_div_82_tr_19_td_9_Template, 2, 1, "td", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_82_tr_19_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r133); const item_r102 = ctx.$implicit; const index_r103 = ctx.index; const ctx_r132 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r132.editUserDetail(item_r102, index_r103); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "i", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_div_82_tr_19_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r133); const index_r103 = ctx.index; const ctx_r134 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r134.deleteUserDetail(index_r103); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "i", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r102 = ctx.$implicit;
const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r102.businessUnits);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r102.allBuToken == true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r102.businessUnits);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r102.appointments);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r102.user);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r101.isAdminView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r101.isUserDetailsEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r101.isUserDetailsEdited);
} }
function AssignUsersComponent_div_82_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "SELECTED INFORMATION ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "table", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " BUSINESS UNIT ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " APPOINTMENTS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " SELECTED USERS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, AssignUsersComponent_div_82_th_15_Template, 2, 0, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "th", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, AssignUsersComponent_div_82_tr_19_Template, 15, 8, "tr", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r16.isAdminView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r16.userDetails);
} }
class AssignUsersComponent {
constructor(toastService, userService, companyService, formBuilder, buUnit, customFieldService) {
this.toastService = toastService;
this.userService = userService;
this.companyService = companyService;
this.formBuilder = formBuilder;
this.buUnit = buUnit;
this.customFieldService = customFieldService;
this.moduleName = '';
this.planBuUnitDropDownLoading = false;
this.apppoinmentDropDownLoading = false;
this.skillSetDropDownLoading = false;
this.adminDropDownLoading = false;
this.showSubSkillSet = false;
this.CustomFieldDropDownLoading = false;
this.isNextBtnActive = false;
this.isNextBtnActiveEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.buDropDownToClear = null;
this.apoinemntDropDownToClear = null;
this.skillSetDropDownToClear = null;
this.subSkillSetDropDownToClear = null;
this.customFeildDropDownToClear = null;
this.adminDropDownToClear = null;
this.authorDropDownToClear = null;
this.isAssignUser = false;
this.isUserDetailsEdited = false;
this.isDisabledFormFields = true;
this.userDetails = [];
this.isAdminView = true;
this.isLoading = true;
this.onSubmitAssignUsers = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.showCreateButton = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.hideCreateButton = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.getAssignUsersData = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.clearFormArray = (formArray) => {
while (formArray.length !== 0) {
formArray.removeAt(0);
}
};
}
ngOnInit() {
var _a;
this.inituserDetailsFrom();
this.bussinesUnitplanPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
this.appoinmentPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.skillSetPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.CustomFieldPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.assignUserDropDown = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 0,
limit: 10,
search: '',
};
this.adminPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.onClearAllFrom();
this.loadBussinessPlanUnit();
//this.loadAppoinment([], false);
this.loadSkillSet();
this.loadCustomField();
if (this.userDetails && ((_a = this.userDetails) === null || _a === void 0 ? void 0 : _a.length) > 0) {
this.showBackandNextBtn();
}
}
showBackandNextBtn() {
this.isNextBtnActive = true;
this.isNextBtnActiveEvent.emit(this.isNextBtnActive);
this.showCreateButton.emit();
}
inituserDetailsFrom() {
return (this.userDetailsForm = this.formBuilder.group({
businessUnits: this.formBuilder.array([], [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
buFilterType: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
appointments: this.formBuilder.array([]),
subSkillSets: this.formBuilder.array([]),
user: this.formBuilder.array([]),
admin: this.formBuilder.array([]),
allBuToken: false,
allBuTokenStaffId: '',
customField: this.formBuilder.array([]),
}));
}
//getUserS Based on bu unit
getUserBasedOnBuUnits(value, concat = false) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.authorLoading = true;
const AutherControl = this.authorControl;
const AdminControl = this.adminControl;
value || this.clearFormArray(AutherControl);
value || this.clearFormArray(AdminControl);
let array = yield this.BussinessUnitControl.value.map((item) => item._id);
if (array.length === 0) {
this.userDropDown = [];
this.getAssignUsersData.emit([]);
}
const userAllBuIndex = yield array.findIndex((x) => x === '1' || x === 'All Business Unit');
const _a = this.assignUserDropDown, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const userdata = Object.assign(Object.assign({}, rest), { parentBussinessUnitId: userAllBuIndex > -1 ? ['all'] : array });
const sub = this.userService
.getUsersBasedOnBussinesUnit(userdata)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
var _a, _b;
this.authorLoading = false;
const response = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.items;
if (concat) {
this.userDropDown && this.userDropDown.length > 0 ? this.userDropDown = [...this.userDropDown, ...response] : this.userDropDown = response;
}
else {
this.userDropDown = response;
}
this.getAssignUsersData.emit((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.items);
});
});
}
getAdminBasedOnBuUnits(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.adminLoading = true;
this.adminDropDownPlaceholderText = 'Loading..........';
const AutherControl = this.authorControl;
const AdminControl = this.adminControl;
value || this.clearFormArray(AutherControl);
value || this.clearFormArray(AdminControl);
let array = yield this.BussinessUnitControl.value.map((item) => item._id);
if (array.length === 0) {
this.adminDropDown = [];
this.adminDropDownPlaceholderText = 'Select admin';
this.adminLoading = false;
return;
}
const userAllBuIndex = yield array.findIndex((x) => x === '1' || x === 'All Business Unit');
const _a = this.adminPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const userdata = Object.assign(Object.assign({}, rest), { filter: {
status: [1],
parentBussinessUnitId: userAllBuIndex > -1 ? [] : array,
} });
const sub = this.userService
.getAllUsers(userdata)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
var _a;
this.adminDropDownPlaceholderText = 'Select admin';
this.adminLoading = false;
this.adminDropDown = ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) || [];
});
});
}
/// bussiness unit
get BussinessUnitControl() {
return this.userDetailsForm.get('businessUnits');
}
loadMoreAuthor(value) {
this.userPTable.limit = this.userPTable.limit + 10;
this.getUserBasedOnBuUnits();
}
onClearAuthor(value) {
if (value === undefined) {
this.loadAssignedUser();
}
}
loadAssignedUser() {
this.userDropDown = [];
this.assignUserDropDown.search = '';
this.getUserBasedOnBuUnits("clear");
}
onSeachAdmin(value) {
this.adminPTable.limit = 10;
this.adminPTable.search = value.term;
this.getAdminBasedOnBuUnits('search');
}
loadMoreAdmin(value) {
this.adminPTable.limit = this.adminPTable.limit + 10;
this.getAdminBasedOnBuUnits("clear");
}
onClearAdmin(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.loadAdminData();
}
}
loadAdminData() {
this.adminPTable.search = '';
this.adminDropDown = [];
this.getAdminBasedOnBuUnits("clear");
}
selectBusinessUnit(value) {
if (value === 'all') {
this.isDisabledFormFields = true;
}
else if (value === 'includeSelected' || value === 'excludeSelected') {
this.isDisabledFormFields = false;
}
}
addbussinesUnitPlan(value) {
if (value) {
this.assignUserDropDown.page = 0;
this.assignUserDropDown.search = '';
const Control = this.BussinessUnitControl;
const newArray = [];
this.userDetails.forEach((element) => {
newArray.push(...element.businessUnits);
});
const anyBuUnitIndex = newArray.findIndex((x) => x._id === value._id);
const buindex = Control.value.findIndex((x) => x.orgName === 'All Business Unit');
if (anyBuUnitIndex == -1) {
if (buindex > -1) {
this.ngSelectComponent.clearModel();
this.toastService.error(`All Business Unit is added`);
}
else {
if (buindex == -1 && value === 'All Business Unit') {
this.ngSelectComponent.clearModel();
this.clearFormArray(Control);
let field = this.formBuilder.group({
_id: [
value._id ? value._id : '1',
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
orgName: [value, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
let buID = '';
const buList = this.BussinessUnitControl.value.map((data) => {
return buID = buID + ',' + (data === null || data === void 0 ? void 0 : data._id);
});
this.userDetailsForm.patchValue({
allBuToken: true,
allBuTokenStaffId: localStorage.getItem('flexistaffId')
});
this.loadAppoinment([], true);
this.getUserBasedOnBuUnits("load");
this.getAdminBasedOnBuUnits("load");
return;
}
this.userDetailsForm.patchValue({
allBuToken: false,
allBuTokenStaffId: ''
});
const index = Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.ngSelectComponent.clearModel();
this.toastService.error(`${value.orgName} is already added`);
}
else {
let field = this.formBuilder.group({
orgName: [
value.orgName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
let buIDArray = [];
const buList = this.BussinessUnitControl.value.map((data, index) => {
buIDArray[index] = data === null || data === void 0 ? void 0 : data._id;
});
this.loadAppoinment(buIDArray, false);
this.ngSelectComponent.clearModel();
this.getUserBasedOnBuUnits("load");
this.getAdminBasedOnBuUnits("load");
}
}
}
else {
this.toastService.error(`${value.orgName} is already added`);
}
}
}
deletePlanBuUnitFields(index, id) {
var _a, _b, _c, _d;
const AutherControl = this.authorControl;
const adminControl = this.adminControl;
const Control = this.BussinessUnitControl;
this.assignUserDropDown.page = 0;
this.assignUserDropDown.search = '';
// dont remove this code as it
// this.clearFormArray(AutherControl);
// this.clearFormArray(adminControl);
if ((_a = AutherControl.value) === null || _a === void 0 ? void 0 : _a.filter(item => (item === null || item === void 0 ? void 0 : item.parentBussinessUnitId) === id)) {
AutherControl === null || AutherControl === void 0 ? void 0 : AutherControl.removeAt((_b = AutherControl.value) === null || _b === void 0 ? void 0 : _b.findIndex(item => (item === null || item === void 0 ? void 0 : item.parentBussinessUnitId) === id));
}
if ((_c = adminControl.value) === null || _c === void 0 ? void 0 : _c.filter(item => (item === null || item === void 0 ? void 0 : item.parentBussinessUnitId) === id)) {
adminControl === null || adminControl === void 0 ? void 0 : adminControl.removeAt((_d = adminControl.value) === null || _d === void 0 ? void 0 : _d.findIndex(item => (item === null || item === void 0 ? void 0 : item.parentBussinessUnitId) === id));
}
Control.removeAt(index);
let buIDArray = [];
const buList = this.BussinessUnitControl.value.map((data, index) => {
buIDArray[index] = data === null || data === void 0 ? void 0 : data._id;
});
buIDArray.length > 0 ? this.loadAppoinment(buIDArray, false) : this.setAppointMent();
this.getUserBasedOnBuUnits("load");
this.adminPTable.search = '';
this.adminPTable.limit = 10;
this.getAdminBasedOnBuUnits("load");
}
setAppointMent() {
this.appoinmentDropDown = [];
for (let i = this.AppoinemtControl.length - 1; i >= 0; i--) {
this.AppoinemtControl.removeAt(i);
}
//this.AppoinemtControl.setValue([])
}
onSeachPlanBuUnit(value) {
this.bussinesUnitplanPTable.limit = 10;
this.bussinesUnitplanPTable.search = value.term;
this.loadBussinessPlanUnit();
}
loadMorePlasnBuUnitItems(value) {
this.bussinesUnitplanPTable.limit = this.bussinesUnitplanPTable.limit + 10;
this.loadBussinessPlanUnit();
}
onClearPlanBuUnitDropdown(value) {
if (value === undefined) {
this.userDetailsForm.patchValue({
parentBussinessUnitId: {
name: null,
_id: null,
},
});
this.bussinesUnitplanPTable.search = '';
this.loadBussinessPlanUnit();
this.planBuUnitDropDown = [];
this.bussinesUnitplanPTable.data = [];
}
}
loadBussinessPlanUnit() {
this.planBuUnitDropDownLoading = true;
// if(this.moduleName=="challenges"){
const subscribe = this.buUnit
.getBusinessUnitData()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.planBuUnitDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b;
this.bussinesUnitplanPTable.data = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.planBussinessUnitId;
this.planBuUnitDropDown = (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.planBussinessUnitId;
let buUnits = this.planBuUnitDropDown.map((data) => data === null || data === void 0 ? void 0 : data._id);
this.allBuUnitID = buUnits;
}, (error) => {
this.toastService.error("Error Occured", error);
this.bussinesUnitplanPTable.data = [];
this.toastService.error('No list found');
});
//}
/* else{
const { data, ...rest } = this.bussinesUnitplanPTable;
const subscribe = this.buUnit
.getBussinesUnit(rest, true)
.pipe(
finalize(() => {
this.planBuUnitDropDownLoading = false;
subscribe.unsubscribe();
})
)
.subscribe(
(response: any) => {
const { businessUnitList } = response;
this.bussinesUnitplanPTable.data = businessUnitList;
this.planBuUnitDropDown = businessUnitList;
},
(error) => {
this.bussinesUnitplanPTable.data = [];
this.toastService.error('No list found');
}
);
}*/
}
/// apoinment
get AppoinemtControl() {
return this.userDetailsForm.get('appointments');
}
get SkillSetControl() {
return this.userDetailsForm.get('subSkillSets');
}
addAppointment(value) {
if (value) {
const Control = this.AppoinemtControl;
const index = Control.value.findIndex((x) => x._id === value._id);
this.apoinemntDropDownToClear = [];
if (index > -1) {
this.toastService.error(`${value.name} is already added`);
this.apoinemntDropDownToClear = [];
}
else {
let field = this.formBuilder.group({
name: [value.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
this.apoinemntDropDownToClear = [];
}
}
}
addSkillSet(value) {
if (value) {
this.subSkillSetDropDown = value.subSkillSets;
this.showSubSkillSet = true;
// const Control = this.SkillSetControl;
// const index = Control.value.findIndex((x) => x._id === value._id);
// this.skillSetDropDownToClear = []
// if (index > -1) {
// this.toastService.error(`${value.name} is already added`);
// this.skillSetDropDownToClear = []
// } else {
// let field = this.formBuilder.group({
// name: [value.name, Validators.compose([Validators.required])],
// _id: [value._id, Validators.compose([Validators.required])],
// });
// Control.push(field);
// this.skillSetDropDownToClear = []
// }
}
}
addSubSkillSet(value) {
if (value) {
const Control = this.SkillSetControl;
const index = Control.value.findIndex((x) => x._id === value._id);
// this.skillSetDropDownToClear = []
if (index > -1) {
this.toastService.error(`${value.name} is already added`);
// this.skillSetDropDownToClear = []
}
else {
const name = this.skillSetDropDownToClear.name + ' > ' + value.name;
let field = this.formBuilder.group({
name: [name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
// this.skillSetDropDownToClear = []
}
}
this.showSubSkillSet = false;
}
deleteAppoinemnt(index) {
const Control = this.AppoinemtControl;
Control.removeAt(index);
}
deleteSkillSet(index) {
const Control = this.SkillSetControl;
Control.removeAt(index);
}
onSearchAppointment(value) {
this.appoinmentPTable.limit = 10;
this.appoinmentPTable.search = value.term;
this.loadAppoinment([], false);
}
onSearchSkillSet(value) {
this.skillSetPTable.limit = 10;
this.skillSetPTable.search = value.term;
this.loadSkillSet();
}
loadMoreAppoinmentItems(value) {
this.appoinmentPTable.limit = this.appoinmentPTable.limit + 10;
this.loadAppoinment([], false);
}
loadMoreSkillSetItems(value) {
this.skillSetPTable.limit = this.skillSetPTable.limit + 10;
this.loadSkillSet();
}
loadMoreAdminItems(value) {
this.skillSetPTable.limit = this.skillSetPTable.limit + 10;
this.loadSkillSet();
}
onClearAppoinmentDropdown(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.appoinmentPTable.search = '';
this.loadAppoinment([], false);
this.appoinmentDropDown = [];
this.appoinmentPTable.data = [];
}
}
onClearSkillSetDropdown(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.skillSetPTable.search = '';
this.loadSkillSet();
this.skillSetDropDown = [];
this.skillSetPTable.data = [];
}
}
loadAppoinment(buId, buToken) {
this.apppoinmentDropDownLoading = true;
const _a = this.appoinmentPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const payload = {
"businessUnitId": buId,
"allBuToken": buToken
};
const subscribe = this.userService
.getAppoinmentsWithoutPagination(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.apppoinmentDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.appoinmentPTable.data = response.data;
this.appoinmentDropDown = response.data;
this.appoinmentPTable.total = count;
this.AppoinemtControl.value.length > 0 ? this.AppoinemtControl.value.map((data, index) => {
const arrayIndex = this.appoinmentDropDown.findIndex(element => (element === null || element === void 0 ? void 0 : element._id) === (data === null || data === void 0 ? void 0 : data._id));
if (arrayIndex < 0) {
//const indexFound = this.AppoinemtControl.value.findIndex(image => image._id === data?._id);
//if(indexFound !== -1)
this.AppoinemtControl.removeAt(index);
}
}) : '';
}, (error) => {
this.appoinmentPTable.data = [];
this.appoinmentPTable.total = 0;
this.toastService.error('No list found');
});
}
loadSkillSet() {
this.skillSetDropDownLoading = true;
const _a = this.skillSetPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.userService
.getSkillSet(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.skillSetDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.skillSetPTable.data = data;
this.skillSetDropDown = data;
this.skillSetPTable.total = count;
}, (error) => {
this.skillSetPTable.data = [];
this.skillSetPTable.total = 0;
this.toastService.error('No list found');
});
}
///custom fields
get CustomFiledControl() {
return this.userDetailsForm.get('customField');
}
addCustomFields(value) {
this.addedCustomfield = value;
this.customFeildDropDownToClear = [];
}
customFieldADD(value, fieldname, id) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.CustomFiledControl;
const index = yield Control.value.findIndex((x) => x.value === value);
if (index > -1) {
this.toastService.error(`${value} is already added`);
this.ngSelectComponent.clearModel();
this.addedCustomfield = null;
}
else {
let field = this.formBuilder.group({
_id: [id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
name: [
`${fieldname} > ${value}`,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
fieldId: [id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
value: [
value,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
Control.push(field);
this.ngSelectComponent.clearModel();
this.showBackandNextBtn();
this.addedCustomfield = null;
}
}
});
}
deleteCustomField(index) {
const Control = this.CustomFiledControl;
Control.removeAt(index);
}
onSeachCustomField(value) {
this.CustomFieldPTable.limit = 10;
this.CustomFieldPTable.search = value.term;
this.loadCustomField();
}
onSkillSets(value) {
this.CustomFieldPTable.limit = 10;
this.CustomFieldPTable.search = value.term;
this.loadCustomField();
}
loadMoreCustomFieldItems(value) {
this.CustomFieldPTable.limit = this.CustomFieldPTable.limit + 10;
this.loadCustomField();
}
loadMoreAssignUsers(value) {
this.assignUserDropDown.page++;
this.getUserBasedOnBuUnits("load", true);
}
onSearchAssignUser(value) {
this.assignUserDropDown.limit = 10;
this.assignUserDropDown.page = 0;
this.assignUserDropDown.search = value.term;
this.getUserBasedOnBuUnits("search");
}
onClearCustomFieldDropdown(value) {
if (value === undefined) {
// this.setupForm.patchValue({
// loginFields: [],
// });
this.CustomFieldPTable.search = '';
this.loadCustomField();
this.fieldNeedsToUpdate = [];
this.CustomFieldPTable.data = [];
}
}
loadCustomField() {
const _a = this.CustomFieldPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.customFieldService
.getCustomField(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.CustomFieldPTable.data = data;
this.fieldNeedsToUpdate = data;
this.CustomFieldPTable.total = count;
}, (error) => {
this.CustomFieldPTable.data = [];
this.CustomFieldPTable.total = 0;
// this.tostService.error('No list found');
});
}
//author
get authorControl() {
return this.userDetailsForm.get('user');
}
addAuthor(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.authorControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.toastService.error(`${value.name} is already added`);
this.authorDropDownToClear = [];
}
else {
let field = this.formBuilder.group({
name: [value.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
parentBussinessUnitId: [value === null || value === void 0 ? void 0 : value.parentBussinessUnitId]
});
Control.push(field);
this.authorDropDownToClear = [];
}
}
});
}
deleteAuthor(index) {
const Control = this.authorControl;
Control.removeAt(index);
}
//admin
get adminControl() {
return this.userDetailsForm.get('admin');
}
addAdmin(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.adminControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.toastService.error(`${value.name} is already added`);
this.adminDropDownToClear = [];
}
else {
let field = this.formBuilder.group({
name: [value.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
parentBussinessUnitId: [value === null || value === void 0 ? void 0 : value.parentBussinessUnitId]
});
Control.push(field);
this.adminDropDownToClear = [];
}
}
});
}
deleteAdmin(index) {
const Control = this.adminControl;
Control.removeAt(index);
}
//user details
get UserDetailsControl() {
return this.wallCreateForm.get('userDetails');
}
addUserDetails() {
if (!this.userDetailsForm.valid) {
this.toastService.error('Please select all mandatory fields');
return;
}
this.userDetails.push(this.userDetailsForm.value);
this.ClearUserDetailForm();
this.showBackandNextBtn();
this.onSubmit();
}
onCancelEdit() {
this.onClearAllFrom();
this.isBoardEdited = false;
this.boardId = null;
this.activeId = 1;
this.userDetails.length = 0;
this.overViewEvent.emit(null);
}
editUserDetail(userDetail, index) {
this.showCreateButton.emit();
const BuControl = this.BussinessUnitControl;
const apoinemtnControl = this.AppoinemtControl;
const skillSetControl = this.SkillSetControl;
const customFieldControl = this.CustomFiledControl;
const authorcontrol = this.authorControl;
const admincontrol = this.adminControl;
this.ClearUserDetailForm();
this.userDetailsEditIndex = index;
this.isUserDetailsEdited = true;
if (userDetail.buFilterType === 1) {
this.isDisabledFormFields = true;
}
else {
this.isDisabledFormFields = false;
}
if (userDetail.allBuToken) {
this.loadAppoinment([], true);
}
else {
this.loadAppoinment(userDetail.businessUnits.map((bu) => bu._id), false);
}
this.userDetailsForm.patchValue({
buFilterType: userDetail.buFilterType,
allBuToken: userDetail.allBuToken,
allBuTokenStaffId: userDetail.allBuTokenStaffId,
});
if (!(userDetail === null || userDetail === void 0 ? void 0 : userDetail.allBuToken) || (userDetail === null || userDetail === void 0 ? void 0 : userDetail.allBuToken) == "") {
userDetail.businessUnits.forEach((element) => {
let field = this.formBuilder.group({
_id: [
element._id ? element._id : '1',
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
orgName: [
element.orgName ? element.orgName : element.name,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
BuControl.push(field);
});
}
if (userDetail === null || userDetail === void 0 ? void 0 : userDetail.allBuToken) {
let field = this.formBuilder.group({
_id: [
'1',
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
orgName: [
"All Business Unit",
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
BuControl.push(field);
}
this.getUserBasedOnBuUnits();
this.getAdminBasedOnBuUnits();
userDetail.appointments.forEach((element) => {
let field = this.formBuilder.group({
name: [element === null || element === void 0 ? void 0 : element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [element === null || element === void 0 ? void 0 : element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
apoinemtnControl.push(field);
});
userDetail.subSkillSets.forEach((element) => {
var _a;
const name = ((_a = element === null || element === void 0 ? void 0 : element.skillSetId) === null || _a === void 0 ? void 0 : _a.name) + ' > ' + (element === null || element === void 0 ? void 0 : element.name);
let field = this.formBuilder.group({
name: [name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
skillSetControl.push(field);
});
userDetail.user.forEach((element) => {
let field = this.formBuilder.group({
name: [element === null || element === void 0 ? void 0 : element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [element === null || element === void 0 ? void 0 : element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
parentBussinessUnitId: [element === null || element === void 0 ? void 0 : element.parentBussinessUnitId]
});
authorcontrol.push(field);
});
if (userDetail.admin) {
userDetail.admin.forEach((element) => {
if (!userDetail.firstAdminAddedAsDefault) {
let field = this.formBuilder.group({
name: [element === null || element === void 0 ? void 0 : element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [element === null || element === void 0 ? void 0 : element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
parentBussinessUnitId: [element === null || element === void 0 ? void 0 : element.parentBussinessUnitId]
});
admincontrol.push(field);
}
else if (userDetail.firstAdminAddedAsDefault && (element === null || element === void 0 ? void 0 : element.staffId) !== 'admin001') {
let field = this.formBuilder.group({
name: [element === null || element === void 0 ? void 0 : element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [element === null || element === void 0 ? void 0 : element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
admincontrol.push(field);
}
});
}
userDetail.customField.forEach((element) => {
let field = this.formBuilder.group({
_id: [element === null || element === void 0 ? void 0 : element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
name: [element === null || element === void 0 ? void 0 : element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
customFieldControl.push(field);
});
}
deleteUserDetail(index) {
this.userDetails.splice(index, 1);
this.onSubmit();
if (this.userDetails.length === 0) {
this.hideCreateButton.emit();
}
this.toastService.error('Assigned User Deleted', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}
updateUserDetails() {
if (!this.userDetailsForm.valid) {
this.toastService.error('Please select all mandatory fields');
return;
}
this.toastService.success("Business Unit Updated");
this.userDetails[this.userDetailsEditIndex] = this.userDetailsForm.value;
this.ClearUserDetailForm();
this.onSubmit();
this.isUserDetailsEdited = false;
this.userDetailsEditIndex = null;
}
onSubmit() {
const Output = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["getAssignedUsers"])(this.userDetails);
Output.map((data, index) => {
if (data === null || data === void 0 ? void 0 : data.allBuToken) {
// handled for all bu as it is not required
// previously Output[index]['businessUnits'] = this.allBuUnitID
Output[index]['businessUnits'] = [];
}
});
this.onSubmitAssignUsers.emit(Output);
}
ClearUserDetailForm() {
const BuControl = this.BussinessUnitControl;
const apoinemtnControl = this.AppoinemtControl;
const skillSetControl = this.SkillSetControl;
const customFieldControl = this.CustomFiledControl;
const authorcontrol = this.authorControl;
const admincontrol = this.adminControl;
this.clearFormArray(BuControl);
this.clearFormArray(apoinemtnControl);
this.clearFormArray(skillSetControl);
this.clearFormArray(customFieldControl);
this.clearFormArray(authorcontrol);
this.clearFormArray(admincontrol);
this.buDropDownToClear = null;
this.apoinemntDropDownToClear = null;
this.skillSetDropDownToClear = null;
this.customFeildDropDownToClear = null;
this.adminDropDownToClear = null;
this.authorDropDownToClear = null;
}
onClearAllFrom() {
const BuControl = this.BussinessUnitControl;
const apoinemtnControl = this.AppoinemtControl;
const skillSetControl = this.SkillSetControl;
const customFieldControl = this.CustomFiledControl;
const authorcontrol = this.authorControl;
const admincontrol = this.adminControl;
this.clearFormArray(BuControl);
this.clearFormArray(apoinemtnControl);
this.clearFormArray(skillSetControl);
this.clearFormArray(skillSetControl);
this.clearFormArray(customFieldControl);
this.clearFormArray(authorcontrol);
this.clearFormArray(admincontrol);
this.buDropDownToClear = null;
this.apoinemntDropDownToClear = null;
this.skillSetDropDownToClear = null;
this.customFeildDropDownToClear = null;
this.adminDropDownToClear = null;
this.authorDropDownToClear = null;
this.userDetailsEditIndex = null;
this.isUserDetailsEdited = false;
this.userDetails.length = 0;
this.inituserDetailsFrom();
}
}
AssignUsersComponent.ɵfac = function AssignUsersComponent_Factory(t) { return new (t || AssignUsersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_8__["CompanyService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__["CustomFieldService"])); };
AssignUsersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AssignUsersComponent, selectors: [["assign-users"]], viewQuery: function AssignUsersComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__["NgSelectComponent"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.ngSelectComponent = _t.first);
} }, inputs: { toastMessage: "toastMessage", moduleName: "moduleName", userDetails: "userDetails", isAdminView: "isAdminView", isLoading: "isLoading", buttonText: "buttonText" }, outputs: { isNextBtnActiveEvent: "isNextBtnActiveEvent", onSubmitAssignUsers: "onSubmitAssignUsers", showCreateButton: "showCreateButton", hideCreateButton: "hideCreateButton", getAssignUsersData: "getAssignUsersData" }, decls: 83, vars: 49, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], [1, "card-body"], [3, "formGroup"], [1, "row", "mb-2"], [1, "col-md-4"], [1, "red-label"], [1, "field-mandatory"], [4, "ngIf", "ngIfElse"], ["otherModule", ""], [1, "col-md-6"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap", "margin-top", "20px"], ["formArrayName", "businessUnits", 4, "ngFor", "ngForOf"], [1, "radio", "radio-danger", "radio-inline"], ["type", "radio", "formControlName", "buFilterType", 3, "value", "change"], ["for", "iosu", 1, "iosu"], ["bindLabel", "name", "placeholder", "Select appointment", "appendTo", "body", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "ngModel", "ngModelOptions", "clearable", "loading", "hideSelected", "disabled", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["formArrayName", "appointments", 4, "ngFor", "ngForOf"], ["bindLabel", "name", "placeholder", "Select custom fields", "appendTo", "body", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "loading", "disabled", "change", "ngModelChange", "search", "scrollToEnd", "clear"], ["class", "col-md-4", 4, "ngIf"], ["formArrayName", "customField", 4, "ngFor", "ngForOf"], [1, "col-md-3"], ["bindLabel", "name", "placeholder", "Select skill set", "appendTo", "body", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "ngModel", "ngModelOptions", "clearable", "loading", "hideSelected", "disabled", "change", "ngModelChange", "search", "scrollToEnd", "clear"], [4, "ngIf"], ["formArrayName", "subSkillSets", 4, "ngFor", "ngForOf"], ["class", "row mb-2", 4, "ngIf"], ["class", "btn btn-add", 3, "click", 4, "ngIf"], [1, "btn", "btn-clear", 3, "click"], ["class", "card my-3 w-100", 4, "ngIf"], ["bindLabel", "name", "placeholder", "Business unit (Plan)", "appendTo", "body", 1, "custom", "hightlighted-dropdown", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "virtualScroll", "loading", "change", "ngModelChange"], [3, "value"], ["bindLabel", "name", "placeholder", "Bussiness unit (Plan)", "appendTo", "body", 1, "custom", "hightlighted-dropdown", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["formArrayName", "businessUnits"], [1, "text-items", "list-ui", 3, "formGroupName"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", 3, "click"], ["formArrayName", "appointments"], ["class", "form-group", 4, "ngIf"], [1, "form-group"], [1, "font-weight-bold"], ["type", "text", "placeholder", "enter value", 1, "form-control"], ["value", ""], [1, "btn", "btn-add", 3, "click"], [1, "form-control"], [4, "ngFor", "ngForOf"], ["type", "date", "placeholder", "enter value", 1, "form-control"], ["formArrayName", "customField"], ["bindLabel", "name", "placeholder", "Select subskill set", "appendTo", "body", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "ngModel", "ngModelOptions", "clearable", "hideSelected", "disabled", "change", "ngModelChange"], ["formArrayName", "subSkillSets"], [1, "row"], ["bindLabel", "name", "placeholder", "Select users", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "disabled", "change", "clear", "close", "ngModelChange", "scrollToEnd", "search"], ["formArrayName", "user", 4, "ngFor", "ngForOf"], ["formArrayName", "user"], ["bindLabel", "name", "appendTo", "body", 1, "custom", 3, "placeholder", "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "virtualScroll", "loading", "change", "ngModelChange", "clear", "close", "search", "scrollToEnd"], ["formArrayName", "admin", 4, "ngFor", "ngForOf"], ["formArrayName", "admin"], [1, "table-responsive"], [1, "table"], ["scope", "col"], [1, "btn", "btn-add", "p-2", "m-1", 3, "disabled", "click"], ["aria-hidden", "true", 1, "fa", "fa-pencil-square-o"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "disabled", "click"], ["aria-hidden", "true", 1, "fa", "fa-trash"]], template: function AssignUsersComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "ASSIGN USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Business unit (Plan) ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, AssignUsersComponent_ng_container_12_Template, 5, 10, "ng-container", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, AssignUsersComponent_ng_template_13_Template, 4, 8, "ng-template", null, 9, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, AssignUsersComponent_div_17_Template, 4, 2, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](19, 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, " Select Anyone Option from here");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_Template_input_change_27_listener() { return ctx.selectBusinessUnit("all"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, " All Users in Selected Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_Template_input_change_32_listener() { return ctx.selectBusinessUnit("includeSelected"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, " Include only Selected Users from Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_Template_input_change_37_listener() { return ctx.selectBusinessUnit("excludeSelected"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, " Exclude selected Users from Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](40, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, " Appointment ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "ng-select", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_Template_ng_select_change_46_listener($event) { return ctx.addAppointment($event); })("ngModelChange", function AssignUsersComponent_Template_ng_select_ngModelChange_46_listener($event) { return ctx.apoinemntDropDownToClear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](47, AssignUsersComponent_ng_option_47_Template, 2, 2, "ng-option", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](50, AssignUsersComponent_div_50_Template, 4, 2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](51, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](55, "Custom Fields ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "ng-select", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_Template_ng_select_change_56_listener($event) { return ctx.addCustomFields($event); })("ngModelChange", function AssignUsersComponent_Template_ng_select_ngModelChange_56_listener($event) { return ctx.customFeildDropDownToClear = $event; })("search", function AssignUsersComponent_Template_ng_select_search_56_listener($event) { return ctx.onSeachCustomField($event); })("scrollToEnd", function AssignUsersComponent_Template_ng_select_scrollToEnd_56_listener($event) { return ctx.loadMoreCustomFieldItems($event); })("clear", function AssignUsersComponent_Template_ng_select_clear_56_listener($event) { return ctx.onClearCustomFieldDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](57, AssignUsersComponent_ng_option_57_Template, 2, 2, "ng-option", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](58, AssignUsersComponent_div_58_Template, 4, 3, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](61, AssignUsersComponent_div_61_Template, 4, 2, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](62, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](66, " Select Skill Set ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "ng-select", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AssignUsersComponent_Template_ng_select_change_67_listener($event) { return ctx.addSkillSet($event); })("ngModelChange", function AssignUsersComponent_Template_ng_select_ngModelChange_67_listener($event) { return ctx.skillSetDropDownToClear = $event; })("search", function AssignUsersComponent_Template_ng_select_search_67_listener($event) { return ctx.onSearchSkillSet($event); })("scrollToEnd", function AssignUsersComponent_Template_ng_select_scrollToEnd_67_listener($event) { return ctx.loadMoreSkillSetItems($event); })("clear", function AssignUsersComponent_Template_ng_select_clear_67_listener($event) { return ctx.onClearSkillSetDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](68, AssignUsersComponent_ng_option_68_Template, 2, 2, "ng-option", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](70, AssignUsersComponent_div_70_Template, 5, 10, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](73, AssignUsersComponent_div_73_Template, 4, 2, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](74, AssignUsersComponent_div_74_Template, 11, 9, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](75, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](76, AssignUsersComponent_div_76_Template, 9, 11, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](77, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](78, AssignUsersComponent_button_78_Template, 2, 0, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](79, AssignUsersComponent_button_79_Template, 2, 0, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AssignUsersComponent_Template_button_click_80_listener() { return ctx.ClearUserDetailForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](81, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](82, AssignUsersComponent_div_82_Template, 20, 2, "div", 29);
} if (rf & 2) {
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userDetailsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.moduleName == "challenges")("ngIfElse", _r1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.BussinessUnitControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("ngModel", ctx.apoinemntDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](46, _c0))("clearable", true)("loading", ctx.apppoinmentDropDownLoading)("hideSelected", true)("disabled", ctx.isDisabledFormFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.appoinmentDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.AppoinemtControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx.customFeildDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](47, _c0))("loading", ctx.CustomFieldDropDownLoading)("disabled", ctx.isDisabledFormFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.fieldNeedsToUpdate);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.addedCustomfield);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.CustomFiledControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("ngModel", ctx.skillSetDropDownToClear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](48, _c0))("clearable", true)("loading", ctx.skillSetDropDownLoading)("hideSelected", true)("disabled", ctx.isDisabledFormFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.skillSetDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showSubSkillSet);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.SkillSetControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isAssignUser);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isAdminView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isUserDetailsEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isUserDetailsEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx.userDetails == null ? null : ctx.userDetails.length) != 0);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.red-label[_ngcontent-%COMP%] {\n color: #a51f38;\n font-weight: 500;\n text-align: left;\n}@media screen and (max-width: 1280px) {\n .iosu[_ngcontent-%COMP%] {\n font-size: 11px;\n }\n}ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3NoYXJlZC9hc3NpZ24tdXNlcnMvYXNzaWduLXVzZXJzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlEQUFpRCxlQUFlLENBQUMsaUNBQWlDLENBQUMsdURBQXVELGVBQWUsQ0FBQywyREFBMkQsUUFBUSxDQUFDLHlDQUF5QyxDQUFDLHNCQUFzQixDQUFDLGlFQUFpRSx5Q0FBeUMsQ0FBQyxrRUFBa0UsNEJBQTRCLENBQUMsMkJBQTJCLENBQUMsK0RBQStELHlCQUF5QixDQUFDLHdCQUF3QixDQUFDLHlFQUF5RSxvQkFBb0IsQ0FBQywwRUFBMEUsQ0FBQyxtREFBbUQsd0JBQXdCLENBQUMseUNBQXlDLFlBQVksQ0FBQyxnQ0FBZ0MsVUFBVSxDQUFDLHFCQUFxQixDQUFDLGlCQUFpQixDQUFDLHFCQUFxQixDQUFDLGVBQWUsQ0FBQyxrQkFBa0IsQ0FBQyxzQ0FBc0MsbUNBQW1DLENBQUMsb0RBQW9ELGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLGdFQUFnRSxrQkFBa0IsQ0FBQyxjQUFjLENBQUMsb0VBQW9FLFVBQVUsQ0FBQyxpREFBaUQsV0FBVyxDQUFDLCtFQUErRSxPQUFPLENBQUMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLGtCQUFrQixDQUFDLDJGQUEyRixrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxvR0FBb0csd0JBQXdCLENBQUMsd0JBQXdCLENBQUMsb0hBQW9ILGFBQWEsQ0FBQyx1RUFBdUUsZUFBZSxDQUFDLGdCQUFnQixDQUFDLG1GQUFtRixpQkFBaUIsQ0FBQyxjQUFjLENBQUMsaUZBQWlGLGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyx3QkFBd0IsQ0FBQyxpQkFBaUIsQ0FBQyxnQkFBZ0IsQ0FBQyw2RkFBNkYsY0FBYyxDQUFDLGVBQWUsQ0FBQyxtR0FBbUcsd0JBQXdCLENBQUMsbUhBQW1ILGdCQUFnQixDQUFDLCtIQUErSCxjQUFjLENBQUMsaUJBQWlCLENBQUMsaUdBQWlHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxnR0FBZ0csb0JBQW9CLENBQUMsZUFBZSxDQUFDLHNHQUFzRyx3QkFBd0IsQ0FBQyxxR0FBcUcsOEJBQThCLENBQUMsaUhBQWlILDZCQUE2QixDQUFDLGlCQUFpQixDQUFDLHNHQUFzRyw2QkFBNkIsQ0FBQyxrSEFBa0gsYUFBYSxDQUFDLDhCQUE4QixDQUFDLGlGQUFpRixtQkFBbUIsQ0FBQyw2RkFBNkYsbUJBQW1CLENBQUMsdUZBQXVGLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxnQkFBZ0IsQ0FBQyxtR0FBbUcsaUJBQWlCLENBQUMsY0FBYyxDQUFDLDZCQUE2QixVQUFVLENBQUMsNkNBQTZDLGFBQWEsQ0FBQyw0QkFBNEIsbUJBQW1CLENBQUMsd0NBQXdDLG1CQUFtQixDQUFDLDZCQUE2QixVQUFVLENBQUMsaUJBQWlCLENBQUMseUNBQXlDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQyw2Q0FBNkMscUJBQXFCLENBQUMsdUNBQXVDLHlDQUF5QyxDQUFDLGtCQUFrQixDQUFDLDBCQUEwQixDQUFDLG1CQUFtQixxQkFBcUIsQ0FBQyxxQkFBcUIsQ0FBQyxtQ0FBbUMsQ0FBQyxNQUFNLENBQUMsb0NBQW9DLFFBQVEsQ0FBQyw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsbUZBQW1GLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLGlDQUFpQyxXQUFXLENBQUMsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsMkJBQTJCLENBQUMsa0JBQWtCLENBQUMsaUZBQWlGLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLHVDQUF1Qyw0QkFBNEIsQ0FBQyxlQUFlLENBQUMsdUNBQXVDLHlCQUF5QixDQUFDLGVBQWUsQ0FBQyx5REFBeUQsd0JBQWdCLENBQWhCLGdCQUFnQixDQUFDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQyxzQkFBc0IsQ0FBQyxjQUFjLENBQUMsNEVBQTRFLGNBQWMsQ0FBQywwRUFBMEUsd0JBQXdCLENBQUMseUtBQXlLLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyx1REFBdUQscUJBQXFCLENBQUMsc0JBQXNCLENBQUMsZ0JBQWdCLENBQUMscUtBQXFLLFVBQVUsQ0FBQyx3QkFBd0IsQ0FBQyx1TUFBdU0sZUFBZSxDQUFDLHdFQUF3RSx3QkFBd0IsQ0FBQyxVQUFVLENBQUMsMEVBQTBFLFVBQVUsQ0FBQyx1RUFBdUUsaUJBQWlCLENBQUMsbUZBQW1GLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxxRUFBcUUsYUFBYSxDQUFDLGVBQWUsQ0FBQyxpQkFBaUIsQ0FBQyxpRkFBaUYsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLCtCQUErQixhQUFhLENBQUMsZ0JBQWdCLENDRTE0TztFQUNJLGNBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0FBQUosQ0FHQTtFQUNJO0lBQ0ksZUFBQTtFQUFOO0FBQ0YsQ0FHQTtFQUNJLHFCQUFBO0VBQ0EsVUFBQTtBQURKLENBSUE7RUFDSSxvQ0FBQTtFQUNBLHVCQUFBO0FBREoiLCJmaWxlIjoic3JjL2FwcC9zaGFyZWQvYXNzaWduLXVzZXJzL2Fzc2lnbi11c2Vycy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbi5yZWQtbGFiZWwge1xuICAgIGNvbG9yOiAjYTUxZjM4O1xuICAgIGZvbnQtd2VpZ2h0OiA1MDA7XG4gICAgdGV4dC1hbGlnbjogbGVmdDtcbn1cblxuQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogMTI4MHB4KSB7XG4gICAgLmlvc3Uge1xuICAgICAgICBmb250LXNpemU6IDExcHg7XG4gICAgfVxufVxuXG51bCB7XG4gICAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICAgIHBhZGRpbmc6IDA7XG59XG5cbjo6bmctZGVlcCAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZCB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzIxOTZmMyAhaW1wb3J0YW50O1xuICAgIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AssignUsersComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'assign-users',
templateUrl: './assign-users.component.html',
styleUrls: ['./assign-users.component.scss']
}]
}], function () { return [{ type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"] }, { type: src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_8__["CompanyService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__["CustomFieldService"] }]; }, { ngSelectComponent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: [_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__["NgSelectComponent"]]
}], toastMessage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], moduleName: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], isNextBtnActiveEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], userDetails: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], isAdminView: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], isLoading: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], buttonText: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], onSubmitAssignUsers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], showCreateButton: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], hideCreateButton: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], getAssignUsersData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "ABpr":
/*!***********************************************************!*\
!*** ./src/app/users/pages/auth/login/login.component.ts ***!
\***********************************************************/
/*! exports provided: LoginComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginComponent", function() { return LoginComponent; });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/auth/auth.service */ "PxIJ");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function LoginComponent_div_11_div_4_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Company Name is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function LoginComponent_div_11_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, LoginComponent_div_11_div_4_small_1_Template, 2, 0, "small", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.f.companyId.errors.required);
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
function LoginComponent_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Company Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, LoginComponent_div_11_div_4_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](2, _c0, ctx_r0.submitted && ctx_r0.f.companyId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.submitted && ctx_r0.f.companyId.errors);
} }
function LoginComponent_div_16_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Staff ID is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function LoginComponent_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, LoginComponent_div_16_small_1_Template, 2, 0, "small", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.f.staffId.errors.required);
} }
function LoginComponent_div_21_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LoginComponent_div_21_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r9.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function LoginComponent_div_22_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LoginComponent_div_22_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function LoginComponent_div_23_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function LoginComponent_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, LoginComponent_div_23_small_1_Template, 2, 0, "small", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.f.password.errors.required);
} }
function LoginComponent_span_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span", 31);
} }
class LoginComponent {
constructor(router, auth, toastService, storageService, formBuilder, titleService, route, userService) {
this.router = router;
this.auth = auth;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.titleService = titleService;
this.route = route;
this.userService = userService;
this.submitted = false;
this.passwordvisible = false;
this.favicon = localStorage.getItem("favicon") || "";
this.isLoading = false;
this.favIcon = document.querySelector('#favIcon');
router.events
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["switchMap"])(() => this.route.params))
.subscribe((val) => {
this.companyName = val.name;
const urlCompany = {
key: 'urlCompanyName',
value: val.name,
};
this.storageService.addItem(urlCompany);
this.titleService.setTitle(this.companyName);
this.initForm();
this.userLoginForm.reset();
if (this.companyName != 'xforce' && this.companyName != undefined) {
this.getLogo(this.companyName);
}
else {
this.companyLogo = './assets/images/xforce.png';
this.favIcon.href = !!this.favicon ? this.favicon : 'favicon.ico';
this.userLoginForm
.get('companyId')
.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required);
}
});
}
ngOnInit() {
localStorage.removeItem("favicon");
}
passwordVisible() {
this.passwordvisible = !this.passwordvisible;
}
initForm() {
this.userLoginForm = this.formBuilder.group({
staffId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required]],
password: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required]],
companyId: [''],
});
}
get f() {
return this.userLoginForm.controls;
}
navigateToForgetPassword() {
this.router.navigate(['/users/forget-password/', this.companyName]);
}
navigateToPasswordExpired() {
this.router.navigate(['/users/password-expired/', this.companyName]);
}
navigateToWelcomeScreen() {
this.router.navigate(['/users/WelcomeScreen/', this.companyName]);
}
navigateToTerms() {
this.router.navigate(['/users/terms-conditions/', this.companyName]);
}
navigateToSupport() {
this.router.navigate(['/users/support/', this.companyName]);
}
pressEnter(event) {
if (event.keyCode == 13) {
this.onLogin();
}
}
getLogo(companyName) {
const logo = this.auth
.fetchCompanyId(companyName)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
logo.unsubscribe();
}))
.subscribe((res) => {
if (res.data) {
const baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].imageUrl + '/';
const logo = res.data.logo ? Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["generateImageUrl"])(baseUrl + res.data.logo) : '';
const favicon = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["generateImageUrl"])(baseUrl + (res.data.favicon || res.data.logo));
this.companyLogo = logo;
localStorage.setItem("favicon", favicon);
this.favIcon.href = favicon;
}
else {
this.companyLogo = './assets/images/xforce.png';
this.favIcon.href = !!this.favicon ? this.favicon : 'favicon.ico';
}
}, () => {
this.toastService.error('Unable to fetch Company Details', 'Something went wrong');
this.companyLogo = './assets/images/xforce.png';
this.favIcon.href = !!this.favicon ? this.favicon : 'favicon.ico';
});
}
getCompany(urlName) {
this.isLoading = true;
this.loginCredentials = this.userLoginForm.value;
this.auth.fetchCompanyId(urlName).subscribe((res) => {
if (res === null || res === void 0 ? void 0 : res.data) {
const companyID = res.data._id;
this.loginCredentials['companyId'] = companyID;
return this.auth.login(this.loginCredentials)
.subscribe((res) => {
var _a, _b, _c, _d;
if ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) {
this.auth.pwdChangeDuration().subscribe((response) => {
var _a, _b;
this.isRegistered = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.registration;
localStorage.setItem("privilegeFlags", JSON.stringify(res['data']['data']['privilegeFlags']));
localStorage.setItem("loggedInUserName", JSON.stringify(res['data']['data']['name']));
localStorage.setItem("loggedInUserId", res['data']['data']['userId']);
localStorage.setItem("companyDetails", JSON.stringify(res['data']['data']['companyId'] || null));
if (this.isRegistered) {
localStorage.setItem("otpToken", ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.token));
this.navigateToWelcomeScreen();
}
else {
this.toastService.success('Logged in successfully');
this.userService.setUserProfileData(res);
this.router.navigateByUrl('/users/home');
}
});
}
else if ((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.passwordExpired) {
this.toastService.error((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.message, 'Failed', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
this.navigateToPasswordExpired();
}
else {
this.toastService.error((_d = res === null || res === void 0 ? void 0 : res.data) === null || _d === void 0 ? void 0 : _d.message, 'Failed', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}
this.isLoading = false;
}, (error) => {
var _a;
this.isLoading = false;
let errorMessage = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message;
this.toastService.error(errorMessage, 'Failed', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
else {
this.toastService.error('This company name does not exist, please enter correct name', 'Failed', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}
}, (error) => {
this.toastService.error("This company name does not exist, please enter correct name", 'Failed', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
this.isLoading = false;
});
}
onLogin() {
if (!this.userLoginForm.valid) {
this.submitted = true;
return;
}
if (this.companyName != 'xforce' && this.companyName != undefined) {
this.getCompany(this.companyName);
}
else {
this.getCompany(this.userLoginForm.controls.companyId.value);
}
}
}
LoginComponent.ɵfac = function LoginComponent_Factory(t) { return new (t || LoginComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__["Title"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"])); };
LoginComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: LoginComponent, selectors: [["app-login"]], decls: 34, vars: 16, consts: [[1, "d-flex", "login-main", "flex-sm-row", "flex-column"], [1, "flex-fill", "min-w50", "d-sm-block", "d-none"], [1, "mw-100", "bg-banner"], [1, "flex-fill", "bg"], [1, "d-flex", "align-items-center", "h-100", "min-h35"], [1, "d-flex", "justify-content-center", "min-w100"], [1, "login-body", "min-w50", "card"], [1, "card-body"], [1, "d-flex", "justify-content-center", "companyLogo", "mb-5"], ["crossorigin", "anonymous", 1, "w-50", "img-fluid", 3, "src"], [3, "formGroup", "keydown"], ["class", "form-group", 4, "ngIf"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-500"], ["type", "text", "formControlName", "staffId", "aria-describedby", "emailHelp", "placeholder", "Enter Staff ID", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["for", "exampleInputPassword1", 1, "font-weight-500"], ["placeholder", "Password", "formControlName", "password", "required", "", 1, "form-control", "password-field", 3, "type", "ngClass"], ["class", "eye-slash", 4, "ngIf"], [1, "pull-right", "link", "mb-3", "mt-1", 3, "click"], [1, "btn", "btn-block", "bg-theme", "mb-3", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm ml-2", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "d-flex", "justify-content-between"], [1, "link", 3, "click"], [1, "font-weight-500"], ["type", "text", "formControlName", "companyId", "placeholder", "Enter Company Name", 1, "form-control", 3, "ngClass"], [1, "invalid-feedback"], [4, "ngIf"], [1, "eye-slash"], ["aria-hidden", "true", 1, "fa", "fa-eye-slash", "fa-lg", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-eye", "fa-lg", 3, "click"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-2"]], template: function LoginComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "img", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "form", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keydown", function LoginComponent_Template_form_keydown_10_listener($event) { return ctx.pressEnter($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, LoginComponent_div_11_Template, 5, 4, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, LoginComponent_div_16_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "Password");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](20, "input", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, LoginComponent_div_21_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, LoginComponent_div_22_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, LoginComponent_div_23_Template, 2, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LoginComponent_Template_a_click_24_listener() { return ctx.navigateToForgetPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Forgot password ?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LoginComponent_Template_button_click_26_listener() { return ctx.onLogin(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, " SIGN IN ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, LoginComponent_span_28_Template, 1, 0, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "a", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LoginComponent_Template_a_click_30_listener() { return ctx.navigateToTerms(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Terms and Conditions*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "a", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function LoginComponent_Template_a_click_32_listener() { return ctx.navigateToSupport(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, "Support");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx.companyLogo, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.userLoginForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.companyName == "xforce");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](12, _c0, ctx.submitted && ctx.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.staffId.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx.passwordvisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](14, _c0, ctx.submitted && ctx.f.password.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.passwordvisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.passwordvisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.submitted && ctx.f.password.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isLoading);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["RequiredValidator"]], styles: [".login-main[_ngcontent-%COMP%] .min-w50[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n min-width: 50%;\n}\n.login-main[_ngcontent-%COMP%] .bg-banner[_ngcontent-%COMP%] {\n background-image: url('background.jpg');\n background-repeat: no-repeat;\n background-size: cover;\n min-height: 100vh;\n min-width: 100%;\n}\n.login-main[_ngcontent-%COMP%] .min-h35[_ngcontent-%COMP%] {\n min-height: 100vh;\n}\n.flex-fill.bg[_ngcontent-%COMP%] {\n background-image: url('loginBg.jpg');\n}\n.eye-slash[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -23px;\n cursor: pointer;\n}\n.flex-space-between[_ngcontent-%COMP%] {\n display: flex;\n}\n.password-field[_ngcontent-%COMP%] {\n width: 60vh;\n}\n.terms-conditions-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding: 20px;\n margin-top: -20px;\n}\n.link[_ngcontent-%COMP%] {\n text-decoration: none;\n cursor: pointer;\n}\n.btn.bg-theme[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #a42138;\n}\n.btn.bg-theme[_ngcontent-%COMP%]:hover {\n background-color: #8e192e;\n}\n.login-button-container[_ngcontent-%COMP%] {\n padding: 0px 20px 0 20px;\n}\n.companyLogo[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n max-width: 200px;\n}\n.form-control[_ngcontent-%COMP%] {\n width: 100% !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC9sb2dpbi9sb2dpbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDRTtFQUNFLHVCQUFBO0VBQ0EsU0FBQTtFQUNBLGNBQUE7QUFBSjtBQUdFO0VBQ0UsdUNBQUE7RUFDQSw0QkFBQTtFQUNBLHNCQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0FBREo7QUFHRTtFQUNFLGlCQUFBO0FBREo7QUFJQTtFQUNFLG9DQUFBO0FBREY7QUFJQTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxpQkFBQTtFQUNBLGVBQUE7QUFERjtBQUlBO0VBQ0UsYUFBQTtBQURGO0FBSUE7RUFDRSxXQUFBO0FBREY7QUFJQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGFBQUE7RUFDQSxpQkFBQTtBQURGO0FBSUE7RUFDRSxxQkFBQTtFQUNBLGVBQUE7QUFERjtBQUtFO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0FBRko7QUFJSTtFQUNFLHlCQUFBO0FBRk47QUFPQTtFQUNFLHdCQUFBO0FBSkY7QUFRRTtFQUNFLGdCQUFBO0FBTEo7QUFRQTtFQUNFLHNCQUFBO0FBTEYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9hdXRoL2xvZ2luL2xvZ2luLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmxvZ2luLW1haW4ge1xuICAubWluLXc1MCB7XG4gICAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG4gICAgYm9yZGVyOiAwO1xuICAgIG1pbi13aWR0aDogNTAlO1xuICB9XG5cbiAgLmJnLWJhbm5lciB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogdXJsKFwiLi4vLi4vLi4vLi4vLi4vYXNzZXRzL2ltYWdlcy9iYWNrZ3JvdW5kLmpwZ1wiKTtcbiAgICBiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuICAgIGJhY2tncm91bmQtc2l6ZTogY292ZXI7XG4gICAgbWluLWhlaWdodDogMTAwdmg7XG4gICAgbWluLXdpZHRoOiAxMDAlO1xuICB9XG4gIC5taW4taDM1IHtcbiAgICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgfVxufVxuLmZsZXgtZmlsbC5iZyB7XG4gIGJhY2tncm91bmQtaW1hZ2U6IHVybChcIi4uLy4uLy4uLy4uLy4uL2Fzc2V0cy9pbWFnZXMvbG9naW5CZy5qcGdcIik7XG59XG5cbi5leWUtc2xhc2gge1xuICB3aWR0aDogMjBweDtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICByaWdodDogMzBweDtcbiAgbWFyZ2luLXRvcDogLTIzcHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLmZsZXgtc3BhY2UtYmV0d2VlbiB7XG4gIGRpc3BsYXk6IGZsZXg7XG59XG5cbi5wYXNzd29yZC1maWVsZCB7XG4gIHdpZHRoOiA2MHZoO1xufVxuXG4udGVybXMtY29uZGl0aW9ucy1jb250YWluZXIge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIHBhZGRpbmc6IDIwcHg7XG4gIG1hcmdpbi10b3A6IC0yMHB4O1xufVxuXG4ubGluayB7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uYnRuIHtcbiAgJi5iZy10aGVtZSB7XG4gICAgY29sb3I6ICNmZmY7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcblxuICAgICY6aG92ZXIge1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzhlMTkyZTtcbiAgICB9XG4gIH1cbn1cblxuLmxvZ2luLWJ1dHRvbi1jb250YWluZXIge1xuICBwYWRkaW5nOiAwcHggMjBweCAwIDIwcHg7XG59XG5cbi5jb21wYW55TG9nbyB7XG4gIGltZyB7XG4gICAgbWF4LXdpZHRoOiAyMDBweDtcbiAgfVxufVxuLmZvcm0tY29udHJvbCB7XG4gIHdpZHRoOiAxMDAlICFpbXBvcnRhbnQ7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](LoginComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-login',
templateUrl: './login.component.html',
styleUrls: ['./login.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"] }, { type: src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_6__["AuthService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__["Title"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_5__["ActivatedRoute"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"] }]; }, null); })();
/***/ }),
/***/ "AYNl":
/*!******************************************************************!*\
!*** ./src/app/users/service/custom-form/custom-form.service.ts ***!
\******************************************************************/
/*! exports provided: CustomFormService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomFormService", function() { return CustomFormService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class CustomFormService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
this.formServiceBaseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].formServiceBaseUrl;
this.serviceModuleBaseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].serviceModuleBaseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
get Header() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'text/csv',
});
}
getAllForms(data) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/list?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["generateHttpQueryParams"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
singleFormData(id) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/single/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getsubmittedFormData(id) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/response/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSubmittedFormDataAdmin(id) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/admin/response/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getWorkFlowLogs(workFlowID) {
return this.http.get(`${this.baseUrl}/customform/readManageFormLog/${workFlowID}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllMyForms(data) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/myForms?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["generateHttpQueryParams"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllFormLogs(data) {
return this.http.get(`${this.baseUrl}/customForm/readManageFormLog?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllManageFormLogs(data) {
return this.http.get(`${this.baseUrl}/custom-form/readManageFormLog?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateForm(data, id) {
return this.http
.put(`${this.baseUrl}/custom-form/${id}`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createForm(data) {
return this.http
.post(`${this.formServiceBaseUrl}/api/form`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportForm(data) {
let queryParams = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]();
queryParams = queryParams.append('timeZone', '-330');
return this.http
.post(`${this.baseUrl}/customForm/exportFormCsv`, data, {
headers: this.Headers,
params: queryParams,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportWorkFlowPdf(data) {
return this.http
.post(`${this.baseUrl}/customForm/exportCustomForm`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
downloadCustomFormPdf(url) {
const httpOptions = {
responseType: 'blob'
};
return this.http
.get(`${this.baseUrl}${url}`, {
headers: this.Headers,
observe: 'body',
responseType: 'blob'
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getOneForm(id) {
return this.http.get(`${this.baseUrl}/custom-form/${id}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getFormSettings(id) {
return this.http.get(`${this.baseUrl}/customform/getFormSettings/${id}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
setFormSettings(data) {
return this.http
.post(`${this.baseUrl}/customform/setFormSettings`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateWorkflowStatus(data) {
return this.http
.post(`${this.baseUrl}/customForm/updateWorkflowStatus`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getOneFormManage(data, payload) {
return this.http.post(`${this.baseUrl}/customform/readManageforms/${data.customFormId}?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
submitAnswers(data) {
return this.http.post(`${this.baseUrl}/custom-form/readManageforms/`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
markAsAttendnace(data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/mark/attendance`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getManageFormUser(data) {
return this.http.post(`${this.baseUrl}/customForm/getManageFormUsers`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getExportCSV(data) {
return this.http.get(`${this.baseUrl}${data}`, { responseType: 'text' })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateFormStatus(data) {
return this.http.put(`${this.baseUrl}/customForm/updateForm`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
uploadFiles(data) {
return this.http.post(`${this.baseUrl}/external/uploadFiles`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
cancelSubmission(data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/cancel`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportManageForm(data) {
return this.http.post(`${this.baseUrl}/customForm/exportManageForms?timeZone=-330`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getServicesList() {
return this.http.get(`${this.serviceModuleBaseUrl}/api/serviceSetup/serviceNames?page=1&limit=10&sort={"_id":-1}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getQuestionList(formId, moduleId, type = 'view') {
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
return this.http.get(`${this.formServiceBaseUrl}/api/form/${formId}/question/${moduleId}?type=${type}&timezone=${timeZone}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
formSubmissionList(customFormId, data, currentPage) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/list/${customFormId}?limit=15&page=${currentPage}`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getFormsIndividualLogs(customFormId, currentPage) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/log/${customFormId}?limit=10&page=${currentPage}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
resubmitForm(data, id) {
return this.http
.post(`${this.formServiceBaseUrl}/api/form/manage/save/${id}`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getStats(data) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/manage/stats/${data.customFormId}?serviceId=${data.serviceId}&buId=${data.buId}&status=${data.status}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
serviceTimeDropDownAll(serviceSetupId, timezone) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/service/timingsAsPerWeeksConfig`, { serviceSetupId, timezone }, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
serviceTimeDropDown(serviceSetupId, timezone) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/service/timings`, { serviceSetupId, timezone }, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getTransportBusinessUnit() {
return this.http.get(`${this.formServiceBaseUrl}/api/master/transportbu`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
submitForm(data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/submit`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportData(customFormId, data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/export/${customFormId}`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
indentDraft(data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/indent/draft`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
indentDraftMultiple(data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/indent/draft/multiple`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
multipleBooking(data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/multiple/booking`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
generateAutoPopulateData(data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/autopopulatedata`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
searchUserByText(data) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/manage/user/bytext?search=${data}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSubmittedForms(id) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/submitted/web/${id}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getIndentLogs(data, customFormId) {
return this.http.get(`${this.formServiceBaseUrl}/api/form/manage/log/${customFormId}?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
downloadLogError(data) {
return this.http.post(`${this.formServiceBaseUrl}/api/form/manage/log/fileDownload`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAdminTransportMasterData(type, data) {
return this.http.get(`${this.formServiceBaseUrl}/api/master/${type}?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportTransportMasterData(type) {
return this.http.get(`${this.formServiceBaseUrl}/api/master/${type}/export`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateTransportMasterData(data, id, type) {
return this.http
.post(`${this.formServiceBaseUrl}/api/master/${type}/${id}`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createTransportMasterData(data, type) {
return this.http
.post(`${this.formServiceBaseUrl}/api/master/${type}`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
importCSVMasterData(data, type) {
return this.http
.post(`${this.formServiceBaseUrl}/api/master/${type}/import`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
CustomFormService.ɵfac = function CustomFormService_Factory(t) { return new (t || CustomFormService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
CustomFormService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: CustomFormService, factory: CustomFormService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CustomFormService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "Aypa":
/*!*****************************************************************************************************!*\
!*** ./src/app/users/pages/communication/notification/my-notification/my-notification.component.ts ***!
\*****************************************************************************************************/
/*! exports provided: MyNotificationComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyNotificationComponent", function() { return MyNotificationComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _unread_unread_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unread/unread.component */ "8/z8");
/* harmony import */ var _acknowledged_acknowledged_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./acknowledged/acknowledged.component */ "eJGe");
function MyNotificationComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-unread");
} }
function MyNotificationComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-acknowledged");
} }
class MyNotificationComponent {
constructor() {
this.activeId = 1;
}
ngOnInit() {
}
}
MyNotificationComponent.ɵfac = function MyNotificationComponent_Factory(t) { return new (t || MyNotificationComponent)(); };
MyNotificationComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MyNotificationComponent, selectors: [["app-my-notification"]], decls: 12, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"]], template: function MyNotificationComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function MyNotificationComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "UNREAD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyNotificationComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " ACKNOWLEDGED");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, MyNotificationComponent_ng_template_10_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _unread_unread_component__WEBPACK_IMPORTED_MODULE_2__["UnreadComponent"], _acknowledged_acknowledged_component__WEBPACK_IMPORTED_MODULE_3__["AcknowledgedComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ub3RpZmljYXRpb24vbXktbm90aWZpY2F0aW9uL215LW5vdGlmaWNhdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHNCQUFBO0FBQ0Y7QUFBRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUVKO0FBQUk7RUFDRSxjQUFBO0FBRU47QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbm90aWZpY2F0aW9uL215LW5vdGlmaWNhdGlvbi9teS1ub3RpZmljYXRpb24uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2LXRhYnMge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAubmF2LWxpbmsge1xuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIHBhZGRpbmc6IDEycHggMjBweDtcbiAgICB0cmFuc2l0aW9uOiBjb2xvciAwLjJzO1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIH1cblxuICAgICYuYWN0aXZlIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgI2E0MjEzODtcbiAgICAgIGJvcmRlci1ib3R0b206IDNweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MyNotificationComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-my-notification',
templateUrl: './my-notification.component.html',
styleUrls: ['./my-notification.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "AytR":
/*!*****************************************!*\
!*** ./src/environments/environment.ts ***!
\*****************************************/
/*! exports provided: environment */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.
const environment = {
production: true,
// baseUrl: 'https://api.net-roc.com',
imageUrl: 'https://admin.net-roc.com',
// webBaseUrl: 'https://api.net-roc.com',
baseUrl: 'https://admin.net-roc.com',
webBaseUrl: 'https://www.net-roc.com',
salt: '488EC1D327BE388E7126D67D3F22D',
froalaEditorKey: 'gVG3C-8D2D2A4D5C4E4A1vd1EAJLQCVLUVBa1NXNRSSATEXD-13C3B2E2E2E3C1A2C7E2A2==',
formServiceBaseUrl: 'https://api-form.net-roc.com',
serviceModuleBaseUrl: 'https://api-service.net-roc.com'
};
/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
/***/ }),
/***/ "Az0T":
/*!*******************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-shift/plan-shift.component.ts ***!
\*******************************************************************************************/
/*! exports provided: PlanShiftComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanShiftComponent", function() { return PlanShiftComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./plan-shift-header/plan-shift-header.component */ "SD5B");
/* harmony import */ var _plan_overview_plan_overview_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./plan-overview/plan-overview.component */ "UEAd");
/* harmony import */ var _assign_shift_assign_shift_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./assign-shift/assign-shift.component */ "QR1U");
/* harmony import */ var _open_shift_open_shift_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./open-shift/open-shift.component */ "KWUy");
/* harmony import */ var _log_assign_log_assign_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./log-assign/log-assign.component */ "D7Pn");
/* harmony import */ var _log_open_log_open_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./log-open/log-open.component */ "0inZ");
/* harmony import */ var _staffing_staffing_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./staffing/staffing.component */ "rFwA");
const _c0 = ["sidemenu"];
function PlanShiftComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function PlanShiftComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r3.planBuId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "button", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanShiftComponent_div_0_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.viewClicked(ctx_r5.planBuId); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.buForShift)("loading", ctx_r0.buLoader)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.planBuId);
} }
function PlanShiftComponent_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-plan-shift-header", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "app-plan-overview", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overviewHeaderData", function PlanShiftComponent_div_1_ng_template_6_Template_app_plan_overview_overviewHeaderData_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r13.dashboardData($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("data", ctx_r7.headerData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("isPlan", true)("bu", ctx_r7.Bu)("page", 1);
} }
function PlanShiftComponent_div_1_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-assign-shift", 23);
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("bu", ctx_r8.Bu)("tier", ctx_r8.tier);
} }
function PlanShiftComponent_div_1_ng_template_14_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-plan-shift-header", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "app-open-shift", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("changeTab", function PlanShiftComponent_div_1_ng_template_14_Template_app_open_shift_changeTab_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r15.activeTab($event); })("weekStart", function PlanShiftComponent_div_1_ng_template_14_Template_app_open_shift_weekStart_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r17.getshiftfor($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("data", ctx_r9.headerData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("bu", ctx_r9.Bu)("tier", ctx_r9.tier);
} }
function PlanShiftComponent_div_1_ng_template_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-log-assign", 25);
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("bu", ctx_r10.Bu);
} }
function PlanShiftComponent_div_1_ng_template_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-log-open", 26);
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("bu", ctx_r11.Bu)("shift", ctx_r11.shiftdata);
} }
function PlanShiftComponent_div_1_ng_template_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-staffing", 25);
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("bu", ctx_r12.Bu);
} }
function PlanShiftComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 13, 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function PlanShiftComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, PlanShiftComponent_div_1_ng_template_6_Template, 2, 4, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "ASSIGN SHIFT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, PlanShiftComponent_div_1_ng_template_10_Template, 1, 2, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "OPEN SHIFT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, PlanShiftComponent_div_1_ng_template_14_Template, 2, 3, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "LOG (ASSIGN)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, PlanShiftComponent_div_1_ng_template_18_Template, 1, 1, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "LOG (OPEN)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, PlanShiftComponent_div_1_ng_template_22_Template, 1, 2, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "STAFFING");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, PlanShiftComponent_div_1_ng_template_26_Template, 1, 1, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](27, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r6);
} }
class PlanShiftComponent {
constructor(route, router, renderer, setupService, toastrService, companyService) {
this.route = route;
this.router = router;
this.renderer = renderer;
this.setupService = setupService;
this.toastrService = toastrService;
this.companyService = companyService;
this.activeId = 1;
this.isCreate = true;
this.delete = true;
this.buLoader = true;
this.router.routeReuseStrategy.shouldReuseRoute = function () {
return false;
};
this.router.onSameUrlNavigation = 'reload';
this.routeSub = this.route.data.subscribe((val) => {
this.isView = val.isView;
});
}
ngOnInit() {
this.getAllBuForShift();
this.getTier();
}
getAllBuForShift() {
this.buLoader = true;
const buSubscribe = this.setupService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}))
.subscribe((res) => {
var _a;
// if (res.success) {
this.buForShift = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.businessUnitList;
/* } else {
this.buForShift = [];
}*/
}, (error) => {
this.buForShift = [];
});
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
getTier() {
const tier = this.companyService
.getcompanySetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
tier.unsubscribe();
}))
.subscribe((res) => {
this.tier = res.data.opsGroup.tierType;
console.log("tier in parent component", this.tier, res);
});
}
ngOnDestroy() {
this.routeSub.unsubscribe();
}
viewClicked() {
if (this.planBuId) {
this.Bu = this.planBuId;
this.isView = true;
}
else {
this.toastrService.warning('Please select Business Unit', 'Warning');
}
}
activeTab(e) {
this.activeId = e;
}
getshiftfor(e) {
this.shiftdata = e;
}
dashboardData(e) {
this.headerData = e;
}
}
PlanShiftComponent.ɵfac = function PlanShiftComponent_Factory(t) { return new (t || PlanShiftComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_5__["CompanySetupService"])); };
PlanShiftComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: PlanShiftComponent, selectors: [["app-plan-shift"]], viewQuery: function PlanShiftComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
} }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "form-group"], [1, "d-block", "text-center"], ["loadingText", "Please wait data is loading...", "bindLabel", "orgName", "placeholder", "Select/Search Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [1, "not-allowed", 3, "ngbNavItem"], ["ngbNavLink", "", 1, "no-click"], [3, "ngbNavOutlet"], [3, "data"], [3, "isPlan", "bu", "page", "overviewHeaderData"], [3, "bu", "tier"], [3, "bu", "tier", "changeTab", "weekStart"], [3, "bu"], [3, "bu", "shift"]], template: function PlanShiftComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, PlanShiftComponent_div_0_Template, 14, 6, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, PlanShiftComponent_div_1_Template, 28, 8, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavOutlet"], _plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_11__["PlanShiftHeaderComponent"], _plan_overview_plan_overview_component__WEBPACK_IMPORTED_MODULE_12__["PlanOverviewComponent"], _assign_shift_assign_shift_component__WEBPACK_IMPORTED_MODULE_13__["AssignShiftComponent"], _open_shift_open_shift_component__WEBPACK_IMPORTED_MODULE_14__["OpenShiftComponent"], _log_assign_log_assign_component__WEBPACK_IMPORTED_MODULE_15__["LogAssignComponent"], _log_open_log_open_component__WEBPACK_IMPORTED_MODULE_16__["LogOpenComponent"], _staffing_staffing_component__WEBPACK_IMPORTED_MODULE_17__["StaffingComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3BsYW4tc2hpZnQvcGxhbi1zaGlmdC5jb21wb25lbnQuc2NzcyJ9 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlanShiftComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-plan-shift',
templateUrl: './plan-shift.component.html',
styleUrls: ['./plan-shift.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_5__["CompanySetupService"] }]; }, { sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sidemenu']
}] }); })();
/***/ }),
/***/ "BB5t":
/*!*********************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/timesheet/timesheet-overview/timesheet-overview.component.ts ***!
\*********************************************************************************************************************/
/*! exports provided: TimesheetOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimesheetOverviewComponent", function() { return TimesheetOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
function TimesheetOverviewComponent_div_0_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Please wait, Data is Refreshing ...... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_p_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" split shift ", data_r5 == null ? null : data_r5.position, " ");
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_p_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Assigned Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_1_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const data_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r14.manualCheckout(data_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Manual Clock-out ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_2_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const data_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r17.qrClockOut(data_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Qr Clock-out ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_3_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r22); const data_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r20.facialAttendance(data_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Facial Clock-out ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_1_Template, 2, 0, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_2_Template, 2, 0, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_button_3_Template, 2, 0, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const data_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (data_r5 == null ? null : data_r5.attendance == null ? null : data_r5.attendance.attendanceMode) == "Manual");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (data_r5 == null ? null : data_r5.attendance == null ? null : data_r5.attendance.attendanceMode) == "Qr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (data_r5 == null ? null : data_r5.attendance == null ? null : data_r5.attendance.attendanceMode) == "Facial");
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_26_button_1_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_26_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r28); const data_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r26.facialAttendance(data_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Facial Clock-in ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_26_button_2_Template(rf, ctx) { if (rf & 1) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_26_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r31); const data_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r29.markUserAttendance(data_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " QR Clock-in ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_26_button_1_Template, 2, 0, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_26_button_2_Template, 2, 0, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const data_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", data_r5 == null ? null : data_r5.isFacial);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !(data_r5 == null ? null : data_r5.isFacial));
} }
function TimesheetOverviewComponent_div_0_table_11_tr_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, TimesheetOverviewComponent_div_0_table_11_tr_22_p_4_Template, 2, 1, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, TimesheetOverviewComponent_div_0_table_11_tr_22_p_5_Template, 2, 0, "p", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](15, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](21, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_25_Template, 4, 3, "ng-container", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, TimesheetOverviewComponent_div_0_table_11_tr_22_ng_container_26_Template, 3, 2, "ng-container", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r5 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 12, data_r5 == null ? null : data_r5.shiftDetails == null ? null : data_r5.shiftDetails.date, "dd-MM-yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (data_r5.shiftDetails == null ? null : data_r5.shiftDetails.isSplitShift) == true && (data_r5 == null ? null : data_r5.position));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", data_r5.shiftDetails.isAssignShift == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", data_r5 == null ? null : data_r5.userInfo == null ? null : data_r5.userInfo.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r5 == null ? null : data_r5.userInfo == null ? null : data_r5.userInfo.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 15, data_r5 == null ? null : data_r5.shiftDetails == null ? null : data_r5.shiftDetails.startTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](15, 18, data_r5 == null ? null : data_r5.shiftDetails == null ? null : data_r5.shiftDetails.endTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 21, data_r5 == null ? null : data_r5.attendance == null ? null : data_r5.attendance.clockInDateTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](21, 24, data_r5 == null ? null : data_r5.attendance == null ? null : data_r5.attendance.clockOutDateTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r5 == null ? null : data_r5.attendance == null ? null : data_r5.attendance.attendanceMode);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", data_r5.hasOwnProperty("attendance"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !data_r5.hasOwnProperty("attendance"));
} }
function TimesheetOverviewComponent_div_0_table_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "USER NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "SHIFT START");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "SHIFT END");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "CLOCK IN");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "CLOCK OUT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "CLOCK IN MODE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "GO TO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, TimesheetOverviewComponent_div_0_table_11_tr_22_Template, 27, 27, "tr", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.timesheetDetails);
} }
function TimesheetOverviewComponent_div_0_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Data Available ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetOverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "CURRENT SHIFTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetOverviewComponent_div_0_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r34); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r33.getLogCsv(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Export Logs ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, TimesheetOverviewComponent_div_0_div_10_Template, 5, 0, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, TimesheetOverviewComponent_div_0_table_11_Template, 23, 1, "table", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, TimesheetOverviewComponent_div_0_div_12_Template, 2, 0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx_r0.businessUnitId.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.timesheetDashboardLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.timesheetDashboardLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.timesheetDashboardLoader && (ctx_r0.timesheetDetails == null ? null : ctx_r0.timesheetDetails.length) === 0);
} }
class TimesheetOverviewComponent {
constructor(timesheetService, userService, toastService) {
this.timesheetService = timesheetService;
this.userService = userService;
this.toastService = toastService;
this.onButtonClick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.onUserData = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.isOverview = true;
this.showShiftDetails = false;
this.timesheetDetails = [];
this.attMode = true;
this.timesheetDashboardLoader = true;
}
ngOnInit() {
// this.readTimesheet();
// this.getTimesheetData();
// this.userService.getUserProfile().subscribe((res) => {
// this.userData = res['data'];
// });
}
ngOnChanges() {
this.readTimesheet();
this.getTimesheetData();
this.userService.getUserProfile().subscribe((res) => {
this.userData = res['data'];
});
}
changeOverview(value) {
this.isOverview = value;
}
changeShiftDetailsView(value) {
this.showShiftDetails = value;
}
readTimesheet() {
const payload = {
timeZone: 330,
};
this.timesheetDetails = [];
const timeDashboard = this.timesheetService
.readTimesheet(this.businessUnitId._id, payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
this.timesheetDashboardLoader = false;
timeDashboard.unsubscribe();
}))
.subscribe((res) => {
res === null || res === void 0 ? void 0 : res.map((item, index) => {
/* if(item.shiftDetails?.isSplitShift){
const shift1=JSON.parse(JSON.stringify(item));
shift1.position = 1;
this.timesheetDetails.push(shift1);
const shift2=JSON.parse(JSON.stringify(item));
shift2.position = 2;
shift2.shiftDetails.date=shift1?.shiftDetails?.splitShiftObj?.date,
shift2.shiftDetails.startTime=shift1?.shiftDetails?.splitShiftObj?.startTime,
shift2.shiftDetails.endTime=shift1?.shiftDetails?.splitShiftObj?.endTime
this.timesheetDetails.push(shift2);
} else {*/
// const shift=JSON.parse(JSON.stringify(item));
this.timesheetDetails.push(item);
// }
});
// this.timesheetDetails = res || [];
});
}
manualCheckout(i) {
const val = localStorage.getItem('loggedInUserId');
var dataObj = {
userId: i.userInfo._id,
shiftId: i.shiftDetails.shiftId,
shiftDetailId: i.shiftDetails._id,
attendanceMode: 'Manual',
status: 2,
attandanceTakenBy: val,
businessUnitId: i.businessUnitId,
};
sweetalert2__WEBPACK_IMPORTED_MODULE_2___default.a.fire({
title: 'This staff has not updated any breaks',
text: 'Ask staff if any breaks to update.',
icon: 'info',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
cancelButtonText: 'Wait for break input',
confirmButtonText: 'Continue Attendance',
}).then((result) => {
if (result.isConfirmed) {
this.timesheetService.getAttendance(dataObj).subscribe((response) => {
this.toastService.success((response === null || response === void 0 ? void 0 : response.message) + ' ' + 'successfully');
this.readTimesheet();
});
}
});
}
qrClockOut(data) {
data.isFacial = false;
this.onUserData.emit(data);
this.onButtonClick.emit(2);
}
facialAttendance(data) {
this.onUserData.emit(data);
this.onButtonClick.emit(2);
}
markUserAttendance(userDataOld, isSplit) {
var _a, _b;
this.onUserData.emit(userDataOld);
this.onButtonClick.emit(2);
var userData = Object.assign({}, userDataOld);
if (isSplit === 'yes') {
userData.shiftDetails = userDataOld.shiftDetails.splitShiftObj;
if (userDataOld.splitAttendance) {
userData.attendance = userDataOld.splitAttendance;
}
else {
delete userData.attendance;
}
}
this.todayTime = new Date(new Date().getTime()).toLocaleTimeString();
this.startCamera = false;
this.showCameraAttendDiv = false;
this.selectedUserFacialInfo = userData;
this.timesheetService
.generateQr((_a = this.selectedUserFacialInfo.userInfo) === null || _a === void 0 ? void 0 : _a._id, (_b = this.selectedUserFacialInfo.shiftDetails) === null || _b === void 0 ? void 0 : _b._id)
.subscribe((response) => { });
// this.timesheetService.getUserUmage(userData.userInfo._id).subscribe((response) => {
// if (response['data']) {
// this.selectedUserFacialInfo.userInfo.facialInfo = response['data'].userData.facialInfo;
// } else {
// // message('error', response['data'].message)
// }
// })
if (userData.hasOwnProperty('attendance')) {
if (userData.attendance.attendanceMode === 'Facial Failed' &&
userData.attendance.status == 4 &&
(!userData.attendance.hasOwnProperty('clockInDateTime') ||
userData.attendance.clockInDateTime == null)) {
this.tab = 2;
this.isUpdated = false;
this.showCameraAttendDiv = true;
this.cameraDivShow = true;
// this.openQr();//
}
if (userData.attendance.attendanceMode === 'Qr Failed' &&
userData.attendance.status == 4 &&
!userData.attendance.hasOwnProperty('clockInDateTime')) {
this.isUpdated = false;
// this.takeManualAttendance();//
}
if ((userData.attendance.attendanceMode === 'Qr' ||
userData.attendance.attendanceMode === 'Facial') &&
userData.attendance.status == 5) {
if (userData.attendance.breakTime.length == 0) {
if (!this.checkStatus) {
// $('#BreakTimeModalstaff').modal();//
}
else {
// $('#BreakTimeModal').modal();//
}
this.userDataObj = userData;
}
else {
this.tab = 2;
this.isUpdated = true;
this.showCameraAttendDiv = true;
this.cameraDivShow = true;
// this.openWebCamera();//
}
}
if (userData.attendance.status == 3 || userData.attendance.status == 2) {
this.tab = 3;
//this.getTimesheetData();
}
if (userData.attendance.status == 1 &&
userData.attendance.attendanceMode == 'Facial') {
if (userData.attendance.breakTime.length == 0) {
if (!this.checkStatus) {
// $('#BreakTimeModalstaff').modal();//
}
else {
// $('#BreakTimeModal').modal();//
}
this.userDataObj = userData;
}
else {
this.tab = 2;
this.isUpdated = true;
this.showCameraAttendDiv = true;
this.cameraDivShow = true;
// this.openWebCamera();//
}
}
if (userData.attendance.status == 1 &&
(userData.attendance.attendanceMode == 'Qr' ||
userData.attendance.attendanceMode === 'Facial Failed')) {
if (userData.attendance.breakTime.length == 0) {
if (!this.checkStatus) {
// $('#BreakTimeModalstaff').modal();//
}
else {
// $('#BreakTimeModal').modal();//
}
this.userDataObj = userData;
}
else {
this.tab = 2;
this.isUpdated = true;
this.showCameraAttendDiv = true;
this.cameraDivShow = true;
// this.openQr();//
}
}
if (userData.attendance.status == 1 &&
(userData.attendance.attendanceMode == 'Manual' ||
userData.attendance.attendanceMode === 'Qr Failed')) {
if (userData.attendance.breakTime.length == 0) {
if (!this.checkStatus) {
// $('#BreakTimeModalstaff').modal();//
}
else {
// $('#BreakTimeModal').modal();//
}
this.userDataObj = userData;
}
else {
this.isUpdated = true;
// this.takeManualAttendance();//
}
}
}
else {
this.isUpdated = false;
if (userData.attendanceStatusMode === 'Facial') {
this.tab = 2;
this.cameraDivShow = true;
this.showCameraAttendDiv = true;
// this.openWebCamera();//
}
if (userData.attendanceStatusMode === 'Qr') {
this.tab = 2;
this.showCameraAttendDiv = true;
// this.openQr();//
}
if (userData.attendanceStatusMode === 'Manual') {
// this.takeManualAttendance();//
}
}
}
getTimesheetData() {
this.myLoad1 = true;
this.timesheetService.getTimesheetData(this.businessUnitId._id).subscribe((response) => {
var _a;
if (((_a = response['data']) === null || _a === void 0 ? void 0 : _a.status) == 1) {
this.myLoad1 = false;
this.timeSheetData = response['data'] ? response['data'].data : null;
this.copyTimeSheetData = response['data']
? response['data'].data
: null;
}
}, function (error) {
this.myLoad1 = false;
});
}
setBtnStatus(userDetailsOld, index, from, isSplit) {
var userDetails = Object.assign({}, userDetailsOld);
//userDetails = JSON.parse(userDetails);
if (isSplit === 'yes') {
userDetails.shiftDetails = userDetails.shiftDetails.splitShiftObj;
if (userDetailsOld.splitAttendance) {
userDetails.attendance = userDetailsOld.splitAttendance;
}
else {
delete userDetails.attendance;
}
}
if (from === 'dashbaord') {
if (!this.checkStatus) {
if (userDetails.isFacial == true &&
(!userDetails.hasOwnProperty('attendance') || !userDetails.attendance)) {
this.dashboardData[index].attendanceStatusMode = 'Facial';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'redBtn hvr-pulse';
//this.dashboardData[index].attendanceStatusMode = 'Facial';
}
else {
this.dashboardData[index].btnClass = 'redBtn hvr-pulse';
}
this.dashboardData[index].attendanceStatusMode = 'Facial';
return 'Facial Clockin';
}
else if ((userDetails.isFacial == false || !userDetails.isFacial) &&
(!userDetails.hasOwnProperty('attendance') || !userDetails.attendance)) {
this.dashboardData[index].btnClass = '';
this.dashboardData[index].btnClassSplit = '';
//this.dashboardData[index].attendanceStatusMode = 'Facial';
if (isSplit === 'yes') {
this.dashboardData[index].isDisabledSplit = true;
}
else {
this.dashboardData[index].isDisabled = true;
}
return 'Please Contact Supervisor';
}
else if (userDetails.attendance &&
userDetails.attendance.IsLock === true &&
userDetails.attendance.status === 3) {
this.dashboardData[index].attendanceStatusMode = '';
if (isSplit === 'yes') {
this.dashboardData[index].isDisabledSplit = true;
this.dashboardData[index].btnClassSplit = 'greyBtn';
}
else {
this.dashboardData[index].btnClass = 'greyBtn';
this.dashboardData[index].isDisabled = true;
}
return 'Shift Completed';
}
else if (userDetails.attendance &&
userDetails.attendance.IsLock === false &&
userDetails.attendance.status === 3) {
this.dashboardData[index].attendanceStatusMode = '';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'greyBtn';
this.dashboardData[index].isDisabledSplit = true;
}
else {
this.dashboardData[index].isDisabled = true;
this.dashboardData[index].btnClass = 'greyBtn';
}
return 'Shift Completed';
}
else if (userDetails.attendance.attendanceMode === 'Facial' &&
userDetails.attendance.status === 1) {
this.dashboardData[index].attendanceStatusMode = 'Facial';
//this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'greenBtn hvr-pulse';
//this.dashboardData[index].attendanceStatusMode = 'Facial';
}
else {
this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
}
return 'Facial Clockout';
}
else if (userDetails.hasOwnProperty('attendance') &&
(userDetails.attendance.status === 2 ||
userDetails.attendance.status === 3)) {
this.dashboardData[index].attendanceStatusMode = '';
this.dashboardData[index].btnClass = 'greyBtn';
if (isSplit === 'yes') {
this.dashboardData[index].isDisabledSplit = true;
this.dashboardData[index].btnClassSplit = 'greyBtn';
}
else {
this.dashboardData[index].isDisabled = true;
this.dashboardData[index].btnClass = 'greyBtn';
}
return 'Shift Completed';
}
else {
this.dashboardData[index].btnClass = '';
this.dashboardData[index].btnClassSplit = '';
if (isSplit === 'yes') {
this.dashboardData[index].isDisabledSplit = true;
}
else {
this.dashboardData[index].isDisabled = true;
}
return 'Please Contact Supervisor';
}
}
else {
if (userDetails.isFacial == true &&
(!userDetails.hasOwnProperty('attendance') || !userDetails.attendance)) {
this.dashboardData[index].attendanceStatusMode = 'Facial';
//this.dashboardData[index].btnClass = 'redBtn hvr-pulse';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'redBtn hvr-pulse';
//this.dashboardData[index].attendanceStatusMode = 'Facial';
}
else {
this.dashboardData[index].btnClass = 'redBtn hvr-pulse';
}
return 'Facial Clockin';
}
else if (userDetails.attendance &&
userDetails.attendance.IsLock === true &&
userDetails.attendance.status === 3) {
this.dashboardData[index].attendanceStatusMode = '';
this.dashboardData[index].btnClass = 'greyBtn';
if (isSplit === 'yes') {
this.dashboardData[index].isDisabledSplit = true;
this.dashboardData[index].btnClassSplit = 'greyBtn';
}
else {
this.dashboardData[index].isDisabled = true;
}
return 'Shift Completed';
}
else if (userDetails.attendance &&
userDetails.attendance.IsLock === false &&
userDetails.attendance.status === 3) {
this.dashboardData[index].attendanceStatusMode = '';
if (isSplit === 'yes') {
this.dashboardData[index].isDisabledSplit = true;
this.dashboardData[index].btnClassSplit = 'redBtn';
}
else {
this.dashboardData[index].isDisabled = true;
this.dashboardData[index].btnClass = 'redBtn';
}
return 'Lock Timesheet';
}
else if (userDetails.attendance &&
(userDetails.isFacial == false || userDetails.isFacial == true) &&
userDetails.attendance.attendanceMode === 'Facial Failed' &&
userDetails.attendance.status === 4) {
this.dashboardData[index].attendanceStatusMode = 'Qr';
this.dashboardData[index].btnClass = 'redBtn hvr-pulse';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'redBtn hvr-pulse';
}
else {
this.dashboardData[index].btnClass = 'redBtn hvr-pulse';
}
return 'Qr Clockin';
}
else if ((userDetails.isFacial == false || !userDetails.isFacial) &&
(!userDetails.hasOwnProperty('attendance') || !userDetails.attendance)) {
this.dashboardData[index].attendanceStatusMode = 'Qr';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'redBtn hvr-pulse';
}
else {
this.dashboardData[index].btnClass = 'redBtn hvr-pulse';
}
return 'Qr Clockin';
}
else if (userDetails.attendance.attendanceMode === 'Qr Failed' &&
userDetails.attendance.status === 4) {
this.dashboardData[index].attendanceStatusMode = 'Manual';
// this.dashboardData[index].btnClass = 'redBtn hvr-pulse';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'redBtn hvr-pulse';
}
else {
this.dashboardData[index].btnClass = 'redBtn hvr-pulse';
}
return 'Manual Clockin';
}
else if (userDetails.attendance.attendanceMode === 'Facial' &&
userDetails.attendance.status === 1) {
this.dashboardData[index].attendanceStatusMode = 'Facial';
//this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'greenBtn hvr-pulse';
}
else {
this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
}
return 'Facial Clockout';
}
else if ((userDetails.attendance.attendanceMode === 'Qr' &&
userDetails.attendance.status === 1) ||
(userDetails.attendance.attendanceMode === 'Facial Failed' &&
!userDetails.attendance.hasOwnProperty('clockOutDateTime'))) {
this.dashboardData[index].attendanceStatusMode = 'Qr';
// this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'greenBtn hvr-pulse';
}
else {
this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
}
return 'Qr Clockout';
}
else if (((userDetails.attendance.attendanceMode === 'Facial' ||
userDetails.attendance.attendanceMode === 'Qr') &&
userDetails.attendance.status === 5) ||
(userDetails.attendance.attendanceMode === 'Facial Failed' &&
!userDetails.attendance.hasOwnProperty('clockOutDateTime'))) {
this.dashboardData[index].attendanceStatusMode = 'Qr';
// this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'greenBtn hvr-pulse';
}
else {
this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
}
return 'Qr Clockout';
}
else if ((userDetails.attendance.attendanceMode === 'Manual' &&
userDetails.attendance.status === 1) ||
(userDetails.attendance.attendanceMode === 'Qr Failed' &&
!userDetails.attendance.hasOwnProperty('clockOutDateTime'))) {
this.dashboardData[index].attendanceStatusMode = 'Manual';
// this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'greenBtn hvr-pulse';
}
else {
this.dashboardData[index].btnClass = 'greenBtn hvr-pulse';
}
return 'Manual Clockout';
}
else if (userDetails.attendance.IsLock === false &&
(userDetails.attendance.status === 2 ||
userDetails.attendance.status === 3) &&
(userDetails.attendance.attendanceMode === 'Qr' ||
userDetails.attendance.attendanceMode === 'Facial' ||
userDetails.attendance.attendanceMode === 'Manual')) {
this.dashboardData[index].attendanceStatusMode = '';
//this.dashboardData[index].btnClass = 'redBtn';
if (isSplit === 'yes') {
this.dashboardData[index].btnClassSplit = 'greyBtn';
}
else {
this.dashboardData[index].btnClass = 'greyBtn';
}
return 'Timesheet';
}
else if (userDetails.attendance.IsLock === true &&
userDetails.attendance.status === 3) {
this.dashboardData[index].attendanceStatusMode = '';
if (isSplit === 'yes') {
this.dashboardData[index].isDisabledSplit = true;
this.dashboardData[index].btnClassSplit = 'greyBtn';
}
else {
this.dashboardData[index].isDisabled = true;
this.dashboardData[index].btnClass = 'greyBtn';
}
return 'Shift Completed';
}
else {
}
}
}
}
getLogCsv() {
const attendanceLogPayload = {
businessUnitId: this.businessUnitId._id,
timeZone: 330,
};
this.timesheetService
.attendanceLog(attendanceLogPayload)
.subscribe((res) => {
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + encodeURI(res.csv);
a.target = '_blank';
a.download = "attendanceLog.csv";
document.body.appendChild(a);
a.click();
this.toastService.success("success", "timesheet Details exported succesfully");
});
}
}
TimesheetOverviewComponent.ɵfac = function TimesheetOverviewComponent_Factory(t) { return new (t || TimesheetOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_3__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
TimesheetOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TimesheetOverviewComponent, selectors: [["app-timesheet-overview"]], inputs: { businessUnitId: "businessUnitId", refresh: "refresh", dataAttendance: "dataAttendance" }, outputs: { onButtonClick: "onButtonClick", onUserData: "onUserData" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 1, vars: 1, consts: [["class", "card", 4, "ngIf"], [1, "card"], [1, "card-header", "d-flex", "align-items-center", "justify-content-between", "bg-theme"], [1, "m-0"], [1, "btn", "btn-sm", "btn-info", 3, "click"], [1, "card-body", "table-responsive", "p-0"], ["class", "loader", 4, "ngIf"], ["class", "table", 4, "ngIf"], ["class", "bg-white text-center p-3 pt-1", 4, "ngIf"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "table"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], [4, "ngFor", "ngForOf"], ["class", "m-0 text-primary font-weight-normal", 4, "ngIf"], ["class", "m-0 text-info", 4, "ngIf"], [1, "font-weight-500"], [4, "ngIf"], [1, "m-0", "text-primary", "font-weight-normal"], [1, "m-0", "text-info"], ["class", "btn btn-sm btn-success mr-1", 3, "click", 4, "ngIf"], ["class", "btn btn-sm btn-success", 3, "click", 4, "ngIf"], [1, "btn", "btn-sm", "btn-success", "mr-1", 3, "click"], [1, "btn", "btn-sm", "btn-success", 3, "click"], ["class", "btn btn-sm btn-danger", 3, "click", 4, "ngIf"], ["class", "btn btn-sm btn-danger mr-1", 3, "click", 4, "ngIf"], [1, "btn", "btn-sm", "btn-danger", 3, "click"], [1, "btn", "btn-sm", "btn-danger", "mr-1", 3, "click"], [1, "bg-white", "text-center", "p-3", "pt-1"]], template: function TimesheetOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, TimesheetOverviewComponent_div_0_Template, 13, 4, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOverview);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DatePipe"]], styles: [".table[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background: #a42138;\n color: #fff;\n}\n\n.loader[_ngcontent-%COMP%] {\n background-color: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-repeat: no-repeat;\n background-position: center;\n z-index: 1050;\n opacity: 0.8;\n}\n\n.loader[_ngcontent-%COMP%] .pageLoading[_ngcontent-%COMP%] {\n text-align: center;\n color: white;\n font-size: 25px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvdGltZXNoZWV0L3RpbWVzaGVldC1vdmVydmlldy90aW1lc2hlZXQtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0VBRUUsc0JBQUE7QUFDRjs7QUFFQTtFQUNFLG1CQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUVBO0VBQ0Usb0NBQUE7RUFDQyxlQUFBO0VBQ0QsTUFBQTtFQUNBLFFBQUE7RUFDQSxPQUFBO0VBQ0EsU0FBQTtFQUNBLDRCQUFBO0VBQ0EsMkJBQUE7RUFDQSxhQUFBO0VBQ0EsWUFBQTtBQUNGOztBQUFFO0VBQ0Usa0JBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtFQUNBLGVBQUE7RUFDQSxRQUFBO0VBQ0EsU0FBQTtFQUNBLGdDQUFBO0FBRUoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9vcGVyYXRpb25zL3NoaWZ0LXNjaGVkdWxlci90aW1lc2hlZXQvdGltZXNoZWV0LW92ZXJ2aWV3L3RpbWVzaGVldC1vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50YWJsZSB0ZCxcbi50YWJsZSB0aCB7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuXG4ubG9hZGVye1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICBwb3NpdGlvbjogZml4ZWQ7XG4gIHRvcDogMDtcbiAgcmlnaHQ6MDtcbiAgbGVmdDowO1xuICBib3R0b206MDtcbiAgYmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcbiAgYmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuICB6LWluZGV4OiAxMDUwO1xuICBvcGFjaXR5OiAwLjg7XG4gIC5wYWdlTG9hZGluZyB7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIGNvbG9yOiB3aGl0ZTtcbiAgICBmb250LXNpemU6IDI1cHg7XG4gICAgcG9zaXRpb246IGZpeGVkO1xuICAgIHRvcDogNTAlO1xuICAgIGxlZnQ6IDUwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbiAgfVxufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TimesheetOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-timesheet-overview',
templateUrl: './timesheet-overview.component.html',
styleUrls: ['./timesheet-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_3__["ShiftSchedulerService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { businessUnitId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
args: ['businessUnitId']
}], refresh: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], onButtonClick: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
args: ['onButtonClick']
}], onUserData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
args: ['onUserData']
}], dataAttendance: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
args: ['dataAttendance']
}] }); })();
/***/ }),
/***/ "BZPs":
/*!*******************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/my-forms/my-forms-overview/my-forms-overview.component.ts ***!
\*******************************************************************************************************/
/*! exports provided: MyFormsOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyFormsOverviewComponent", function() { return MyFormsOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function MyFormsOverviewComponent_div_0_table_22_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "span", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyFormsOverviewComponent_div_0_table_22_tr_14_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const item_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r5.getQuestions(item_r4.moduleId, item_r4._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, " Take Questions ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyFormsOverviewComponent_div_0_table_22_tr_14_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const item_r4 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r7.viewQuestions(item_r4._id, item_r4.title); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](3, 6, item_r4.createdAt, "medium"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r4.title);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r4.isDeployed === 1 ? "Mobile and Webapp\t" : "External", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r4.status == 1 ? "badge-success" : "badge-danger");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r4.status === 1 ? "Published" : "In Active", "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !(item_r4 == null ? null : item_r4.isSubmit));
} }
function MyFormsOverviewComponent_div_0_table_22_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function MyFormsOverviewComponent_div_0_table_22_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r8.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " CREATED AT ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function MyFormsOverviewComponent_div_0_table_22_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r10.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " FORMS TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " DEPLOYED ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function MyFormsOverviewComponent_div_0_table_22_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, MyFormsOverviewComponent_div_0_table_22_tr_14_Template, 16, 9, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](15, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind3"](15, 1, ctx_r2.usersPTable.data, (ctx_r2.usersPTable.page - 1) * ctx_r2.usersPTable.limit, ctx_r2.usersPTable.page * ctx_r2.usersPTable.limit));
} }
function MyFormsOverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "FORMS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function MyFormsOverviewComponent_div_0_Template_select_change_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onLimitChangeUsers(); })("ngModelChange", function MyFormsOverviewComponent_div_0_Template_select_ngModelChange_8_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "input", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function MyFormsOverviewComponent_div_0_Template_input_keyup_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.userssearchInput.next($event); })("ngModelChange", function MyFormsOverviewComponent_div_0_Template_input_ngModelChange_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, MyFormsOverviewComponent_div_0_table_22_Template, 16, 5, "table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](23, "app-skliton-loading-table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "ngb-pagination", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function MyFormsOverviewComponent_div_0_Template_ngb_pagination_pageChange_28_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.usersPTable.page = $event; })("pageChange", function MyFormsOverviewComponent_div_0_Template_ngb_pagination_pageChange_28_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total Records ", ctx_r0.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r0.usersPTable.total)("page", ctx_r0.usersPTable.page)("maxSize", 5)("pageSize", ctx_r0.usersPTable.limit);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_7_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r42.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, MyFormsOverviewComponent_div_1_div_14_div_1_div_7_div_2_div_1_Template, 3, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r42 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r42.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r42.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r42.value);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyFormsOverviewComponent_div_1_div_14_div_1_div_7_div_2_Template, 5, 3, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r23.options);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_8_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r47.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, MyFormsOverviewComponent_div_1_div_14_div_1_div_8_div_2_div_1_Template, 3, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function MyFormsOverviewComponent_div_1_div_14_div_1_div_8_div_2_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r51); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r50.onCheckChangeTypeTwo($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r47 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r47 == null ? null : option_r47.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r47.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r47.value);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyFormsOverviewComponent_div_1_div_14_div_1_div_8_div_2_Template, 5, 3, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r23.options);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_9_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", item_r54.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, MyFormsOverviewComponent_div_1_div_14_div_1_div_9_div_2_div_1_Template, 3, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r54 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r54.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r54.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r54.value, "");
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyFormsOverviewComponent_div_1_div_14_div_1_div_9_div_2_Template, 5, 3, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r23.options);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_10_div_3_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", item_r59.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_10_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, MyFormsOverviewComponent_div_1_div_14_div_1_div_10_div_3_div_1_Template, 2, 1, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "input", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r59 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r59.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r59.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r59.value, "");
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, MyFormsOverviewComponent_div_1_div_14_div_1_div_10_div_3_Template, 5, 3, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r23.options);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_11_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r64.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
const _r68 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, MyFormsOverviewComponent_div_1_div_14_div_1_div_11_div_2_div_1_Template, 3, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function MyFormsOverviewComponent_div_1_div_14_div_1_div_11_div_2_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r68); const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r67.onCheckChangeTypeFive($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r64 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r64.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r64.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r64.value);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyFormsOverviewComponent_div_1_div_14_div_1_div_11_div_2_Template, 5, 3, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r23.options);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r71 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r71.questionName);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyFormsOverviewComponent_div_1_div_14_div_1_div_12_div_2_Template, 4, 1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r23.profile);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "textarea", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "textarea", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "select", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "select", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Seconds");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "select", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_18_span_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span");
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_18_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyFormsOverviewComponent_div_1_div_14_div_1_div_18_span_4_span_2_Template, 1, 0, "span", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r74 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r74.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r74.length != 0);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "input", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, MyFormsOverviewComponent_div_1_div_14_div_1_div_18_span_4_Template, 3, 2, "span", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r23 == null ? null : item_r23.options);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ngb-rating", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("max", item_r23.value)("rate", 0);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_21_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r79 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r79.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r79.value);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyFormsOverviewComponent_div_1_div_14_div_1_div_21_div_2_Template, 6, 2, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r23.options);
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function MyFormsOverviewComponent_div_1_div_14_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "strong", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "p", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, MyFormsOverviewComponent_div_1_div_14_div_1_div_7_Template, 4, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, MyFormsOverviewComponent_div_1_div_14_div_1_div_8_Template, 4, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, MyFormsOverviewComponent_div_1_div_14_div_1_div_9_Template, 4, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, MyFormsOverviewComponent_div_1_div_14_div_1_div_10_Template, 5, 1, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, MyFormsOverviewComponent_div_1_div_14_div_1_div_11_Template, 4, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, MyFormsOverviewComponent_div_1_div_14_div_1_div_12_Template, 4, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, MyFormsOverviewComponent_div_1_div_14_div_1_div_13_Template, 5, 0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, MyFormsOverviewComponent_div_1_div_14_div_1_div_14_Template, 5, 0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, MyFormsOverviewComponent_div_1_div_14_div_1_div_15_Template, 5, 0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, MyFormsOverviewComponent_div_1_div_14_div_1_div_16_Template, 20, 0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, MyFormsOverviewComponent_div_1_div_14_div_1_div_17_Template, 3, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, MyFormsOverviewComponent_div_1_div_14_div_1_div_18_Template, 6, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, MyFormsOverviewComponent_div_1_div_14_div_1_div_19_Template, 4, 2, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, MyFormsOverviewComponent_div_1_div_14_div_1_div_20_Template, 3, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, MyFormsOverviewComponent_div_1_div_14_div_1_div_21_Template, 4, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, MyFormsOverviewComponent_div_1_div_14_div_1_div_22_Template, 2, 0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = ctx.$implicit;
const i_r24 = ctx.index;
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r24 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 18, item_r23 == null ? null : item_r23.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r23.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r22.selectedModule == null ? null : ctx_r22.selectedModule.questions.length) == 0);
} }
function MyFormsOverviewComponent_div_1_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, MyFormsOverviewComponent_div_1_div_14_div_1_Template, 23, 20, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const session_r20 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", session_r20 == null ? null : session_r20.questions);
} }
function MyFormsOverviewComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r82 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyFormsOverviewComponent_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r82); const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r81.back(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "img", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "h3", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "form", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function MyFormsOverviewComponent_div_1_Template_form_ngSubmit_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r82); const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r83.submit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, MyFormsOverviewComponent_div_1_div_14_Template, 2, 1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "submit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 6, ctx_r1.selectedModule == null ? null : ctx_r1.selectedModule.moduleName), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r1.selectedModule.welComeAttachement, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.selectedModule == null ? null : ctx_r1.selectedModule.welComeMessage, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.answerForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.selectedModule == null ? null : ctx_r1.selectedModule.sessions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r1.selectedModule == null ? null : ctx_r1.selectedModule.Message, " ");
} }
class MyFormsOverviewComponent {
/*onSubmitWorkFlow() {
//this.isLoadingSubmit = true;
const data = {
...this.answerForm.value,
};
const sub = this.customFormService
.createForm(data)
.pipe(
finalize(() => {
sub.unsubscribe();
})
)
.subscribe(
(data: any) => {
if (data.success) {
this.overViewEvent.emit(null);
this.initForm();
this.isLoadingSubmit = false;
this.toastService.success('Form Created SuccessFully')
}
},
(error: HttpErrorResponse) => {
this.isLoadingSubmit = false;
this.toastService.error('Please Fill all the Fields')
}
);
}*/
constructor(MyformService, toastService, centralBuilderService) {
this.MyformService = MyformService;
this.toastService = toastService;
this.centralBuilderService = centralBuilderService;
this.isModuleView = false;
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.isTableLoading = true;
this.fields = [];
this.takeQuestion = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.customFormID = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.formType = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.formTitle = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.answerForm = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
typeOne: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]('', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required),
typeThree: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]('', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required),
typeFour: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]('', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required),
typeSix: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]('', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required),
typeTwo: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArray"]([]),
typeFive: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArray"]([])
});
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
fields: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](JSON.stringify(this.fields)),
});
this.unsubcribe = this.form.valueChanges.subscribe((update) => {
this.fields = JSON.parse(update.fields);
});
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortWith: '_id',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
total: 0,
isLoading: true,
};
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.usersPTable.search = input;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = column;
this.usersPTable.sortBy = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
get f() {
return this.answerForm.controls;
}
submit() {
}
ngOnInit() {
this.loadUsers();
}
onCheckChangeTypeTwo(event) {
const formArray = this.answerForm.get('typeTwo');
/* Selected */
if (event.target.checked) {
// Add a new control in the arrayForm
formArray.push(new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](event.target.value));
}
/* unselected */
else {
// find the unselected element
let i = 0;
formArray.controls.forEach((ctrl) => {
if (ctrl.value == event.target.value) {
// Remove the unselected element from the arrayForm
formArray.removeAt(i);
return;
}
i++;
});
}
}
onCheckChangeTypeFive(event) {
const formArray = this.answerForm.get('typeFive');
/* Selected */
if (event.target.checked) {
// Add a new control in the arrayForm
formArray.push(new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](event.target.value));
}
/* unselected */
else {
// find the unselected element
let i = 0;
formArray.controls.forEach((ctrl) => {
if (ctrl.value == event.target.value) {
// Remove the unselected element from the arrayForm
formArray.removeAt(i);
return;
}
i++;
});
}
}
loadUsers() {
const _a = this.usersPTable, { total, data, isLoading } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["total", "data", "isLoading"]);
console.log('rest', rest);
const subscribe = this.MyformService.getAllMyForms(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { data } = response.data;
this.usersPTable.data = data;
this.usersPTable.total = data === null || data === void 0 ? void 0 : data.length;
this.isTableLoading = false;
this.usersPTable.isLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.usersPTable.isLoading = false;
this.toastService.error('No list found');
});
}
getFields() {
return this.fields;
}
getQuestionsFields(questions) {
const data = questions.sort((a, b) => a.indexNum - b.indexNum);
const mainQuestions = questions.filter(question => !question.conditionalQuestions.length);
// const modifiedData = data.map((rawProduct) => {
// return {
// disabled: true,
// ...rawProduct
// };
// });
// let parentQuestions = data.filter((value ) => value.conditionalQuestions === []);
this.fields = mainQuestions;
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({});
this.fields.forEach((x) => {
if ([1, 2, 3, 4, 5].includes(x.type)) {
this.form.addControl(x.question, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({}));
x.options.forEach((o) => {
var _a;
// x.options.forEach(o=>{
(_a = this.form.get(x.question)) === null || _a === void 0 ? void 0 : _a.addControl(o._id, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](false));
// })
});
}
else {
this.form.addControl(x.question, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](x.value || '', x.required ? _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required : null));
}
});
}
getQuestions(moduleId, formId) {
this.customFormID.emit(formId);
this.takeQuestion.emit(moduleId);
this.formType.emit("takeQuestion");
// this.centralBuilderService
// .getSingleQuestions(moduleId)
// .subscribe(({ data }) => {
// this.isModuleView = true;
// this.selectedModule = data?.data || null;
// this.getQuestionsFields(data.data?.questions);
// // this.questions = data.moduleData.questions.map(
// // ({ _id, question,options,type, required,value}) => ({ _id, question,options,type,required,value })
// // );
// // this.selectedModule = data.moduleData
// });
}
viewQuestions(formId, title) {
this.customFormID.emit(formId);
this.formType.emit("viewQuestion");
this.formTitle.emit(title);
}
onSubmitQuestions(customFormId) {
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
MyFormsOverviewComponent.ɵfac = function MyFormsOverviewComponent_Factory(t) { return new (t || MyFormsOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_8__["CentralBuilderService"])); };
MyFormsOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: MyFormsOverviewComponent, selectors: [["my-forms-overview"]], viewQuery: function MyFormsOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { takeQuestion: "takeQuestion", customFormID: "customFormID", formType: "formType", formTitle: "formTitle" }, decls: 2, vars: 2, consts: [["class", "card mb-3", 4, "ngIf"], ["class", "card", 4, "ngIf"], [1, "card", "mb-3"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "_id", 3, "sort"], ["scope", "col", "sortable", "title", 3, "sort"], ["scope", "col", "sortable", "status", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "badge", 3, "ngClass"], [1, "btn", "btn-submit", "p-2", "m-1", 3, "disabled", "click"], [1, "btn", "btn", "btn-white", "p-2", "m-1", 3, "click"], [1, "card"], [1, "card-header", "flexi-header", "pt-4"], [2, "display", "inline"], [1, "btn", "pull-right", 2, "color", "ivory", 3, "click"], [1, "card-header"], [1, "card-body", "centered-image"], ["width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 1, "centered-image", 3, "src"], [2, "text-align", "center"], [1, "card-body", 2, "word-break", "break-word", "padding", "10px"], [3, "formGroup", "ngSubmit"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [2, "margin-left", "400px", "margin-top", "20px"], ["type", "submit", 1, "btn-submit"], [1, "box", "d-flex", "flex-column"], [1, "d-flex"], [1, "mr-1"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["class", "card-body", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "box-body"], [1, "form-group", "d-flex", "flex-column", "answers-options"], ["class", "box", 4, "ngFor", "ngForOf"], [1, "box"], [4, "ngIf"], ["type", "radio", "name", "typeOne", "formControlName", "typeOne", 3, "value"], ["for", "consolidated"], ["width", "320px", "height", "350px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 1, "centered-image", 3, "src"], ["type", "checkbox", 1, "card-header-flexi", 3, "value", "change"], ["type", "radio", "name", "typeThree", "formControlName", "typeThree", 3, "value"], [1, "parent"], ["class", "flex-child", 4, "ngFor", "ngForOf"], [1, "flex-child"], ["class", "box", 4, "ngIf"], ["type", "radio", "name", "typeFour", "formControlName", "typeFour", 3, "value"], ["width", "250px", "height", "300px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], ["type", "checkbox", 3, "value", "change"], ["width", "320px", "height", "350px", "id", "4", "crossorigin", "anonymous", "alt", "Image Preview", 1, "centered-image", 3, "src"], [1, "d-flex", "flex-wrap", "answers-options"], ["class", "form-group flex-fill", "style", "margin: 1rem 1rem; width: 44%", 4, "ngFor", "ngForOf"], [1, "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["for", "my-input"], ["id", "my-input", "type", "text", "name", "typeSix", "formControlName", "typeSix", 1, "form-control"], ["rows", "3", 1, "form-control"], ["rows", "5", 1, "form-control"], ["type", "number", 1, "form-control"], [1, "form-group"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["id", "my-input", "type", "date", 1, "form-control"], ["name", "", "id", "", 1, "form-control"], [1, "form-control"], ["id", "my-input", "type", "file", 1, "form-control-file"], [3, "max", "rate"], ["ng-model", "item.options", 1, "row"], [1, "thumbnail"], ["ng-if", "option.imageSrc", "crossorigin", "anonymous", 2, "height", "150px", 3, "src"], [1, "caption"]], template: function MyFormsOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, MyFormsOverviewComponent_div_0_Template, 29, 15, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, MyFormsOverviewComponent_div_1_Template, 20, 8, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isModuleView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isModuleView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbRating"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["SlicePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["UpperCasePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_13__["SafeHtmlPipe"]], styles: ["a.list-group-item[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n border: 1px dotted #cccccc;\n cursor: pointer;\n color: #555;\n}\n\na[_ngcontent-%COMP%] {\n text-decoration: none;\n}\n\na.list-group-item[_ngcontent-%COMP%]:hover {\n background-color: #e2e2e2;\n}\n\n.card-header-flexi[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n padding: 1rem;\n color: #a42138;\n text-transform: uppercase;\n}\n\n.centered-image[_ngcontent-%COMP%] {\n margin: auto;\n padding: 10px;\n text-align: center;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n margin: 1rem;\n box-shadow: 0px 0px 8px #ccc;\n padding: 1.2rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n padding: 1rem;\n width: 30%;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] {\n padding-bottom: 1rem;\n word-wrap: break-word;\n font-weight: 600;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 1rem;\n}\n\n.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n\n.btn-white[_ngcontent-%COMP%] {\n background-color: whitesmoke;\n}\n\n.parent[_ngcontent-%COMP%] {\n content: \"\";\n display: table;\n clear: both;\n}\n\n.flex-child[_ngcontent-%COMP%] {\n float: left;\n height: 470px;\n width: 23%;\n padding: 0 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL215LWZvcm1zL215LWZvcm1zLW92ZXJ2aWV3L215LWZvcm1zLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsbUJBQUE7RUFDQSwwQkFBQTtFQUNBLGVBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxxQkFBQTtBQUVGOztBQUFBO0VBQ0UseUJBQUE7QUFHRjs7QUFBQTtFQUNFLDZCQUFBO0VBQ0EsYUFBQTtFQUNBLGNBQUE7RUFDQSx5QkFBQTtBQUdGOztBQURBO0VBQ0UsWUFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtBQUlGOztBQUZBO0VBQ0UsWUFBQTtFQUNBLDRCQUFBO0VBQ0EsZUFBQTtBQUtGOztBQUhFO0VBQ0UsYUFBQTtFQUNBLFVBQUE7QUFLSjs7QUFIRTtFQUNFLG9CQUFBO0VBQ0EscUJBQUE7RUFDQSxnQkFBQTtBQUtKOztBQUpJO0VBQ0UsZUFBQTtBQU1OOztBQURBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7QUFJRjs7QUFEQTtFQUNFLDRCQUFBO0FBSUY7O0FBRkE7RUFDRSxXQUFBO0VBQ0EsY0FBQTtFQUNBLFdBQUE7QUFLRjs7QUFIQTtFQUNFLFdBQUE7RUFDQSxhQUFBO0VBQ0EsVUFBQTtFQUNBLGVBQUE7QUFNRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9teS1mb3Jtcy9teS1mb3Jtcy1vdmVydmlldy9teS1mb3Jtcy1vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImEubGlzdC1ncm91cC1pdGVtIHtcbiAgbWFyZ2luLWJvdHRvbTogMXJlbTtcbiAgYm9yZGVyOiAxcHggZG90dGVkIHJnYigyMDQsIDIwNCwgMjA0KTtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBjb2xvcjogIzU1NTtcbn1cbmEge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG59XG5hLmxpc3QtZ3JvdXAtaXRlbTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYigyMjYsIDIyNiwgMjI2KTtcbn1cblxuLmNhcmQtaGVhZGVyLWZsZXhpIHtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDFyZW07XG4gIGNvbG9yOiAjYTQyMTM4O1xuICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xufVxuLmNlbnRlcmVkLWltYWdle1xuICBtYXJnaW46IGF1dG87XG4gIHBhZGRpbmc6IDEwcHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cbi5jYXJkLWJvZHkgLmJveCB7XG4gIG1hcmdpbjogMXJlbTtcbiAgYm94LXNoYWRvdzogMHB4IDBweCA4cHggI2NjYztcbiAgcGFkZGluZzogMS4ycmVtO1xuXG4gIC5ib3gtYm9keSB7XG4gICAgcGFkZGluZzogMXJlbTtcbiAgICB3aWR0aDogMzAlO1xuICB9XG4gIC5ib3gtaGVhZGluZyB7XG4gICAgcGFkZGluZy1ib3R0b206IDFyZW07XG4gICAgd29yZC13cmFwOiBicmVhay13b3JkO1xuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XG4gICAgc3BhbiB7XG4gICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgfVxuICB9XG59XG5cbi5idG4tc3VibWl0IHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICMzMzdhYjc7XG4gIGJvcmRlci1jb2xvcjogIzJlNmRhNDtcbn1cblxuLmJ0bi13aGl0ZSB7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlc21va2U7XG59XG4ucGFyZW50e1xuICBjb250ZW50OiBcIlwiO1xuICBkaXNwbGF5OiB0YWJsZTtcbiAgY2xlYXI6IGJvdGg7XG59XG4uZmxleC1jaGlsZHtcbiAgZmxvYXQ6IGxlZnQ7XG4gIGhlaWdodDogNDcwcHg7XG4gIHdpZHRoOiAyMyU7XG4gIHBhZGRpbmc6IDAgMTBweDtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MyFormsOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'my-forms-overview',
templateUrl: './my-forms-overview.component.html',
styleUrls: ['./my-forms-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__["CustomFormService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_8__["CentralBuilderService"] }]; }, { takeQuestion: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], customFormID: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], formType: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], formTitle: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "BvJJ":
/*!**********************************************************************************************!*\
!*** ./src/app/users/pages/communication/my-news-and-events/my-news-and-events.component.ts ***!
\**********************************************************************************************/
/*! exports provided: MyNewsAndEventsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyNewsAndEventsComponent", function() { return MyNewsAndEventsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["AddSection"];
function MyNewsAndEventsComponent_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h3", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "No Data Available");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function MyNewsAndEventsComponent_div_6_div_8_div_2_p_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const newsData_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 2, newsData_r7.eventDetails.startDate), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 4, newsData_r7.eventDetails.endDate), " ");
} }
function MyNewsAndEventsComponent_div_6_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "p", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](7, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, MyNewsAndEventsComponent_div_6_div_8_div_2_p_8_Template, 5, 6, "p", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "p", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const newsData_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r9.validateURLImage(ctx_r9.getBannerImage(newsData_r7.teaser.image)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", newsData_r7.categoryId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](7, 5, newsData_r7.content.title), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", newsData_r7.postType == "event");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", newsData_r7.channelId.name, " ");
} }
function MyNewsAndEventsComponent_div_6_div_8_div_3_p_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const newsData_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 2, newsData_r7.eventDetails.startDate), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 4, newsData_r7.eventDetails.endDate), " ");
} }
function MyNewsAndEventsComponent_div_6_div_8_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "p", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](7, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, MyNewsAndEventsComponent_div_6_div_8_div_3_p_8_Template, 5, 6, "p", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "p", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const newsData_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r10.validateURLImage(ctx_r10.getBannerImage(newsData_r7.teaser.image)), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", newsData_r7.categoryId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](7, 5, newsData_r7.content.title), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", newsData_r7.postType == "event");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", newsData_r7.channelId.name, " ");
} }
function MyNewsAndEventsComponent_div_6_div_8_div_4_p_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const newsData_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 2, newsData_r7.eventDetails.startDate), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 4, newsData_r7.eventDetails.endDate), " ");
} }
function MyNewsAndEventsComponent_div_6_div_8_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "p", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "p", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, MyNewsAndEventsComponent_div_6_div_8_div_4_p_6_Template, 5, 6, "p", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "p", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const newsData_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", newsData_r7.categoryId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 4, newsData_r7.content.title), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", newsData_r7.postType == "event");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", newsData_r7.channelId.name, " ");
} }
function MyNewsAndEventsComponent_div_6_div_8_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyNewsAndEventsComponent_div_6_div_8_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22); const newsData_r7 = ctx.$implicit; const index_r8 = ctx.index; const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r21.getCardData(newsData_r7, index_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyNewsAndEventsComponent_div_6_div_8_div_2_Template, 11, 7, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, MyNewsAndEventsComponent_div_6_div_8_div_3_Template, 11, 7, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, MyNewsAndEventsComponent_div_6_div_8_div_4_Template, 9, 6, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const newsData_r7 = ctx.$implicit;
const index_r8 = ctx.index;
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r5.selectedIndex === index_r8 ? "card-selected" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", newsData_r7.teaser.listingType == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", newsData_r7.teaser.listingType == 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", newsData_r7.teaser.listingType == 1);
} }
function MyNewsAndEventsComponent_div_6_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h3", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "No Data Available");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function MyNewsAndEventsComponent_div_6_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "ALL CHANNELS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "input", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function MyNewsAndEventsComponent_div_6_Template_input_search_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.onLoadNewsandEvents(); })("keyup", function MyNewsAndEventsComponent_div_6_Template_input_keyup_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r25.newsAndEventssearchInput.next($event); })("ngModelChange", function MyNewsAndEventsComponent_div_6_Template_input_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r26.newsAndEventsPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, MyNewsAndEventsComponent_div_6_div_8_Template, 5, 4, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function MyNewsAndEventsComponent_div_6_Template_ngb_pagination_pageChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r27.onPageChange($event); })("pageChange", function MyNewsAndEventsComponent_div_6_Template_ngb_pagination_pageChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r28.newsAndEventsPTable.page = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, MyNewsAndEventsComponent_div_6_div_14_Template, 3, 0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.newsAndEventsPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.newsAndEventsPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", ctx_r1.newsAndEventsPTable.total, " Records");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r1.newsAndEventsPTable.total)("page", ctx_r1.newsAndEventsPTable.page)("maxSize", 1)("pageSize", ctx_r1.newsAndEventsPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.newsAndEventsPTable.data.length <= 0);
} }
function MyNewsAndEventsComponent_div_7_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "p", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Authored By");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"]("", ctx_r31.channelName, " / ", ctx_r31.categoryName, "");
} }
function MyNewsAndEventsComponent_div_7_div_9_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 2, ctx_r32.updatedAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r32.authorName);
} }
function MyNewsAndEventsComponent_div_7_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, MyNewsAndEventsComponent_div_7_div_9_div_2_Template, 5, 2, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, MyNewsAndEventsComponent_div_7_div_9_div_3_Template, 6, 4, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "h4", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](11, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "p", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r29.validateURLImage(ctx_r29.imageLink), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r29.newsAndEventsPTable.data.length !== 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r29.newsAndEventsPTable.data.length !== 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r29.organizerName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r29.organizerAddress);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](11, 7, ctx_r29.title), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](13, 9, ctx_r29.eventContent), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function MyNewsAndEventsComponent_div_7_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h3", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "No Data Available");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function MyNewsAndEventsComponent_div_7_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyNewsAndEventsComponent_div_7_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r33.addSection(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "i", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Filter");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, MyNewsAndEventsComponent_div_7_div_9_Template, 14, 11, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, MyNewsAndEventsComponent_div_7_div_10_Template, 3, 0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](5, 3, ctx_r2.type), " DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.newsAndEventsPTable.data.length !== 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.newsAndEventsPTable.data.length <= 0);
} }
function MyNewsAndEventsComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "MY NEWS AND EVENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyNewsAndEventsComponent_ng_template_8_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r37.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, " CHANNELS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "ng-select", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function MyNewsAndEventsComponent_ng_template_8_Template_ng_select_change_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r39.getCategories($event); })("ngModelChange", function MyNewsAndEventsComponent_ng_template_8_Template_ng_select_ngModelChange_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r40.newsAndEventsPTable.channelId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, " CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function MyNewsAndEventsComponent_ng_template_8_Template_ng_select_ngModelChange_19_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r41.newsAndEventsPTable.categoryId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "button", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyNewsAndEventsComponent_ng_template_8_Template_button_click_21_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); ctx_r42.onLoadNewsandEvents(); return ctx_r42.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Submit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r4.channelDropDown)("searchable", true)("ngModel", ctx_r4.newsAndEventsPTable.channelId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r4.categoriesDropDown)("searchable", true)("ngModel", ctx_r4.newsAndEventsPTable.categoryId);
} }
const _c1 = function () { return []; };
class MyNewsAndEventsComponent {
constructor(modelService, formBuilder, toastService, myNewsAndEvents) {
this.modelService = modelService;
this.formBuilder = formBuilder;
this.toastService = toastService;
this.myNewsAndEvents = myNewsAndEvents;
this.isLoading = false;
this.isMyNewsAndEventsEnabled = false;
this.channelDropDown = [];
this.categoriesDropDown = [];
this.newsDetailsData = [];
this.singleNewsData = [];
this.numberOfPosts = 5;
this.postType = '';
this.onLoad = false;
this.searchInput = '';
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl;
this.newsAndEventssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
}
ngOnInit() {
this.newsAndEventsPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
channelId: '',
categoryId: '',
skip: 0,
};
this.getChannels();
this.onLoadNewsandEvents();
this.newsSearchSubscription = this.newsAndEventssearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["delay"])(500)))).subscribe((input) => {
this.newsAndEventsPTable.page = 1;
this.onLoadNewsandEvents();
});
}
onPageChange(page) {
this.newsAndEventsPTable.page = page;
this.newsAndEventsPTable.skip = (page - 1) * this.newsAndEventsPTable.limit;
this.onLoadNewsandEvents();
}
// searchFunction(event) {
// this.searchInput = event;
// this.onClickView();
// }
loadMore() {
this.newsAndEventsPTable.page = this.newsAndEventsPTable.page + 1;
this.newsAndEventsPTable.skip = this.newsAndEventsPTable.skip + 10;
this.onLoadNewsandEvents();
}
getBannerImage(imageLink) {
return `${imageLink}`;
}
getChannels() {
const sub = this.myNewsAndEvents
.getChannelForNewsAndEvents()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.channelDropDown = res.data;
}, (error) => {
});
}
cancelPopup() {
this.modelService.dismissAll();
}
addSection() {
this.modelService.open(this.AddSection, {
windowClass: 'modal-ui-fix right-align',
});
}
getCategories(channel) {
this.channelID = channel._id;
this.newsAndEventsPTable.channelId = channel._id;
const sub = this.myNewsAndEvents
.getAllCategories(channel._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.categoriesDropDown = res.data;
});
this.newsAndEventsPTable.categoryId = null;
}
onLoadNewsandEvents() {
this.isLoading = true;
const _a = this.newsAndEventsPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const sub = this.myNewsAndEvents
.getAllNewsEvents(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((response) => {
var _a;
// this.newsAndEventsPTable.data = response.data.postList;
let oldData = [];
if (response.data.postList.length > 0) {
oldData = this.newsAndEventsPTable.data;
this.newsAndEventsPTable.data = [...response.data.postList];
}
else {
this.newsAndEventsPTable.data = [];
}
this.newsAndEventsPTable.total = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.total;
this.getCardData(response.data.postList[0], 0);
this.channelDropDown = response.data.channelList;
this.isLoading = false;
}, (error) => {
this.isLoading = false;
});
}
getCardData(channel, index) {
this.selectedIndex = index;
// this.cardID = channel._id;
if (channel) {
this.imageLink = `${channel.content.image}`;
this.channelName = channel.channelId.name;
this.categoryName = channel.categoryId.name;
this.updatedAt = channel.updatedAt;
this.authorName = channel.authorId.name;
this.organizerName = channel.eventDetails.organizerName;
this.organizerAddress = channel.eventDetails.address;
this.eventContent = channel.content.content;
this.title = channel.teaser.title;
this.type = channel.postType;
}
}
goBack() {
this.isLoading = false;
this.addSection();
setTimeout(() => {
this.isMyNewsAndEventsEnabled = false;
const { _id } = this.viewMyNotification.get('bussinessUnit').value;
this.myNewsAndNotificationID = _id;
}, 0);
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
MyNewsAndEventsComponent.ɵfac = function MyNewsAndEventsComponent_Factory(t) { return new (t || MyNewsAndEventsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_8__["NewsEventsService"])); };
MyNewsAndEventsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: MyNewsAndEventsComponent, selectors: [["app-my-news-and-events"]], viewQuery: function MyNewsAndEventsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddSection = _t.first);
} }, decls: 10, vars: 6, consts: [[1, "card-with-border", "mt-3"], [1, "card-header", "flexi-header", "p-4", "flex-justify-sb"], [4, "ngIf"], [1, "row", "p-3"], ["class", "col-4", 4, "ngIf"], ["class", "col-8", 4, "ngIf"], ["AddSection", ""], [1, "text-center", "p-3"], [1, "col-4"], [1, "card", "my-3", "w-100"], [2, "display", "inline-block"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "card-body"], ["class", "card-content p-0", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "card-content", "p-0", 3, "ngClass", "click"], [1, "newsList", "p-0"], ["class", "small_img", 4, "ngIf"], ["class", "big_img", 4, "ngIf"], ["class", "no_img", 4, "ngIf"], [1, "small_img"], [1, "img"], ["crossorigin", "anonymous", "alt", "", 1, "img-responsive", 3, "src"], [1, "content"], [1, "categoryName"], [1, "title", 3, "innerHTML"], ["class", "eventDate", 4, "ngIf"], [1, "text-muted", "channelName"], [1, "eventDate"], [1, "fa", "fa-calendar"], [1, "big_img"], [1, "no_img"], [1, "col-8"], [1, "card-header", "flexi-header", "p-4"], [1, "btn", "pull-right", "btn-outline-light", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-filter"], ["class", "card-body", 4, "ngIf"], ["crossorigin", "anonymous", 1, "main-image", 3, "src"], ["class", "flex-justify-sb", 4, "ngIf"], ["class", "flex-justify-sb stick-to-top", 4, "ngIf"], [1, "p-3"], [1, "font-weight-bold", "heading", 3, "innerHTML"], [3, "innerHTML"], [1, "flex-justify-sb"], [1, "text-capital"], [1, "flex-justify-sb", "stick-to-top"], [1, "font-weight-bold"], [1, "modal-content"], [1, "modal-body", 2, "min-height", "auto"], [1, "card", "my-3", 2, "margin", "0 auto"], [1, "card-header", "flexi-header", "text-center", "p-4"], ["type", "button", "aria-label", "Close", 1, "btn", "btn-large", "close-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [1, "row", "mb-2"], [1, "col-md-12"], ["bindLabel", "name", "bindValue", "_id", "placeholder", "Channel", 3, "items", "searchable", "ngModel", "change", "ngModelChange"], ["bindLabel", "name", "bindValue", "_id", "placeholder", "Category", 3, "items", "searchable", "ngModel", "ngModelChange"], ["type", "submit", 1, "btn", "btn-submit", "btn-block", 3, "click"]], template: function MyNewsAndEventsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "MY NEWS AND EVENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, MyNewsAndEventsComponent_div_4_Template, 3, 0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, MyNewsAndEventsComponent_div_6_Template, 15, 8, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, MyNewsAndEventsComponent_div_7_Template, 11, 5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, MyNewsAndEventsComponent_ng_template_8_Template, 23, 6, "ng-template", null, 6, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.newsDetailsData === _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](3, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.newsDetailsData !== _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](4, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.newsAndEventsPTable.data !== _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](5, _c1));
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbPagination"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgClass"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__["NgSelectComponent"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_12__["SafeHtmlPipe"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["UpperCasePipe"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.card-image[_ngcontent-%COMP%] {\n width: 160px;\n}.flex-justify-sb[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin: 0;\n padding: 20px;\n}.card-body[_ngcontent-%COMP%] {\n margin: 0px;\n}.card-content[_ngcontent-%COMP%]:hover {\n background-color: #e0e0e0;\n cursor: pointer;\n}.card-selected[_ngcontent-%COMP%] {\n background-color: #e0e0e0;\n cursor: pointer;\n}.title-heading[_ngcontent-%COMP%] {\n color: #a42138;\n font-size: 12px;\n font-weight: bold;\n text-transform: capitalize;\n}.subtitle-heading[_ngcontent-%COMP%] {\n font-size: 17px;\n font-weight: bold;\n position: relative;\n top: -15px;\n text-transform: capitalize;\n}.text-muted[_ngcontent-%COMP%] {\n color: #777;\n text-transform: capitalize;\n}.stick-to-top[_ngcontent-%COMP%] {\n margin-top: -50px;\n}.main-image[_ngcontent-%COMP%] {\n width: 500px;\n}.text-capital[_ngcontent-%COMP%] {\n text-transform: capitalize;\n}.no-data-container[_ngcontent-%COMP%] {\n display: flex;\n width: 100%;\n justify-content: space-between;\n padding: 20px;\n}.centered-text[_ngcontent-%COMP%] {\n text-align: center;\n}.right-button[_ngcontent-%COMP%] {\n position: absolute;\n right: 20px;\n top: 20px;\n}.channel-container[_ngcontent-%COMP%] {\n cursor: pointer;\n}.card-with-border[_ngcontent-%COMP%] {\n width: 100%;\n height: auto;\n border: 1px solid #eeeeee;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}.news-heading[_ngcontent-%COMP%] {\n text-transform: capitalize;\n}.newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] {\n max-width: 32%;\n float: left;\n margin-right: 1%;\n height: 110px;\n overflow: hidden;\n}.newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n object-fit: cover;\n object-position: center;\n}.newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n float: right;\n width: 67%;\n padding: 2%;\n}.newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n width: 97%;\n padding: 3%;\n}.newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] {\n position: relative;\n overflow: hidden;\n min-height: 130px;\n}.newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .categoryName[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .categoryName[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .categoryName[_ngcontent-%COMP%] {\n color: #a42138;\n font-size: 12px;\n font-weight: bold;\n}.newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%] {\n font-weight: bold;\n font-size: 13px;\n}.newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .eventDate[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .eventDate[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .eventDate[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #a42138;\n margin-right: 5px;\n}.newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .eventDate[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .categoryName[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .channelName[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .eventDate[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .categoryName[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .channelName[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .eventDate[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .categoryName[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .small_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .channelName[_ngcontent-%COMP%] {\n margin-bottom: 3px;\n}.newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] {\n width: 96%;\n margin: 0 2%;\n}.newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .img[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n object-fit: contain;\n object-position: center;\n width: 100%;\n max-height: 180px;\n}.newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n position: absolute;\n bottom: 0px;\n background: rgba(164, 33, 56, 0.6);\n padding: 3%;\n color: #fff;\n width: 96%;\n}.newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .eventDate[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .categoryName[_ngcontent-%COMP%], .newsList[_ngcontent-%COMP%] .big_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .channelName[_ngcontent-%COMP%] {\n color: #fff !important;\n}.newsList[_ngcontent-%COMP%] .no_img[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n width: 97%;\n padding: 3%;\n}.newsList[_ngcontent-%COMP%] div[_ngcontent-%COMP%] {\n padding: 5px 0;\n margin-bottom: 2px;\n cursor: pointer;\n}.img-responsive[_ngcontent-%COMP%] {\n display: block;\n max-width: 100%;\n height: auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbXktbmV3cy1hbmQtZXZlbnRzL215LW5ld3MtYW5kLWV2ZW50cy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxpREFBaUQsZUFBZSxDQUFDLGlDQUFpQyxDQUFDLHVEQUF1RCxlQUFlLENBQUMsMkRBQTJELFFBQVEsQ0FBQyx5Q0FBeUMsQ0FBQyxzQkFBc0IsQ0FBQyxpRUFBaUUseUNBQXlDLENBQUMsa0VBQWtFLDRCQUE0QixDQUFDLDJCQUEyQixDQUFDLCtEQUErRCx5QkFBeUIsQ0FBQyx3QkFBd0IsQ0FBQyx5RUFBeUUsb0JBQW9CLENBQUMsMEVBQTBFLENBQUMsbURBQW1ELHdCQUF3QixDQUFDLHlDQUF5QyxZQUFZLENBQUMsZ0NBQWdDLFVBQVUsQ0FBQyxxQkFBcUIsQ0FBQyxpQkFBaUIsQ0FBQyxxQkFBcUIsQ0FBQyxlQUFlLENBQUMsa0JBQWtCLENBQUMsc0NBQXNDLG1DQUFtQyxDQUFDLG9EQUFvRCxrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxnRUFBZ0Usa0JBQWtCLENBQUMsY0FBYyxDQUFDLG9FQUFvRSxVQUFVLENBQUMsaURBQWlELFdBQVcsQ0FBQywrRUFBK0UsT0FBTyxDQUFDLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxrQkFBa0IsQ0FBQywyRkFBMkYsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsb0dBQW9HLHdCQUF3QixDQUFDLHdCQUF3QixDQUFDLG9IQUFvSCxhQUFhLENBQUMsdUVBQXVFLGVBQWUsQ0FBQyxnQkFBZ0IsQ0FBQyxtRkFBbUYsaUJBQWlCLENBQUMsY0FBYyxDQUFDLGlGQUFpRixjQUFjLENBQUMsaUJBQWlCLENBQUMsd0JBQXdCLENBQUMsaUJBQWlCLENBQUMsZ0JBQWdCLENBQUMsNkZBQTZGLGNBQWMsQ0FBQyxlQUFlLENBQUMsbUdBQW1HLHdCQUF3QixDQUFDLG1IQUFtSCxnQkFBZ0IsQ0FBQywrSEFBK0gsY0FBYyxDQUFDLGlCQUFpQixDQUFDLGlHQUFpRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsZ0dBQWdHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxzR0FBc0csd0JBQXdCLENBQUMscUdBQXFHLDhCQUE4QixDQUFDLGlIQUFpSCw2QkFBNkIsQ0FBQyxpQkFBaUIsQ0FBQyxzR0FBc0csNkJBQTZCLENBQUMsa0hBQWtILGFBQWEsQ0FBQyw4QkFBOEIsQ0FBQyxpRkFBaUYsbUJBQW1CLENBQUMsNkZBQTZGLG1CQUFtQixDQUFDLHVGQUF1RixPQUFPLENBQUMsa0JBQWtCLENBQUMsZ0JBQWdCLENBQUMsbUdBQW1HLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLDZDQUE2QyxhQUFhLENBQUMsNEJBQTRCLG1CQUFtQixDQUFDLHdDQUF3QyxtQkFBbUIsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLGlCQUFpQixDQUFDLHlDQUF5QyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsNkNBQTZDLHFCQUFxQixDQUFDLHVDQUF1Qyx5Q0FBeUMsQ0FBQyxrQkFBa0IsQ0FBQywwQkFBMEIsQ0FBQyxtQkFBbUIscUJBQXFCLENBQUMscUJBQXFCLENBQUMsbUNBQW1DLENBQUMsTUFBTSxDQUFDLG9DQUFvQyxRQUFRLENBQUMsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsd0JBQXdCLENBQUMsZUFBZSxDQUFDLG1GQUFtRiw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyxpQ0FBaUMsV0FBVyxDQUFDLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLDJCQUEyQixDQUFDLGtCQUFrQixDQUFDLGlGQUFpRiwyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQyx1Q0FBdUMsNEJBQTRCLENBQUMsZUFBZSxDQUFDLHVDQUF1Qyx5QkFBeUIsQ0FBQyxlQUFlLENBQUMseURBQXlELHdCQUFnQixDQUFoQixnQkFBZ0IsQ0FBQyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsc0JBQXNCLENBQUMsY0FBYyxDQUFDLDRFQUE0RSxjQUFjLENBQUMsMEVBQTBFLHdCQUF3QixDQUFDLHlLQUF5Syx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsdURBQXVELHFCQUFxQixDQUFDLHNCQUFzQixDQUFDLGdCQUFnQixDQUFDLHFLQUFxSyxVQUFVLENBQUMsd0JBQXdCLENBQUMsdU1BQXVNLGVBQWUsQ0FBQyx3RUFBd0Usd0JBQXdCLENBQUMsVUFBVSxDQUFDLDBFQUEwRSxVQUFVLENBQUMsdUVBQXVFLGlCQUFpQixDQUFDLG1GQUFtRixrQkFBa0IsQ0FBQyxjQUFjLENBQUMscUVBQXFFLGFBQWEsQ0FBQyxlQUFlLENBQUMsaUJBQWlCLENBQUMsaUZBQWlGLGdCQUFnQixDQUFDLGVBQWUsQ0FBQywrQkFBK0IsYUFBYSxDQUFDLGdCQUFnQixDQ0UxNE87RUFDSSxZQUFBO0FBQUosQ0FHQTtFQUNJLGFBQUE7RUFDQSw4QkFBQTtFQUNBLFdBQUE7RUFDQSxTQUFBO0VBQ0EsYUFBQTtBQUFKLENBR0E7RUFDSSxXQUFBO0FBQUosQ0FHQTtFQUNJLHlCQUFBO0VBQ0EsZUFBQTtBQUFKLENBR0E7RUFDSSx5QkFBQTtFQUNBLGVBQUE7QUFBSixDQUdBO0VBQ0ksY0FBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTtFQUNBLDBCQUFBO0FBQUosQ0FHQTtFQUNJLGVBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsVUFBQTtFQUNBLDBCQUFBO0FBQUosQ0FHQTtFQUNJLFdBQUE7RUFJQSwwQkFBQTtBQUhKLENBTUE7RUFDSSxpQkFBQTtBQUhKLENBTUE7RUFDSSxZQUFBO0FBSEosQ0FNQTtFQUNJLDBCQUFBO0FBSEosQ0FNQTtFQUNJLGFBQUE7RUFDQSxXQUFBO0VBQ0EsOEJBQUE7RUFDQSxhQUFBO0FBSEosQ0FNQTtFQUNJLGtCQUFBO0FBSEosQ0FNQTtFQUNJLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFNBQUE7QUFISixDQU1BO0VBQ0ksZUFBQTtBQUhKLENBTUE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLHlCQUFBO0FBSEosQ0FNQTtFQUNJLG9DQUFBO0VBQ0EsdUJBQUE7QUFISixDQU1BO0VBQ0ksMEJBQUE7QUFISixDQUtBLG1CQUFBLENBQ0E7RUFDRSxjQUFBO0VBQ0EsV0FBQTtFQUNBLGdCQUFBO0VBQ0EsYUFBQTtFQUNBLGdCQUFBO0FBRkYsQ0FLQTtFQUNFLGlCQUFBO0VBQ0EsdUJBQUE7QUFGRixDQUtBO0VBQ0UsWUFBQTtFQUNBLFVBQUE7RUFDQSxXQUFBO0FBRkYsQ0FLQTtFQUNFLFVBQUE7RUFDQSxXQUFBO0FBRkYsQ0FLQTs7O0VBR0Usa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGlCQUFBO0FBRkYsQ0FLQTs7O0VBR0UsY0FBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTtBQUZGLENBS0E7OztFQUdFLGlCQUFBO0VBQ0EsZUFBQTtBQUZGLENBS0E7OztFQUdFLGNBQUE7RUFDQSxpQkFBQTtBQUZGLENBSUE7Ozs7Ozs7OztFQVNJLGtCQUFBO0FBREosQ0FHQTtFQUNFLFVBQUE7RUFDQSxZQUFBO0FBQUYsQ0FHQTtFQUNFLG1CQUFBO0VBQ0EsdUJBQUE7RUFDQSxXQUFBO0VBQ0EsaUJBQUE7QUFBRixDQUdBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0Esa0NBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtFQUNBLFVBQUE7QUFBRixDQUdBOzs7O0VBSUUsc0JBQUE7QUFBRixDQUVBO0VBQ0UsVUFBQTtFQUNBLFdBQUE7QUFDRixDQUNBO0VBQ0UsY0FBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtBQUVGLENBQUE7RUFDRSxjQUFBO0VBQ0EsZUFBQTtFQUNBLFlBQUE7QUFHRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbXktbmV3cy1hbmQtZXZlbnRzL215LW5ld3MtYW5kLWV2ZW50cy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbi5jYXJkLWltYWdlIHtcbiAgICB3aWR0aDogMTYwcHg7XG59XG5cbi5mbGV4LWp1c3RpZnktc2Ige1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIG1hcmdpbjogMDtcbiAgICBwYWRkaW5nOiAyMHB4O1xufVxuXG4uY2FyZC1ib2R5IHtcbiAgICBtYXJnaW46IDBweDtcbn1cblxuLmNhcmQtY29udGVudDpob3ZlciB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2UwZTBlMDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5jYXJkLXNlbGVjdGVkIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZTBlMGUwO1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLnRpdGxlLWhlYWRpbmcge1xuICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICB0ZXh0LXRyYW5zZm9ybTogY2FwaXRhbGl6ZTtcbn1cblxuLnN1YnRpdGxlLWhlYWRpbmcge1xuICAgIGZvbnQtc2l6ZTogMTdweDtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgdG9wOiAtMTVweDtcbiAgICB0ZXh0LXRyYW5zZm9ybTogY2FwaXRhbGl6ZTtcbn1cblxuLnRleHQtbXV0ZWQge1xuICAgIGNvbG9yOiAjNzc3O1xuICAgIC8vIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAvLyB0b3A6IC0xNXB4O1xuICAgIC8vIGZvbnQtc2l6ZTogMTdweDtcbiAgICB0ZXh0LXRyYW5zZm9ybTogY2FwaXRhbGl6ZTtcbn1cblxuLnN0aWNrLXRvLXRvcCB7XG4gICAgbWFyZ2luLXRvcDogLTUwcHg7XG59XG5cbi5tYWluLWltYWdlIHtcbiAgICB3aWR0aDogNTAwcHg7XG59XG5cbi50ZXh0LWNhcGl0YWwge1xuICAgIHRleHQtdHJhbnNmb3JtOiBjYXBpdGFsaXplO1xufVxuXG4ubm8tZGF0YS1jb250YWluZXIge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIHBhZGRpbmc6IDIwcHg7XG59XG5cbi5jZW50ZXJlZC10ZXh0IHtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5yaWdodC1idXR0b24ge1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICByaWdodDogMjBweDtcbiAgICB0b3A6IDIwcHg7XG59XG5cbi5jaGFubmVsLWNvbnRhaW5lciB7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uY2FyZC13aXRoLWJvcmRlciB7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgaGVpZ2h0OiBhdXRvO1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICNlZWVlZWU7XG59XG5cbjo6bmctZGVlcCAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZCB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzIxOTZmMyAhaW1wb3J0YW50O1xuICAgIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xufVxuXG4ubmV3cy1oZWFkaW5ne1xuICAgIHRleHQtdHJhbnNmb3JtOiBjYXBpdGFsaXplO1xufVxuLyogc21hbGwgaW1hZ2UgY3NzKi9cbi5uZXdzTGlzdCAgLnNtYWxsX2ltZyAuaW1nIHtcbiAgbWF4LXdpZHRoOiAzMiU7XG4gIGZsb2F0OiBsZWZ0O1xuICBtYXJnaW4tcmlnaHQ6IDElO1xuICBoZWlnaHQ6IDExMHB4O1xuICBvdmVyZmxvdzogaGlkZGVuO1xufVxuXG4ubmV3c0xpc3QgIC5zbWFsbF9pbWcgLmltZyBpbWcge1xuICBvYmplY3QtZml0OiBjb3ZlcjtcbiAgb2JqZWN0LXBvc2l0aW9uOiBjZW50ZXI7XG59XG5cbi5uZXdzTGlzdCAgLnNtYWxsX2ltZyAuY29udGVudCB7XG4gIGZsb2F0OiByaWdodDtcbiAgd2lkdGg6IDY3JTtcbiAgcGFkZGluZzogMiVcbn1cblxuLm5ld3NMaXN0ICAubm9faW1nIC5jb250ZW50IHtcbiAgd2lkdGg6IDk3JTtcbiAgcGFkZGluZzogMyVcbn1cblxuLm5ld3NMaXN0IC5zbWFsbF9pbWcsXG4ubmV3c0xpc3QgIC5iaWdfaW1nLFxuLm5ld3NMaXN0ICAubm9faW1nIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBtaW4taGVpZ2h0OiAxMzBweDtcbn1cblxuLm5ld3NMaXN0ICAuYmlnX2ltZyAuY29udGVudCAuY2F0ZWdvcnlOYW1lLFxuLm5ld3NMaXN0ICAubm9faW1nIC5jb250ZW50IC5jYXRlZ29yeU5hbWUsXG4ubmV3c0xpc3QgIC5zbWFsbF9pbWcgLmNvbnRlbnQgLmNhdGVnb3J5TmFtZSB7XG4gIGNvbG9yOiAjYTQyMTM4O1xuICBmb250LXNpemU6IDEycHg7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xufVxuXG4ubmV3c0xpc3QgIC5iaWdfaW1nIC5jb250ZW50IC50aXRsZSxcbi5uZXdzTGlzdCAgLm5vX2ltZyAuY29udGVudCAudGl0bGUsXG4ubmV3c0xpc3QgIC5zbWFsbF9pbWcgLmNvbnRlbnQgLnRpdGxlIHtcbiAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gIGZvbnQtc2l6ZTogMTNweDtcbn1cblxuLm5ld3NMaXN0ICAuYmlnX2ltZyAuY29udGVudCAuZXZlbnREYXRlIGksXG4ubmV3c0xpc3QgIC5ub19pbWcgLmNvbnRlbnQgLmV2ZW50RGF0ZSBpLFxuLm5ld3NMaXN0ICAuc21hbGxfaW1nIC5jb250ZW50IC5ldmVudERhdGUgaSB7XG4gIGNvbG9yOiAjYTQyMTM4O1xuICBtYXJnaW4tcmlnaHQ6IDVweDtcbn1cbi5uZXdzTGlzdCAgLmJpZ19pbWcgLmNvbnRlbnQgLmV2ZW50RGF0ZSxcbi5uZXdzTGlzdCAgLmJpZ19pbWcgLmNvbnRlbnQgLmNhdGVnb3J5TmFtZSxcbi5uZXdzTGlzdCAgLmJpZ19pbWcgLmNvbnRlbnQgLmNoYW5uZWxOYW1lLFxuLm5ld3NMaXN0ICAubm9faW1nIC5jb250ZW50IC5ldmVudERhdGUsXG4ubmV3c0xpc3QgIC5ub19pbWcgLmNvbnRlbnQgLmNhdGVnb3J5TmFtZSxcbi5uZXdzTGlzdCAgLm5vX2ltZyAuY29udGVudCAuY2hhbm5lbE5hbWUsXG4ubmV3c0xpc3QgIC5zbWFsbF9pbWcgLmNvbnRlbnQgLmV2ZW50RGF0ZSxcbi5uZXdzTGlzdCAgLnNtYWxsX2ltZyAuY29udGVudCAuY2F0ZWdvcnlOYW1lLFxuLm5ld3NMaXN0ICAuc21hbGxfaW1nIC5jb250ZW50IC5jaGFubmVsTmFtZSB7XG4gICAgbWFyZ2luLWJvdHRvbTogM3B4O1xufVxuLm5ld3NMaXN0IC5iaWdfaW1nIC5pbWcge1xuICB3aWR0aDogOTYlO1xuICBtYXJnaW46IDAgMiU7XG59XG5cbi5uZXdzTGlzdCAuYmlnX2ltZyAuaW1nIGltZyB7XG4gIG9iamVjdC1maXQ6IGNvbnRhaW47XG4gIG9iamVjdC1wb3NpdGlvbjogY2VudGVyO1xuICB3aWR0aDogMTAwJTtcbiAgbWF4LWhlaWdodDogMTgwcHg7XG59XG5cbi5uZXdzTGlzdCAuYmlnX2ltZyAuY29udGVudCB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgYm90dG9tOiAwcHg7XG4gIGJhY2tncm91bmQ6IHJnYmEoMTY0LCAzMywgNTYsIDAuNik7XG4gIHBhZGRpbmc6IDMlO1xuICBjb2xvcjogI2ZmZjtcbiAgd2lkdGg6IDk2JTtcbn1cblxuLm5ld3NMaXN0ICAuYmlnX2ltZyAuY29udGVudCAuZXZlbnREYXRlIGksXG4ubmV3c0xpc3QgIC5iaWdfaW1nIC5jb250ZW50IC50aXRsZSxcbi5uZXdzTGlzdCAgLmJpZ19pbWcgLmNvbnRlbnQgLmNhdGVnb3J5TmFtZSxcbi5uZXdzTGlzdCAgLmJpZ19pbWcgLmNvbnRlbnQgLmNoYW5uZWxOYW1lIHtcbiAgY29sb3I6ICNmZmYgIWltcG9ydGFudDtcbn1cbi5uZXdzTGlzdCAubm9faW1nIC5jb250ZW50IHtcbiAgd2lkdGg6IDk3JTtcbiAgcGFkZGluZzogMyVcbn1cbi5uZXdzTGlzdCBkaXYge1xuICBwYWRkaW5nOiA1cHggMDtcbiAgbWFyZ2luLWJvdHRvbTogMnB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG4uaW1nLXJlc3BvbnNpdmV7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBtYXgtd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogYXV0bztcbn1cbiJdfQ== */", ".left-modal[_ngcontent-%COMP%] {\n position : 'relative',\n left : '0px'\n }"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MyNewsAndEventsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-my-news-and-events',
templateUrl: './my-news-and-events.component.html',
styleUrls: ['./my-news-and-events.component.scss'],
styles: [`
.left-modal {
position : 'relative',
left : '0px'
}
`]
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: _service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_8__["NewsEventsService"] }]; }, { AddSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddSection', { static: true }]
}] }); })();
/***/ }),
/***/ "Cj6H":
/*!***********************************************!*\
!*** ./src/app/users/users-routing.module.ts ***!
\***********************************************/
/*! exports provided: UserRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserRoutingModule", function() { return UserRoutingModule; });
/* harmony import */ var _pages_admin_users_facial_id_facial_id_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./pages/admin/users/facial-id/facial-id.component */ "gyWi");
/* harmony import */ var _pages_admin_users_ops_group_ops_group_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pages/admin/users/ops-group/ops-group.component */ "ZlCH");
/* harmony import */ var _pages_operations_setup_bu_shift_setup_bu_shift_setup_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pages/operations/setup/bu-shift-setup/bu-shift-setup.component */ "tOeX");
/* harmony import */ var _pages_operations_setup_user_shift_setup_user_shift_setup_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pages/operations/setup/user-shift-setup/user-shift-setup.component */ "F2gy");
/* harmony import */ var _pages_operations_setup_shift_scheme_shift_scheme_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pages/operations/setup/shift-scheme/shift-scheme.component */ "I7Pl");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_plan_shift_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/plan-shift.component */ "Az0T");
/* harmony import */ var _pages_operations_shift_scheduler_manage_shift_manage_shift_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-shift/manage-shift.component */ "fGjg");
/* harmony import */ var _pages_operations_shift_scheduler_view_shift_view_shift_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/view-shift/view-shift.component */ "RndP");
/* harmony import */ var _pages_operations_shift_scheduler_view_booking_view_booking_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/view-booking/view-booking.component */ "IIps");
/* harmony import */ var _pages_operations_shift_scheduler_timesheet_timesheet_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/timesheet/timesheet.component */ "k7Iq");
/* harmony import */ var _pages_operations_report_list_shift_list_shift_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./pages/operations/report/list-shift/list-shift.component */ "PXv1");
/* harmony import */ var _pages_operations_report_list_booking_list_booking_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./pages/operations/report/list-booking/list-booking.component */ "NdTN");
/* harmony import */ var _pages_operations_report_list_cancellation_list_cancellation_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./pages/operations/report/list-cancellation/list-cancellation.component */ "3QNI");
/* harmony import */ var _pages_operations_report_list_user_list_user_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./pages/operations/report/list-user/list-user.component */ "KVXD");
/* harmony import */ var _pages_human_resource_leave_scheme_leave_scheme_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./pages/human-resource/leave-scheme/leave-scheme.component */ "1EfA");
/* harmony import */ var _pages_human_resource_leave_balloting_leave_balloting_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./pages/human-resource/leave-balloting/leave-balloting.component */ "mCAl");
/* harmony import */ var _pages_human_resource_leave_planner_leave_planner_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pages/human-resource/leave-planner/leave-planner.component */ "rrDe");
/* harmony import */ var _pages_system_settings_company_setup_company_setup_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./pages/system-settings/company-setup/company-setup.component */ "dmX3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _guards_auto_login_guard__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./guards/auto-login.guard */ "GZAV");
/* harmony import */ var _guards_auth_guard__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./guards/auth.guard */ "8SeZ");
/* harmony import */ var _layout_design_design_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./layout/design/design.component */ "eDvd");
/* harmony import */ var _pages_system_settings_bussiness_unit_bussiness_unit_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./pages/system-settings/bussiness-unit/bussiness-unit.component */ "7PPy");
/* harmony import */ var _pages_home_home_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./pages/home/home.component */ "ayS3");
/* harmony import */ var _pages_auth_forget_password_forget_password_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./pages/auth/forget-password/forget-password.component */ "OWei");
/* harmony import */ var _pages_auth_verify_user_verify_user_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./pages/auth/verify-user/verify-user.component */ "Uudl");
/* harmony import */ var _pages_system_settings_custom_fields_custom_fields_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./pages/system-settings/custom-fields/custom-fields.component */ "nYYO");
/* harmony import */ var _pages_system_settings_user_roles_user_roles_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./pages/system-settings/user-roles/user-roles.component */ "jFLL");
/* harmony import */ var _pages_users_view_users_user_details_user_details_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./pages/users/view-users/user-details/user-details.component */ "p2yD");
/* harmony import */ var _pages_users_view_users_view_users_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./pages/users/view-users/view-users.component */ "/bT2");
/* harmony import */ var _pages_auth_login_login_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./pages/auth/login/login.component */ "ABpr");
/* harmony import */ var _pages_users_create_users_create_users_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./pages/users/create-users/create-users.component */ "b/se");
/* harmony import */ var _pages_user_profile_user_profile_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./pages/user-profile/user-profile.component */ "a53x");
/* harmony import */ var _pages_communication_channel_setup_channel_setup_component__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./pages/communication/channel-setup/channel-setup.component */ "eV4T");
/* harmony import */ var _pages_central_builder_question_builder_question_builder_component__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./pages/central-builder/question-builder/question-builder.component */ "kSlf");
/* harmony import */ var _pages_central_builder_forms_forms_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./pages/central-builder/forms/forms.component */ "waVV");
/* harmony import */ var _pages_central_builder_my_forms_my_forms_component__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./pages/central-builder/my-forms/my-forms.component */ "EXjG");
/* harmony import */ var _pages_communication_notification_my_notification_my_notification_component__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./pages/communication/notification/my-notification/my-notification.component */ "Aypa");
/* harmony import */ var _pages_communication_notification_manage_notification_manage_notification_component__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./pages/communication/notification/manage-notification/manage-notification.component */ "YyPE");
/* harmony import */ var _pages_communication_board_setup_board_setup_component__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./pages/communication/board-setup/board-setup.component */ "JedV");
/* harmony import */ var _pages_communication_manage_news_manage_news_component__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./pages/communication/manage-news/manage-news.component */ "3rNv");
/* harmony import */ var _pages_communication_manage_events_manage_events_component__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./pages/communication/manage-events/manage-events.component */ "H01m");
/* harmony import */ var _pages_gamification_challenges_challenges_component__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./pages/gamification/challenges/challenges.component */ "SUKM");
/* harmony import */ var _pages_gamification_Redemption_List_Redemption_List_component__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./pages/gamification/Redemption-List/Redemption-List.component */ "fwC0");
/* harmony import */ var _pages_communication_my_news_and_events_my_news_and_events_component__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./pages/communication/my-news-and-events/my-news-and-events.component */ "BvJJ");
/* harmony import */ var _pages_users_locked_account_locked_account_component__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./pages/users/locked-account/locked-account.component */ "TlY0");
/* harmony import */ var _pages_users_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./pages/users/reset-password/reset-password.component */ "EHWJ");
/* harmony import */ var _pages_system_settings_integration_logs_integration_logs_component__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./pages/system-settings/integration-logs/integration-logs.component */ "6/Fc");
/* harmony import */ var _pages_auth_terms_and_conditions_terms_and_conditions_component__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./pages/auth/terms-and-conditions/terms-and-conditions.component */ "uA7q");
/* harmony import */ var _pages_auth_support_support_component__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./pages/auth/support/support.component */ "UICD");
/* harmony import */ var _pages_notification_notification_component__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./pages/notification/notification.component */ "FU8Z");
/* harmony import */ var _pages_auth_password_expired_password_expired_component__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./pages/auth/password-expired/password-expired.component */ "TR14");
/* harmony import */ var _pages_auth_welcomepage_welcomepage_component__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./pages/auth/welcomepage/welcomepage.component */ "f9+U");
/* harmony import */ var _pages_operations_setup_service_setup_service_setup_component__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./pages/operations/setup/service-setup/service-setup.component */ "6VmK");
/* harmony import */ var _pages_operations_shift_scheduler_manage_service_manage_service_component__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-service/manage-service.component */ "rJsq");
/* harmony import */ var _pages_operations_shift_scheduler_plan_service_plan_service_component__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-service/plan-service.component */ "cd1d");
/* harmony import */ var _pages_admin_users_manage_transport_manage_transport_component__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./pages/admin/users/manage-transport/manage-transport.component */ "Px+v");
const routes = [
{
path: "login/:name",
component: _pages_auth_login_login_component__WEBPACK_IMPORTED_MODULE_31__["LoginComponent"],
canActivate: [_guards_auto_login_guard__WEBPACK_IMPORTED_MODULE_20__["AutoLoginGuard"]],
},
{
path: "terms-conditions/:name",
component: _pages_auth_terms_and_conditions_terms_and_conditions_component__WEBPACK_IMPORTED_MODULE_49__["TermsAndConditionsComponent"],
},
{
path: "forget-password/:name",
component: _pages_auth_forget_password_forget_password_component__WEBPACK_IMPORTED_MODULE_25__["ForgetPasswordComponent"],
},
{
path: "password-expired/:name",
component: _pages_auth_password_expired_password_expired_component__WEBPACK_IMPORTED_MODULE_52__["PasswordExpiredComponent"],
},
{
path: "WelcomeScreen/:name",
component: _pages_auth_welcomepage_welcomepage_component__WEBPACK_IMPORTED_MODULE_53__["WelcomepageComponent"],
},
{
path: "support/:name",
component: _pages_auth_support_support_component__WEBPACK_IMPORTED_MODULE_50__["SupportComponent"],
},
{
path: "user-verify",
component: _pages_auth_verify_user_verify_user_component__WEBPACK_IMPORTED_MODULE_26__["VerifyUserComponent"],
canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_21__["AuthGuard"]],
},
{
path: "",
pathMatch: "full",
redirectTo: "login/:name",
},
{
path: "",
component: _layout_design_design_component__WEBPACK_IMPORTED_MODULE_22__["DesignComponent"],
canActivate: [_guards_auth_guard__WEBPACK_IMPORTED_MODULE_21__["AuthGuard"]],
children: [
{
path: "home",
component: _pages_home_home_component__WEBPACK_IMPORTED_MODULE_24__["HomeComponent"],
},
{
path: "profile",
component: _pages_user_profile_user_profile_component__WEBPACK_IMPORTED_MODULE_33__["UserProfileComponent"],
},
{
path: "bu-unit",
component: _pages_system_settings_bussiness_unit_bussiness_unit_component__WEBPACK_IMPORTED_MODULE_23__["BussinessUnitComponent"],
},
{
path: "user-roles",
component: _pages_system_settings_user_roles_user_roles_component__WEBPACK_IMPORTED_MODULE_28__["UserRolesComponent"],
},
{
path: "company-setup",
component: _pages_system_settings_company_setup_company_setup_component__WEBPACK_IMPORTED_MODULE_17__["CompanySetupComponent"],
},
{
path: "custom-fields",
component: _pages_system_settings_custom_fields_custom_fields_component__WEBPACK_IMPORTED_MODULE_27__["CustomFieldsComponent"],
},
{
path: "view-users",
component: _pages_users_view_users_view_users_component__WEBPACK_IMPORTED_MODULE_30__["ViewUsersComponent"],
},
{
path: "view-users/details",
component: _pages_users_view_users_user_details_user_details_component__WEBPACK_IMPORTED_MODULE_29__["UserDetailsComponent"],
},
{
path: "create-users",
component: _pages_users_create_users_create_users_component__WEBPACK_IMPORTED_MODULE_32__["CreateUsersComponent"],
},
{
path: "lock-account",
component: _pages_users_locked_account_locked_account_component__WEBPACK_IMPORTED_MODULE_46__["LockedAccountComponent"],
},
{
path: "Challenges",
component: _pages_gamification_challenges_challenges_component__WEBPACK_IMPORTED_MODULE_43__["ChallengesComponent"],
},
{
path: "rest-password",
component: _pages_users_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_47__["ResetPasswordComponent"],
},
{
path: "facial-id",
component: _pages_admin_users_facial_id_facial_id_component__WEBPACK_IMPORTED_MODULE_0__["FacialIdComponent"],
},
{
path: "manage-transport",
component: _pages_admin_users_manage_transport_manage_transport_component__WEBPACK_IMPORTED_MODULE_57__["ManageTransportComponent"],
},
{
path: "ops-group",
component: _pages_admin_users_ops_group_ops_group_component__WEBPACK_IMPORTED_MODULE_1__["OpsGroupComponent"],
},
{
path: "channel-setup",
component: _pages_communication_channel_setup_channel_setup_component__WEBPACK_IMPORTED_MODULE_34__["ChannelSetupComponent"],
},
{
path: "question-builder",
component: _pages_central_builder_question_builder_question_builder_component__WEBPACK_IMPORTED_MODULE_35__["QuestionBuilderComponent"],
},
{
path: "forms",
component: _pages_central_builder_forms_forms_component__WEBPACK_IMPORTED_MODULE_36__["FormsComponent"],
},
{
path: "my-forms",
component: _pages_central_builder_my_forms_my_forms_component__WEBPACK_IMPORTED_MODULE_37__["MyFormsComponent"],
},
{
path: "my-notifications",
component: _pages_communication_notification_my_notification_my_notification_component__WEBPACK_IMPORTED_MODULE_38__["MyNotificationComponent"],
},
{
path: "manage-notification",
component: _pages_communication_notification_manage_notification_manage_notification_component__WEBPACK_IMPORTED_MODULE_39__["ManageNotificationComponent"],
},
{
path: "board-setup",
component: _pages_communication_board_setup_board_setup_component__WEBPACK_IMPORTED_MODULE_40__["BoardSetupComponent"],
},
{
path: "manage-news",
component: _pages_communication_manage_news_manage_news_component__WEBPACK_IMPORTED_MODULE_41__["ManageNewsComponent"],
},
{
path: "manage-events",
component: _pages_communication_manage_events_manage_events_component__WEBPACK_IMPORTED_MODULE_42__["ManageEventsComponent"],
},
{
path: "my-news-and-events",
component: _pages_communication_my_news_and_events_my_news_and_events_component__WEBPACK_IMPORTED_MODULE_45__["MyNewsAndEventsComponent"],
},
{
path: "bu-shift-setup",
component: _pages_operations_setup_bu_shift_setup_bu_shift_setup_component__WEBPACK_IMPORTED_MODULE_2__["BuShiftSetupComponent"],
},
{
path: "user-shift-setup",
component: _pages_operations_setup_user_shift_setup_user_shift_setup_component__WEBPACK_IMPORTED_MODULE_3__["UserShiftSetupComponent"],
},
{
path: "shift-scheme",
component: _pages_operations_setup_shift_scheme_shift_scheme_component__WEBPACK_IMPORTED_MODULE_4__["ShiftSchemeComponent"],
},
{
path: "plan-shift",
component: _pages_operations_shift_scheduler_plan_shift_plan_shift_component__WEBPACK_IMPORTED_MODULE_5__["PlanShiftComponent"],
},
{
path: "manage-shift",
component: _pages_operations_shift_scheduler_manage_shift_manage_shift_component__WEBPACK_IMPORTED_MODULE_6__["ManageShiftComponent"],
},
{
path: "view-shift",
component: _pages_operations_shift_scheduler_view_shift_view_shift_component__WEBPACK_IMPORTED_MODULE_7__["ViewShiftComponent"],
},
{
path: "view-booking",
component: _pages_operations_shift_scheduler_view_booking_view_booking_component__WEBPACK_IMPORTED_MODULE_8__["ViewBookingComponent"],
},
{
path: "timesheet",
component: _pages_operations_shift_scheduler_timesheet_timesheet_component__WEBPACK_IMPORTED_MODULE_9__["TimesheetComponent"],
},
{
path: "list-of-shift-released",
component: _pages_operations_report_list_shift_list_shift_component__WEBPACK_IMPORTED_MODULE_10__["ListShiftComponent"],
},
{
path: "list-of-booking",
component: _pages_operations_report_list_booking_list_booking_component__WEBPACK_IMPORTED_MODULE_11__["ListBookingComponent"],
},
{
path: "list-of-cancellation",
component: _pages_operations_report_list_cancellation_list_cancellation_component__WEBPACK_IMPORTED_MODULE_12__["ListCancellationComponent"],
},
{
path: "list-of-users",
component: _pages_operations_report_list_user_list_user_component__WEBPACK_IMPORTED_MODULE_13__["ListUserComponent"],
},
{
path: "leave-scheme",
component: _pages_human_resource_leave_scheme_leave_scheme_component__WEBPACK_IMPORTED_MODULE_14__["LeaveSchemeComponent"],
},
{
path: "leave-balloting",
component: _pages_human_resource_leave_balloting_leave_balloting_component__WEBPACK_IMPORTED_MODULE_15__["LeaveBallotingComponent"],
},
{
path: "leave-planner",
component: _pages_human_resource_leave_planner_leave_planner_component__WEBPACK_IMPORTED_MODULE_16__["LeavePlannerComponent"],
},
{
path: "manage-events",
component: _pages_communication_manage_events_manage_events_component__WEBPACK_IMPORTED_MODULE_42__["ManageEventsComponent"],
},
{
path: "bu-shift-setup",
component: _pages_operations_setup_bu_shift_setup_bu_shift_setup_component__WEBPACK_IMPORTED_MODULE_2__["BuShiftSetupComponent"],
},
{
path: "user-shift-setup",
component: _pages_operations_setup_user_shift_setup_user_shift_setup_component__WEBPACK_IMPORTED_MODULE_3__["UserShiftSetupComponent"],
},
{
path: "shift-scheme",
component: _pages_operations_setup_shift_scheme_shift_scheme_component__WEBPACK_IMPORTED_MODULE_4__["ShiftSchemeComponent"],
},
{
path: "plan-shift",
component: _pages_operations_shift_scheduler_plan_shift_plan_shift_component__WEBPACK_IMPORTED_MODULE_5__["PlanShiftComponent"],
},
{
path: "manage-shift",
component: _pages_operations_shift_scheduler_manage_shift_manage_shift_component__WEBPACK_IMPORTED_MODULE_6__["ManageShiftComponent"],
},
{
path: "view-shift",
component: _pages_operations_shift_scheduler_view_shift_view_shift_component__WEBPACK_IMPORTED_MODULE_7__["ViewShiftComponent"],
},
{
path: "view-booking",
component: _pages_operations_shift_scheduler_view_booking_view_booking_component__WEBPACK_IMPORTED_MODULE_8__["ViewBookingComponent"],
},
{
path: "timesheet",
component: _pages_operations_shift_scheduler_timesheet_timesheet_component__WEBPACK_IMPORTED_MODULE_9__["TimesheetComponent"],
},
{
path: "list-of-shift-released",
component: _pages_operations_report_list_shift_list_shift_component__WEBPACK_IMPORTED_MODULE_10__["ListShiftComponent"],
},
{
path: "list-of-booking",
component: _pages_operations_report_list_booking_list_booking_component__WEBPACK_IMPORTED_MODULE_11__["ListBookingComponent"],
},
{
path: "list-of-cancellation",
component: _pages_operations_report_list_cancellation_list_cancellation_component__WEBPACK_IMPORTED_MODULE_12__["ListCancellationComponent"],
},
{
path: "list-of-users",
component: _pages_operations_report_list_user_list_user_component__WEBPACK_IMPORTED_MODULE_13__["ListUserComponent"],
},
{
path: "leave-scheme",
component: _pages_human_resource_leave_scheme_leave_scheme_component__WEBPACK_IMPORTED_MODULE_14__["LeaveSchemeComponent"],
},
{
path: "leave-balloting",
component: _pages_human_resource_leave_balloting_leave_balloting_component__WEBPACK_IMPORTED_MODULE_15__["LeaveBallotingComponent"],
},
{
path: "leave-planner",
component: _pages_human_resource_leave_planner_leave_planner_component__WEBPACK_IMPORTED_MODULE_16__["LeavePlannerComponent"],
},
{
path: "integration-logs",
component: _pages_system_settings_integration_logs_integration_logs_component__WEBPACK_IMPORTED_MODULE_48__["IntegrationLogsComponent"],
},
{
path: "redemption-list",
component: _pages_gamification_Redemption_List_Redemption_List_component__WEBPACK_IMPORTED_MODULE_44__["RedemptionListComponent"],
},
{
path: 'custom-notification',
component: _pages_notification_notification_component__WEBPACK_IMPORTED_MODULE_51__["NotificationComponent"],
},
{
path: 'service-setup',
component: _pages_operations_setup_service_setup_service_setup_component__WEBPACK_IMPORTED_MODULE_54__["ServiceSetupComponent"],
},
{
path: 'plan-service',
component: _pages_operations_shift_scheduler_plan_service_plan_service_component__WEBPACK_IMPORTED_MODULE_56__["PlanServiceComponent"],
},
{
path: 'manage-service',
component: _pages_operations_shift_scheduler_manage_service_manage_service_component__WEBPACK_IMPORTED_MODULE_55__["ManageServiceComponent"],
}
],
},
];
class UserRoutingModule {
}
UserRoutingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdefineNgModule"]({ type: UserRoutingModule });
UserRoutingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵdefineInjector"]({ factory: function UserRoutingModule_Factory(t) { return new (t || UserRoutingModule)(); }, imports: [[_angular_router__WEBPACK_IMPORTED_MODULE_19__["RouterModule"].forChild(routes)], _angular_router__WEBPACK_IMPORTED_MODULE_19__["RouterModule"]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵɵsetNgModuleScope"](UserRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_19__["RouterModule"]], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_19__["RouterModule"]] }); })();
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_18__["ɵsetClassMetadata"](UserRoutingModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_18__["NgModule"],
args: [{
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_19__["RouterModule"].forChild(routes)],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_19__["RouterModule"]],
}]
}], null, null); })();
/***/ }),
/***/ "CrOV":
/*!**********************************************************************!*\
!*** ./src/app/shared/token-interceptor/auth-interceptor.service.ts ***!
\**********************************************************************/
/*! exports provided: AuthInterceptor, authInterceptorProviders */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthInterceptor", function() { return AuthInterceptor; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "authInterceptorProviders", function() { return authInterceptorProviders; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../users/service/auth/auth.service */ "PxIJ");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "tyNb");
const TOKEN_HEADER_KEY = 'Authorization';
class AuthInterceptor {
constructor(authService, router) {
this.authService = authService;
this.router = router;
this.isRefreshing = false;
this.refreshTokenSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](null);
this.Company = localStorage.getItem('flexicompanyName');
}
intercept(req, next) {
let authReq = req;
if (req.url.includes('amazonaws.com')) {
return next.handle(req); // Skip adding auth token for file download requests
}
const token = localStorage.getItem('flexiusersToken');
if (token != null && !this.router.url.includes('/admin')) {
authReq = this.addTokenHeader(req, token);
}
return next.handle(authReq).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(error => {
var _a;
if (error instanceof _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpErrorResponse"] && error.status === 403 && !((_a = error.url) === null || _a === void 0 ? void 0 : _a.includes('amazonaws.com'))) {
return this.handle403Error(authReq, next);
}
return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["throwError"])(error);
}));
}
handle403Error(request, next) {
var _a;
if (!this.isRefreshing) {
this.isRefreshing = true;
this.refreshTokenSubject.next(null);
const token = JSON.parse(localStorage.getItem('loggedInUserAllTokens'));
const payload = {
refreshToken: (_a = token.refreshToken) === null || _a === void 0 ? void 0 : _a.split(" ")[1],
};
if (token)
return this.authService.resetTokens(payload).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])((res) => {
this.isRefreshing = false;
const newTokens = {
accessToken: res.data.accessToken,
refreshToken: res.data.refreshToken,
};
localStorage.setItem('loggedInUserAllTokens', JSON.stringify(newTokens));
localStorage.setItem('flexiusersToken', newTokens.accessToken);
this.refreshTokenSubject.next(newTokens.accessToken);
return next.handle(this.addTokenHeader(request, newTokens.accessToken));
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])((err) => {
this.isRefreshing = false;
this.logoutAndRedirect(err);
return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["throwError"])(err);
}));
}
return this.refreshTokenSubject.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(token => token !== null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])((token) => next.handle(this.addTokenHeader(request, token))));
}
addTokenHeader(request, token) {
return request.clone({ headers: request.headers.set(TOKEN_HEADER_KEY, token) });
}
logoutAndRedirect(err) {
this.authService.logout();
this.router.navigate(['/users/login/', this.Company]);
return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["throwError"])(err);
}
}
AuthInterceptor.ɵfac = function AuthInterceptor_Factory(t) { return new (t || AuthInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"])); };
AuthInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: AuthInterceptor, factory: AuthInterceptor.ɵfac });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AuthInterceptor, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
}], function () { return [{ type: _users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"] }]; }, null); })();
const authInterceptorProviders = [
{ provide: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HTTP_INTERCEPTORS"], useClass: AuthInterceptor, multi: true }
];
/***/ }),
/***/ "D7Pn":
/*!******************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-shift/log-assign/log-assign.component.ts ***!
\******************************************************************************************************/
/*! exports provided: LogAssignComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogAssignComponent", function() { return LogAssignComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function LogAssignComponent_div_0_ngx_skeleton_loader_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 14);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function LogAssignComponent_div_0_table_19_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogAssignComponent_div_0_table_19_tr_14_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const i_r6 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r7.changeOverview(false, i_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 4, i_r6.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 6, i_r6.createdAt, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r6.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r6 == null ? null : i_r6.staff_id == null ? null : i_r6.staff_id.name);
} }
function LogAssignComponent_div_0_table_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "USER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, LogAssignComponent_div_0_table_19_tr_14_Template, 14, 9, "tr", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.logAssign);
} }
function LogAssignComponent_div_0_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Data Available ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LogAssignComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Week");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogAssignComponent_div_0_Template_div_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.changeWeek("Prev"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "i", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " chevron_left ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogAssignComponent_div_0_Template_div_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.changeWeek("Nxt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "i", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " chevron_right ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Log Assign Shifts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, LogAssignComponent_div_0_ngx_skeleton_loader_18_Template, 1, 2, "ngx-skeleton-loader", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, LogAssignComponent_div_0_table_19_Template, 15, 1, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, LogAssignComponent_div_0_div_20_Template, 2, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.currWeek, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx_r0.bu.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.assignLogLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.assignLogLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.assignLogLoader && (ctx_r0.logAssign == null ? null : ctx_r0.logAssign.length) === 0);
} }
function LogAssignComponent_div_1_div_44_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, j_r15.startTime, "HH:mm"), "-", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, j_r15.endTime, "HH:mm"), " ");
} }
function LogAssignComponent_div_1_div_44_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", j_r15.OFF_REST, " ");
} }
function LogAssignComponent_div_1_div_44_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogAssignComponent_div_1_div_44_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const j_r15 = ctx.$implicit; const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r20.changeShiftDetailsView(true, j_r15); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Shift Published Successfully");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, LogAssignComponent_div_1_div_44_div_4_Template, 4, 8, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LogAssignComponent_div_1_div_44_div_5_Template, 2, 1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r15 = ctx.$implicit;
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r13.shiftDetail == j_r15 ? "selected" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", j_r15.OFF_REST == "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", j_r15.OFF_REST != "");
} }
function LogAssignComponent_div_1_div_45_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 4, ctx_r22.shiftDetail.startTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](9, 7, ctx_r22.shiftDetail.endTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function LogAssignComponent_div_1_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Details of Shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, LogAssignComponent_div_1_div_45_div_18_Template, 10, 10, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Publish Message");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r14.bu.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](17, 6, ctx_r14.shiftDetail.date, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r14.shiftDetail.isOff || !ctx_r14.shiftDetail.isRest);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function LogAssignComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "LOG DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LogAssignComponent_div_1_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r23.changeOverview(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "General");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 33, 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](20, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](26, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "List of Shift released");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, LogAssignComponent_div_1_div_44_Template, 6, 3, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, LogAssignComponent_div_1_div_45_Template, 24, 9, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](20, 10, ctx_r1.logDetail.createdAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](26, 13, ctx_r1.logDetail.createdAt, "shortTime"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", ctx_r1.logDetail.staff_id == null ? null : ctx_r1.logDetail.staff_id.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", ctx_r1.logDetail.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.logDetail.successShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.showShiftDetails);
} }
class LogAssignComponent {
constructor(logService, shiftService) {
this.logService = logService;
this.shiftService = shiftService;
this.isOverview = true;
this.showShiftDetails = false;
this.assignLogLoader = true;
this.currWeek = null;
this.buWeekArr = [];
this.weekCount = 0;
this.getWeekStartEndDate = function (date, count) {
let datesToReturn = {};
let label = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MMM DD YYYY") + ' to ' + moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count + 6, 'days').format("MMM DD YYYY");
let value = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MM-DD-YYYY");
datesToReturn = { label: label, value: value, key: count };
return label;
};
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["getGmtOffSet"])();
this.getWeeks();
}
changeOverview(value, item) {
this.isOverview = value;
this.logDetail = item;
this.showShiftDetails = false;
}
changeShiftDetailsView(value, item) {
this.showShiftDetails = value;
this.shiftDetail = item;
}
logTableData() {
this.assignLogLoader = true;
const logPayload = {
businessUnitId: this.bu._id,
weekRangeStartsAt: this.weekRangeStartsAt,
weekRangeEndsAt: this.weekRangeEndsAt,
};
const logTableSub = this.logService
.getLogAssign(logPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.assignLogLoader = false;
logTableSub.unsubscribe();
}))
.subscribe((res) => {
this.logAssign = res["data"];
this.BuName = res['orgName'];
});
}
getWeeks() {
const currDate = moment__WEBPACK_IMPORTED_MODULE_1__();
this.weekRangeStartsAt = currDate.clone().startOf("isoWeek").format("MM-DD-YYYY") + ` 00:00:00 ${this.gmtOffset}`;
this.weekRangeEndsAt = currDate.clone().endOf("isoWeek").format("MM-DD-YYYY") + ` 00:00:00 ${this.gmtOffset}`;
this.shiftService.getWeeks(this.bu._id).subscribe((res) => {
let getDate = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').format("MM-DD-YYYY");
const count = res['data'].noOfWeek;
this.currentWeekCount = count;
if (count > 0) {
for (var i = -count; i <= count; i++) {
let dummyData = this.getWeekStartEndDate(getDate, 7 * (i));
this.buWeekArr.push(dummyData);
}
}
this.currWeek = this.buWeekArr[this.currentWeekCount];
});
this.logTableData();
}
changeWeek(str) {
if (str == 'Nxt') {
this.weekCount =
this.weekCount < this.currentWeekCount
? this.weekCount + 1
: this.currentWeekCount;
}
else if (str == 'Prev') {
this.weekCount =
this.weekCount == -Math.abs(this.currentWeekCount)
? this.weekCount
: this.weekCount - 1;
}
else {
this.weekCount = 0;
}
this.currWeek = this.buWeekArr[this.currentWeekCount + this.weekCount];
let startDaystr = this.currWeek.slice(0, 11);
let date = moment__WEBPACK_IMPORTED_MODULE_1__(startDaystr).format('MM-DD-YYYY');
this.weekRangeStartsAt = date + ` 00:00:00 ${this.gmtOffset}`;
let endDayString = moment__WEBPACK_IMPORTED_MODULE_1__(startDaystr)
.add(6, 'days')
.format('MM-DD-YYYY');
this.weekRangeEndsAt = endDayString + ` 00:00:00 ${this.gmtOffset}`;
this.logTableData();
}
}
LogAssignComponent.ɵfac = function LogAssignComponent_Factory(t) { return new (t || LogAssignComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"])); };
LogAssignComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogAssignComponent, selectors: [["app-log-assign"]], inputs: { bu: "bu" }, decls: 2, vars: 2, consts: [["class", "card", 4, "ngIf"], [1, "card"], ["for", "", 1, "font-weight-500", "m-3"], [1, "d-flex", "ml-3", "mb-3"], ["title", "Previous Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-left", 3, "click"], [1, "material-icons"], [1, "weekInput", "d-flex", "align-items-center"], ["title", "Next Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-right", 3, "click"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body", "table-responsive", "p-0"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table m-0", 4, "ngIf"], ["class", "bg-white text-center p-3", 4, "ngIf"], ["count", "6", 3, "theme"], [1, "table", "m-0"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-success", "btn-sm", 3, "click"], [1, "bg-white", "text-center", "p-3"], [1, "card-header", "d-flex", "align-items-center", "justify-content-between", "bg-theme"], [1, "btn", "btn-outline-light", "btn-sm", 3, "click"], [1, "card-body"], [1, "card", "mb-3"], [1, "card-header"], [1, "row"], [1, "col-md-4"], [1, "form-group"], ["for", ""], ["placeholder", "date", 1, "form-control", 3, "disabled", "value"], ["date", ""], ["placeholder", "time", 1, "form-control", 3, "disabled", "value"], ["placeholder", "user", 1, "form-control", 3, "disabled", "value"], [1, "col-md-6"], ["placeholder", "Description", 1, "form-control", 3, "disabled", "value"], ["class", "shiftTab d-flex align-items-center mb-2", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["class", "col-md-6", 4, "ngIf"], [1, "shiftTab", "d-flex", "align-items-center", "mb-2", 3, "ngClass", "click"], [1, "d-flex", "justify-content-between", "w-100"], [4, "ngIf"], [1, "col-md-12"], ["placeholder", "Business Unit", 1, "form-control", 3, "disabled", "value"], ["placeholder", "Date", 1, "form-control", 3, "disabled", "value"], ["class", "col-md-12", 4, "ngIf"], ["value", "Shift Publish Successfully", 1, "form-control", 3, "disabled"], [1, "form-group", "row"], ["for", "", 1, "col-md-12"], ["placeholder", "Timing", 1, "form-control", "col-md-5", 3, "disabled", "value"], ["placeholder", "Timimg", 1, "form-control", "col-md-5", 3, "disabled", "value"]], template: function LogAssignComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, LogAssignComponent_div_0_Template, 21, 5, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LogAssignComponent_div_1_Template, 46, 16, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOverview);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isOverview);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_6__["NgxSkeletonLoaderComponent"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgForm"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgClass"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DatePipe"]], styles: [".shiftTab[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0.5rem 0.8rem;\n border-radius: 4px;\n min-height: 60px;\n cursor: pointer;\n}\n.shiftTab[_ngcontent-%COMP%]:hover {\n background-color: #eee;\n}\n.shiftTab.selected[_ngcontent-%COMP%] {\n background-color: #721c2414;\n border: 1px solid #a73535;\n border-radius: 4px;\n}\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n.weekbtn[_ngcontent-%COMP%] {\n width: 36px;\n border: 1px solid #a42138;\n height: 36px;\n text-align: center;\n float: left;\n background: #faacac;\n color: #a42138;\n cursor: pointer;\n transition: all 0.3s;\n}\n.weekbtn[_ngcontent-%COMP%]:hover {\n background: #a42138;\n color: #fff;\n}\n.weekInput[_ngcontent-%COMP%] {\n height: 36px;\n border-top: 1px solid #a42138;\n border-bottom: 1px solid #a42138;\n text-align: center;\n float: left;\n padding: 5px;\n font-weight: bold;\n padding-left: 15px;\n padding-right: 15px;\n background: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9sb2ctYXNzaWduL2xvZy1hc3NpZ24uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7QUFDRjtBQUNFO0VBQ0Usc0JBQUE7QUFDSjtBQUVFO0VBQ0UsMkJBQUE7RUFDQSx5QkFBQTtFQUNBLGtCQUFBO0FBQUo7QUFJQTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtBQURGO0FBSUE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsbUJBQUE7RUFDQSxjQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0FBREY7QUFHRTtFQUNFLG1CQUFBO0VBQ0EsV0FBQTtBQURKO0FBS0E7RUFDRSxZQUFBO0VBQ0EsNkJBQUE7RUFDQSxnQ0FBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtBQUZGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9sb2ctYXNzaWduL2xvZy1hc3NpZ24uY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuc2hpZnRUYWIge1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBwYWRkaW5nOiAwLjVyZW0gMC44cmVtO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIG1pbi1oZWlnaHQ6IDYwcHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcblxuICAmOmhvdmVyIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZWVlO1xuICB9XG5cbiAgJi5zZWxlY3RlZCB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzcyMWMyNDE0O1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICNhNzM1MzU7XG4gICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICB9XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuXG4ud2Vla2J0biB7XG4gIHdpZHRoOiAzNnB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjYTQyMTM4O1xuICBoZWlnaHQ6IDM2cHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgZmxvYXQ6IGxlZnQ7XG4gIGJhY2tncm91bmQ6ICNmYWFjYWM7XG4gIGNvbG9yOiAjYTQyMTM4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHRyYW5zaXRpb246IGFsbCAwLjNzO1xuXG4gICY6aG92ZXIge1xuICAgIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gICAgY29sb3I6ICNmZmY7XG4gIH1cbn1cblxuLndlZWtJbnB1dCB7XG4gIGhlaWdodDogMzZweDtcbiAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICNhNDIxMzg7XG4gIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjYTQyMTM4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGZsb2F0OiBsZWZ0O1xuICBwYWRkaW5nOiA1cHg7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBwYWRkaW5nLWxlZnQ6IDE1cHg7XG4gIHBhZGRpbmctcmlnaHQ6IDE1cHg7XG4gIGJhY2tncm91bmQ6ICNmZmY7XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LogAssignComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: "app-log-assign",
templateUrl: "./log-assign.component.html",
styleUrls: ["./log-assign.component.scss"],
}]
}], function () { return [{ type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "DZS5":
/*!**********************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/edit-response/edit-response.ts ***!
\**********************************************************************************************/
/*! exports provided: EditResponseComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditResponseComponent", function() { return EditResponseComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/input */ "qFsG");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/cdk/drag-drop */ "5+WD");
/* harmony import */ var _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../shared/angular-date-time-picker/date-time-picker.html/date-time-picker.html.component */ "d4JE");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../../shared/pipes/safe.pipe */ "ITC6");
function EditResponseComponent_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](header_r3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControlName", header_r3);
} }
function EditResponseComponent_div_15_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function EditResponseComponent_div_15_div_8_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "textarea", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_8_Template_textarea_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r28); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r4.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r4.answer)("disabled", item_r4.isDisabled);
} }
function EditResponseComponent_div_15_div_9_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r31 == null ? null : option_r31.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function EditResponseComponent_div_15_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_9_div_1_div_1_Template, 2, 1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_9_div_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r4.answer = $event; })("change", function EditResponseComponent_div_15_div_9_div_1_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); const option_r31 = ctx.$implicit; const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r37.setChild(item_r4, option_r31); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r31 = ctx.$implicit;
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r31.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r31._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", item_r4._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", option_r31 == null ? null : option_r31.value)("ngModel", item_r4.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r31.value);
} }
function EditResponseComponent_div_15_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_9_div_1_Template, 5, 6, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4.options);
} }
function EditResponseComponent_div_15_div_10_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r42 == null ? null : option_r42.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function EditResponseComponent_div_15_div_10_div_1_Template(rf, ctx) { if (rf & 1) {
const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_10_div_1_div_1_Template, 2, 1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_10_div_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r47); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r4.answer = $event; })("change", function EditResponseComponent_div_15_div_10_div_1_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r47); const option_r42 = ctx.$implicit; const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r48.setChild(item_r4, option_r42); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r42 = ctx.$implicit;
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r42.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r42._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", item_r4._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", option_r42 == null ? null : option_r42.value)("ngModel", item_r4.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", option_r42._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r42.value);
} }
function EditResponseComponent_div_15_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_10_div_1_Template, 5, 7, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4.options);
} }
function EditResponseComponent_div_15_div_11_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "img", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_div_15_div_11_div_2_img_2_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r59); const i_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r4.selected = i_r54; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", option_r53.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function EditResponseComponent_div_15_div_11_div_2_span_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", option_r53.percentage, " %");
} }
const _c0 = function (a0) { return { "width": a0 }; };
const _c1 = function (a0) { return { "pollingSelect": a0 }; };
function EditResponseComponent_div_15_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, EditResponseComponent_div_15_div_11_div_2_img_2_Template, 1, 1, "img", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_div_15_div_11_div_2_Template_div_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r65); const option_r53 = ctx.$implicit; const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r63.selectPolling(item_r4._id, option_r53); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "img", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "h4", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_div_15_div_11_div_2_Template_h4_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r65); const i_r54 = ctx.index; const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r4.selected = i_r54; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, EditResponseComponent_div_15_div_11_div_2_span_11_Template, 2, 1, "span", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r53 = ctx.$implicit;
const i_r54 = ctx.index;
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", option_r53._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r53.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](7, _c0, option_r53.imageSrc ? "270px" : "150px"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", "./assets/images/" + (option_r53.answer ? "like1" : "like0") + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](9, _c1, item_r4.selected === i_r54));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r53.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r53.percentage);
} }
function EditResponseComponent_div_15_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, EditResponseComponent_div_15_div_11_div_2_Template, 12, 11, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4.options);
} }
function EditResponseComponent_div_15_div_12_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r71.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function EditResponseComponent_div_15_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
const _r77 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_12_div_2_div_1_Template, 3, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function EditResponseComponent_div_15_div_12_div_2_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r77); const option_r71 = ctx.$implicit; const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); const item_r4 = ctx_r76.$implicit; const i_r5 = ctx_r76.index; const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r75.setChild(item_r4, option_r71, i_r5); return ctx_r75.setCheckboxAnswer($event, i_r5, option_r71, item_r4["answer"]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r71 = ctx.$implicit;
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r71.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", option_r71._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r71._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r70.getCheckedValue(option_r71, item_r4["answer"]));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("\u00A0", option_r71.value, "");
} }
function EditResponseComponent_div_15_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, EditResponseComponent_div_15_div_12_div_2_Template, 5, 5, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4.options);
} }
function EditResponseComponent_div_15_div_13_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", item_r4.answer, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function EditResponseComponent_div_15_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, EditResponseComponent_div_15_div_13_div_2_Template, 2, 1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "mat-icon", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.answer);
} }
function EditResponseComponent_div_15_div_14_Template(rf, ctx) { if (rf & 1) {
const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "textarea", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_14_Template_textarea_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r85); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r4.answer = $event; })("keydown", function EditResponseComponent_div_15_div_14_Template_textarea_keydown_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r85); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r86.onInputChangeShortText($event, item_r4.isNumeric); })("paste", function EditResponseComponent_div_15_div_14_Template_textarea_paste_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r85); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r88.onPaste($event, item_r4.isNumeric, item_r4.maxlength); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("maxlength", !!(item_r4 == null ? null : item_r4.maxlength) ? item_r4 == null ? null : item_r4.maxlength : 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r4.answer);
} }
function EditResponseComponent_div_15_div_15_Template(rf, ctx) { if (rf & 1) {
const _r93 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "input", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_15_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r93); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r4.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r4.answer);
} }
function EditResponseComponent_div_15_div_16_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
const _r103 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "input", 71, 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_16_div_1_div_1_Template_input_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r103); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r4.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "ngb-timepicker", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_16_div_1_div_1_Template_ngb_timepicker_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r103); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r4.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r4.answer["date"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r4.answer["time"])("meridian", true)("hourStep", ctx_r97.hourStep)("minuteStep", ctx_r97.minuteStep);
} }
function EditResponseComponent_div_15_div_16_div_1_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
const _r111 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 71, 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_16_div_1_div_2_div_1_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r111); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit; return (item_r4.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r4.answer["date"]);
} }
function EditResponseComponent_div_15_div_16_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_16_div_1_div_2_div_1_Template, 6, 1, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r96 === 1);
} }
function EditResponseComponent_div_15_div_16_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
const _r116 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ngb-timepicker", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_16_div_1_div_3_Template_ngb_timepicker_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r116); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r4.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r4.answer["time"])("meridian", true)("hourStep", ctx_r99.hourStep)("minuteStep", ctx_r99.minuteStep);
} }
function EditResponseComponent_div_15_div_16_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_16_div_1_div_1_Template, 11, 5, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, EditResponseComponent_div_15_div_16_div_1_div_2_Template, 2, 1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, EditResponseComponent_div_15_div_16_div_1_div_3_Template, 5, 4, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r96 = ctx.$implicit;
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r4.dateTime == null ? null : item_r4.dateTime.length) === 2 && option_r96 === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r4.dateTime == null ? null : item_r4.dateTime.length) === 1 && option_r96 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r96 === 2 && (item_r4.dateTime == null ? null : item_r4.dateTime.length) === 1);
} }
function EditResponseComponent_div_15_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_16_div_1_Template, 4, 3, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4.dateTime);
} }
function EditResponseComponent_div_15_div_17_ng_option_3_img_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 82);
} if (rf & 2) {
const choice_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", choice_r121.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function EditResponseComponent_div_15_div_17_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, EditResponseComponent_div_15_div_17_ng_option_3_img_1_Template, 1, 1, "img", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r121 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", choice_r121.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", choice_r121.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" \u00A0", choice_r121.value, " ");
} }
function EditResponseComponent_div_15_div_17_Template(rf, ctx) { if (rf & 1) {
const _r126 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ng-select", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_17_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r126); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r4.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, EditResponseComponent_div_15_div_17_ng_option_3_Template, 3, 3, "ng-option", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", false)("ngModel", item_r4.answer)("disabled", item_r4.isDisabled);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4.options);
} }
function EditResponseComponent_div_15_div_18_span_7_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, ", ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function EditResponseComponent_div_15_div_18_span_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, EditResponseComponent_div_15_div_18_span_7_span_2_Template, 2, 0, "span", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const fileType_r129 = ctx.$implicit;
const index_r130 = ctx.index;
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", fileType_r129.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r4.options == null ? null : item_r4.options.length) != index_r130 + 1);
} }
function EditResponseComponent_div_15_div_18_Template(rf, ctx) { if (rf & 1) {
const _r134 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function EditResponseComponent_div_15_div_18_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r134); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r133 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r133.fileUpload($event, item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "a", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, EditResponseComponent_div_15_div_18_span_7_Template, 3, 2, "span", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("download", (item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.fileName) ? item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.fileName : item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("href", ctx_r17.safeUrl(item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.url), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", (item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.fileName) ? item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.fileName : item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4 == null ? null : item_r4.options);
} }
function EditResponseComponent_div_15_div_19_Template(rf, ctx) { if (rf & 1) {
const _r139 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ngb-rating", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("rateChange", function EditResponseComponent_div_15_div_19_Template_ngb_rating_rateChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r139); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r4.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("max", item_r4.value)("rate", item_r4.answer);
} }
function EditResponseComponent_div_15_div_20_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r143 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", choice_r143._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", choice_r143.name, " ");
} }
function EditResponseComponent_div_15_div_20_div_8_Template(rf, ctx) { if (rf & 1) {
const _r148 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "img", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_div_15_div_20_div_8_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r148); const index_r145 = ctx.index; const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r146 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r146.deleteDropDownValue(item_r4 == null ? null : item_r4.answer, index_r145); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const obj_r144 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", obj_r144 == null ? null : obj_r144.name, " ");
} }
function EditResponseComponent_div_15_div_20_Template(rf, ctx) { if (rf & 1) {
const _r150 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function EditResponseComponent_div_15_div_20_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r150); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r149 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r149.multiSelect($event, item_r4); })("ngModelChange", function EditResponseComponent_div_15_div_20_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r150); const ctx_r152 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r152.user = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, EditResponseComponent_div_15_div_20_ng_option_4_Template, 2, 2, "ng-option", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, EditResponseComponent_div_15_div_20_div_8_Template, 4, 1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", true)("searchable", true)("ngModel", ctx_r19.user)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r19.typeFourteenQuestion);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4 == null ? null : item_r4.answer);
} }
function EditResponseComponent_div_15_div_21_div_2_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", imagObj_r155.src, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function EditResponseComponent_div_15_div_21_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, EditResponseComponent_div_15_div_21_div_2_div_2_Template, 2, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r155 = ctx.$implicit;
const ctx_r154 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("cdkDragDisabled", ctx_r154.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", imagObj_r155.src);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](imagObj_r155.value);
} }
function EditResponseComponent_div_15_div_21_Template(rf, ctx) { if (rf & 1) {
const _r159 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("cdkDropListDropped", function EditResponseComponent_div_15_div_21_Template_div_cdkDropListDropped_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r159); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r158 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r158.drop($event, item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, EditResponseComponent_div_15_div_21_div_2_Template, 7, 3, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4.images);
} }
function EditResponseComponent_div_15_div_22_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const value_r165 = ctx.$implicit;
const j_r166 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("left", value_r165 == null ? null : value_r165.coordinates == null ? null : value_r165.coordinates.x, "%")("top", value_r165 == null ? null : value_r165.coordinates == null ? null : value_r165.coordinates.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](j_r166 + 1);
} }
function EditResponseComponent_div_15_div_22_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r4 == null ? null : item_r4.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
const _c2 = function (a0) { return { "position": a0 }; };
function EditResponseComponent_div_15_div_22_Template(rf, ctx) { if (rf & 1) {
const _r170 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_div_15_div_22_Template_div_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r170); const ctx_r169 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const item_r4 = ctx_r169.$implicit; const i_r5 = ctx_r169.index; const ctx_r168 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r168.openPopup(item_r4.imageSrc, i_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "img", 106, 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_div_15_div_22_Template_img_click_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r170); const i_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r171 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r171.onImageClick($event, i_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, EditResponseComponent_div_15_div_22_div_6_Template, 3, 5, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " - ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, EditResponseComponent_div_15_div_22_div_9_Template, 5, 3, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](4, _c2, ctx_r21.isPopupOpen ? "sticky" : "relative"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", item_r4.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4 == null ? null : item_r4.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r21.isFormSubmitted && (item_r4 == null ? null : item_r4.explanation));
} }
function EditResponseComponent_div_15_div_23_tr_13_td_5_Template(rf, ctx) { if (rf & 1) {
const _r180 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "img", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_div_15_div_23_tr_13_td_5_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r180); const index_r176 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r178 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r178.conditionQuestionDelete(index_r176); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function EditResponseComponent_div_15_div_23_tr_13_Template(rf, ctx) { if (rf & 1) {
const _r182 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_23_tr_13_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r182); const field_r175 = ctx.$implicit; return field_r175.value = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, EditResponseComponent_div_15_div_23_tr_13_td_5_Template, 2, 0, "td", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r175 = ctx.$implicit;
const index_r176 = ctx.index;
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r174 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](index_r176 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", field_r175.value)("disabled", ctx_r174.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.length) >= 1);
} }
function EditResponseComponent_div_15_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "strong", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Spot descriptions");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "table", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "SNO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "DESCRIPTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, EditResponseComponent_div_15_div_23_tr_13_Template, 6, 4, "tr", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r4.answer);
} }
function EditResponseComponent_div_15_div_24_Template(rf, ctx) { if (rf & 1) {
const _r187 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_24_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r187); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r4.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r4.answer)("disabled", ctx_r23.isFormSubmitted);
} }
function EditResponseComponent_div_15_div_25_Template(rf, ctx) { if (rf & 1) {
const _r191 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "app-date-time-picker", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function EditResponseComponent_div_15_div_25_Template_app_date_time_picker_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r191); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r4.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("maxDate", ctx_r24.maxDate)("minDate", ctx_r24.minDate)("minuteStep", 1)("ngModel", item_r4.answer);
} }
function EditResponseComponent_div_15_button_26_Template(rf, ctx) { if (rf & 1) {
const _r195 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_div_15_button_26_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r195); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r193 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r193.generateAutoPopulateData(item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " AutoPopulate Data ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function EditResponseComponent_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "strong", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, EditResponseComponent_div_15_span_4_Template, 2, 0, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, EditResponseComponent_div_15_div_8_Template, 3, 2, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, EditResponseComponent_div_15_div_9_Template, 3, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, EditResponseComponent_div_15_div_10_Template, 3, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, EditResponseComponent_div_15_div_11_Template, 4, 1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, EditResponseComponent_div_15_div_12_Template, 4, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, EditResponseComponent_div_15_div_13_Template, 5, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, EditResponseComponent_div_15_div_14_Template, 5, 2, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, EditResponseComponent_div_15_div_15_Template, 5, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, EditResponseComponent_div_15_div_16_Template, 3, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, EditResponseComponent_div_15_div_17_Template, 5, 6, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, EditResponseComponent_div_15_div_18_Template, 9, 4, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, EditResponseComponent_div_15_div_19_Template, 4, 2, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, EditResponseComponent_div_15_div_20_Template, 10, 6, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, EditResponseComponent_div_15_div_21_Template, 4, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, EditResponseComponent_div_15_div_22_Template, 10, 6, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, EditResponseComponent_div_15_div_23_Template, 14, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, EditResponseComponent_div_15_div_24_Template, 2, 2, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, EditResponseComponent_div_15_div_25_Template, 2, 4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, EditResponseComponent_div_15_button_26_Template, 2, 0, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
const i_r5 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", i_r5 + 1, " \u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 22, item_r4 == null ? null : item_r4.question), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 16 && (item_r4 == null ? null : item_r4.answer == null ? null : item_r4.answer.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.type === 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.isUsedForAutoPopulate && item_r4.answer != item_r4.originalAnswer);
} }
function EditResponseComponent_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
class EditResponseComponent {
constructor(fb, activeModal, customFormService, datePipe, toastService) {
this.fb = fb;
this.activeModal = activeModal;
this.customFormService = customFormService;
this.datePipe = datePipe;
this.toastService = toastService;
this.onSave = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.onClose = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.isModuleView = false;
this.viewQuestions = [];
this.maxDate = { year: new Date().getFullYear(), month: new Date().getMonth() + 1, day: new Date().getDate() };
this.isCorrectlyPopulated = 0;
}
ngOnInit() {
console.log('edit-response', this.rowData, this.tableHeaders, this.metaData);
console.log('edit-response', this.responseId);
if (this.responseId)
this.getQuestions(this.responseId);
this.editForm = this.fb.group({});
this.tableHeaders.forEach((header) => {
var _a, _b;
if (header === 'Staff Id' ||
header === 'Staff Name' ||
(this.rowData[header].questionId === ((_a = this.metaData) === null || _a === void 0 ? void 0 : _a.firstQuestionId) && ((_b = this.metaData) === null || _b === void 0 ? void 0 : _b.formSubTypeId))) {
// Disable the fields that should not be edited
this.editForm.addControl(header, this.fb.control({ value: this.rowData[header].value, disabled: true }));
}
else {
// Keep the other fields editable
this.editForm.addControl(header, this.fb.control(this.rowData[header].value));
}
});
}
getQuestions(moduleId) {
this.customFormService
.getSubmittedFormDataAdmin(moduleId)
.subscribe((data) => {
var _a;
this.isModuleView = true;
this.customFormId = data === null || data === void 0 ? void 0 : data.customFormId;
this.selectedModule = data || null;
this.sectionList = this.selectedModule.sections || [];
let allQuestions = data.sections.reduce((acc, section) => {
return acc.concat(section.questions);
}, []);
allQuestions = allQuestions.filter((v) => 7 !== v.type) || [];
this.viewQuestions =
allQuestions.filter((x) => 0 === x.conditionalQuestions.length) || [];
let typeFourteen = null;
(_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.map((item) => {
item.answer = item.value || '';
if (item.type === 10) {
item.answer = {};
item.answer['date'] = null;
item.answer['time'] = null;
}
if (item.type === 14) {
typeFourteen = item._id;
}
if (item.type === 15) {
item === null || item === void 0 ? void 0 : item.options.map((final, index) => {
item['images'][index] = {
src: final.imageSrc,
value: final.value,
option: final._id,
};
});
}
});
console.log(this.viewQuestions, 'his.viewQuestions');
// typeFourteen && this.getNominateUserType(typeFourteen);
if (this.metaData.formSubTypeId) {
this.serviceStartDateTime = new Date(this.viewQuestions[0].value);
this.minDate = { year: this.serviceStartDateTime.getFullYear(), month: this.serviceStartDateTime.getMonth() + 1, day: this.serviceStartDateTime.getDate() };
console.log(this.minDate, 'this.minDate');
}
this.storeOriginalValues();
});
}
convert24hourTo12HourFormat(time) {
const time_part_array = time.split(':');
let ampm = 'am';
if (time_part_array[0] >= 12) {
ampm = 'pm';
}
if (time_part_array[0] > 12) {
time_part_array[0] = time_part_array[0] - 12;
}
const formatted_time = time_part_array[0] + ':' + time_part_array[1] + ':' + ampm;
return formatted_time;
}
convertDateTimeIntoHHMM(originalDate) {
return moment__WEBPACK_IMPORTED_MODULE_1__(originalDate).format('DD MMM YYYY HH:mm');
}
removeHtmlTags(str) {
return str.replace(/<\/?[^>]+(>|$)/g, "");
}
onInputChangeShortText(event, isNumeric) {
if (isNumeric) {
// Allow only numeric keys, backspace, tab, arrow keys, and delete
const allowedKeys = ['Backspace', 'Tab', 'ArrowLeft', 'ArrowRight', 'Delete'];
// Check if the key pressed is a number (0-9) or allowed control keys
if (!allowedKeys.includes(event.key) && !(event.key >= '0' && event.key <= '9')) {
// Allow Ctrl+V or Cmd+V for paste operation
if (!(event.ctrlKey && event.key === 'v') && !(event.metaKey && event.key === 'v')) {
event.preventDefault();
}
}
}
}
onPaste(event, isNumeric, len) {
var _a;
if (isNumeric) {
const pastedData = ((_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text')) || '';
// Allow only numeric pasted data
if (!/^\d+$/.test(pastedData) || pastedData.length !== len) {
event.preventDefault(); // Prevent non-numeric characters
}
}
}
submit() {
const mandatoryQuestion = this.viewQuestions.filter((data) => {
if (data === null || data === void 0 ? void 0 : data.required)
return data === null || data === void 0 ? void 0 : data._id;
});
const answers = this.viewQuestions.reduce((prev, question, i) => {
var _a, _b, _c, _d, _e, _f, _g, _h;
let answer = null, _id = question._id, type = question.type, required = question === null || question === void 0 ? void 0 : question.required, sectionId = question === null || question === void 0 ? void 0 : question.sectionId, questionId = question.questionId, options = (question === null || question === void 0 ? void 0 : question.options) || null, originalAnswer = question === null || question === void 0 ? void 0 : question.originalAnswer, isNumeric = question === null || question === void 0 ? void 0 : question.isNumeric, maxlength = question === null || question === void 0 ? void 0 : question.maxlength, questionTitle = question === null || question === void 0 ? void 0 : question.question;
switch (question.type) {
case 1:
case 2:
case 3:
case 6:
case 8:
case 11:
answer = question.answer;
question.value = answer;
const option = question.options.find(item => item.value === answer);
if (option) {
question.option = option._id;
}
break;
case 14:
case 12:
case 13:
case 16:
case 15:
case 21:
answer = question.answer;
break;
case 22:
answer = question.answer && question.answer.includes('T') ? this.convertDateTimeIntoHHMM(question.answer) : question.answer;
break;
case 9:
answer = (_a = question.answer) === null || _a === void 0 ? void 0 : _a.toString();
break;
case 10:
if (-1 !== question.dateTime.indexOf(1) &&
!!question.answer &&
!!question.answer.date) {
answer = answer || {};
answer['date'] = this.datePipe.transform(new Date(question.answer.date), 'dd-MM-yyyy');
}
if (-1 !== question.dateTime.indexOf(2) &&
!!question.answer &&
!!question.answer.time) {
answer = answer || {};
if (((_b = question === null || question === void 0 ? void 0 : question.answer.time) === null || _b === void 0 ? void 0 : _b.hour) && ((_c = question === null || question === void 0 ? void 0 : question.answer.time) === null || _c === void 0 ? void 0 : _c.minute)) {
answer['time'] = this.convert24hourTo12HourFormat(((_d = question.answer.time) === null || _d === void 0 ? void 0 : _d.hour) + ':' + ((_e = question.answer.time) === null || _e === void 0 ? void 0 : _e.minute));
}
}
if (-1 !== question.dateTime.indexOf(1) &&
-1 !== question.dateTime.indexOf(2) &&
!(!!question.answer &&
!!question.answer.date &&
!!((_f = question.answer.time) === null || _f === void 0 ? void 0 : _f.hour) &&
!!((_g = question.answer.time) === null || _g === void 0 ? void 0 : _g.minute))) {
answer = false;
}
break;
case 5:
case 4:
answer = (_h = question.options) === null || _h === void 0 ? void 0 : _h.filter((v) => v.answer);
if (!answer.length) {
answer = null;
}
break;
default:
answer = false;
break;
}
return prev.concat({
_id,
answer,
type,
required,
sectionId,
questionId,
options,
originalAnswer,
questionTitle,
isNumeric,
maxlength
});
}, []);
if (answers === null || answers === void 0 ? void 0 : answers.some((v) => v.type === 9 && !!!v.answer)) {
this.toastService.error('Please enter valid numeric values');
return;
}
if (answers.some((v) => mandatoryQuestion.findIndex((el) => el._id == v._id) > -1 &&
!!!v.answer)) {
this.toastService.error('Answer all mandatory questions');
return;
}
let answerList = answers === null || answers === void 0 ? void 0 : answers.map((val) => {
var _a, _b;
return ({
sectionId: val === null || val === void 0 ? void 0 : val.sectionId,
questionId: val.questionId,
option: typeof (val === null || val === void 0 ? void 0 : val.answer) !== 'object' ? null : (_a = val === null || val === void 0 ? void 0 : val.answer) === null || _a === void 0 ? void 0 : _a._id,
value: typeof (val === null || val === void 0 ? void 0 : val.answer) !== 'object' ? val === null || val === void 0 ? void 0 : val.answer : (_b = val === null || val === void 0 ? void 0 : val.answer) === null || _b === void 0 ? void 0 : _b.value,
type: val === null || val === void 0 ? void 0 : val.type,
});
});
let attendanceLabel = null;
let isError = false;
answers === null || answers === void 0 ? void 0 : answers.forEach((item) => {
var _a;
if (item.type === 22) {
if (item.answer !== item.originalAnswer) {
attendanceLabel = item.questionTitle;
}
}
if (item.type === 8 && item.isNumeric) {
isError = !this.isNumeric(item.answer) || ((_a = item.answer) === null || _a === void 0 ? void 0 : _a.length) !== item.maxlength ? 'Please enter valid postal code' : false;
delete item.isNumeric;
delete item.maxlength;
}
});
if (isError) {
this.toastService.error(isError);
return;
}
if (this.metaData.formSubTypeId) {
answerList = answerList.filter((val) => {
return val.questionId !== this.metaData.firstQuestionId;
});
}
const mainPayload = {
answers: answerList,
attendanceLabel: attendanceLabel ? this.removeHtmlTags(attendanceLabel) : null,
isCorrectlyPopulated: this.isCorrectlyPopulated,
};
answers.length > 0
? this.customFormService
.resubmitForm(mainPayload, this.responseId)
.subscribe((data) => {
this.toastService.success('Form Re-submitted Successfully');
this.onSave.emit();
this.cancelPopup();
}, (error) => {
var _a, _b;
this.toastService.error((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
})
: '';
}
isNumeric(str) {
return /^[0-9]+$/.test(str);
}
isControlModified(controlName) {
const control = this.editForm.get(controlName);
return control && control.dirty;
}
cancelPopup() {
this.activeModal.dismiss();
}
close() {
this.activeModal.dismiss();
}
disableFirstQuestion(item) {
console.log('item', item);
return item.questionId == this.metaData.firstQuestionId;
}
storeOriginalValues() {
this.viewQuestions.forEach((item) => {
var _a;
item.originalAnswer = item.answer;
item.isDisabled =
((_a = this.metaData) === null || _a === void 0 ? void 0 : _a.formSubTypeId) && this.disableFirstQuestion(item);
});
}
generateAutoPopulateData(questionItem) {
const usedForAutoPopulate = this.viewQuestions.filter((que) => que.isUsedForAutoPopulate);
const payload = {
customFormId: this.customFormId,
answers: usedForAutoPopulate.map((que) => {
return {
"sectionId": que.sectionId,
"questionId": que.questionId,
"option": que.option,
"value": que.answer,
"type": que.type,
};
}),
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
serviceTime: this.viewQuestions[0].value,
};
this.customFormService.generateAutoPopulateData(payload).subscribe((data) => {
console.log('data', data);
if (data.success) {
const autoPopulateData = data.data.filter((val) => val);
if (autoPopulateData.length > 0) {
this.viewQuestions.forEach((item) => {
const autoPopulateItem = autoPopulateData.find((val) => val.questionId === item.questionId);
if (autoPopulateItem) {
item.answer = autoPopulateItem.value;
}
});
if (autoPopulateData.length !== data.data.length) {
this.isCorrectlyPopulated = 1;
this.toastService.error('Some of the fields are not AutoPopulated');
}
else {
this.isCorrectlyPopulated = 2;
this.toastService.success('Data is AutoPopulated successfully');
}
}
else {
this.isCorrectlyPopulated = 1;
this.toastService.error("Can't AutoPopulated Data as it is not found");
}
}
}, (error) => {
var _a, _b;
this.toastService.error((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
});
}
}
EditResponseComponent.ɵfac = function EditResponseComponent_Factory(t) { return new (t || EditResponseComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbActiveModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_4__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_5__["DatePipe"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"])); };
EditResponseComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: EditResponseComponent, selectors: [["edit-response"]], inputs: { rowData: "rowData", responseId: "responseId", tableHeaders: "tableHeaders", metaData: "metaData" }, outputs: { onSave: "onSave", onClose: "onClose" }, decls: 22, vars: 8, consts: [[1, "modal-header"], [1, "card-header", "flexi-header", "pt-4", "w-100"], ["type", "button", "aria-label", "Close", 1, "btn", "btn-large", "close-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [1, "modal-body"], [3, "formGroup"], [1, "card", "mb-4"], [1, "card-body"], [1, "row", "d-flex"], ["class", "form-group col-sm-6", 4, "ngFor", "ngForOf"], ["class", "box col-sm-6", 4, "ngFor", "ngForOf"], ["style", "text-align: center", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-danger", 3, "click"], ["type", "button", 1, "btn", "btn-success", 3, "click"], [1, "form-group", "col-sm-6"], ["type", "text", 1, "form-control", 3, "formControlName"], [1, "box", "col-sm-6"], [1, "topHead", "d-flex"], [1, "mr-1"], ["class", "required", 4, "ngIf"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["class", "card-body", 4, "ngIf"], ["class", "box-body-16", 4, "ngIf"], ["class", "row imgSrc", 4, "ngIf"], ["class", "box-body pb-4", 4, "ngIf"], ["type", "button", "class", "btn btn-primary", 3, "click", 4, "ngIf"], [1, "required"], [1, "box-body"], ["matInput", "", "rows", "2", 2, "width", "100%", 3, "ngModel", "disabled", "ngModelChange"], ["class", "box", 4, "ngFor", "ngForOf"], [1, "box"], ["type", "radio", 1, "card-header-flexi", 3, "id", "name", "value", "ngModel", "ngModelChange", "change"], ["for", "consolidated"], ["crossorigin", "anonymous", "id", "4", "alt", "Image Preview", 1, "image-size", 3, "src"], ["class", "boxx", 4, "ngFor", "ngForOf"], [1, "boxx"], [3, "for"], ["crossorigin", "anonymous", "width", "250px", "height", "320px", "alt", "Image Preview", 3, "src"], [1, "d-flex", 2, "overflow", "auto"], ["class", "question-radio-inline", 4, "ngFor", "ngForOf"], [1, "question-radio-inline"], [1, "card", 2, "border-radius", "10px", "width", "min-content", 3, "for"], ["crossorigin", "anonymous", "alt", "", "style", "\n width: 270px;\n height: 201px;\n border-radius: 10px 10px 0px 0px;\n ", 3, "src", "click", 4, "ngIf"], [1, "card-container", 2, "background-color", "#6eb96e", "display", "flex", "justify-content", "space-between", "border-radius", "0px 0px 10px 10px", "padding", "5px", 3, "ngStyle", "click"], ["crossorigin", "anonymous", "alt", "", "height", "10px", 2, "width", "12%", "min-width", "30px", "height", "1%", "margin", "3px", 3, "src"], [2, "text-align", "center", 3, "ngClass", "click"], ["class", "text-success", 4, "ngIf"], ["crossorigin", "anonymous", "alt", "", 2, "width", "270px", "height", "201px", "border-radius", "10px 10px 0px 0px", 3, "src", "click"], [1, "text-success"], [1, "form-group", "d-flex", "flex-column", "answers-options"], [4, "ngIf"], ["type", "checkbox", 3, "name", "id", "checked", "change"], ["id", "4", "alt", "Image Preview", 1, "image-size", 3, "src"], ["class", "signature-div", 4, "ngIf"], ["aria-hidden", "false", "aria-label", "Example home icon", "fontIcon", "home"], [1, "signature-div"], [1, "signature-img", 3, "src"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "box", "form-group", "flex-fill", 2, "margin", "1rem 1rem"], ["rows", "5", 1, "form-control", 3, "ngModel", "maxlength", "ngModelChange", "keydown", "paste"], [1, "box", "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["type", "number", 1, "form-control", 3, "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], ["class", "box", 4, "ngIf"], ["class", "box form-group", 4, "ngIf"], ["style", "margin-left: 10px", "class", "box", 4, "ngIf"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["for", "my-input"], ["id", "my-input", "type", "date", 1, "form-control", 3, "ngModel", "ngModelChange"], ["myDate", ""], [1, "box", 2, "margin-left", "10px"], [3, "ngModel", "meridian", "hourStep", "minuteStep", "ngModelChange"], [1, "box", "form-group"], ["class", "d-flex flex-wrap answers-options", 4, "ngIf"], [1, "box", "form-group", "ng-select-img-container"], ["placeholder", "Select Options", "bindLabel", "name", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "disabled", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["crossorigin", "anonymous", "class", "dropdown-img", 3, "src", 4, "ngIf"], ["crossorigin", "anonymous", 1, "dropdown-img", 3, "src"], ["id", "my-input", "type", "file", 1, "form-control-file", 3, "change"], [1, "btn", "btn-link", 3, "href", "download"], ["class", "mt-1", 4, "ngFor", "ngForOf"], [1, "mt-1"], [1, "d-flex"], [3, "max", "rate", "rateChange"], [1, "row"], [1, "col-md-6"], ["bindLabel", "name", "placeholder", "Select Users", 1, "custom", 3, "multiple", "searchable", "ngModel", "clearable", "change", "ngModelChange"], [1, "col-md-12"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap"], [1, "text-items", "list-ui", "pr-1"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-3", 3, "click"], ["cdkDropList", "", 3, "cdkDropListDropped"], ["cdkDrag", "", 3, "cdkDragDisabled", 4, "ngFor", "ngForOf"], ["cdkDrag", "", 3, "cdkDragDisabled"], [1, "img-thumbnail"], [1, "caption"], ["height", "150px", "width", "150px", "id", "4", "alt", "Image Preview", 3, "src"], [1, "box-body-16"], [3, "ngStyle"], ["ngbTooltip", "Expand", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-expand"], ["alt", "Image Preview", 1, "qus-image-size", 3, "src", "click"], ["myImage", ""], ["class", "circle", 3, "left", "top", 4, "ngFor", "ngForOf"], [1, "circle"], [1, "text"], [1, "row", "imgSrc"], [1, "pb-3"], [1, "table"], [1, "width-5"], [1, "srNo"], ["type", "text", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["class", "cancel-button", 4, "ngIf"], [1, "cancel-button"], ["alt", "", "src", "./assets/images/cancel.png", "height", "20px", "crossorigin", "anonymous", 1, "image", 3, "click"], [1, "box-body", "pb-4"], [3, "maxDate", "minDate", "minuteStep", "ngModel", "ngModelChange"], ["type", "button", 1, "btn", "btn-primary", 3, "click"], [2, "text-align", "center"]], template: function EditResponseComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "EDIT RECORD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_Template_button_click_5_listener() { return ctx.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "i", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "form", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, EditResponseComponent_div_12_Template, 5, 2, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](13, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, EditResponseComponent_div_15_Template, 27, 24, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, EditResponseComponent_div_16_Template, 2, 0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_Template_button_click_18_listener() { return ctx.close(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Close");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "button", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function EditResponseComponent_Template_button_click_20_listener() { return ctx.submit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " Save changes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.editForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind3"](13, 4, ctx.tableHeaders, 0, 2));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.viewQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.viewQuestions.length == 0);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__["NativeElementInjectorDirective"], _angular_material_input__WEBPACK_IMPORTED_MODULE_8__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgStyle"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgClass"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_9__["MatIcon"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NumberValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbTimepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbRating"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_11__["CdkDropList"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_11__["CdkDrag"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbTooltip"], _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_12__["DateTimePickerComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["SlicePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_13__["SafeHtmlPipe"]], styles: [".modal-content[_ngcontent-%COMP%] {\n padding: 20px;\n}\n\n.modal-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.required[_ngcontent-%COMP%] {\n color: red;\n margin-left: 4px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2VkaXQtcmVzcG9uc2UvZWRpdC1yZXNwb25zZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsYUFBQTtBQUNGOztBQUNBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0VBQ0EsbUJBQUE7QUFFRjs7QUFBQTtFQUNFLFVBQUE7RUFDQSxnQkFBQTtBQUdGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2VkaXQtcmVzcG9uc2UvZWRpdC1yZXNwb25zZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1vZGFsLWNvbnRlbnQge1xuICBwYWRkaW5nOiAyMHB4O1xufVxuLm1vZGFsLWhlYWRlciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbn1cbi5yZXF1aXJlZCB7XG4gIGNvbG9yOiByZWQ7XG4gIG1hcmdpbi1sZWZ0OiA0cHg7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EditResponseComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'edit-response',
templateUrl: './edit-response.html',
styleUrls: ['./edit-response.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbActiveModal"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_4__["CustomFormService"] }, { type: _angular_common__WEBPACK_IMPORTED_MODULE_5__["DatePipe"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }]; }, { rowData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], responseId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], tableHeaders: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], metaData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], onSave: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], onClose: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "DuZd":
/*!*******************************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-planner/ops-leave-quota/ops-leave-quota.component.ts ***!
\*******************************************************************************************************/
/*! exports provided: OpsLeaveQuotaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpsLeaveQuotaComponent", function() { return OpsLeaveQuotaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var angular_calendar__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! angular-calendar */ "kRoH");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/human-resources/leave-planner.service */ "Z/ig");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
function OpsLeaveQuotaComponent_div_46_span_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_input_13_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_input_13_Template_input_change_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](12); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r25.teamCheck($event, _r2.value, "Sun"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_span_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_input_23_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_input_23_Template_input_change_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r28); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](22); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r27.teamCheck($event, _r5.value, "Mon"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_span_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_input_33_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_input_33_Template_input_change_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](32); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r29.teamCheck($event, _r8.value, "Tue"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_span_38_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_input_43_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_input_43_Template_input_change_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r32); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](42); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r31.teamCheck($event, _r11.value, "Wed"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_span_48_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_input_53_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_input_53_Template_input_change_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r34); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](52); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r33.teamCheck($event, _r14.value, "Thu"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_span_58_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_input_63_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_input_63_Template_input_change_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](62); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r35.teamCheck($event, _r17.value, "Fri"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_span_68_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_input_73_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_input_73_Template_input_change_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](72); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r37.teamCheck($event, _r20.value, "Sat"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_1_input_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 53);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).day;
const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "team", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r50.teamLeaveQuotaSun);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_1_input_2_Template, 2, 2, "input", 52);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).day;
const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "tier", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r42.tierLeaveQuotaSun);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r42.teamLeave);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_2_input_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 53);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).day;
const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "team", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r55.teamLeaveQuotaMon);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_2_input_2_Template, 2, 2, "input", 52);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).day;
const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "tier", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r43.tierLeaveQuotaMon);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r43.teamLeave);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_3_input_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 53);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).day;
const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "team", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r60.teamLeaveQuotaTue);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_3_input_2_Template, 2, 2, "input", 52);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).day;
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "tier", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r44.tierLeaveQuotaTue);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r44.teamLeave);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_4_input_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 53);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).day;
const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "team", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r65.teamLeaveQuotaWed);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_4_input_2_Template, 2, 2, "input", 52);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).day;
const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "tier", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r45.tierLeaveQuotaWed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r45.teamLeave);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_5_input_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 53);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).day;
const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "team", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r70.teamLeaveQuotaThu);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_5_input_2_Template, 2, 2, "input", 52);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).day;
const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "tier", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r46.tierLeaveQuotaThu);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r46.teamLeave);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_6_input_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 53);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).day;
const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "team", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r75.teamLeaveQuotaFri);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_6_input_2_Template, 2, 2, "input", 52);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).day;
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "tier", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r47.tierLeaveQuotaFri);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r47.teamLeave);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_7_input_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 53);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).day;
const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "team", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r80.teamLeaveQuotaSat);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 50, 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_7_input_2_Template, 2, 2, "input", 52);
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).day;
const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "tier", day_r39.date, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r48.tierLeaveQuotaSat);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r48.teamLeave);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_1_Template, 3, 3, "ng-template", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_2_Template, 3, 3, "ng-template", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_3_Template, 3, 3, "ng-template", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_4_Template, 3, 3, "ng-template", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_5_Template, 3, 3, "ng-template", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_6_Template, 3, 3, "ng-template", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_ng_template_7_Template, 3, 3, "ng-template", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const day_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().day;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", day_r39.day == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", day_r39.day == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", day_r39.day == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", day_r39.day == 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", day_r39.day == 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", day_r39.day == 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", day_r39.day == 6);
} }
function OpsLeaveQuotaComponent_div_46_ng_template_74_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "calendarDate");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, OpsLeaveQuotaComponent_div_46_ng_template_74_div_4_Template, 8, 7, "div", 47);
} if (rf & 2) {
const day_r39 = ctx.day;
const locale_r40 = ctx.locale;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind3"](3, 2, day_r39.date, "monthViewDayNumber", locale_r40), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", day_r39.inMonth);
} }
function OpsLeaveQuotaComponent_div_46_div_76_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "calendarDate");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "mwl-calendar-month-view", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const date_r85 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](75);
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind3"](3, 4, date_r85, ctx_r24.view + "ViewTitle", ctx_r24.locale), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("viewDate", date_r85)("events", ctx_r24.events)("cellTemplate", _r22);
} }
function OpsLeaveQuotaComponent_div_46_Template(rf, ctx) { if (rf & 1) {
const _r87 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Tier");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, OpsLeaveQuotaComponent_div_46_span_8_Template, 2, 0, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_Template_input_change_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](12); const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r86.tierCheck($event, _r2.value, "Sun"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 34, 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, OpsLeaveQuotaComponent_div_46_input_13_Template, 1, 0, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Tier");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, OpsLeaveQuotaComponent_div_46_span_18_Template, 2, 0, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_Template_input_change_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](22); const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r88.tierCheck($event, _r5.value, "Mon"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "input", 34, 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, OpsLeaveQuotaComponent_div_46_input_23_Template, 1, 0, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "Tier");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](28, OpsLeaveQuotaComponent_div_46_span_28_Template, 2, 0, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_Template_input_change_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](32); const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r89.tierCheck($event, _r8.value, "Tue"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 34, 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, OpsLeaveQuotaComponent_div_46_input_33_Template, 1, 0, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "Tier");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, OpsLeaveQuotaComponent_div_46_span_38_Template, 2, 0, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_Template_input_change_40_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](42); const ctx_r90 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r90.tierCheck($event, _r11.value, "Wed"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "input", 34, 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](43, OpsLeaveQuotaComponent_div_46_input_43_Template, 1, 0, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "Tier");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](48, OpsLeaveQuotaComponent_div_46_span_48_Template, 2, 0, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_Template_input_change_50_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](52); const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r91.tierCheck($event, _r14.value, "Thu"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](51, "input", 34, 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](53, OpsLeaveQuotaComponent_div_46_input_53_Template, 1, 0, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57, "Tier");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](58, OpsLeaveQuotaComponent_div_46_span_58_Template, 2, 0, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_Template_input_change_60_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](62); const ctx_r92 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r92.tierCheck($event, _r17.value, "Fri"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](61, "input", 34, 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](63, OpsLeaveQuotaComponent_div_46_input_63_Template, 1, 0, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](67, "Tier");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](68, OpsLeaveQuotaComponent_div_46_span_68_Template, 2, 0, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_div_46_Template_input_change_70_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](72); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r93.tierCheck($event, _r20.value, "Sat"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](71, "input", 34, 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](73, OpsLeaveQuotaComponent_div_46_input_73_Template, 1, 0, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](74, OpsLeaveQuotaComponent_div_46_ng_template_74_Template, 5, 6, "ng-template", null, 43, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](76, OpsLeaveQuotaComponent_div_46_div_76_Template, 5, 8, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.teamLeave);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.selectMonthArr);
} }
class OpsLeaveQuotaComponent {
constructor(leaveService, usersService, fb) {
this.leaveService = leaveService;
this.usersService = usersService;
this.fb = fb;
this.yearArr = [
moment__WEBPACK_IMPORTED_MODULE_3__().subtract(1, 'year').format('YYYY'),
moment__WEBPACK_IMPORTED_MODULE_3__().format('YYYY'),
moment__WEBPACK_IMPORTED_MODULE_3__().add(1, 'year').format('YYYY'),
];
this.monthArr = moment__WEBPACK_IMPORTED_MODULE_3__["monthsShort"]();
this.teamLeave = true;
this.teamLeaveQuotaSun = 0;
this.tierLeaveQuotaSun = 0;
this.teamLeaveQuotaMon = 0;
this.tierLeaveQuotaMon = 0;
this.teamLeaveQuotaTue = 0;
this.tierLeaveQuotaTue = 0;
this.teamLeaveQuotaWed = 0;
this.tierLeaveQuotaWed = 0;
this.teamLeaveQuotaThu = 0;
this.tierLeaveQuotaThu = 0;
this.teamLeaveQuotaFri = 0;
this.tierLeaveQuotaFri = 0;
this.teamLeaveQuotaSat = 0;
this.tierLeaveQuotaSat = 0;
this.view = angular_calendar__WEBPACK_IMPORTED_MODULE_2__["CalendarView"].Month;
this.locale = 'en';
this.events = [];
}
ngOnInit() {
this.getOpsLeave();
this.opsLeaveQuota = this.fb.group({
opsGrpSelect: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
opsTeamSelect: null,
year: this.yearArr[1],
fromMonth: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
toMonth: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
});
this.usersService.getUserProfile().subscribe((res) => {
this.loggedInUser = res.data;
});
}
getOpsLeave() {
this.leaveService.getOpsGrp().subscribe((res) => {
this.opsList = res.data;
});
}
getOpsTeam() {
this.opsTeam = this.opsLeaveQuota.controls.opsGrpSelect.value.opsTeamId;
}
viewQuota() {
this.viewLeaveQuota = true;
this.getMonths();
if (this.opsLeaveQuota.controls.opsTeamSelect.value == null) {
this.teamLeave = false;
this.getQuotaPayload = {
opsGroupId: this.opsLeaveQuota.controls.opsGrpSelect.value._id,
year: this.opsLeaveQuota.controls.year.value,
};
}
else {
this.getQuotaPayload = {
opsGroupId: this.opsLeaveQuota.controls.opsGrpSelect.value._id,
year: this.opsLeaveQuota.controls.year.value,
opsTeamId: this.opsLeaveQuota.controls.opsTeamSelect.value._id,
};
}
this.leaveService
.getQuotaByGrp(this.getQuotaPayload)
.subscribe((res) => {
this.viewDayQuota = res.data.perDayQuota;
const selectedYear = this.opsLeaveQuota.controls.year.value;
this.viewDayQuota.quota[selectedYear].forEach((val) => {
if ((document.getElementById('tier' + moment__WEBPACK_IMPORTED_MODULE_3__(val.date, 'DD-MM-YYYY').toDate().toString())) != null) {
(document.getElementById('tier' + moment__WEBPACK_IMPORTED_MODULE_3__(val.date, 'DD-MM-YYYY').toDate().toString())).value = val.value;
}
});
if (this.opsTeam != null) {
this.viewDayQuota.opsTeams.quota[selectedYear].forEach((val) => {
if ((document.getElementById('team' + moment__WEBPACK_IMPORTED_MODULE_3__(val.date, 'DD-MM-YYYY').toDate().toString())) != null) {
(document.getElementById('team' + moment__WEBPACK_IMPORTED_MODULE_3__(val.date, 'DD-MM-YYYY').toDate().toString())).value = val.value;
}
});
}
});
}
getMonths() {
const sm = moment__WEBPACK_IMPORTED_MODULE_3__().set({
year: this.opsLeaveQuota.controls.year.value,
month: this.opsLeaveQuota.controls.fromMonth.value,
});
const em = moment__WEBPACK_IMPORTED_MODULE_3__().set({
year: this.opsLeaveQuota.controls.year.value,
month: this.opsLeaveQuota.controls.toMonth.value,
});
this.selectMonthArr = [];
for (var i = sm.get('month'); i <= em.get('month'); i++) {
this.selectMonthArr.push(moment__WEBPACK_IMPORTED_MODULE_3__()
.set({
year: this.opsLeaveQuota.controls.year.value,
month: i,
})
.toDate());
}
}
saveLeaveQuota() {
const selectedYear = this.opsLeaveQuota.controls.year.value;
let startDate = moment__WEBPACK_IMPORTED_MODULE_3__().year(selectedYear).startOf('year');
let endDate = moment__WEBPACK_IMPORTED_MODULE_3__().year(selectedYear).endOf('year');
let months = {};
months[selectedYear] = [];
let month = startDate;
while (month <= endDate) {
for (var i = 0; i < 7; i++) {
if (month.day() == i) {
if ((document.getElementById('tier' + month.toDate().toString())) == null) {
this.tierInputValue = '0';
}
else {
this.tierInputValue = (document.getElementById('tier' + month.toDate().toString())).value;
}
console.log('inputBox', month.toDate().toString(), '-----', (document.getElementById('tier' + month.toDate().toString())));
months[selectedYear].push({
date: month.format('DD-MM-YYYY'),
value: this.tierInputValue,
});
}
}
month = month.clone().add(1, 'day');
}
this.saveLeavePayload = {
opsGroup: {
id: this.opsLeaveQuota.controls.opsGrpSelect.value._id,
name: this.opsLeaveQuota.controls.opsGrpSelect.value.opsGroupName,
quota: [],
},
};
this.saveLeavePayload.opsGroup.quota = [months];
if (this.teamLeave) {
let months = {};
months[selectedYear] = [];
let month = startDate;
while (month <= endDate) {
for (var i = 0; i < 7; i++) {
if (month.day() == i) {
if ((document.getElementById('team' + month.toDate().toString())) == null) {
this.teamInputValue = '0';
}
else {
this.teamInputValue = (document.getElementById('team' + month.toDate().toString())).value;
}
months[selectedYear].push({
date: month.format('DD-MM-YYYY'),
value: this.teamInputValue,
});
}
}
month = month.clone().add(1, 'day');
}
this.saveLeavePayload.opsTeam = {
id: this.opsLeaveQuota.controls.opsTeamSelect.value._id,
name: this.opsLeaveQuota.controls.opsTeamSelect.value.name,
quota: [months],
};
}
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: 'Are you sure?',
text: 'You want to update the leave quota?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
}).then((result) => {
if (result.isConfirmed) {
this.leaveService
.getSwapOpsGroup(this.loggedInUser._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
this.leaveService
.addOpsquota(this.saveLeavePayload)
.subscribe((res) => {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire('Updated!', 'Leave Quota has been updated Successfully.', 'success');
});
}))
.subscribe((data) => {
console.log('swapData', data);
});
}
});
}
tierCheck(e, value, day) {
if (e.target.checked) {
switch (day) {
case 'Sun':
this.tierLeaveQuotaSun = value;
break;
case 'Mon':
this.tierLeaveQuotaMon = value;
break;
case 'Tue':
this.tierLeaveQuotaTue = value;
break;
case 'Wed':
this.tierLeaveQuotaWed = value;
break;
case 'Thu':
this.tierLeaveQuotaThu = value;
break;
case 'Fri':
this.tierLeaveQuotaFri = value;
break;
case 'Sat':
this.tierLeaveQuotaSat = value;
break;
}
}
}
teamCheck(e, value, day) {
if (e.target.checked) {
switch (day) {
case 'Sun':
this.teamLeaveQuotaSun = value;
break;
case 'Mon':
this.teamLeaveQuotaMon = value;
break;
case 'Tue':
this.teamLeaveQuotaTue = value;
break;
case 'Wed':
this.teamLeaveQuotaWed = value;
break;
case 'Thu':
this.teamLeaveQuotaThu = value;
break;
case 'Fri':
this.teamLeaveQuotaFri = value;
break;
case 'Sat':
this.teamLeaveQuotaSat = value;
break;
}
}
}
}
OpsLeaveQuotaComponent.ɵfac = function OpsLeaveQuotaComponent_Factory(t) { return new (t || OpsLeaveQuotaComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_6__["LeavePlannerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"])); };
OpsLeaveQuotaComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: OpsLeaveQuotaComponent, selectors: [["ops-leave-quota"]], decls: 47, vars: 30, consts: [[1, "row"], [1, "col-md-12"], [1, "card"], [1, "card-body"], [3, "formGroup"], [1, "form-row"], [1, "form-group", "col-md-6"], ["bindLabel", "opsGroupName", "placeholder", "Select Ops Group", "appendTo", "body", "formControlName", "opsGrpSelect", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "change"], [1, "form-group", "col-md-4"], ["for", "inputPassword4"], ["bindLabel", "name", "placeholder", "Select Ops Team", "appendTo", "body", "formControlName", "opsTeamSelect", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "form-group"], [1, "col-form-label", "col-sm-2", "pt-0"], [1, "col-sm-4"], [1, "form-check", "form-check-inline"], ["type", "radio", "formControlName", "year", 1, "form-check-input", 3, "value"], ["for", "gridRadios1", 1, "form-check-label"], ["for", "gridRadios2", 1, "form-check-label"], [1, "form-group", "col-md-2"], ["for", "inputEmail4"], ["placeholder", "Select Month", "appendTo", "body", "formControlName", "fromMonth", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["placeholder", "Select Month", "appendTo", "body", "formControlName", "toMonth", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "form-group", "row"], [1, "col-sm-10"], ["type", "button", 1, "btn", "btn-info", 3, "disabled", "click"], ["type", "button", 1, "btn", "btn-success", "ml-2", 3, "disabled", "click"], ["class", "col-md-12 mt-3", 4, "ngIf"], [1, "col-md-12", "mt-3"], [1, "d-flex"], [1, "border", "d-flex", "flex-column"], [1, "d-flex", "justify-content-between", "p-1", "bg-theme"], [4, "ngIf"], [1, "align-items-center", "bg-theme", "d-flex", "justify-content-between", "p-1"], ["type", "checkbox", 3, "change"], ["type", "text", 1, "form-control", "w-25", "text-center"], ["leaveQuotaInputSun", ""], ["type", "checkbox", 3, "change", 4, "ngIf"], ["leaveQuotaInputMon", ""], ["leaveQuotaInputTue", ""], ["leaveQuotaInputWed", ""], ["leaveQuotaInputThu", ""], ["leaveQuotaInputFri", ""], ["leaveQuotaInputSat", ""], ["customCellTemplate", ""], [4, "ngFor", "ngForOf"], [1, "cal-cell-top", "text-center"], [1, "cal-day-number", "font-weight-bold", "mb-0"], ["class", "d-flex justify-content-between w-100 p-1", 4, "ngIf"], [1, "d-flex", "justify-content-between", "w-100", "p-1"], [3, "ngIf"], ["type", "text", 1, "form-control", "w-25", "text-center", 3, "id", "value"], ["tierInput", ""], ["class", "form-control w-25 text-center", "type", "text", 3, "id", "value", 4, "ngIf"], ["teamInput", ""], [1, "bg-theme", "mt-4", "p-2", "text-center"], [3, "viewDate", "events", "cellTemplate"]], template: function OpsLeaveQuotaComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Select Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "ng-select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsLeaveQuotaComponent_Template_ng_select_change_9_listener() { return ctx.getOpsTeam(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Select Ops Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "ng-select", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "fieldset", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "legend", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Select Year");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "From Month");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "ng-select", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "To Month");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](39, "ng-select", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsLeaveQuotaComponent_Template_button_click_42_listener() { return ctx.viewQuota(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsLeaveQuotaComponent_Template_button_click_44_listener() { return ctx.saveLeaveQuota(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, " Save Leave Quota ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](46, OpsLeaveQuotaComponent_div_46_Template, 77, 15, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.opsLeaveQuota);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.opsList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.opsTeam)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.yearArr[0]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.yearArr[0], " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.yearArr[1]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.yearArr[1], " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.yearArr[2]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.yearArr[2], " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.monthArr)("multiple", false)("searchable", false)("clearable", false)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.monthArr)("multiple", false)("searchable", false)("clearable", false)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx.opsLeaveQuota.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx.opsLeaveQuota.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.viewLeaveQuota);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], angular_calendar__WEBPACK_IMPORTED_MODULE_2__["CalendarMonthViewComponent"]], pipes: [angular_calendar__WEBPACK_IMPORTED_MODULE_2__["ɵi"]], styles: [".bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.custom-datepicker[_ngcontent-%COMP%] .ngb-dp-header[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.custom-datepicker[_ngcontent-%COMP%] .ngb-dp-content[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: auto auto;\n grid-column-gap: 1rem;\n grid-row-gap: 0.5rem;\n}\n\n .cal-month-view .cal-cell-top {\n min-height: 48px;\n}\n\n .cal-month-view .cal-day-cell {\n min-height: 70px;\n}\n\n .cal-month-view .cal-day-number {\n float: unset;\n}\n\nbutton[_ngcontent-%COMP%]:disabled {\n cursor: not-allowed;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtcGxhbm5lci9vcHMtbGVhdmUtcXVvdGEvb3BzLWxlYXZlLXF1b3RhLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBRUE7RUFDRSxVQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxhQUFBO0VBQ0EsZ0NBQUE7RUFDQSxxQkFBQTtFQUNBLG9CQUFBO0FBRUY7O0FBQ0E7RUFDRSxnQkFBQTtBQUVGOztBQUNBO0VBQ0UsZ0JBQUE7QUFFRjs7QUFDQTtFQUNFLFlBQUE7QUFFRjs7QUFFRTtFQUNFLG1CQUFBO0FBQ0oiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9odW1hbi1yZXNvdXJjZS9sZWF2ZS1wbGFubmVyL29wcy1sZWF2ZS1xdW90YS9vcHMtbGVhdmUtcXVvdGEuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYmctdGhlbWUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbn1cblxuLmN1c3RvbS1kYXRlcGlja2VyIC5uZ2ItZHAtaGVhZGVyIHtcbiAgcGFkZGluZzogMDtcbn1cbi5jdXN0b20tZGF0ZXBpY2tlciAubmdiLWRwLWNvbnRlbnQge1xuICBkaXNwbGF5OiBncmlkO1xuICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IGF1dG8gYXV0bztcbiAgZ3JpZC1jb2x1bW4tZ2FwOiAxcmVtO1xuICBncmlkLXJvdy1nYXA6IDAuNXJlbTtcbn1cblxuOjpuZy1kZWVwIC5jYWwtbW9udGgtdmlldyAuY2FsLWNlbGwtdG9wIHtcbiAgbWluLWhlaWdodDogNDhweDtcbn1cblxuOjpuZy1kZWVwIC5jYWwtbW9udGgtdmlldyAuY2FsLWRheS1jZWxsIHtcbiAgbWluLWhlaWdodDogNzBweDtcbn1cblxuOjpuZy1kZWVwIC5jYWwtbW9udGgtdmlldyAuY2FsLWRheS1udW1iZXIge1xuICBmbG9hdDogdW5zZXQ7XG59XG5cbmJ1dHRvbiB7XG4gICY6ZGlzYWJsZWQge1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gIH1cbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](OpsLeaveQuotaComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'ops-leave-quota',
templateUrl: './ops-leave-quota.component.html',
styleUrls: ['./ops-leave-quota.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_6__["LeavePlannerService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }]; }, null); })();
/***/ }),
/***/ "EFB0":
/*!*****************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/timesheet/attendance/attendance.component.ts ***!
\*****************************************************************************************************/
/*! exports provided: AttendanceComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AttendanceComponent", function() { return AttendanceComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var ngx_webcam__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-webcam */ "QKVY");
/* harmony import */ var face_api_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! face-api.js */ "qzk7");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @zxing/ngx-scanner */ "IyRd");
const _c0 = ["snapImg"];
const _c1 = ["originalImg"];
function AttendanceComponent_img_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 29, 30);
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r0.userImage, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AttendanceComponent_div_48_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div");
} }
function AttendanceComponent_ng_template_49_webcam_0_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "webcam", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("imageCapture", function AttendanceComponent_ng_template_49_webcam_0_Template_webcam_imageCapture_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.handleImage($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("height", 400)("width", 800)("trigger", ctx_r8.triggerObservable)("switchCamera", ctx_r8.nextWebcamObservable);
} }
const _c2 = function () { return ["QR_CODE", "EAN_13"]; };
function AttendanceComponent_ng_template_49_zxing_scanner_1_Template(rf, ctx) { if (rf & 1) {
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "zxing-scanner", 34, 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("camerasFound", function AttendanceComponent_ng_template_49_zxing_scanner_1_Template_zxing_scanner_camerasFound_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r14.cameraFound($event); })("camerasNotFound", function AttendanceComponent_ng_template_49_zxing_scanner_1_Template_zxing_scanner_camerasNotFound_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r16.camerasNotFound($event); })("scanSuccess", function AttendanceComponent_ng_template_49_zxing_scanner_1_Template_zxing_scanner_scanSuccess_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r17.scanSuccessHandler($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formats", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c2));
} }
function AttendanceComponent_ng_template_49_img_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 29, 36);
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r10.webcamImage.imageAsDataUrl, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AttendanceComponent_ng_template_49_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, AttendanceComponent_ng_template_49_webcam_0_Template, 1, 4, "webcam", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AttendanceComponent_ng_template_49_zxing_scanner_1_Template, 2, 2, "zxing-scanner", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AttendanceComponent_ng_template_49_img_2_Template, 2, 1, "img", 14);
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.clockInCam == "facial");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.clockInCam == "QR");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.webcamImage);
} }
function AttendanceComponent_ng_template_51_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0, " Camera device not available ");
} }
function AttendanceComponent_ng_container_55_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AttendanceComponent_ng_container_55_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.triggerSnapshot(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Capture Photo ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AttendanceComponent_ng_container_55_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.verifyPhoto(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r6.loadingText, " ");
} }
// import { FaceMatch, detectAllFaces } from 'face-api.js';
class AttendanceComponent {
constructor(timesheetService, userService, toastrService) {
this.timesheetService = timesheetService;
this.userService = userService;
this.toastrService = toastrService;
this.onButtonClick = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.ChangeTabId = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.getPicture = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.showWebcam = true;
this.isCameraExist = false;
this.errors = [];
this.trigger = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.nextWebcam = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.loadingText = 'Verify Photo';
}
ngOnInit() {
var _a;
this.showCameraAttendDiv = false;
this.startCamera = false;
this.cameraDivShow = true;
this.qrscannerStarted = false;
// this.getCompanyData();
ngx_webcam__WEBPACK_IMPORTED_MODULE_3__["WebcamUtil"].getAvailableVideoInputs().then((mediaDevices) => {
this.isCameraExist = mediaDevices && mediaDevices.length > 0;
});
/* this.userService.getUserProfile().subscribe((res) => {
this.userData = res['data'];
},
(err)=>{
console.log(err);
});*/
if ((_a = this.dataAttendance) === null || _a === void 0 ? void 0 : _a.isFacial) {
this.clockInCam = 'facial';
this.facialActionBtn = true;
}
else {
this.clockInCam = 'QR';
this.facialActionBtn = false;
}
this.getUserImage();
this.loadFaceModels();
}
loadFaceModels() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const MODEL_URL = '/assets/models';
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_4__["loadSsdMobilenetv1Model"])(MODEL_URL);
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_4__["loadTinyFaceDetectorModel"])(MODEL_URL);
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_4__["loadFaceLandmarkModel"])(MODEL_URL);
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_4__["loadFaceRecognitionModel"])(MODEL_URL);
});
}
verifyPhoto() {
var _a;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.loadingText = 'Please wait';
// this.checkCapturedImage();
const fullFaceDescription = yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_4__["detectSingleFace"])((_a = this.snapImg) === null || _a === void 0 ? void 0 : _a.nativeElement, new face_api_js__WEBPACK_IMPORTED_MODULE_4__["TinyFaceDetectorOptions"]())
.withFaceLandmarks()
.withFaceDescriptor();
if (fullFaceDescription) {
const faceMatcher = new face_api_js__WEBPACK_IMPORTED_MODULE_4__["FaceMatcher"](fullFaceDescription.descriptor, 0.6);
const results = (this.originalImgDescriptor && faceMatcher) ? faceMatcher.matchDescriptor(this.originalImgDescriptor) : null;
if ((results === null || results === void 0 ? void 0 : results.distance) < 0.6) {
const dataObj = {
userId: this.dataAttendance.userInfo._id,
shiftId: this.dataAttendance.shiftDetails.shiftId,
shiftDetailId: this.dataAttendance.shiftDetails._id,
attendanceMode: 'Facial',
attandanceTakenBy: localStorage.getItem('loggedInUserId'),
businessUnitId: this.dataAttendance.businessUnitId,
};
if (this.dataAttendance.hasOwnProperty('attendance')) {
dataObj['status'] = 2;
}
else {
dataObj['status'] = 1;
}
this.timesheetService.getAttendance(dataObj).subscribe((res) => {
this.toastrService.success('Attendance done', 'Success', {
timeOut: 3000,
});
this.redirectToOverview();
});
}
else {
this.toastrService.error('Face did not match Please try again', 'Failed', {
timeOut: 3000,
});
this.clockInCam = 'facial';
this.webcamImage = null;
}
}
else {
this.toastrService.error('No face Detected Please try again', 'Failed', {
timeOut: 3000,
});
this.clockInCam = 'facial';
this.webcamImage = null;
}
this.loadingText = 'Verify Photo';
});
}
checkCapturedImage() {
if (this.snapImg.nativeElement) {
}
else {
return;
}
}
getUserImage() {
var _a, _b;
this.userService
.getUserImage((_b = (_a = this.dataAttendance) === null || _a === void 0 ? void 0 : _a.userInfo) === null || _b === void 0 ? void 0 : _b._id)
.subscribe((res) => {
var _a, _b;
this.userImage = (_a = res === null || res === void 0 ? void 0 : res.userData) === null || _a === void 0 ? void 0 : _a.facialInfo;
this.originalImgDescriptor = (_b = res === null || res === void 0 ? void 0 : res.userData) === null || _b === void 0 ? void 0 : _b.descriptor;
});
}
takeSnapshot() {
this.trigger.next();
}
scanQR() {
this.isCameraExist = true;
}
scanSuccessHandler(e) {
if (!this.qrText) {
this.qrText = e;
if (Object.keys(this.dataAttendance).includes('attendance')) {
const qrClockOutPayload = {
userId: this.dataAttendance.userInfo._id,
shiftId: this.dataAttendance.shiftDetails.shiftId,
shiftDetailId: this.dataAttendance.shiftDetails._id,
attendanceMode: 'Qr',
attandanceTakenBy: localStorage.getItem('loggedInUserId'),
businessUnitId: this.dataAttendance.businessUnitId,
status: 2,
};
this.timesheetService.attendance(qrClockOutPayload).subscribe((res) => {
sweetalert2__WEBPACK_IMPORTED_MODULE_5___default.a.fire({
title: 'QR Code Verified',
icon: 'info',
html: 'Attendance Clocked-out
',
confirmButtonText: `Ok`,
}).then((result) => {
this.ChangeTabId.emit(1);
});
});
}
else {
const attPayload = {
userId: this.dataAttendance.userInfo._id,
shiftId: this.dataAttendance.shiftDetails.shiftId,
shiftDetailId: this.dataAttendance.shiftDetails._id,
attendanceMode: 'Qr',
attandanceTakenBy: localStorage.getItem('loggedInUserId'),
businessUnitId: this.dataAttendance.businessUnitId,
status: 1,
};
this.timesheetService.attendance(attPayload).subscribe((res) => {
sweetalert2__WEBPACK_IMPORTED_MODULE_5___default.a.fire({
title: 'QR Code Verified',
icon: 'success',
html: 'Attendance Clocked-in
',
confirmButtonText: `Ok`,
}).then((result) => {
this.ChangeTabId.emit(1);
});
});
}
}
}
redirectToOverview() {
this.ChangeTabId.emit(1);
}
onOffWebCame() {
this.showWebcam = !this.showWebcam;
}
handleInitError(error) {
this.errors.push(error);
}
changeWebCame(directionOrDeviceId) {
this.nextWebcam.next(directionOrDeviceId);
}
handleImage(webcamImage) {
this.getPicture.emit(webcamImage);
this.webcamImage = webcamImage;
}
get triggerObservable() {
return this.trigger.asObservable();
}
get nextWebcamObservable() {
return this.nextWebcam.asObservable();
}
triggerSnapshot() {
this.clockInCam = null;
this.trigger.next();
}
qrScan() {
var _a, _b, _c, _d, _e;
this.clockInCam = 'QR';
if ((_a = this.dataAttendance) === null || _a === void 0 ? void 0 : _a.isFacial) {
this.timesheetService.generateQr((_c = (_b = this.dataAttendance) === null || _b === void 0 ? void 0 : _b.userInfo) === null || _c === void 0 ? void 0 : _c._id, (_e = (_d = this.dataAttendance) === null || _d === void 0 ? void 0 : _d.shiftDetails) === null || _e === void 0 ? void 0 : _e._id).subscribe((response) => {
});
}
}
camerasNotFound(e) {
// Display an alert modal here
}
cameraFound(e) {
// Log to see if the camera was found
}
onScanSuccess(result) {
}
okFunction() {
this.onButtonClick.emit(1);
}
// public getCompanyData(): void {
// let payload = {
// businessUnitId: this.businessUnitId,
// };
// this.timesheetService
// .companyuseReadWithData(payload)
// .subscribe((response) => {
// // this.companyuseList = response.data.data.data;
// });
// }
selectedUserId() {
this.selectedStaff = null;
this.companyuseList.forEach((value) => {
if (this.selectedStaffId === value.staffId) {
this.selectedStaff = value;
}
});
this.startCamera = false;
this.selectedUserFacialInfo = null;
this.getFacialShiftData();
}
getFacialShiftData() { }
takeManualAttendance() {
this.systemTime = new Date();
this.displayTime = moment__WEBPACK_IMPORTED_MODULE_6__(this.systemTime).format('HH:mm:ss');
var dataObj = {
userId: this.dataAttendance.userInfo._id,
shiftId: this.dataAttendance.shiftDetails.shiftId,
shiftDetailId: this.dataAttendance.shiftDetails._id,
attendanceMode: 'Manual',
status: 1,
attandanceTakenBy: localStorage.getItem('loggedInUserId'),
businessUnitId: this.dataAttendance.businessUnitId,
};
sweetalert2__WEBPACK_IMPORTED_MODULE_5___default.a.fire({
title: 'Manual Attendance Clocked',
icon: 'success',
html: ' System Time : ' + this.displayTime,
showCloseButton: true,
showCancelButton: false,
focusConfirm: false,
confirmButtonText: 'OK',
}).then((result) => {
if (result.isConfirmed) {
this.ChangeTabId.emit(1);
}
});
// if (this.isUpdated) {
// dataObj.attendanceId = this.selectedUserFacialInfo.attendance._id;
// dataObj.status = 2;
// } else {
// dataObj.status = 1;
// }
this.timesheetService.getAttendance(dataObj).subscribe((response) => {
// if (response.data.status == 1) {
// $("#manualModal").modal();
// this.getTimesheetData();
// this.getDashboardData();
// } else {
// message('error', response.data.message)
// }
});
}
cancelAttendance() { }
}
AttendanceComponent.ɵfac = function AttendanceComponent_Factory(t) { return new (t || AttendanceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"])); };
AttendanceComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AttendanceComponent, selectors: [["app-attendance"]], viewQuery: function AttendanceComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.snapImg = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.originalImg = _t.first);
} }, inputs: { businessUnitId: "businessUnitId", dataAttendance: "dataAttendance" }, outputs: { onButtonClick: "onButtonClick", ChangeTabId: "ChangeTabId", getPicture: "getPicture" }, decls: 62, vars: 19, consts: [[1, "card"], [1, "card-header", "d-flex", "align-items-center", "justify-content-between", "bg-theme"], [1, "m-0"], [1, "btn", "btn-sm", "btn-info"], [1, "btn", "btn-sm", "btn-outline-light", "ml-1", 3, "click"], [1, "card-body"], [1, "row"], [1, "col-md-4"], [1, "form-group"], [1, "font-weight-500"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], [1, "col-md-12"], [1, "font-weight-500", "m-0"], [1, "text-muted"], ["class", "img-fluid border rounded mb-2 shadow", "alt", "", 3, "src", 4, "ngIf"], [1, "col-md-2"], [1, "shiftTime"], [1, "ShiftStart", "rounded"], ["for", "name", 1, "font-weight-bold"], [1, "ShiftStart", "bg-success", "mt-2", "rounded"], [1, "col-md-6"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["openCamera", ""], ["noCameraExist", ""], [1, "d-flex", "justify-content-between", "align-items-center", "mt-2"], [4, "ngIf"], [1, "btn", "btn-dark", 3, "hidden", "click"], [1, "btn", "btn-warning", "ml-2", 3, "click"], [1, "btn", "btn-danger", "ml-2", 3, "click"], ["alt", "", 1, "img-fluid", "border", "rounded", "mb-2", "shadow", 3, "src"], ["originalImg", ""], [3, "height", "width", "trigger", "switchCamera", "imageCapture", 4, "ngIf"], ["class", "d-flex", 3, "formats", "camerasFound", "camerasNotFound", "scanSuccess", 4, "ngIf"], [3, "height", "width", "trigger", "switchCamera", "imageCapture"], [1, "d-flex", 3, "formats", "camerasFound", "camerasNotFound", "scanSuccess"], ["scanner", ""], ["snapImg", ""], [1, "btn", "btn-info", "mr-2", 3, "click"], [1, "btn", "btn-success", "mr-2", 3, "click"]], template: function AttendanceComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "CAPTURE ATTENDANCE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Export Timesheet");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AttendanceComponent_Template_button_click_7_listener() { return ctx.redirectToOverview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Staff ID/Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "h5", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "p", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, AttendanceComponent_img_24_Template, 2, 1, "img", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Phone no.");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](32, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, "Shift Start");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](40, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "Shift End");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](46, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](48, AttendanceComponent_div_48_Template, 1, 0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](49, AttendanceComponent_ng_template_49_Template, 3, 3, "ng-template", null, 22, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](51, AttendanceComponent_ng_template_51_Template, 1, 0, "ng-template", null, 23, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](55, AttendanceComponent_ng_container_55_Template, 5, 1, "ng-container", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AttendanceComponent_Template_button_click_56_listener() { return ctx.qrScan(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57, "QR scan");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AttendanceComponent_Template_button_click_58_listener() { return ctx.takeManualAttendance(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](59, " Manual ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AttendanceComponent_Template_button_click_60_listener() { return ctx.redirectToOverview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](61, " Cancel/Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](50);
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("value", ctx.dataAttendance == null ? null : ctx.dataAttendance.userInfo.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.dataAttendance == null ? null : ctx.dataAttendance.userInfo.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.dataAttendance == null ? null : ctx.dataAttendance.appointmentInfo == null ? null : ctx.dataAttendance.appointmentInfo.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userImage);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx.dataAttendance == null ? null : ctx.dataAttendance.userInfo.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("value", (ctx.dataAttendance == null ? null : ctx.dataAttendance.userInfo.contactNumber) ? ctx.dataAttendance == null ? null : ctx.dataAttendance.userInfo.contactNumber : "--");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](40, 13, ctx.dataAttendance == null ? null : ctx.dataAttendance.shiftDetails.startTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](46, 16, ctx.dataAttendance == null ? null : ctx.dataAttendance.shiftDetails.endTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isCameraExist)("ngIfThen", _r2)("ngIfElse", _r4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.facialActionBtn);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("hidden", !(ctx.dataAttendance == null ? null : ctx.dataAttendance.isFacial) || (ctx.dataAttendance == null ? null : ctx.dataAttendance.attendance == null ? null : ctx.dataAttendance.attendance.attendanceMode) == "Qr");
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], ngx_webcam__WEBPACK_IMPORTED_MODULE_3__["WebcamComponent"], _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_11__["ZXingScannerComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: [".photoDetails[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n width: 90%;\n}\n\n.photoCol[_ngcontent-%COMP%] {\n height: 140px;\n}\n\n.camera[_ngcontent-%COMP%] {\n height: 300px;\n margin-left: 80px;\n}\n\n.mar[_ngcontent-%COMP%] {\n margin-left: 50px;\n margin-top: 20px;\n}\n\n.button[_ngcontent-%COMP%] {\n color: white;\n background-color: blue;\n padding: 4px;\n text-align: center;\n text-decoration: none;\n display: inline-block;\n font-size: 16px;\n margin: 4px 2px;\n transition-duration: 0.4s;\n cursor: pointer;\n border-radius: 2px;\n}\n\nul.links[_ngcontent-%COMP%] {\n padding-bottom: 10px;\n}\n\ndiv.ex1[_ngcontent-%COMP%] {\n width: 500px;\n margin: auto;\n}\n\n.ShiftStart[_ngcontent-%COMP%] {\n background: #a42138;\n width: 85px;\n text-align: center;\n padding-top: 5px;\n}\n\n.ShiftStart[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n color: white;\n}\n\n.imgDiv[_ngcontent-%COMP%] {\n height: 200px;\n border: solid 2px #e6e1e1;\n}\n\n.scan[_ngcontent-%COMP%] {\n float: left;\n font-weight: bold;\n font-size: 18px;\n color: blue;\n}\n\n.name[_ngcontent-%COMP%] {\n font-size: 18px;\n height: 33px;\n width: 380px;\n border: solid 2px #e6e1e1;\n}\n\n[_nghost-%COMP%] zxing-scanner[_ngcontent-%COMP%] video {\n object-fit: contain;\n border-radius: 4px;\n}\n\n webcam video {\n border-radius: 4px;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background: #a42138;\n color: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvdGltZXNoZWV0L2F0dGVuZGFuY2UvYXR0ZW5kYW5jZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGFBQUE7RUFDQSxzQkFBQTtFQUNBLFVBQUE7QUFDRjs7QUFDQTtFQUNFLGFBQUE7QUFFRjs7QUFBQTtFQUNFLGFBQUE7RUFDQSxpQkFBQTtBQUdGOztBQUFBO0VBQ0UsaUJBQUE7RUFDQSxnQkFBQTtBQUdGOztBQURBO0VBQ0UsWUFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EscUJBQUE7RUFDQSxxQkFBQTtFQUNBLGVBQUE7RUFDQSxlQUFBO0VBQ0EseUJBQUE7RUFDQSxlQUFBO0VBQ0Esa0JBQUE7QUFJRjs7QUFEQTtFQUNFLG9CQUFBO0FBSUY7O0FBREE7RUFDRSxZQUFBO0VBQ0EsWUFBQTtBQUlGOztBQUZBO0VBQ0UsbUJBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtBQUtGOztBQUhBO0VBQ0UsWUFBQTtBQU1GOztBQUhBO0VBQ0UsYUFBQTtFQUNBLHlCQUFBO0FBTUY7O0FBSkE7RUFDRSxXQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0VBQ0EsV0FBQTtBQU9GOztBQUxBO0VBQ0UsZUFBQTtFQUNBLFlBQUE7RUFDQSxZQUFBO0VBQ0EseUJBQUE7QUFRRjs7QUFMQTtFQUNFLG1CQUFBO0VBQ0Esa0JBQUE7QUFRRjs7QUFMQTtFQUNFLGtCQUFBO0FBUUY7O0FBTEE7RUFDRSxtQkFBQTtFQUNBLFdBQUE7QUFRRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3RpbWVzaGVldC9hdHRlbmRhbmNlL2F0dGVuZGFuY2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIucGhvdG9EZXRhaWxzIHtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgd2lkdGg6IDkwJTtcbn1cbi5waG90b0NvbCB7XG4gIGhlaWdodDogMTQwcHg7XG59XG4uY2FtZXJhIHtcbiAgaGVpZ2h0OiAzMDBweDtcbiAgbWFyZ2luLWxlZnQ6IDgwcHg7XG59XG5cbi5tYXIge1xuICBtYXJnaW4tbGVmdDogNTBweDtcbiAgbWFyZ2luLXRvcDogMjBweDtcbn1cbi5idXR0b24ge1xuICBjb2xvcjogd2hpdGU7XG4gIGJhY2tncm91bmQtY29sb3I6IGJsdWU7XG4gIHBhZGRpbmc6IDRweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgZm9udC1zaXplOiAxNnB4O1xuICBtYXJnaW46IDRweCAycHg7XG4gIHRyYW5zaXRpb24tZHVyYXRpb246IDAuNHM7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgYm9yZGVyLXJhZGl1czogMnB4O1xufVxuXG51bC5saW5rcyB7XG4gIHBhZGRpbmctYm90dG9tOiAxMHB4O1xufVxuXG5kaXYuZXgxIHtcbiAgd2lkdGg6IDUwMHB4O1xuICBtYXJnaW46IGF1dG87XG59XG4uU2hpZnRTdGFydCB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIHdpZHRoOiA4NXB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHBhZGRpbmctdG9wOiA1cHg7XG59XG4uU2hpZnRTdGFydCBsYWJlbCB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuLmltZ0RpdiB7XG4gIGhlaWdodDogMjAwcHg7XG4gIGJvcmRlcjogc29saWQgMnB4IHJnYigyMzAsIDIyNSwgMjI1KTtcbn1cbi5zY2FuIHtcbiAgZmxvYXQ6IGxlZnQ7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBmb250LXNpemU6IDE4cHg7XG4gIGNvbG9yOiBibHVlO1xufVxuLm5hbWUge1xuICBmb250LXNpemU6IDE4cHg7XG4gIGhlaWdodDogMzNweDtcbiAgd2lkdGg6IDM4MHB4O1xuICBib3JkZXI6IHNvbGlkIDJweCByZ2IoMjMwLCAyMjUsIDIyNSk7XG59XG5cbjpob3N0IHp4aW5nLXNjYW5uZXI6Om5nLWRlZXAgdmlkZW8ge1xuICBvYmplY3QtZml0OiBjb250YWluO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG59XG5cbjo6bmctZGVlcCB3ZWJjYW0gdmlkZW8ge1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AttendanceComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-attendance',
templateUrl: './attendance.component.html',
styleUrls: ['./attendance.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__["ShiftSchedulerService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }]; }, { onButtonClick: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
args: ['onButtonClick']
}], ChangeTabId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], businessUnitId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
args: ['businessUnitId']
}], dataAttendance: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"],
args: ['dataAttendance']
}], getPicture: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], snapImg: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['snapImg']
}], originalImg: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['originalImg']
}] }); })();
/***/ }),
/***/ "EGs8":
/*!********************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/dynamic-table-form/dynamic-table-form.ts ***!
\********************************************************************************************************/
/*! exports provided: DynamicTableFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicTableFormComponent", function() { return DynamicTableFormComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _edit_response_edit_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../edit-response/edit-response */ "DZS5");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_common_file_download_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/common/file-download.service */ "NXdl");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var ngx_pagination__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-pagination */ "oOf3");
/* harmony import */ var _workflow_workflow_status_modal_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./workflow/workflow-status-modal.component */ "dB0Z");
const _c0 = ["updateSettings"];
const _c1 = ["updateStatusSettings"];
const _c2 = function (a0) { return { "width": a0 }; };
function DynamicTableFormComponent_div_4_th_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r13 = ctx.$implicit;
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx_r6.isColumnVisible(header_r13))("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](3, _c2, 100 / ctx_r6.tableHeaders.length + "%"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", header_r13, " ");
} }
function DynamicTableFormComponent_div_4_th_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](1, _c2, 100 / ctx_r7.tableHeaders.length + "%"));
} }
function DynamicTableFormComponent_div_4_th_7_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DynamicTableFormComponent_div_4_th_7_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const header_r14 = ctx.$implicit; const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return (ctx_r15.searchValues[header_r14] = $event); })("input", function DynamicTableFormComponent_div_4_th_7_Template_input_input_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const header_r14 = ctx.$implicit; const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r17.onSearch($event, header_r14, ctx_r17.formSubmissionListData[0]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r14 = ctx.$implicit;
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx_r8.isColumnVisible(header_r14))("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](3, _c2, 100 / ctx_r8.tableHeaders.length + "%"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r8.searchValues[header_r14]);
} }
function DynamicTableFormComponent_div_4_th_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "th", 20);
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](1, _c2, 100 / ctx_r9.tableHeaders.length + "%"));
} }
function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r22 = ctx.$implicit;
const row_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hidden", !ctx_r20.isColumnVisible(header_r22))("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](6, _c2, 100 / ctx_r20.tableHeaders.length + "%"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](header_r22 !== "Submitted At" ? row_r19[header_r22] : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 3, row_r19[header_r22], "medium"));
} }
function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_1_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const row_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r28.onEdit(row_r19); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_2_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r33); const row_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r31.onCancel(row_r19); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_3_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); const row_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r34.workFlowCall(row_r19); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "WorkFlow");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_4_Template(rf, ctx) { if (rf & 1) {
const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r39); const row_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r37.onPrintWorkFlowPdf(row_r19._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Print");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_1_Template, 2, 0, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_2_Template, 2, 0, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_3_Template, 2, 0, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_button_4_Template, 2, 0, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](5, _c2, 100 / ctx_r21.tableHeaders.length + "%"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r21.privilegeFlags.manageForm && ctx_r21.componentData && ctx_r21.componentData.viewOnly);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r21.privilegeFlags.manageForm || ctx_r21.privilegeFlags.formSupervisor) && !ctx_r21.hasWorkflow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r21.hasWorkflow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r21.hasWorkflow);
} }
function DynamicTableFormComponent_div_4_tbody_9_tr_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DynamicTableFormComponent_div_4_tbody_9_tr_1_td_1_Template, 3, 8, "td", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, DynamicTableFormComponent_div_4_tbody_9_tr_1_td_2_Template, 5, 7, "td", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r18.tableHeaders);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.privilegeFlags.manageForm || ctx_r18.privilegeFlags.formSupervisor || ctx_r18.hasWorkflow);
} }
const _c3 = function (a0, a1, a2) { return { itemsPerPage: a0, currentPage: a1, totalItems: a2 }; };
function DynamicTableFormComponent_div_4_tbody_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DynamicTableFormComponent_div_4_tbody_9_tr_1_Template, 3, 2, "tr", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "paginate");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, ctx_r10.tableData, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](4, _c3, ctx_r10.itemsPerPage, ctx_r10.currentPage, ctx_r10.total)));
} }
function DynamicTableFormComponent_div_4_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "No data available");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("colspan", ctx_r12.tableHeaders.length + 1);
} }
function DynamicTableFormComponent_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, DynamicTableFormComponent_div_4_th_4_Template, 2, 5, "th", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, DynamicTableFormComponent_div_4_th_5_Template, 2, 3, "th", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "tr", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, DynamicTableFormComponent_div_4_th_7_Template, 2, 5, "th", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, DynamicTableFormComponent_div_4_th_8_Template, 1, 3, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, DynamicTableFormComponent_div_4_tbody_9_Template, 3, 8, "tbody", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, DynamicTableFormComponent_div_4_ng_template_10_Template, 3, 1, "ng-template", null, 15, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](11);
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.tableHeaders);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.privilegeFlags.manageForm || ctx_r0.privilegeFlags.formSupervisor || ctx_r0.hasWorkflow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.tableHeaders);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.privilegeFlags.manageForm || ctx_r0.privilegeFlags.formSupervisor || ctx_r0.hasWorkflow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.tableData.length > 0)("ngIfElse", _r11);
} }
function DynamicTableFormComponent_div_5_Template(rf, ctx) { if (rf & 1) {
const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "pagination-controls", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function DynamicTableFormComponent_div_5_Template_pagination_controls_pageChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r41); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r40.pageChanged($event); })("pageBoundsCorrection", function DynamicTableFormComponent_div_5_Template_pagination_controls_pageBoundsCorrection_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r41); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r42.pageChanged($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DynamicTableFormComponent_ng_template_6_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DynamicTableFormComponent_ng_template_6_tr_20_Template_input_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48); const header_r46 = ctx.$implicit; const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return (ctx_r47.pendingColumnVisibility[header_r46] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r46 = ctx.$implicit;
const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](header_r46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r45.pendingColumnVisibility[header_r46]);
} }
function DynamicTableFormComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "COLUMN VISIBILITY SETTINGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "table", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Column Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "th", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Status ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, DynamicTableFormComponent_ng_template_6_tr_20_Template, 6, 2, "tr", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "button", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DynamicTableFormComponent_ng_template_6_Template_button_click_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r50); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r49.onCloseColumnForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "button", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DynamicTableFormComponent_ng_template_6_Template_button_click_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r50); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r51.onSubmitColumnForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.tableHeaders);
} }
function DynamicTableFormComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-workflow-status-modal", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("closeModal", function DynamicTableFormComponent_ng_template_8_Template_app_workflow_status_modal_closeModal_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r55); const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r54.handleCloseModal($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("editFormData", ctx_r5.componentData)("selectedWorkFlowData", ctx_r5.selectedWorkFlowData);
} }
class DynamicTableFormComponent {
constructor(modelService, customFromService, toastService, fileDownloadService) {
this.modelService = modelService;
this.customFromService = customFromService;
this.toastService = toastService;
this.fileDownloadService = fileDownloadService;
this.formSubmissionListData = [];
this.columns = [];
this.customFormId = null;
this.componentData = null;
this.hasWorkflow = null;
this.total = 0;
this.loader = false;
this.tableHeaders = [];
this.tableData = [];
this.columnVisibility = {};
this.columnVisibility_Key = null;
this.isPanelOpen = false;
this.pendingColumnVisibility = {}; // Pending changes
this.searchQueries = {}; // Store search queries
this.searchValues = {};
this.searchCall = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
// Pagination properties
this.currentPage = 1;
this.itemsPerPage = 15;
}
ngOnInit() {
console.log('ccc', this.componentData);
const data = localStorage.getItem('privilegeFlags');
this.privilegeFlags = JSON.parse(data);
this.columnVisibility_Key = `columnVisibility_${this.customFormId}`;
console.log('this.columnVisibility_Key ngOnInit', this.columnVisibility_Key);
this.prepareTableData();
}
pageChanged(event) {
this.currentPage = event;
this.searchCall.emit(Object.assign(Object.assign({}, this.searchQueries), { currentPage: this.currentPage }));
}
generateHeaders() {
const columnVisibility = localStorage.getItem(this.columnVisibility_Key);
if (columnVisibility) {
this.columnVisibility = JSON.parse(columnVisibility);
this.pendingColumnVisibility = JSON.parse(columnVisibility);
}
else {
this.initializeColumnVisibility();
}
}
ngOnChanges(changes) {
var _a;
if (changes.formSubmissionListData) {
this.prepareTableData();
}
if ((_a = changes.customFormId) === null || _a === void 0 ? void 0 : _a.firstChange) {
this.columnVisibility_Key = `columnVisibility_${changes.customFormId.currentValue}`;
this.customFormId = changes.customFormId.currentValue;
}
}
prepareTableData() {
if (this.formSubmissionListData.length > 0) {
// Get unique headers (keys) from all objects
const headersSet = new Set();
this.formSubmissionListData.forEach((item) => {
var _a;
if (this.componentData.formSubTypeId) {
headersSet.add('Staff Name');
}
else {
headersSet.add('Submitted At');
}
headersSet.add('Staff Id');
// headersSet.add('_id');
for (let key in item) {
if (((_a = item[key]) === null || _a === void 0 ? void 0 : _a.hasOwnProperty('value')) &&
key !== 'responseId' &&
key !== '_id' &&
key !== 'Submitted At' &&
key !== 'Staff Name' &&
key !== 'Staff Id') {
headersSet.add(key);
}
}
});
this.tableHeaders = Array.from(headersSet);
this.generateHeaders();
// Prepare table rows data
this.tableData = this.formSubmissionListData.map((item) => {
const row = {};
row['allData'] = item;
[...this.tableHeaders, '_id'].forEach((header) => {
var _a;
row[header] = ((_a = item[header]) === null || _a === void 0 ? void 0 : _a.hasOwnProperty('value')) ? item[header].value
? item[header].value.toString().trim()
: ''
: item[header];
});
return row;
});
}
else {
this.tableHeaders = this.columns.map((column) => column.question);
this.generateHeaders();
this.tableData = [];
}
}
initializeColumnVisibility() {
// Initialize all columns as visible and sync pending changes
this.tableHeaders.forEach((header) => {
this.columnVisibility[header] = true;
this.pendingColumnVisibility[header] = true;
});
if (this.columnVisibility_Key &&
Object.keys(this.columnVisibility).length !== 0) {
localStorage.setItem(this.columnVisibility_Key, JSON.stringify(this.columnVisibility));
}
}
isColumnVisible(header) {
// console.log('header',header)
// if(header === '_id'){
// return true
// }
return this.columnVisibility[header];
}
togglePanel() {
this.modelService.open(this.updateSettings, {
windowClass: 'modal-ui-fix right-align',
});
}
onSubmitColumnForm() {
this.tableHeaders.forEach((header) => {
this.columnVisibility[header] = this.pendingColumnVisibility[header];
});
localStorage.setItem(this.columnVisibility_Key, JSON.stringify(this.columnVisibility));
this.modelService.dismissAll();
}
onCloseColumnForm() {
this.pendingColumnVisibility = JSON.parse(JSON.stringify(this.columnVisibility));
this.modelService.dismissAll();
}
onSearch(event, header, firstRow = null) {
var _a, _b, _c;
const query = event.target.value;
if (query) {
if (!((_a = this.columns) === null || _a === void 0 ? void 0 : _a.length)) {
const questionId = firstRow
? ((_b = firstRow[header]) === null || _b === void 0 ? void 0 : _b.questionId) || null
: null;
this.searchQueries[header] = { value: query, questionId, header };
}
else {
const qId = ((_c = this.columns.find((item) => item.question === header)) === null || _c === void 0 ? void 0 : _c.questionId) ||
null;
this.searchQueries[header] = { value: query, header, questionId: qId };
}
}
else {
delete this.searchQueries[header];
this.searchValues[header] = '';
}
// Clear the previous debounce timer
if (this.debounceTimer) {
clearTimeout(this.debounceTimer);
}
// Set a new debounce timer
this.debounceTimer = setTimeout(() => {
this.currentPage = 1;
this.searchCall.emit(Object.assign(Object.assign({}, this.searchQueries), { currentPage: this.currentPage })); // Emit the data to the parent
// call API here
}, 500);
}
onClearCall() {
this.searchValues = {};
}
onEdit(row) {
console.log('ff', row['allData']);
const modalRef = this.modelService.open(_edit_response_edit_response__WEBPACK_IMPORTED_MODULE_1__["EditResponseComponent"], {
size: 'lg',
});
const formatData = Object.keys(row).reduce((acc, key) => {
var _a, _b;
if (key !== 'allData') {
acc[key] = {
value: row[key],
questionId: (_a = row['allData'][key]) === null || _a === void 0 ? void 0 : _a.questionId,
isUsedForAutoPopulate: (_b = row['allData'][key]) === null || _b === void 0 ? void 0 : _b.isUsedForAutoPopulate,
};
}
return acc;
}, {});
const metaData = {
firstQuestionId: row['allData'].firstQuestionId,
formSubTypeId: this.componentData.formSubTypeId,
};
console.log('formatData', formatData);
const responseId = row['allData'].responseId;
modalRef.componentInstance.rowData = formatData;
modalRef.componentInstance.tableHeaders = this.tableHeaders;
modalRef.componentInstance.metaData = metaData;
modalRef.componentInstance.responseId = responseId;
modalRef.componentInstance.onSave.subscribe((updatedData) => {
// this.searchCall.emit({}); // Emit the data to the parent
this.searchCall.emit(Object.assign(Object.assign({}, this.searchQueries), { currentPage: this.currentPage }));
});
}
onCancel(row) {
sweetalert2__WEBPACK_IMPORTED_MODULE_2___default.a.fire({
title: 'Are you sure?',
text: 'You want to cancel this booking?',
footer: '',
icon: 'question',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
const payload = {
responseId: row === null || row === void 0 ? void 0 : row._id,
};
this.loader = true;
this.customFromService.cancelSubmission(payload).subscribe((res) => {
if (res === null || res === void 0 ? void 0 : res.success) {
this.toastService.success(res.message, 'Success');
// this.searchCall.emit({}); // Emit the data to the parent
this.searchCall.emit(Object.assign(Object.assign({}, this.searchQueries), { currentPage: this.currentPage }));
}
else {
this.toastService.error(res.message, 'Failed');
}
this.loader = false;
}, (err) => {
var _a, _b;
console.log(err);
this.toastService.error((_b = (_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
});
}
});
}
workFlowCall(item) {
this.selectedWorkFlowData = item;
this.modelRef = this.modelService.open(this.updateStatusSettings, {
windowClass: 'modal-ui-fix right-align',
});
}
handleCloseModal(flag) {
// Perform actions based on the flag value
if (flag) {
this.debounceTimer = setTimeout(() => {
this.currentPage = 1;
this.searchCall.emit(Object.assign(Object.assign({}, this.searchQueries), { currentPage: this.currentPage })); // Emit the data to the parent
// call API here
}, 500);
}
this.modelRef.close();
}
getFormattedDateTime() {
const now = new Date();
const day = String(now.getDate()).padStart(2, '0'); // Ensure two digits
const month = String(now.getMonth() + 1).padStart(2, '0'); // Months are zero-based
const year = String(now.getFullYear()).slice(-2); // Get last two digits of the year
const hours = String(now.getHours()).padStart(2, '0'); // Ensure two digits
const minutes = String(now.getMinutes()).padStart(2, '0'); // Ensure two digits
return `${day}_${month}_${year}_${hours}:${minutes}`;
}
onPrintWorkFlowPdf(id) {
const data = {
timeZone: new Date().getTimezoneOffset(),
_id: id
};
const subscribe = this.customFromService
.exportWorkFlowPdf(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b;
if ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.csvLink) {
this.downloadAttachments((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.csvLink, `${this.componentData.title}_${this.getFormattedDateTime()}.pdf`);
}
}, (error) => {
this.toastService.error('Something went wrong. Please try again later.');
});
}
downloadAttachments(url, fileName) {
url = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl}${url}?print=yes`;
const printWindow = window.open(url, '_blank');
if (printWindow) {
printWindow.onload = () => {
printWindow.focus(); // Ensure the window is focused
printWindow.print();
};
}
else {
console.error('Unable to open the PDF for printing.');
}
}
}
DynamicTableFormComponent.ɵfac = function DynamicTableFormComponent_Factory(t) { return new (t || DynamicTableFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_common_file_download_service__WEBPACK_IMPORTED_MODULE_8__["FileDownloadService"])); };
DynamicTableFormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DynamicTableFormComponent, selectors: [["dynamic-table-form"]], viewQuery: function DynamicTableFormComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.updateSettings = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.updateStatusSettings = _t.first);
} }, inputs: { formSubmissionListData: "formSubmissionListData", columns: "columns", customFormId: "customFormId", componentData: "componentData", hasWorkflow: "hasWorkflow", total: "total" }, outputs: { searchCall: "searchCall" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 10, vars: 2, consts: [[1, "align-self-end", 2, "width", "max-content", "float", "right"], [1, "btn", "btn-info", "m-2", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-columns"], ["class", "table-responsive", 4, "ngIf"], ["class", "d-flex justify-content-center mt-3", 4, "ngIf"], ["updateSettings", ""], ["updateStatusSettings", ""], [1, "table-responsive"], [1, "table", "table-bordered", "table-hover", 2, "width", "100%"], [2, "display", "flex"], ["class", "card-header bg-theme", 3, "hidden", "ngStyle", 4, "ngFor", "ngForOf"], ["class", "card-header bg-theme", 3, "ngStyle", 4, "ngIf"], ["style", " word-wrap: break-word; overflow: hidden;", 3, "hidden", "ngStyle", 4, "ngFor", "ngForOf"], [3, "ngStyle", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["noData", ""], [1, "card-header", "bg-theme", 3, "hidden", "ngStyle"], [1, "card-header", "bg-theme", 3, "ngStyle"], [2, "word-wrap", "break-word", "overflow", "hidden", 3, "hidden", "ngStyle"], ["type", "text", "placeholder", "Search", 2, "width", "100%", "word-wrap", "break-word", "overflow", "hidden", 3, "ngModel", "ngModelChange", "input"], [3, "ngStyle"], ["style", "display: flex;", 4, "ngFor", "ngForOf"], ["style", "word-wrap: break-word; overflow: hidden; text-overflow: ellipsis;", 3, "hidden", "ngStyle", 4, "ngFor", "ngForOf"], ["class", "d-flex", "style", "overflow: auto;", 3, "ngStyle", 4, "ngIf"], [2, "word-wrap", "break-word", "overflow", "hidden", "text-overflow", "ellipsis", 3, "hidden", "ngStyle"], [1, "d-flex", 2, "overflow", "auto", 3, "ngStyle"], ["class", "btn btn-success mr-1", "style", "height: fit-content;", 3, "click", 4, "ngIf"], ["class", "btn btn-warning mr-1", "style", "height: fit-content;", 3, "click", 4, "ngIf"], ["class", "btn btn-info mr-1", "style", "height: fit-content;", 3, "click", 4, "ngIf"], ["style", "background-color: #0d47a1; height: fit-content;", "class", "btn btn-info mr-1", 3, "click", 4, "ngIf"], [1, "btn", "btn-success", "mr-1", 2, "height", "fit-content", 3, "click"], [1, "btn", "btn-warning", "mr-1", 2, "height", "fit-content", 3, "click"], [1, "btn", "btn-info", "mr-1", 2, "height", "fit-content", 3, "click"], [1, "btn", "btn-info", "mr-1", 2, "background-color", "#0d47a1", "height", "fit-content", 3, "click"], [1, "text-center"], [1, "d-flex", "justify-content-center", "mt-3"], ["maxSize", "9", 3, "pageChange", "pageBoundsCorrection"], [1, "modal-content"], [1, "modal-body", 2, "padding", "0px", "min-height", "100vh"], [1, "card", "w-100"], [1, "card-header", "flexi-header"], [1, "card-body"], [1, "row"], [1, "col-md-12"], [1, "table"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "col-md-6"], [1, "d-flex", "justify-content-between"], [1, "btn", "btn-clear", "btn-block", "mr-1", 3, "click"], [1, "btn", "btn-add", "btn-block", 2, "margin", "2px", 3, "click"], [2, "word-break", "break-all"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], [3, "editFormData", "selectedWorkFlowData", "closeModal"]], template: function DynamicTableFormComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function DynamicTableFormComponent_Template_button_click_1_listener() { return ctx.togglePanel(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Filter Column ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, DynamicTableFormComponent_div_4_Template, 12, 6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, DynamicTableFormComponent_div_5_Template, 2, 0, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, DynamicTableFormComponent_ng_template_6_Template, 28, 1, "ng-template", null, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, DynamicTableFormComponent_ng_template_8_Template, 1, 2, "ng-template", null, 6, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.tableHeaders.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.tableData.length > 0);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgStyle"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], ngx_pagination__WEBPACK_IMPORTED_MODULE_12__["PaginationControlsComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["CheckboxControlValueAccessor"], _workflow_workflow_status_modal_component__WEBPACK_IMPORTED_MODULE_13__["WorkflowStatusModalComponent"]], pipes: [ngx_pagination__WEBPACK_IMPORTED_MODULE_12__["PaginatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["DatePipe"]], styles: [".forms-manage[_ngcontent-%COMP%] .box-item[_ngcontent-%COMP%] .box-item-status[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] {\n padding: 0 1.4rem;\n position: relative;\n}\n\n.forms-manage[_ngcontent-%COMP%] .box-item[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0 0.7rem;\n}\n\n.forms-manage[_ngcontent-%COMP%] {\n margin-bottom: 3rem;\n max-width: 100%;\n overflow-x: auto;\n}\n\n.form-group.hidden[_ngcontent-%COMP%] {\n width: 0;\n margin: 0;\n border: none;\n padding: 0;\n}\n\n.custom-day[_ngcontent-%COMP%] {\n text-align: center;\n padding: 0.185rem 0.25rem;\n display: inline-block;\n height: 2rem;\n width: 2rem;\n}\n\n.custom-day.focused[_ngcontent-%COMP%] {\n background-color: #e6e6e6;\n}\n\n.custom-day.range[_ngcontent-%COMP%], .custom-day[_ngcontent-%COMP%]:hover {\n background-color: #0275d8;\n color: white;\n}\n\n.custom-day.faded[_ngcontent-%COMP%] {\n background-color: rgba(2, 117, 216, 0.5);\n}\n\n.status-workflow-class[_ngcontent-%COMP%] {\n display: inline-block;\n padding: 2px 10px 2px 10px;\n word-break: break-all;\n color: #e6e6e6;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2R5bmFtaWMtdGFibGUtZm9ybS9keW5hbWljLXRhYmxlLWZvcm0uc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGlCQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLHNCQUFBO0VBQ0EsaUJBQUE7QUFDRjs7QUFFQTtFQUNFLG1CQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBR0E7RUFDRSxRQUFBO0VBQ0EsU0FBQTtFQUNBLFlBQUE7RUFDQSxVQUFBO0FBQUY7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxZQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUNBO0VBQ0UseUJBQUE7QUFFRjs7QUFBQTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtBQUdGOztBQURBO0VBQ0Usd0NBQUE7QUFJRjs7QUFGQTtFQUNFLHFCQUFBO0VBQ0EsMEJBQUE7RUFDQSxxQkFBQTtFQUNBLGNBQUE7QUFLRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9mb3Jtcy9mb3JtLW1hbmFnZS9keW5hbWljLXRhYmxlLWZvcm0vZHluYW1pYy10YWJsZS1mb3JtLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZm9ybXMtbWFuYWdlIC5ib3gtaXRlbSAuYm94LWl0ZW0tc3RhdHVzIC5zdGF0dXMge1xuICBwYWRkaW5nOiAwIDEuNHJlbTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAvLyBtaW4td2lkdGg6IDlyZW07XG59XG4uZm9ybXMtbWFuYWdlIC5ib3gtaXRlbSB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDAgMC43cmVtO1xufVxuXG4uZm9ybXMtbWFuYWdlIHtcbiAgbWFyZ2luLWJvdHRvbTogM3JlbTtcbiAgbWF4LXdpZHRoOiAxMDAlO1xuICBvdmVyZmxvdy14OiBhdXRvO1xufVxuXG5cbi5mb3JtLWdyb3VwLmhpZGRlbiB7XG4gIHdpZHRoOiAwO1xuICBtYXJnaW46IDA7XG4gIGJvcmRlcjogbm9uZTtcbiAgcGFkZGluZzogMDtcbn1cbi5jdXN0b20tZGF5IHtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBwYWRkaW5nOiAwLjE4NXJlbSAwLjI1cmVtO1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIGhlaWdodDogMnJlbTtcbiAgd2lkdGg6IDJyZW07XG59XG4uY3VzdG9tLWRheS5mb2N1c2VkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2U2ZTZlNjtcbn1cbi5jdXN0b20tZGF5LnJhbmdlLCAuY3VzdG9tLWRheTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYigyLCAxMTcsIDIxNik7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cbi5jdXN0b20tZGF5LmZhZGVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgyLCAxMTcsIDIxNiwgMC41KTtcbn1cbi5zdGF0dXMtd29ya2Zsb3ctY2xhc3N7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgcGFkZGluZzogMnB4IDEwcHggMnB4IDEwcHg7XG4gIHdvcmQtYnJlYWs6IGJyZWFrLWFsbDtcbiAgY29sb3I6ICNlNmU2ZTY7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicTableFormComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'dynamic-table-form',
templateUrl: './dynamic-table-form.html',
styleUrls: ['./dynamic-table-form.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_6__["CustomFormService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_users_service_common_file_download_service__WEBPACK_IMPORTED_MODULE_8__["FileDownloadService"] }]; }, { updateSettings: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['updateSettings', { static: true }]
}], updateStatusSettings: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['updateStatusSettings', { static: true }]
}], formSubmissionListData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], columns: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], customFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], componentData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], hasWorkflow: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], total: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], searchCall: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "EHWJ":
/*!******************************************************************************!*\
!*** ./src/app/users/pages/users/reset-password/reset-password.component.ts ***!
\******************************************************************************/
/*! exports provided: ResetPasswordComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResetPasswordComponent", function() { return ResetPasswordComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../shared/custom-validator/custom-validator */ "TF/K");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../service/user-service/users.service */ "lGV6");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _rest_password_overview_rest_password_overview_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./rest-password-overview/rest-password-overview.component */ "sm+T");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function ResetPasswordComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "rest-password-overview");
} }
function ResetPasswordComponent_ng_template_10_div_0_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "RESET PASSWORD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ResetPasswordComponent_ng_template_10_div_0_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r5.getUserBYStaffId(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ResetPasswordComponent_ng_template_10_div_0_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r7.onClear(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r3.getUserForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r3.getUserForm.valid);
} }
function ResetPasswordComponent_ng_template_10_div_1_i_34_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ResetPasswordComponent_ng_template_10_div_1_i_34_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r13.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](ctx_r8.passwordvisible ? "fa fa-eye fa-lg" : "fa fa-eye-slash fa-lg");
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_br_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "br");
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_small_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Atleast one numeric letter is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_br_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "br");
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_small_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Atleast one special character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_br_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "br");
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_small_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Atleast one small character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_br_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "br");
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_small_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Atleast one capital character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_br_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "br");
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_small_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" Minimum length should be ", ctx_r25.resetPasswordForm.get("password").errors.length, " characters ");
} }
function ResetPasswordComponent_ng_template_10_div_1_div_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ResetPasswordComponent_ng_template_10_div_1_div_35_small_1_Template, 2, 0, "small", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ResetPasswordComponent_ng_template_10_div_1_div_35_br_2_Template, 1, 0, "br", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ResetPasswordComponent_ng_template_10_div_1_div_35_small_3_Template, 2, 0, "small", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ResetPasswordComponent_ng_template_10_div_1_div_35_br_4_Template, 1, 0, "br", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ResetPasswordComponent_ng_template_10_div_1_div_35_small_5_Template, 2, 0, "small", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ResetPasswordComponent_ng_template_10_div_1_div_35_br_6_Template, 1, 0, "br", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ResetPasswordComponent_ng_template_10_div_1_div_35_small_7_Template, 2, 0, "small", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ResetPasswordComponent_ng_template_10_div_1_div_35_br_8_Template, 1, 0, "br", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ResetPasswordComponent_ng_template_10_div_1_div_35_small_9_Template, 2, 0, "small", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ResetPasswordComponent_ng_template_10_div_1_div_35_br_10_Template, 1, 0, "br", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ResetPasswordComponent_ng_template_10_div_1_div_35_small_11_Template, 2, 1, "small", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.hasNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.hasNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.hasSpecialCharacters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.hasSpecialCharacters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.hasSmallCase);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.hasSmallCase);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.hasCapitalCase);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.hasCapitalCase);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.resetPasswordForm.get("password").errors.minlength);
} }
function ResetPasswordComponent_ng_template_10_div_1_i_43_Template(rf, ctx) { if (rf & 1) {
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ResetPasswordComponent_ng_template_10_div_1_i_43_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r27); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r26.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](ctx_r10.confirmPasswordvisible ? "fa fa-eye fa-lg" : "fa fa-eye-slash fa-lg");
} }
function ResetPasswordComponent_ng_template_10_div_1_div_44_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Confirm password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ResetPasswordComponent_ng_template_10_div_1_div_44_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ResetPasswordComponent_ng_template_10_div_1_div_44_small_1_Template, 2, 0, "small", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r11.resetPasswordForm.get("confirmPassword").errors == null ? null : ctx_r11.resetPasswordForm.get("confirmPassword").errors.required);
} }
function ResetPasswordComponent_ng_template_10_div_1_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Password doesn't Match ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
function ResetPasswordComponent_ng_template_10_div_1_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "RESET PASSWORD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Selected staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "input", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, ResetPasswordComponent_ng_template_10_div_1_i_34_Template, 1, 2, "i", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](35, ResetPasswordComponent_ng_template_10_div_1_div_35_Template, 12, 11, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Confirm password ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "input", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](43, ResetPasswordComponent_ng_template_10_div_1_i_43_Template, 1, 2, "i", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, ResetPasswordComponent_ng_template_10_div_1_div_44_Template, 2, 1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, ResetPasswordComponent_ng_template_10_div_1_div_45_Template, 3, 0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ResetPasswordComponent_ng_template_10_div_1_Template_button_click_46_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r29.onPasswordRest(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, " Reset password ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ResetPasswordComponent_ng_template_10_div_1_Template_button_click_50_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r31.overview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r4.resetPasswordForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx_r4.passwordvisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](11, _c0, ctx_r4.submitted && ctx_r4.resetPasswordForm.get("password").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.passwordvisible ? "passwordvisible" : "!passwordvisible");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.resetPasswordForm.get("password").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("type", ctx_r4.confirmPasswordvisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](13, _c0, ctx_r4.submitted && ctx_r4.resetPasswordForm.get("confirmPassword").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.confirmPasswordvisible ? "confirmPasswordvisible" : "!confirmPasswordvisible");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.resetPasswordForm.get("confirmPassword").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r4.resetPasswordForm.get("confirmPassword").errors && ctx_r4.resetPasswordForm.hasError("mismatch"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r4.resetPasswordForm.valid);
} }
function ResetPasswordComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ResetPasswordComponent_ng_template_10_div_0_Template, 18, 2, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ResetPasswordComponent_ng_template_10_div_1_Template, 52, 15, "div", 7);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r2.isUserDetected);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.isUserDetected);
} }
class ResetPasswordComponent {
constructor(storageService, toastService, formBuilder, passwordSettings, userService) {
this.storageService = storageService;
this.toastService = toastService;
this.formBuilder = formBuilder;
this.passwordSettings = passwordSettings;
this.userService = userService;
this.passwordvisible = false;
this.confirmPasswordvisible = false;
this.isUserDetected = false;
this.submitted = false;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.validators = [];
this.selectedUserId = null;
this.pwdSettings = null;
this.initForm();
this.getPageSettings();
// this.passwordSettings
// .getPasswordSetting()
// .subscribe(async (Res) => {
// this.passwordSetting = await Res.data.pwdSettings.charTypes;
// console.log(Res.data);
// this.getValidatorFnArray(Res.data.pwdSettings);
// },
// (error: HttpErrorResponse) => {
// });
}
ngOnInit() {
this.resePassword = {
usernameType: 'staffId',
fields: ['email', 'staffId', 'name'],
};
}
getPageSettings() {
let companyName = localStorage.getItem('flexiurlCompanyName');
this.passwordSettings.getPageSettings(companyName).subscribe(result => {
var _a, _b;
this.pwdSettings = ((_b = (_a = result === null || result === void 0 ? void 0 : result.data) === null || _a === void 0 ? void 0 : _a.pageSettingData) === null || _b === void 0 ? void 0 : _b.pwdSettings) || null;
if (this.pwdSettings) {
this.getValidatorFnArray();
}
}, (error) => {
console.log(error);
});
}
passwordMatchValidator(g) {
return g.controls.password.value === g.controls.confirmPassword.value ? null : { mismatch: true };
}
initForm() {
this.resetPasswordForm = this.formBuilder.group({
name: [''],
staffId: [''],
businessUnit: [''],
password: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
confirmPassword: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]
}, { validator: this.passwordMatchValidator });
this.getUserForm = this.formBuilder.group({
staffId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
});
}
passwordVisible() {
this.passwordvisible = !this.passwordvisible;
}
confirmPasswordVisible() {
this.confirmPasswordvisible = !this.confirmPasswordvisible;
}
overview() {
// this.overViewEvent.next(null)
this.isUserDetected = false;
this.resetPasswordForm.reset();
}
ngAfterViewChecked() { }
getValidatorFnArray() {
const validators = [];
if (this.pwdSettings.charTypes.lowerCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_2__["CustomValidators"].patternValidator(/[a-z]/, {
hasSmallCase: true,
}));
}
if (this.pwdSettings.charTypes.specialChar) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_2__["CustomValidators"].patternValidator(/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/, {
hasSpecialCharacters: true,
}));
}
if (this.pwdSettings.charTypes.upperCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_2__["CustomValidators"].patternValidator(/[A-Z]/, {
hasCapitalCase: true,
}));
}
if (this.pwdSettings.charTypes.numbers) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_2__["CustomValidators"].patternValidator(/\d/, {
hasNumber: true,
}));
}
if (this.pwdSettings.charLength) {
const len = this.pwdSettings.charLength;
let test = `^.{${len},22}`;
let regex = new RegExp(test);
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_2__["CustomValidators"].patternValidator(regex, {
minlength: true,
length: this.pwdSettings.charLength,
}));
}
this.validators.push(...validators);
this.resetPasswordForm.controls.password.setValidators([...this.validators, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]);
this.resetPasswordForm.controls.password.updateValueAndValidity();
}
get f() {
return this.resetPasswordForm.controls;
}
getUserBYStaffId() {
const { staffId } = this.getUserForm.value;
this.userService.getUserbasedOnUserType(staffId).subscribe((res) => {
var _a, _b, _c, _d, _e, _f, _g;
this.getUserForm.reset();
this.isUserDetected = true;
this.selectedUserId = res.data._id;
this.resetPasswordForm.patchValue({
name: res.data.name,
staffId: res.data.staffId,
businessUnit: ((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.parentBussinessUnitId) === null || _b === void 0 ? void 0 : _b.sectionId.departmentId.companyId.name) + '>' + ((_d = (_c = res.data) === null || _c === void 0 ? void 0 : _c.parentBussinessUnitId) === null || _d === void 0 ? void 0 : _d.sectionId.departmentId.name) + '>' + ((_e = res.data.parentBussinessUnitId) === null || _e === void 0 ? void 0 : _e.sectionId.name) + '>' + ((_g = (_f = res.data) === null || _f === void 0 ? void 0 : _f.parentBussinessUnitId) === null || _g === void 0 ? void 0 : _g.name),
});
}, (error) => {
var _a;
let toastMessage = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message;
this.toastService.error(toastMessage, 'failed', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
onPasswordRest() {
if (!this.resetPasswordForm.valid) {
this.submitted = true;
return;
}
const payload = { "staffId": this.resetPasswordForm.controls.staffId.value, "password": this.resetPasswordForm.controls.password.value };
this.userService.updateResetPassword(payload).subscribe((res) => {
this.toastService.success('Password reset successfully');
this.resetPasswordForm.reset();
this.isUserDetected = false;
}, (error) => {
var _a;
let toastMessage = ((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message).replace('Couldn\'t', 'Can\'t');
this.toastService.error(toastMessage, 'failed', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
onClearResetForm() {
this.resetPasswordForm.reset();
this.selectedUserId = null;
this.isUserDetected = false;
}
onClear() {
this.getUserForm.reset();
}
}
ResetPasswordComponent.ɵfac = function ResetPasswordComponent_Factory(t) { return new (t || ResetPasswordComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_3__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_5__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__["UsersService"])); };
ResetPasswordComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ResetPasswordComponent, selectors: [["app-reset-password"]], outputs: { overViewEvent: "overViewEvent" }, decls: 12, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["class", "card", 4, "ngIf"], [1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [3, "formGroup"], [1, "row"], [1, "col-md-4"], [1, "row", "mb-2"], [1, "col-12", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg", "font-weight-bold"], ["type", "text", "formControlName", "staffId", 1, "form-control", 2, "height", "40px", "width", "200px"], [1, "btn", "btn-add", "p-1", "m-1", "pl-3", "pr-3", 3, "disabled", "click"], [1, "btn", "btn-clear", "p-1", "m-1", "pl-3", "pr-3", 3, "click"], [1, "card-header", "flexi-header"], [1, "col-md-6"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], ["type", "text", "placeholder", " Name", "disabled", "", "formControlName", "name", 1, "form-control"], ["type", "text", "placeholder", " Staff ID", "disabled", "", "formControlName", "staffId", 1, "form-control"], ["type", "text", "disabled", "", "formControlName", "businessUnit", 1, "form-control"], ["placeholder", " Password", "formControlName", "password", 1, "form-control", 3, "type", "ngClass"], [1, "eye-slash"], ["aria-hidden", "true", 3, "class", "click", 4, "ngIf"], ["class", "invalid-feedback d-block", 4, "ngIf"], ["placeholder", " Confirm Password", "formControlName", "confirmPassword", 1, "form-control", 3, "type", "ngClass"], ["type", "reset", 1, "btn", "btn-clear", "p-1", "m-1", "pl-3", "pr-3"], [1, "btn", "btn-add", "p-1", "m-1", "pl-3", "pr-3", 3, "click"], ["aria-hidden", "true", 3, "click"], [1, "invalid-feedback", "d-block"], [4, "ngIf"]], template: function ResetPasswordComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ResetPasswordComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ResetPasswordComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "RESET PASSWORD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ResetPasswordComponent_ng_template_10_Template, 2, 2, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavOutlet"], _rest_password_overview_rest_password_overview_component__WEBPACK_IMPORTED_MODULE_8__["RestPasswordOverviewComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgClass"]], styles: [".eye-slash[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -23px;\n cursor: pointer;\n z-index: 9;\n}\n\n.btn-clear[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvdXNlcnMvcmVzZXQtcGFzc3dvcmQvcmVzZXQtcGFzc3dvcmQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0VBQ0EsVUFBQTtBQUNGOztBQUVBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7QUFDRjs7QUFFQTtFQUNFLHNCQUFBO0FBQ0Y7O0FBQUU7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFFSjs7QUFBSTtFQUNFLGNBQUE7QUFFTjs7QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3VzZXJzL3Jlc2V0LXBhc3N3b3JkL3Jlc2V0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmV5ZS1zbGFzaCB7XG4gIHdpZHRoOiAyMHB4O1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHJpZ2h0OiAzMHB4O1xuICBtYXJnaW4tdG9wOiAtMjNweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICB6LWluZGV4OiA5O1xufVxuXG4uYnRuLWNsZWFyIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICNkOTUzNGY7XG4gIGJvcmRlci1jb2xvcjogI2Q0M2YzYTtcbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ResetPasswordComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-reset-password',
templateUrl: './reset-password.component.html',
styleUrls: ['./reset-password.component.scss'],
}]
}], function () { return [{ type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_3__["StorageService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_5__["CompanySetupService"] }, { type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__["UsersService"] }]; }, { overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "EXjG":
/*!****************************************************************************!*\
!*** ./src/app/users/pages/central-builder/my-forms/my-forms.component.ts ***!
\****************************************************************************/
/*! exports provided: MyFormsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyFormsComponent", function() { return MyFormsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _my_forms_overview_my_forms_overview_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./my-forms-overview/my-forms-overview.component */ "BZPs");
/* harmony import */ var _view_view_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./view/view.component */ "ZFtY");
/* harmony import */ var _my_forms_view_my_forms_view_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./my-forms-view/my-forms-view.component */ "oImM");
function MyFormsComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "my-forms-overview", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("takeQuestion", function MyFormsComponent_ng_template_6_Template_my_forms_overview_takeQuestion_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r4.question($event); })("customFormID", function MyFormsComponent_ng_template_6_Template_my_forms_overview_customFormID_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.customForm($event); })("formType", function MyFormsComponent_ng_template_6_Template_my_forms_overview_formType_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.formType($event); })("formTitle", function MyFormsComponent_ng_template_6_Template_my_forms_overview_formTitle_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.title($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MyFormsComponent_a_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "VIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MyFormsComponent_ng_template_9_div_0_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "app-view", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("viewQuestion", function MyFormsComponent_ng_template_9_div_0_Template_app_view_viewQuestion_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r11.overview($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("customFormId", ctx_r9.customFormId)("formTitle", ctx_r9.formTitle);
} }
function MyFormsComponent_ng_template_9_div_1_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "app-my-forms-view", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("takeQuestion", function MyFormsComponent_ng_template_9_div_1_Template_app_my_forms_view_takeQuestion_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r13.overview($event); })("viewPage", function MyFormsComponent_ng_template_9_div_1_Template_app_my_forms_view_viewPage_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r15.viewPage($event); })("formTitleviewPage", function MyFormsComponent_ng_template_9_div_1_Template_app_my_forms_view_formTitleviewPage_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r16.formTitleviewPage($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("questionId", ctx_r10.questionId)("customFormId", ctx_r10.customFormId);
} }
function MyFormsComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MyFormsComponent_ng_template_9_div_0_Template, 2, 2, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsComponent_ng_template_9_div_1_Template, 2, 2, "div", 9);
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.formName === "viewQuestion");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.formName === "takeQuestion");
} }
class MyFormsComponent {
constructor() {
this.activeId = 1;
this.viewStatus = false;
}
ngOnInit() {
}
question(id) {
this.activeId = 2;
this.questionId = id;
}
customForm(id) {
this.activeId = 2;
this.customFormId = id;
}
overview() {
this.activeId = 1;
}
formType(e) {
this.formName = e;
}
title(e) {
//this.viewStatus = true;
this.formTitle = e;
}
viewPage(e) {
this.customFormId = e;
}
formTitleviewPage(e) {
this.formTitle = e;
this.formName = 'viewQuestion';
this.activeId = 2;
}
}
MyFormsComponent.ɵfac = function MyFormsComponent_Factory(t) { return new (t || MyFormsComponent)(); };
MyFormsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MyFormsComponent, selectors: [["app-my-forms"]], decls: 11, vars: 5, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], ["ngbNavLink", "", 4, "ngIf"], [3, "ngbNavOutlet"], [3, "takeQuestion", "customFormID", "formType", "formTitle"], [4, "ngIf"], [3, "customFormId", "formTitle", "viewQuestion"], [3, "questionId", "customFormId", "takeQuestion", "viewPage", "formTitleviewPage"]], template: function MyFormsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function MyFormsComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyFormsComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, MyFormsComponent_a_8_Template, 2, 0, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, MyFormsComponent_ng_template_9_Template, 2, 2, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.viewStatus === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _my_forms_overview_my_forms_overview_component__WEBPACK_IMPORTED_MODULE_3__["MyFormsOverviewComponent"], _view_view_component__WEBPACK_IMPORTED_MODULE_4__["ViewComponent"], _my_forms_view_my_forms_view_component__WEBPACK_IMPORTED_MODULE_5__["MyFormsViewComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL215LWZvcm1zL215LWZvcm1zLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usc0JBQUE7QUFDRjtBQUFFO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0FBRUo7QUFBSTtFQUNFLGNBQUE7QUFFTjtBQUNJO0VBQ0UsY0FBQTtFQUNBLHNCQUFBO0VBQ0EsNkNBQUE7RUFDQSxnQ0FBQTtBQUNOIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL215LWZvcm1zL215LWZvcm1zLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MyFormsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-my-forms',
templateUrl: './my-forms.component.html',
styleUrls: ['./my-forms.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "Ecij":
/*!************************************************************!*\
!*** ./src/app/users/service/operations/report.service.ts ***!
\************************************************************/
/*! exports provided: ReportService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportService", function() { return ReportService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class ReportService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: "application/json",
"Content-Type": "application/json",
});
}
listOfShiftCsv(data) {
return this.http.post(`${this.baseUrl}/reports/listofshifts`, data, {
headers: this.Headers,
});
}
listOfUserCsv(data) {
return this.http.post(`${this.baseUrl}/reports/users`, data, {
headers: this.Headers,
});
}
reportBooking(data) {
return this.http.post(`${this.baseUrl}/reports/bookings`, data, {
headers: this.Headers,
});
}
listOfCancellation(data) {
return this.http.post(`${this.baseUrl}/reports/listofcancellations`, data, {
headers: this.Headers,
});
}
downloadFile(x) {
return this.http.get(`${this.baseUrl}/uploads/reportsDownloads/` + x, {
responseType: "blob",
});
}
}
ReportService.ɵfac = function ReportService_Factory(t) { return new (t || ReportService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
ReportService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: ReportService, factory: ReportService.ɵfac, providedIn: "root" });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ReportService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: "root",
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "ErXd":
/*!********************************************************************!*\
!*** ./src/app/users/service/gamification/gamification.service.ts ***!
\********************************************************************/
/*! exports provided: GamificationService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GamificationService", function() { return GamificationService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class GamificationService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getChallenges(data) {
return this.http.get(`${this.baseUrl}/common/challenge/read?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getChallengesNew(data) {
return this.http.get(`${this.baseUrl}/common/challenge/read/new?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getChallengesNewSingle(data) {
return this.http.get(`${this.baseUrl}/common/challenge/read/new/${data}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getLogs(data) {
return this.http.get(`${this.baseUrl}/common/challenge/getChallengesLog?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getRedemptionList(businessUnitId, pageNumber, searchData) {
return this.http.get(`${this.baseUrl}/common/redemption/rewardsHistory?businessUnit=${businessUnitId}&start=${pageNumber}&search=${searchData === null || searchData === void 0 ? void 0 : searchData.search}&sortWith=${searchData === null || searchData === void 0 ? void 0 : searchData.sortWith}&sortBy=${searchData === null || searchData === void 0 ? void 0 : searchData.sortBy}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateChallenges(data, id) {
data.challenge._id = id;
return this.http.post(`${this.baseUrl}/common/challenge/update`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createChallenges(data) {
return this.http.post(`${this.baseUrl}/common/challenge/create`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
uploadFile(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http.post(`${this.baseUrl}/pageSetting/uploadFiles`, formData);
}
uploadBadgeFile(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http.post(`${this.baseUrl}/challenges/uploadBadge/`, formData);
}
uploadImageChallange(imageFile) {
return this.http.get(`${this.baseUrl}/uploads/challenge/${imageFile}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getRedemptionExport(bussinessUnit, timeZone) {
return this.http.get(`${this.baseUrl}/common/redemption/rewardsHistoryExport/?businessUnit=${bussinessUnit}&timeZone=${timeZone}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getOneChal(id) {
return this.http.get(`${this.baseUrl}/challenges/${id}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getChallangesUsers(data) {
return this.http.post(`${this.baseUrl}/common/challenge/getChallengeUsers`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getBoardsAndChannels() {
return this.http.get(`${this.baseUrl}/common/challenge/getChannelsAndBoards`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getCountOfChallenges(data) {
return this.http.get(`${this.baseUrl}/common/challenge/getCountOfChallenges?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getDisqualifierUserData(data) {
return this.http.get(`${this.baseUrl}/common/challenge/readDisqualifier?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getNomineeQuestions(id) {
return this.http.get(`${this.baseUrl}/common/challenge/getNomineeQuestions?customFormId=${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getFieldsfromCustomForm(id) {
return this.http.get(`${this.baseUrl}/common/challenge/customForm/fields/${id}?type=`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getManageChallenge(data) {
return this.http.get(`${this.baseUrl}/common/challenge/manageChallenge?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getManageChallengeUsers(data) {
return this.http.get(`${this.baseUrl}/challenges/getChallengesAndUsers/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportManageChallenge(data) {
return this.http.get(`${this.baseUrl}/common/challenge/exportManageChallenge?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteDisqualifier(id) {
return this.http.get(`${this.baseUrl}/common/challenge/deleteDisqualifier?_id=${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
readDisqualifier(data) {
return this.http.get(`${this.baseUrl}/challenges/readDisqualifier/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createDisqualifyUser(data) {
return this.http.post(`${this.baseUrl}/common/challenge/disqualifyUser`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createDirectRewards(data) {
return this.http.post(`${this.baseUrl}/common/challenge/directRewards`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
downloadRedemptionFile(x) {
return this.http.get(`${this.baseUrl}/uploads/reward/` + x, {
responseType: "blob",
});
}
bulkUpdateDirectReward(data) {
return this.http.post(`${this.baseUrl}/common/challenge/bulkUpdateDirectReward`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSchemeList(id) {
return this.http.get(`${this.baseUrl}/scheme/` + id, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
importLogsPresent(id) {
return this.http.get(`${this.baseUrl}/common/challenge/isRewardErrorLogExist/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getLogData(id) {
return this.http.get(`${this.baseUrl}/common/challenge/getRewardErrorLog/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
GamificationService.ɵfac = function GamificationService_Factory(t) { return new (t || GamificationService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
GamificationService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: GamificationService, factory: GamificationService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](GamificationService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "F2gy":
/*!*********************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/user-shift-setup/user-shift-setup.component.ts ***!
\*********************************************************************************************/
/*! exports provided: UserShiftSetupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserShiftSetupComponent", function() { return UserShiftSetupComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _user_shift_setup_overview_user_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./user-shift-setup-overview/user-shift-setup-overview.component */ "q2vL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function UserShiftSetupComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-user-shift-setup-overview", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("changeActiveUserBu", function UserShiftSetupComponent_ng_template_6_Template_app_user_shift_setup_overview_changeActiveUserBu_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r3.onEditBtn($event); })("changeActiveViewBu", function UserShiftSetupComponent_ng_template_6_Template_app_user_shift_setup_overview_changeActiveViewBu_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.onViewBtn($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserShiftSetupComponent_ng_template_10_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Loading...");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Please wait, data is loading");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserShiftSetupComponent_ng_template_10_div_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r21 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r21.orgName);
} }
function UserShiftSetupComponent_ng_template_10_div_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r22 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r22.orgName, " ");
} }
function UserShiftSetupComponent_ng_template_10_div_71_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r23.fieldLabel);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControlName", item_r23.formControl);
} }
function UserShiftSetupComponent_ng_template_10_ng_option_81_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r24 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r24.name, " ");
} }
function UserShiftSetupComponent_ng_template_10_div_82_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserShiftSetupComponent_ng_template_10_div_82_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r25.clearRoles(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserShiftSetupComponent_ng_template_10_div_82_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r27.addRoles(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserShiftSetupComponent_ng_template_10_div_87_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r12.userEdit.role.name, " ");
} }
function UserShiftSetupComponent_ng_template_10_ng_option_93_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r28 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r28.schemeName, " ");
} }
function UserShiftSetupComponent_ng_template_10_div_94_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserShiftSetupComponent_ng_template_10_div_94_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r29.addSchemeButton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserShiftSetupComponent_ng_template_10_div_98_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r15.schemeLabel, " ");
} }
function UserShiftSetupComponent_ng_template_10_ng_option_104_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r31 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", i_r31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r31.name, " ");
} }
function UserShiftSetupComponent_ng_template_10_div_105_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r33.name);
} }
function UserShiftSetupComponent_ng_template_10_div_105_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Select Speciality ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, UserShiftSetupComponent_ng_template_10_div_105_ng_option_4_Template, 2, 2, "ng-option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("closeOnSelect", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r17.buSkillspeciality);
} }
function UserShiftSetupComponent_ng_template_10_div_106_Template(rf, ctx) { if (rf & 1) {
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserShiftSetupComponent_ng_template_10_div_106_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r35); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r34.addUserSkillbutton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserShiftSetupComponent_ng_template_10_div_110_div_1_ng_container_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r37[1], " ");
} }
function UserShiftSetupComponent_ng_template_10_div_110_div_1_span_3_Template(rf, ctx) { if (rf & 1) {
const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "img", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserShiftSetupComponent_ng_template_10_div_110_div_1_span_3_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r44); const i_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r42.clearLabel(i_r38); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserShiftSetupComponent_ng_template_10_div_110_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, UserShiftSetupComponent_ng_template_10_div_110_div_1_ng_container_2_Template, 2, 1, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, UserShiftSetupComponent_ng_template_10_div_110_div_1_span_3_Template, 2, 0, "span", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r37 = ctx.$implicit;
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r37[0], " > ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r36.tier == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r36.isVisible);
} }
function UserShiftSetupComponent_ng_template_10_div_110_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, UserShiftSetupComponent_ng_template_10_div_110_div_1_Template, 4, 3, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r19.userSkillset);
} }
function UserShiftSetupComponent_ng_template_10_button_118_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 73);
} }
function UserShiftSetupComponent_ng_template_10_button_118_Template(rf, ctx) { if (rf & 1) {
const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserShiftSetupComponent_ng_template_10_button_118_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r47); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r46.saveSetupDetails(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Update Shift Setup Details ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, UserShiftSetupComponent_ng_template_10_button_118_span_2_Template, 1, 0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r20.userShiftSetupLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r20.userShiftSetupLoader);
} }
const _c0 = function (a0) { return { disabled: a0 }; };
const _c1 = function () { return { standalone: true }; };
function UserShiftSetupComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, UserShiftSetupComponent_ng_template_10_div_0_Template, 6, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Parent Business unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "ng-select", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " Business unit (Plan) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "ng-select", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](28, UserShiftSetupComponent_ng_template_10_div_28_Template, 3, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " Business unit (view) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "ng-select", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](36, UserShiftSetupComponent_ng_template_10_div_36_Template, 3, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, "USER INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "input", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](51, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, " Appoinment ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](55, "ng-select", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, "Contact Number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](61, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](66, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, "CUSTOM FIELD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](71, UserShiftSetupComponent_ng_template_10_div_71_Template, 5, 2, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, "ADDITIONAL USER INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](79, "Roles");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "ng-select", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function UserShiftSetupComponent_ng_template_10_Template_ng_select_ngModelChange_80_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r49); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r48.selectedRole = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](81, UserShiftSetupComponent_ng_template_10_ng_option_81_Template, 2, 2, "ng-option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](82, UserShiftSetupComponent_ng_template_10_div_82_Template, 5, 0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](85, "p", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](86, "Roles");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](87, UserShiftSetupComponent_ng_template_10_div_87_Template, 2, 1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, "SHIFT SCHEME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](92, "ng-select", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](93, UserShiftSetupComponent_ng_template_10_ng_option_93_Template, 2, 2, "ng-option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](94, UserShiftSetupComponent_ng_template_10_div_94_Template, 5, 0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "p", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](97, "Shift Schemes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](98, UserShiftSetupComponent_ng_template_10_div_98_Template, 3, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](99, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](100, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](101, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](102, "Select Skillsets ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "ng-select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function UserShiftSetupComponent_ng_template_10_Template_ng_select_change_103_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r49); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r50.onSkillSetChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](104, UserShiftSetupComponent_ng_template_10_ng_option_104_Template, 2, 2, "ng-option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](105, UserShiftSetupComponent_ng_template_10_div_105_Template, 5, 5, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](106, UserShiftSetupComponent_ng_template_10_div_106_Template, 5, 0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](107, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](108, "p", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](109, "Skillsets & Specialities");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](110, UserShiftSetupComponent_ng_template_10_div_110_Template, 2, 1, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](111, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](112, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](113, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserShiftSetupComponent_ng_template_10_Template_button_click_113_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r49); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r51.navigateToOverview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](114, "span", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](115, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](116, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](117, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](118, UserShiftSetupComponent_ng_template_10_button_118_Template, 3, 2, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.userShiftSetupLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.isHeading, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r2.buUserShiftSetUpForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](52, _c0, ctx_r2.activateDisable));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.parentUnit, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("closeOnSelect", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.planBusiness);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("closeOnSelect", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.viewBusiness);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r2.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("multiple", false)("searchable", false)("clearable", false)("closeOnSelect", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.customFields);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", false)("clearable", false)("ngModel", ctx_r2.selectedRole)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](54, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.userRole);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.isVisible);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.userEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.schemeTable);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.isVisible);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.schemeLabel);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.buSkillSet);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.tier == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.isVisible);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.userSkillset != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.isVisible);
} }
class UserShiftSetupComponent {
constructor(buService, companyService, formBuilder, toastService, userService, shiftSchedularService, customFieldService) {
this.buService = buService;
this.companyService = companyService;
this.formBuilder = formBuilder;
this.toastService = toastService;
this.userService = userService;
this.shiftSchedularService = shiftSchedularService;
this.customFieldService = customFieldService;
this.activeId = 1;
this.planBusiness = [];
this.viewBusiness = [];
this.mainSkillsetarray = [];
this.userSkillsetarray = [];
this.customFields = [];
this.allCustomFieldsList = [];
this.subSkillSets = [];
this.userRole = [];
this.selectedRole = null;
}
ngOnInit() {
this.customFieldsList();
this.initForm();
this.displaySkilltable();
this.getTier();
}
getTier() {
this.shiftSchedularService.getPageSettingSkill().subscribe((res) => {
this.tier = res['tierType'];
});
}
customFieldsList() {
this.customFieldService.getCustomFieldList().subscribe((res) => {
this.allCustomFieldsList = res.data.fieldList;
});
}
initForm() {
this.buUserShiftSetUpForm = this.formBuilder.group({
parentBusiness: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
planBusiness: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
viewBusiness: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
userName: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
staffId: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
appoinment: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
contactNum: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
userEmail: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
userRoles: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
shiftScheme: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
skillSetTierType: [2, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
mainSkillSets: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
subSkillSets: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
});
}
displaySkilltable() {
this.buService.getSkillSet().subscribe((res) => {
this.buSkillSet = res['data']['skillsets'];
});
}
onSkillSetChange($event) {
/* const index = this.buSkillSet.find((val)=>{
return val._id == $event._id
});
console.log(index);*/
this.buSkillspeciality = $event.subSkillSets;
//this.buUserShiftSetUpForm.patchValue({
//subSkillSets: null,
//});
/*this.buService.getSkillSpeciality($event._id).subscribe((res) => {
this.buSkillspeciality = res['data'];
this.buUserShiftSetUpForm.patchValue({
subSkillSets: null,
});
});*/
}
addSchemeButton() {
this.schemeLabelId = this.buUserShiftSetUpForm.get('shiftScheme').value._id;
this.schemeLabel =
this.buUserShiftSetUpForm.get('shiftScheme').value.schemeName;
}
addRoles() {
this.userEdit.role = this.selectedRole;
this.buUserShiftSetUpForm.patchValue({
userRoles: this.selectedRole.name,
});
/* this.schemeLabelId = this.buUserShiftSetUpForm.get('shiftScheme').value._id;
this.schemeLabel =
this.buUserShiftSetUpForm.get('shiftScheme').value.schemeName;*/
}
clearRoles() {
this.userEdit.role.name = '';
}
clearSchemeLabel(i) {
this.schemeLabelId.splice(i);
this.schemeLabel.splice(i);
}
addUserSkillbutton() {
var _a, _b, _c, _d;
if (this.tier == 2) {
if (this.userSkillsetarray.indexOf((_a = this.buUserShiftSetUpForm.get('subSkillSets').value) === null || _a === void 0 ? void 0 : _a._id) > -1) {
this.toastService.warning('Already Exists', 'Info');
}
else {
this.userSkillsetarray.push((_b = this.buUserShiftSetUpForm.get('subSkillSets').value) === null || _b === void 0 ? void 0 : _b._id);
this.userSkillset.push([
(_c = this.buUserShiftSetUpForm.get('subSkillSets').value) === null || _c === void 0 ? void 0 : _c.skillSetId.name,
(_d = this.buUserShiftSetUpForm.get('subSkillSets').value) === null || _d === void 0 ? void 0 : _d.name,
]);
}
}
else {
if (this.userSkillsetarray.indexOf(this.buUserShiftSetUpForm.get('mainSkillSets').value._id) > -1) {
this.toastService.warning('Already Exists', 'Info');
}
else {
this.userSkillsetarray.push(this.buUserShiftSetUpForm.get('mainSkillSets').value._id);
this.userSkillset.push([
this.buUserShiftSetUpForm.get('mainSkillSets').value.name,
'_',
]);
}
}
this.buUserShiftSetUpForm.get('mainSkillSets').setValue(null);
this.buUserShiftSetUpForm.get('subSkillSets').setValue(null);
}
clearLabel(i) {
this.userSkillsetarray.splice(i, 1);
this.userSkillset.splice(i, 1);
}
saveSetupDetails() {
var _a, _b;
const updatedUserBu = {
userId: this.userId,
schemeId: this.schemeLabelId,
skillSetTierType: this.tier,
role: ((_a = this.selectedRole) === null || _a === void 0 ? void 0 : _a._id) ? (_b = this.selectedRole) === null || _b === void 0 ? void 0 : _b._id : this.userEdit.role._id,
};
if (this.tier == 2) {
this.buUserShiftSetUpForm.patchValue({
subSkillSets: this.userSkillsetarray,
});
updatedUserBu['subSkillSets'] = this.userSkillsetarray;
}
else {
this.buUserShiftSetUpForm.patchValue({
mainSkillSets: this.userSkillsetarray,
});
updatedUserBu['mainSkillSets'] = this.userSkillsetarray;
}
this.userShiftSetupLoader = true;
this.buService
.updateUserShift(updatedUserBu)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.userShiftSetupLoader = false;
}))
.subscribe((res) => {
this.buUserShiftSetUpForm.reset();
this.toastService.info('User Updated SuccessFully');
this.activeId = 1;
});
}
onViewBtn(event) {
this.buUserShiftSetUpForm.reset();
this.activateDisable = false;
this.activeId = 2;
this.isVisible = false;
this.isHeading = 'VIEW USER SHIFT WORK SETUP';
this.planBusiness = [];
this.userSkillset = [];
this.userSkillsetarray = [];
this.userService.getUserRoles().subscribe((res) => {
this.userRole = res['data']['roles'];
});
this.buService.getUserShiftEdit(event._id).subscribe((res) => {
var _a;
this.userEdit = res['data']['data'];
this.userId = event._id;
this.parentUnit = res['data']['data']['parentBussinessUnitId']['orgName'];
this.viewBusiness = res['data']['data']['viewBussinessUnitId'];
this.planBusiness = res['data']['data']['planBussinessUnitId'];
//this.buService.getBusinessUnit().subscribe((res) => {
//this.busiUnit = res['data']['data'];
if (this.tier == 2) {
for (let k = 0; this.userEdit.subSkillSets.length > k; k++) {
this.userSkillsetarray.push(this.userEdit.subSkillSets[k]._id);
this.userSkillset.push([
this.userEdit.subSkillSets[k].skillSetId.name,
this.userEdit.subSkillSets[k].name,
]);
}
}
else if (this.tier == 1) {
for (let k = 0; this.userEdit.mainSkillSets.length > k; k++) {
this.userSkillsetarray.push(this.userEdit.mainSkillSets[k]._id);
this.userSkillset.push([this.userEdit.mainSkillSets[k].name, '']);
}
}
if (this.userEdit.schemeId != null) {
this.schemeLabel = this.userEdit.schemeId.schemeName;
}
/*for (let i = 0; this.busiUnit.length > i; i++) {
if (this.busiUnit[i]._id == this.userEdit.parentBussinessUnitId._id) {
this.parentUnit = this.busiUnit[i].businessUnit;
}
}
for (let i = 0; this.userEdit.planBussinessUnitId.length > i; i++) {
for (let j = 0; this.busiUnit.length > j; j++) {
if (
this.busiUnit[j]._id == this.userEdit.planBussinessUnitId[i]._id
) {
this.planBusiness.push(this.busiUnit[j].businessUnit);
}
}
this.viewBusiness = [];
for (let i = 0; this.userEdit.viewBussinessUnitId.length > i; i++) {
for (let j = 0; this.busiUnit.length > j; j++) {
if (
this.busiUnit[j]._id == this.userEdit.viewBussinessUnitId[i]._id
) {
this.viewBusiness.push(this.busiUnit[j].businessUnit);
}
}
}
}*/
//});
this.buUserShiftSetUpForm.patchValue({
userName: this.userEdit.name,
staffId: this.userEdit.staffId,
appoinment: this.userEdit.appointmentId.name,
contactNum: this.userEdit.contactNumber,
userEmail: this.userEdit.email,
userRoles: this.userEdit.role.name,
});
this.buUserShiftSetUpForm.controls.mainSkillSets.disable();
this.buUserShiftSetUpForm.controls.subSkillSets.disable();
this.buUserShiftSetUpForm.controls.shiftScheme.disable();
this.buUserShiftSetUpForm.controls.userRoles.disable();
this.customFields = res['data']['data'].otherFields;
(_a = this.customFields) === null || _a === void 0 ? void 0 : _a.forEach(element => {
var _a;
const fieldName = (_a = this.allCustomFieldsList.find(id => id._id === element.fieldId)) === null || _a === void 0 ? void 0 : _a.fieldName;
element['fieldLabel'] = fieldName;
element['formControl'] = fieldName === null || fieldName === void 0 ? void 0 : fieldName.replace(/\s/g, '');
this.addFormControl(element.formControl, '');
this.buUserShiftSetUpForm.controls[element.formControl].patchValue(element.value);
});
});
}
onEditBtn(event) {
this.buUserShiftSetUpForm.reset();
this.activateDisable = true;
this.isVisible = true;
this.isHeading = 'EDIT USER SHIFT WORK SETUP';
this.activeId = 2;
this.planBusiness = [];
this.userSkillset = [];
this.userSkillsetarray = [];
this.userService.getUserRoles().subscribe((res) => {
this.userRole = res['data']['roles'];
});
this.buService.getUserShiftEdit(event._id).subscribe((res) => {
var _a, _b, _c, _d;
this.userEdit = res['data']['data'];
this.userId = event._id;
this.buShiftIdScheme = res['data']['data']['parentBussinessUnitId']['_id'];
this.parentUnit = res['data']['data']['parentBussinessUnitId']['orgName'];
this.viewBusiness = res['data']['data']['viewBussinessUnitId'];
this.planBusiness = res['data']['data']['planBussinessUnitId'];
this.selectedRole = (_a = this.userEdit) === null || _a === void 0 ? void 0 : _a.role;
if (this.userEdit.subSkillSets.length !== 0 && this.tier == 2) {
for (let k = 0; this.userEdit.subSkillSets.length > k; k++) {
this.userSkillsetarray.push(this.userEdit.subSkillSets[k]._id);
this.userSkillset.push([
this.userEdit.subSkillSets[k].skillSetId.name,
this.userEdit.subSkillSets[k].name,
]);
}
}
else if (this.userEdit.mainSkillSets.length !== 0 && this.tier == 1) {
for (let k = 0; this.userEdit.mainSkillSets.length > k; k++) {
this.userSkillsetarray.push((_b = this.userEdit.mainSkillSets[k]) === null || _b === void 0 ? void 0 : _b._id);
this.userSkillset.push([(_c = this.userEdit.mainSkillSets[k]) === null || _c === void 0 ? void 0 : _c.name, '']);
}
}
if (this.userEdit.schemeId != null) {
this.schemeLabel = this.userEdit.schemeId.schemeName;
}
/* this.buService.getBusinessUnit().subscribe((res) => {
this.busiUnit = res['data']['data'];
for (let i = 0; this.busiUnit.length > i; i++) {
if (this.busiUnit[i]._id == this.userEdit.parentBussinessUnitId._id) {
this.parentUnit = this.busiUnit[i].businessUnit;
}
}
for (let i = 0; this.userEdit.planBussinessUnitId.length > i; i++) {
for (let j = 0; this.busiUnit.length > j; j++) {
if (
this.busiUnit[j]._id == this.userEdit.planBussinessUnitId[i]._id
) {
this.planBusiness.push(this.busiUnit[j].businessUnit);
}
}
}
this.viewBusiness = [];
for (let i = 0; this.userEdit.viewBussinessUnitId.length > i; i++) {
for (let j = 0; this.busiUnit.length > j; j++) {
if (
this.busiUnit[j]._id == this.userEdit.viewBussinessUnitId[i]._id
) {
this.viewBusiness.push(this.busiUnit[j].businessUnit);
}
}
}
});*/
this.buUserShiftSetUpForm.patchValue({
userName: this.userEdit.name,
staffId: this.userEdit.staffId,
appoinment: this.userEdit.appointmentId.name,
contactNum: this.userEdit.contactNumber,
userEmail: this.userEdit.email,
});
const userID = localStorage.getItem("flexicompanyId");
const result = userID.substring(1, userID.length - 1);
//id = userID
this.buService.getScheme(userID, '').subscribe((res) => {
this.schemeTable = res['data'];
});
this.customFields = res['data']['data'].otherFields;
(_d = this.customFields) === null || _d === void 0 ? void 0 : _d.forEach(element => {
var _a;
const fieldName = (_a = this.allCustomFieldsList.find(id => id._id === element.fieldId)) === null || _a === void 0 ? void 0 : _a.fieldName;
element['fieldLabel'] = fieldName;
element['formControl'] = fieldName === null || fieldName === void 0 ? void 0 : fieldName.replace(/\s/g, '');
this.addFormControl(element.formControl, '');
this.buUserShiftSetUpForm.controls[element.formControl].patchValue(element.value);
});
});
this.buUserShiftSetUpForm.controls.parentBusiness.disable();
this.buUserShiftSetUpForm.controls.planBusiness.disable();
this.buUserShiftSetUpForm.controls.viewBusiness.disable();
this.buUserShiftSetUpForm.controls.appoinment.disable();
//this.buUserShiftSetUpForm.controls.userRoles.disable();
this.buUserShiftSetUpForm.controls.mainSkillSets.enable();
this.buUserShiftSetUpForm.controls.subSkillSets.enable();
this.buUserShiftSetUpForm.controls.shiftScheme.enable();
this.buUserShiftSetUpForm.controls.userRoles.enable();
}
addFormControl(controlName, initialValue) {
this.buUserShiftSetUpForm.addControl(controlName, this.formBuilder.control(initialValue));
}
navigateToOverview() {
this.buUserShiftSetUpForm.reset();
this.activeId = 1;
}
}
UserShiftSetupComponent.ɵfac = function UserShiftSetupComponent_Factory(t) { return new (t || UserShiftSetupComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_6__["RoleService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_8__["CustomFieldService"])); };
UserShiftSetupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UserShiftSetupComponent, selectors: [["app-user-shift-setup"]], inputs: { isEditUserBu: "isEditUserBu" }, decls: 12, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], ["ngbNavLink", "", 1, "no-click"], [3, "ngbNavOutlet"], [3, "changeActiveUserBu", "changeActiveViewBu"], ["class", "d-flex justify-content-center flex-column loadingBox", 4, "ngIf"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [3, "formGroup"], [1, "custom", "p-3", "mb-3", 3, "ngClass"], [1, "row", "mb-2"], [1, "font-weight-bold", "red-heading", "col-md-3"], [1, "col-md-3"], ["bindLabel", "name", "formControlName", "parentBusiness", "placeholder", "Parent Business unit", "appendTo", "body", 1, "custom", "disabled", 3, "multiple", "searchable", "clearable", "closeOnSelect"], [1, "table", "table-borderless", "mt-3"], [1, "list-ui"], [1, "form-text-conteol"], ["bindLabel", "name", "formControlName", "planBusiness", "placeholder", "Business unit (Plan)", "appendTo", "body", 1, "custom", "disabled", 3, "multiple", "searchable", "closeOnSelect", "clearable"], ["class", "list-ui", 4, "ngFor", "ngForOf"], ["bindLabel", "name", "placeholder", "Business unit (view)", "appendTo", "body", "formControlName", "viewBusiness", 1, "custom", "disabled", 3, "multiple", "searchable", "closeOnSelect", "clearable"], [1, "col-md-3", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], ["disabled", "", "type", "text", "formControlName", "userName", "placeholder", " Name", "required", "", 1, "form-control", "disabled"], ["disabled", "", "type", "text", "formControlName", "staffId", "placeholder", "Staff ID", "required", "", 1, "form-control", "disabled"], ["bindLabel", "name", "formControlName", "appoinment", "placeholder", "Select Section", "appendTo", "body", 1, "custom", "disabled", 3, "disabled", "multiple", "searchable", "clearable", "closeOnSelect"], ["for", "exampleInputEmail1", 1, "form-bg"], ["disabled", "", "type", "text", "formControlName", "contactNum", "placeholder", "Contact Number", "required", "", 1, "form-control", "disabled"], ["type", "text", "formControlName", "userEmail", "disabled", "", "placeholder", "Email", 1, "form-control", "disabled"], ["class", "col-md-3", 4, "ngFor", "ngForOf"], [1, "row", "p-3"], [1, "font-weight-bold", "col-md-3", "red-heading"], [1, "custom", "p-3", "mb-3"], ["bindLabel", "name", "appendTo", "body", "formControlName", "userRoles", "placeholder", "Please select Role", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["class", "col-md-2 buttons mt-4", 4, "ngIf"], [1, "col-md-6"], [1, "mb-1"], ["class", "text-item list-ui", 4, "ngIf"], ["bindLabel", "name", "formControlName", "shiftScheme", "placeholder", "Please select Shift Scheme", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect"], [1, "col-md-4"], ["class", "closeAdd", 4, "ngIf"], ["bindLabel", "name", "formControlName", "mainSkillSets", "placeholder", "Please select Skillsets", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect", "change"], ["class", "col-md-3", 4, "ngIf"], [4, "ngIf"], [1, "card-footer"], [1, "d-flex"], ["type", "button", 1, "align-items-center", "btn", "btn-outline-dark", "d-flex", 3, "click"], [1, "material-icons", "mr-1"], ["class", "btn btn-lg btn-success ml-2", "type", "submit", 3, "disabled", "click", 4, "ngIf"], [1, "d-flex", "justify-content-center", "flex-column", "loadingBox"], [1, "align-self-center", "justify-content-center", "loader"], [1, "h4", "text-center", "text-dark", "mt-3", "mb-0"], [1, "h6", "text-center", "text-dark"], [1, "form-bg"], ["type", "text", "disabled", "", 1, "form-control", "disabled", 3, "formControlName"], [3, "value"], [1, "col-md-2", "buttons", "mt-4"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "text-item", "list-ui"], [1, "btn", "btn-clear", "p-2", "m-1"], [1, "closeAdd"], ["bindLabel", "name", "formControlName", "subSkillSets", "placeholder", "Please select Speciality", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "closeOnSelect", "clearable"], ["class", "text-item list-ui", 4, "ngFor", "ngForOf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", 3, "click"], ["type", "submit", 1, "btn", "btn-lg", "btn-success", "ml-2", 3, "disabled", "click"], ["class", "spinner-border ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "ml-1"]], template: function UserShiftSetupComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function UserShiftSetupComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, UserShiftSetupComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " USER SHIFT SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, UserShiftSetupComponent_ng_template_10_Template, 119, 55, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavOutlet"], _user_shift_setup_overview_user_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_10__["UserShiftSetupOverviewComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgClass"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__["ɵr"]], styles: [".no-click[_ngcontent-%COMP%] {\n pointer-events: none;\n}\n\n.not-allowed[_ngcontent-%COMP%] {\n cursor: not-allowed !important;\n}\n\n.disabled[_ngcontent-%COMP%] {\n background-color: #dcdada;\n cursor: not-allowed;\n}\n\n.ng-select.disabled[_ngcontent-%COMP%] .ng-select-container {\n background-color: #dcdada;\n cursor: not-allowed;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC91c2VyLXNoaWZ0LXNldHVwL3VzZXItc2hpZnQtc2V0dXAuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxvQkFBQTtBQUNGOztBQUVBO0VBQ0UsOEJBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFFQTtFQUNFLHNCQUFBO0FBQ0Y7O0FBQUU7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0FBRUo7O0FBQUk7RUFDRSxjQUFBO0FBRU47O0FBQ0k7RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBQ04iLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9vcGVyYXRpb25zL3NldHVwL3VzZXItc2hpZnQtc2V0dXAvdXNlci1zaGlmdC1zZXR1cC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uby1jbGljayB7XG4gIHBvaW50ZXItZXZlbnRzOiBub25lO1xufVxuXG4ubm90LWFsbG93ZWQge1xuICBjdXJzb3I6IG5vdC1hbGxvd2VkICFpbXBvcnRhbnQ7XG59XG5cbi5kaXNhYmxlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNkY2RhZGE7XG4gIGN1cnNvcjogbm90LWFsbG93ZWQ7XG59XG5cbi5uZy1zZWxlY3QuZGlzYWJsZWQgOjpuZy1kZWVwIC5uZy1zZWxlY3QtY29udGFpbmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2RjZGFkYTtcbiAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UserShiftSetupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-user-shift-setup',
templateUrl: './user-shift-setup.component.html',
styleUrls: ['./user-shift-setup.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__["SetupService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__["CompanySetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }, { type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_6__["RoleService"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__["ShiftSchedulerService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_8__["CustomFieldService"] }]; }, { isEditUserBu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "FCJK":
/*!********************************************************!*\
!*** ./src/app/shared/datePicker/format-datepicker.ts ***!
\********************************************************/
/*! exports provided: NgbDateCustomParserFormatter */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDateCustomParserFormatter", function() { return NgbDateCustomParserFormatter; });
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
function padNumber(value) {
if (!isNaN(value) && value !== null) {
return `0${value}`.slice(-2);
}
else {
return '';
}
}
class NgbDateCustomParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_0__["NgbDateParserFormatter"] {
parse(value) {
if (value) {
const dateParts = value.trim().split('/');
let dateObj = { day: null, month: null, year: null };
const dateLabels = Object.keys(dateObj);
dateParts.forEach((datePart, idx) => {
dateObj[dateLabels[idx]] = parseInt(datePart, 10) || null;
});
return dateObj;
}
return null;
}
static formatDate(date) {
return date ?
`${padNumber(date.day)}/${padNumber(date.month)}/${date.year || ''}` :
'';
}
format(date) {
return date ?
`${padNumber(date.day)}/${padNumber(date.month)}/${date.year || ''}` :
'';
}
}
NgbDateCustomParserFormatter.ɵfac = function NgbDateCustomParserFormatter_Factory(t) { return ɵNgbDateCustomParserFormatter_BaseFactory(t || NgbDateCustomParserFormatter); };
NgbDateCustomParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: NgbDateCustomParserFormatter, factory: NgbDateCustomParserFormatter.ɵfac });
const ɵNgbDateCustomParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetInheritedFactory"](NgbDateCustomParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NgbDateCustomParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
}], null, null); })();
/***/ }),
/***/ "FIzO":
/*!**********************************************************!*\
!*** ./src/app/shared/dynamic-fields/fields/checkbox.ts ***!
\**********************************************************/
/*! exports provided: CheckBoxComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxComponent", function() { return CheckBoxComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
function CheckBoxComponent_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const opt_r1 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControlName", opt_r1.key);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", opt_r1.label, "");
} }
class CheckBoxComponent {
constructor() {
this.field = {};
}
get isValid() { return this.form.controls[this.field.name].valid; }
get isDirty() { return this.form.controls[this.field.name].dirty; }
}
CheckBoxComponent.ɵfac = function CheckBoxComponent_Factory(t) { return new (t || CheckBoxComponent)(); };
CheckBoxComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CheckBoxComponent, selectors: [["checkbox"]], inputs: { field: "field", form: "form" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["class", "form-check form-check", 4, "ngFor", "ngForOf"], [1, "form-check", "form-check"], [1, "form-check-label"], ["type", "checkbox", "id", "inlineCheckbox1", "value", "option1", 1, "form-check-input", 3, "formControlName"]], template: function CheckBoxComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CheckBoxComponent_div_1_Template, 4, 2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.field.options);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CheckBoxComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'checkbox',
template: `
`
}]
}], null, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "FU8Z":
/*!********************************************************************!*\
!*** ./src/app/users/pages/notification/notification.component.ts ***!
\********************************************************************/
/*! exports provided: NotificationComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationComponent", function() { return NotificationComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _schedule_schedule_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./schedule/schedule.component */ "dvcu");
/* harmony import */ var _pushed_pushed_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./pushed/pushed.component */ "o1st");
/* harmony import */ var _create_create_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./create/create.component */ "5JNx");
const _c0 = ["sidemenu"];
function NotificationComponent_div_0_ng_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r4.orgName, " ");
} }
function NotificationComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "form", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function NotificationComponent_div_0_Template_ng_select_search_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r5.onSeachPlanBuUnit($event); })("scrollToEnd", function NotificationComponent_div_0_Template_ng_select_scrollToEnd_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r7.loadMorePlasnBuUnitItems($event); })("clear", function NotificationComponent_div_0_Template_ng_select_clear_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onClearPlanBuUnitDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, NotificationComponent_div_0_ng_option_7_Template, 2, 2, "ng-option", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NotificationComponent_div_0_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r9.onCloseDrawer(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NotificationComponent_div_0_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onClickView(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r0.viewNotification);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("closeOnSelect", true)("clearable", true)("loading", ctx_r0.planBuUnitDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.planBuUnitDropDown);
} }
function NotificationComponent_div_1_div_13_Template(rf, ctx) { if (rf & 1) {
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-schedule", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("scheduleView", function NotificationComponent_div_1_div_13_Template_app_schedule_scheduleView_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r14.viewSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("buId", ctx_r11.buId);
} }
function NotificationComponent_div_1_div_14_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-pushed", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pushView", function NotificationComponent_div_1_div_14_Template_app_pushed_pushView_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r16.viewSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("buId", ctx_r12.buId);
} }
function NotificationComponent_div_1_div_15_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-create", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("$selectedOption", function NotificationComponent_div_1_div_15_Template_app_create__selectedOption_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r18.changeOption($event, "api"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("buId", ctx_r13.buId)("notiData", ctx_r13.notiData);
} }
function NotificationComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ul", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function NotificationComponent_div_1_Template_ul_activeIdChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.active = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NotificationComponent_div_1_Template_li_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.changeOption("create"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NotificationComponent_div_1_Template_li_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.changeOption("schedule"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "SCHEDULED");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NotificationComponent_div_1_Template_li_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r24.changeOption("push"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "PUSHED");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, NotificationComponent_div_1_div_13_Template, 2, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, NotificationComponent_div_1_div_14_Template, 2, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, NotificationComponent_div_1_div_15_Template, 2, 2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx_r1.active);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r1.navBar);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.selectedOption === "schedule");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.selectedOption === "push");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.selectedOption === "create");
} }
class NotificationComponent {
constructor(route, formBuilder, renderer, buUnit, toastService) {
this.route = route;
this.formBuilder = formBuilder;
this.renderer = renderer;
this.buUnit = buUnit;
this.toastService = toastService;
this.notiData = null;
this.selectedOption = 'create';
this.navBar = 'CREATE';
this.isNotificationEndabled = false;
this.planBuUnitDropDown = [];
this.isLoading = false;
this.active = 1;
this.bussinesUnitplanPTable = {
sortBy: 'createdAt',
sortWith: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
this.viewNotification = this.formBuilder.group({
bussinessUnit: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
}
ngOnInit() {
// this.buId = this.route.snapshot.paramMap.get('buId');
this.loadBussinessPlanUnit();
}
ngAfterViewInit() {
if (!this.isNotificationEndabled) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
changeOption(option, from = 'other') {
if (from === 'api') {
if (option === 'schedule') {
this.active = 2;
// this.scheduleListChild.render();
}
else {
this.active = 3;
// this.pushListChild.render();
}
// this.pushListChild.getPushList();
}
if (option === 'schedule') {
this.navBar = 'CREATE';
this.active = 2;
}
else if (option === 'push') {
this.active = 3;
this.navBar = 'CREATE';
}
else {
this.active = 1;
this.notiData = null;
}
this.selectedOption = option;
}
viewSchedule(notificationData) {
if (notificationData.isView) {
this.navBar = 'VIEW';
}
else {
this.navBar = 'EDIT';
}
this.selectedOption = 'create';
this.active = 1;
this.notiData = notificationData;
// this.createNotification.populateDetails(
// notificationData.notificationId,
// notificationData.isView
// );
}
addParentBussinentUnit(value) {
this.viewNotification.patchValue({
bussinessUnit: {
string: value.businessUnit,
_id: value._id,
},
});
}
deleteparentBussinesUnit() {
this.viewNotification.patchValue({
bussinessUnit: null,
});
}
onSeachPlanBuUnit(value) {
this.bussinesUnitplanPTable.limit = 10;
this.bussinesUnitplanPTable.search = value.term;
this.loadBussinessPlanUnit();
}
loadMorePlasnBuUnitItems(value) {
this.bussinesUnitplanPTable.limit = this.bussinesUnitplanPTable.limit + 10;
this.loadBussinessPlanUnit();
}
onClearPlanBuUnitDropdown(value) {
if (value === undefined) {
this.viewNotification.patchValue({
bussinessUnit: null,
});
this.bussinesUnitplanPTable.search = '';
this.loadBussinessPlanUnit();
this.planBuUnitDropDown = [];
this.bussinesUnitplanPTable.data = [];
}
}
loadBussinessPlanUnit() {
this.planBuUnitDropDownLoading = true;
const _a = this.bussinesUnitplanPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.buUnit
.getBussinesUnit(rest, true)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.planBuUnitDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, businessUnitList } = response;
this.bussinesUnitplanPTable.data = businessUnitList;
this.planBuUnitDropDown = businessUnitList;
}, (error) => {
this.bussinesUnitplanPTable.data = [];
this.toastService.error('No list found');
});
}
overview() {
this.buId = null;
this.selectedOption = '';
this.active = 1;
this.viewNotification = this.formBuilder.group({
bussinessUnit: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.isNotificationEndabled = false;
}
onClickView() {
if (!this.viewNotification.valid) {
this.toastService.error('No list found');
return;
}
this.isLoading = true;
const { _id } = this.viewNotification.get('bussinessUnit').value;
this.buId = _id;
this.selectedOption = 'create';
this.active = 1;
this.isNotificationEndabled = true;
this.isLoading = false;
}
onCloseDrawer() {
this.isNotificationEndabled = true;
}
}
NotificationComponent.ɵfac = function NotificationComponent_Factory(t) { return new (t || NotificationComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_5__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"])); };
NotificationComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: NotificationComponent, selectors: [["app-notification"]], viewQuery: function NotificationComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
} }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], [4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "d-block", "mb-2", "text-center"], ["action", "", 3, "formGroup"], ["bindLabel", "businessUnit", "placeholder", "Bussiness unit (Plan)", "appendTo", "body", "formControlName", "bussinessUnit", 1, "custom", 3, "multiple", "searchable", "closeOnSelect", "clearable", "loading", "search", "scrollToEnd", "clear"], [3, "value", 4, "ngFor", "ngForOf"], [1, "margin", "buttons"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"], [1, "btn", "btn-primary", "p-2", "m-1", 3, "click"], [3, "value"], [1, "d-flex", "flex-column"], [1, "my-4"], ["ngbNav", "", 1, "nav-tabs", 3, "activeId", "activeIdChange"], [3, "ngbNavItem", "click"], ["ngbNavLink", ""], [3, "buId", "scheduleView"], [3, "buId", "pushView"], [3, "buId", "notiData", "$selectedOption"]], template: function NotificationComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, NotificationComponent_div_0_Template, 13, 7, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, NotificationComponent_div_1_Template, 16, 8, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isNotificationEndabled);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isNotificationEndabled);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavLink"], _schedule_schedule_component__WEBPACK_IMPORTED_MODULE_11__["ScheduleComponent"], _pushed_pushed_component__WEBPACK_IMPORTED_MODULE_12__["PushedComponent"], _create_create_component__WEBPACK_IMPORTED_MODULE_13__["CreateComponent"]], styles: [".dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #ffffff;\n text-transform: uppercase;\n font-size: 13px;\n font-weight: 500;\n letter-spacing: 0.5px;\n padding: 20px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] {\n padding: 15px 0;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n padding: 10px 20px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading.editHeader[_ngcontent-%COMP%] {\n background-color: #842b3a;\n}\n\n.dashboardPanelCon.userTable.viewUserSection[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] {\n padding-top: 0;\n}\n\n.dashboardPanelCon.userTable.viewUserSection[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .collapseWrapper[_ngcontent-%COMP%] button.closePlane[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #fff;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .customFieldList[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n padding: 10px 20px !important;\n}\n\n.btn-clear[_ngcontent-%COMP%] {\n background-color: #ec3636;\n border-color: #d43f3a;\n}\n\n.btn[_ngcontent-%COMP%] {\n text-transform: uppercase;\n font-size: 12px;\n width: 80px;\n height: 32px;\n font-weight: 500;\n color: #fff;\n}\n\n.margin[_ngcontent-%COMP%] {\n margin: 20px;\n}\n\n.buttons[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvbm90aWZpY2F0aW9uL25vdGlmaWNhdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHlCQUFBO0VBQ0EsY0FBQTtFQUNBLHlCQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EscUJBQUE7RUFDQSxhQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxlQUFBO0FBRUY7O0FBQ0E7RUFDRSxrQkFBQTtBQUVGOztBQUFBO0VBQ0UseUJBQUE7QUFHRjs7QUFEQTtFQUNFLGNBQUE7QUFJRjs7QUFGQTtFQUNFLGtCQUFBO0FBS0Y7O0FBSEE7RUFDRSxXQUFBO0FBTUY7O0FBSkE7RUFDRSw2QkFBQTtBQU9GOztBQUpBO0VBQ0kseUJBQUE7RUFDQSxxQkFBQTtBQU9KOztBQUpBO0VBQ0kseUJBQUE7RUFDQSxlQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLFdBQUE7QUFPSjs7QUFMQTtFQUNJLFlBQUE7QUFRSjs7QUFMQTtFQUNJLGFBQUE7RUFDQSx1QkFBQTtBQVFKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvbm90aWZpY2F0aW9uL25vdGlmaWNhdGlvbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5kYXNoYm9hcmRQYW5lbENvbiAucGFuZWwgLnBhbmVsLWhlYWRpbmcge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZmZmZjtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBsZXR0ZXItc3BhY2luZzogMC41cHg7XG4gIHBhZGRpbmc6IDIwcHg7XG59XG4uZGFzaGJvYXJkUGFuZWxDb24gLnBhbmVsIC5wYW5lbC1ib2R5IHtcbiAgcGFkZGluZzogMTVweCAwO1xufVxuXG4uZGFzaGJvYXJkUGFuZWxDb24gLnBhbmVsLWJvZHkgLnBhbmVsLWhlYWRpbmcge1xuICBwYWRkaW5nOiAxMHB4IDIwcHg7XG59XG4uZGFzaGJvYXJkUGFuZWxDb24gLnBhbmVsIC5wYW5lbC1oZWFkaW5nLmVkaXRIZWFkZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2IoMTMyLCA0MywgNTgpO1xufVxuLmRhc2hib2FyZFBhbmVsQ29uLnVzZXJUYWJsZS52aWV3VXNlclNlY3Rpb24gLnBhbmVsLWJvZHkge1xuICBwYWRkaW5nLXRvcDogMDtcbn1cbi5kYXNoYm9hcmRQYW5lbENvbi51c2VyVGFibGUudmlld1VzZXJTZWN0aW9uIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuLmRhc2hib2FyZFBhbmVsQ29uIC5jb2xsYXBzZVdyYXBwZXIgYnV0dG9uLmNsb3NlUGxhbmUgaSB7XG4gIGNvbG9yOiAjZmZmO1xufVxuLmRhc2hib2FyZFBhbmVsQ29uIC5jdXN0b21GaWVsZExpc3QgLnBhbmVsIC5wYW5lbC1oZWFkaW5nIHtcbiAgcGFkZGluZzogMTBweCAyMHB4ICFpbXBvcnRhbnQ7XG59XG5cbi5idG4tY2xlYXIge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNlYzM2MzY7XG4gICAgYm9yZGVyLWNvbG9yOiAjZDQzZjNhO1xufVxuXG4uYnRuIHtcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgICB3aWR0aDogODBweDtcbiAgICBoZWlnaHQ6IDMycHg7XG4gICAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgICBjb2xvcjogI2ZmZjtcbn1cbi5tYXJnaW4ge1xuICAgIG1hcmdpbjogMjBweDtcbn1cblxuLmJ1dHRvbnMge1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NotificationComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-notification',
templateUrl: './notification.component.html',
styleUrls: ['./notification.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"] }, { type: _service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_5__["BussinessUnitService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }]; }, { sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['sidemenu']
}] }); })();
/***/ }),
/***/ "Fc54":
/*!**************************************************************************************************!*\
!*** ./src/app/users/pages/communication/board-setup/reported-posts/reported-posts.component.ts ***!
\**************************************************************************************************/
/*! exports provided: ReportedPostsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReportedPostsComponent", function() { return ReportedPostsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/board-setup/board-setup.service */ "UtxO");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function ReportedPostsComponent_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ReportedPostsComponent_table_24_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ReportedPostsComponent_table_24_tr_14_Template_input_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5); const item_r3 = ctx.$implicit; const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r4.changePostStatus(item_r3._id, item_r3.status); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3 == null ? null : item_r3.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.wallId.wallName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3.userList[0].createdAt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.userList[0].userId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r3.status === 1 ? "checked" : "");
} }
function ReportedPostsComponent_table_24_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedPostsComponent_table_24_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r6.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Post Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedPostsComponent_table_24_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event, "wallName"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Social Wall ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedPostsComponent_table_24_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r9.onSortUsers($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Reported Date/Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ReportedPostsComponent_table_24_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " User Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ReportedPostsComponent_table_24_tr_14_Template, 13, 5, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class ReportedPostsComponent {
constructor(boardService, toastService, storageService, formBuilder) {
this.boardService = boardService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.isTableLoading = true;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = field;
this.usersPTable.sortBy = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
loadUsers() {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.boardService
.getAllReportedPosts(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, data } = response;
this.usersPTable.data = data;
this.usersPTable.total = recordsTotal;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
changePostStatus(id, status) {
const data = status == 1 ? 2 : 1;
const subscribe = this.boardService
.updateReportedPost(id, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success('Data updated Successfully');
this.loadUsers();
}, (error) => {
this.toastService.error('Error Found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
ReportedPostsComponent.ɵfac = function ReportedPostsComponent_Factory(t) { return new (t || ReportedPostsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_5__["BoardSetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"])); };
ReportedPostsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ReportedPostsComponent, selectors: [["app-reported-posts"]], viewQuery: function ReportedPostsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 31, vars: 16, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "switch"], ["type", "checkbox", 3, "checked", "click"], [1, "slider", "round"]], template: function ReportedPostsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ReportedPostsComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function ReportedPostsComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, ReportedPostsComponent_span_21_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ReportedPostsComponent_Template_input_search_22_listener() { return ctx.loadUsers(); })("keyup", function ReportedPostsComponent_Template_input_keyup_22_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function ReportedPostsComponent_Template_input_ngModelChange_22_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, ReportedPostsComponent_table_24_Template, 15, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ReportedPostsComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function ReportedPostsComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 3)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ib2FyZC1zZXR1cC9yZXBvcnRlZC1wb3N0cy9yZXBvcnRlZC1wb3N0cy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHFCQUFBO0VBQ0EsVUFBQTtBQUNGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ib2FyZC1zZXR1cC9yZXBvcnRlZC1wb3N0cy9yZXBvcnRlZC1wb3N0cy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbInVse1xuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ReportedPostsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-reported-posts',
templateUrl: './reported-posts.component.html',
styleUrls: ['./reported-posts.component.scss']
}]
}], function () { return [{ type: src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_5__["BoardSetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "Frqi":
/*!*****************************************************!*\
!*** ./src/app/shared/loading/loading.component.ts ***!
\*****************************************************/
/*! exports provided: LoadingComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoadingComponent", function() { return LoadingComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
function LoadingComponent_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.message, " ");
} }
class LoadingComponent {
constructor() {
this.isLoading = false;
this.message = 'Loading data, please wait...';
}
}
LoadingComponent.ɵfac = function LoadingComponent_Factory(t) { return new (t || LoadingComponent)(); };
LoadingComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LoadingComponent, selectors: [["app-loading"]], inputs: { isLoading: "isLoading", message: "message" }, decls: 1, vars: 1, consts: [["class", "loader", 4, "ngIf"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin"]], template: function LoadingComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, LoadingComponent_div_0_Template, 5, 1, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLoading);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LoadingComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-loading',
template: `
`,
}]
}], null, { isLoading: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], message: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "FyBb":
/*!***********************************************************!*\
!*** ./src/app/users/service/operations/setup.service.ts ***!
\***********************************************************/
/*! exports provided: SetupService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SetupService", function() { return SetupService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class SetupService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].baseUrl;
this.serviceModuleBaseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].serviceModuleBaseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getBuShiftSetUpData(data) {
return this.http.post(`${this.baseUrl}/business-unit/read/new`, { isWebsite: '1' }, {
headers: this.Headers,
});
}
getBussinesUnit(data) {
return this.http.get(`${this.baseUrl}/business-unit/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__["queryParam"])(data)}`, {
headers: this.Headers,
});
}
getDepartments({ page, limit, search, sort }) {
return this.http.get(`${this.baseUrl}/businessunit`, {
headers: this.Headers,
params: { page, limit, search, sortWith: sort.key, sortBy: sort.order },
});
}
getSection({ page, limit, search, sort }, departmentId) {
return this.http.get(`${this.baseUrl}/business-unit/${departmentId}/section/`, {
headers: this.Headers,
params: { page, limit, search, sortWith: sort.key, sortBy: sort.order },
});
}
getSubsection({ page, limit, search, sort }, sectionId) {
return this.http.get(`${this.baseUrl}/business-unit/${sectionId}/sub-section/`, {
headers: this.Headers,
params: { page, limit, search, sortWith: sort.key, sortBy: sort.order },
});
}
getBusinessUnits({ page, limit, search, sortWith, sortBy }) {
return this.http.get(`${this.baseUrl}/business-unit`, {
headers: this.Headers,
params: { page, limit, search, sortWith, sortBy },
});
}
getBusinessUnit() {
return this.http.get(`${this.baseUrl}/business-unit`, {
headers: this.Headers,
});
}
getBusinessUnitBUShift() {
return this.http.get(`${this.baseUrl}/opsgroup/planbu`, {
headers: this.Headers,
});
}
getOPSGroupAndTeam(buId) {
return this.http.get(`${this.baseUrl}/ballot/getballotcalender1/${buId}`, {
headers: this.Headers,
});
}
getSkillset(businessUnitId) {
const data = { "businessUnitId": businessUnitId };
return this.http.post(`${this.baseUrl}/businessunit/skillsetsandlocations`, data, {
headers: this.Headers,
});
}
getSkillSpeciality(data) {
return this.http.post(`${this.baseUrl}/subskillset/read`, data, {
headers: this.Headers,
});
}
//repotinglocation/read
getReportingLocation() {
return this.http.post(`${this.baseUrl}/repotinglocation/read`, {
headers: this.Headers,
});
}
//appointment/read
getAppointment() {
return this.http.post(`${this.baseUrl}/appointment/read`, {
headers: this.Headers,
});
}
getSkillSet() {
return this.http.post(`${this.baseUrl}/skillset/read`, {
headers: this.Headers,
});
}
getSubSkillSet() {
return this.http.post(`${this.baseUrl}/subskillset/read`, {
headers: this.Headers,
});
}
getRepoLocations(businessunit) {
const data = { "businessUnitId": businessunit };
return this.http.post(`${this.baseUrl}/businessunit/skillsetsandlocations`, data, {
headers: this.Headers,
});
}
getGeoRepoLocations(businessunit) {
const data = { "businessUnitId": businessunit };
return this.http.get(`${this.baseUrl}/businessunit/${businessunit}/geolocation`, {
headers: this.Headers,
});
}
getBuShiftDetails(query) {
const data = {
"isWebsite": "1"
};
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]();
if (query.search) {
params = params.set('search', query.search);
}
return this.http.post(`${this.baseUrl}/businessunit/read/new`, data, {
headers: this.Headers,
params: params
});
}
// service setup get details
getServiceSetupDetails(query) {
const params = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__["generateHttpParams"])(query);
return this.http.get(`${this.serviceModuleBaseUrl}/api/serviceSetup/read`, {
headers: this.Headers,
params: params,
});
}
getSingleServiceSetup(id, timezone) {
return this.http.get(`${this.serviceModuleBaseUrl}/api/serviceSetup/readSingleService/${id}`, {
headers: this.Headers,
params: { timezone },
});
}
getServiceType(query) {
const params = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__["generateHttpParams"])(query);
return this.http.get(`${this.serviceModuleBaseUrl}/api/serviceSetup/serviceTypeNames`, {
headers: this.Headers,
params,
});
}
getServicesAndWeeks(query, serviceType) {
const params = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__["generateHttpParams"])(query);
return this.http.post(`${this.serviceModuleBaseUrl}/api/serviceSetup/serviceNamesAndWeeks`, { serviceType }, {
headers: this.Headers,
params
});
}
getServiceTemplates(query, serviceSetupId) {
const params = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__["generateHttpParams"])(query);
return this.http.post(`${this.serviceModuleBaseUrl}/api/planService/templateRead`, { serviceSetupId }, {
headers: this.Headers,
params,
});
}
getAllServices(payload) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/service/serviceRead`, payload, {
headers: this.Headers,
});
}
createTemplate(payload) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/planService/templateCreate`, payload, {
headers: this.Headers,
});
}
updateTemplate(payload) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/planService/templateUpdate`, payload, {
headers: this.Headers,
});
}
deleteTemplate(templateId) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/planService/templateDelete/${templateId}`, {
headers: this.Headers,
});
}
getGeoLocations(id) {
return this.http.get(`${this.baseUrl}/bu-shift/${id}/geoLocation`, {
headers: this.Headers,
});
}
getBuShiftName({ page, limit, search, sortWith, sortBy }) {
return this.http.get(`${this.baseUrl}/businessunit/planBU/addedShiftSetup`, {
headers: this.Headers,
params: { page, limit, search, sortWith, sortBy },
});
}
getAllBuShiftModule() {
return this.http.get(`${this.baseUrl}/businessunit/planBU/addedShiftSetup`, {
headers: this.Headers,
});
}
getBuShiftEdit(id) {
const payload = {
"businessUnitId": id
};
return this.http.post(`${this.baseUrl}/businessunit/read/singlebu`, payload, {
headers: this.Headers,
});
}
//businessunit/setting/
getBuShiftGeoLocation(id) {
return this.http.get(`${this.baseUrl}/businessunit/setting/${id}`, {
headers: this.Headers,
});
}
getUserShift(data) {
const vl = { draw: 2 };
return this.http.get(`${this.baseUrl}/companyuser/editList?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__["queryParam"])(data)}`,
//`${this.baseUrl}/user-shiftsetup?${queryParam(data)}`,
{
headers: this.Headers,
});
}
getUserShiftEdit(id) {
const data = {
"userId": id
};
return this.http.post(`${this.baseUrl}/companyUser/read/single`, data, {
headers: this.Headers,
});
}
getBuSetting(id) {
return this.http.get(`${this.baseUrl}/bu-shift/setting/${id}`, {
headers: this.Headers,
});
}
getAdmin() {
return this.http.get(`${this.baseUrl}/scheme/admin/`, {
headers: this.Headers,
});
}
getAdminWithfilter() {
return this.http.get(`${this.baseUrl}/leavegroup/bu/adminlist`, {
headers: this.Headers,
});
}
getScheme(id, data) {
return this.http.get(`${this.baseUrl}/scheme/${id}`, {
headers: this.Headers,
});
}
getSingleScheme(id) {
return this.http.get(`${this.baseUrl}/scheme/single/${id}`, {
headers: this.Headers,
});
}
deleteSingleScheme(data) {
return this.http.post(`${this.baseUrl}/scheme/delete`, data, {
headers: this.Headers,
});
}
createSkillSet(name) {
return this.http.post(`${this.baseUrl}/skillset/create`, name, {
headers: this.Headers,
});
}
createSpeciality(name) {
return this.http.post(`${this.baseUrl}/subskillset/create`, { name: name.name, skillSetId: name.skillSetId._id, status: "1" }, {
headers: this.Headers,
});
}
createLocations(name) {
return this.http.post(`${this.baseUrl}/repotinglocation/create`, name, {
headers: this.Headers,
});
}
updateLocations(payload) {
return this.http.post(`${this.baseUrl}/repotinglocation/update`, payload, {
headers: this.Headers,
});
}
saveBuSetup(data) {
return this.http.post(`${this.baseUrl}/businessunit/updateBuShiftScheme`, data, {
headers: this.Headers,
});
}
updateUserShift(data) {
return this.http.post(`${this.baseUrl}/companyuser/update`, data, {
headers: this.Headers,
});
}
updateScheme(data) {
return this.http.post(`${this.baseUrl}/scheme/update`, data, {
headers: this.Headers,
});
}
createDepartment(department) {
return this.http.post(`${this.baseUrl}/business-unit/department/`, department, {
headers: this.Headers,
});
}
createSchemeShift(data) {
return this.http.post(`${this.baseUrl}/scheme`, data, {
headers: this.Headers,
});
}
updateDepartment(department, deptID) {
return this.http.put(`${this.baseUrl}/business-unit/department/${deptID}`, department, {
headers: this.Headers,
});
}
deleteDepartment(deptID) {
return this.http.delete(`${this.baseUrl}/business-unit/department/${deptID}`, {
headers: this.Headers,
});
}
createSection(section, departmentId) {
return this.http.post(`${this.baseUrl}/business-unit/${departmentId}/section/`, section, {
headers: this.Headers,
});
}
updateSection(section, departmentId, sectionID) {
return this.http.put(`${this.baseUrl}/business-unit/${departmentId}/section/${sectionID}`, section, {
headers: this.Headers,
});
}
deleteSection(id, departmentId) {
return this.http.delete(`${this.baseUrl}/business-unit/${departmentId}/section/${id}`, {
headers: this.Headers,
});
}
createSubsection(subsection, sectionId) {
return this.http.post(`${this.baseUrl}/business-unit/${sectionId}/sub-section/`, subsection, {
headers: this.Headers,
});
}
updateSubsection(subsectionId, sectionId, data) {
return this.http.put(`${this.baseUrl}/business-unit/${sectionId}/sub-section/${subsectionId}`, data, {
headers: this.Headers,
});
}
deleteSubsection(subsectionId, sectionId) {
return this.http.delete(`${this.baseUrl}/business-unit/${sectionId}/sub-section/${subsectionId}`, {
headers: this.Headers,
});
}
updateSkillSet(data) {
return this.http.post(`${this.baseUrl}/skillset/update`, data, {
headers: this.Headers,
});
}
deleteSkillSet(data) {
return this.http.post(`${this.baseUrl}/skillset/delete`, data, {
headers: this.Headers,
});
}
updateSpeciality(data) {
return this.http.post(`${this.baseUrl}/subskillset/update`, data, {
headers: this.Headers,
});
}
deleteSpeciality(data) {
return this.http.post(`${this.baseUrl}/subskillset/delete`, data, {
headers: this.Headers,
});
}
schemeUserLog(data) {
return this.http.post(`${this.baseUrl}/scheme/userlog`, data, {
headers: this.Headers,
});
}
getTierType(id) {
return this.http.get(`${this.baseUrl}/ballot/setting/${id}`, {
headers: this.Headers,
});
}
// save service setup data
saveServiceSetup(data) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/serviceSetup/create`, data, {
headers: this.Headers,
});
}
updateServiceSetup(id, data) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/serviceSetup/update/${id}`, data, {
headers: this.Headers,
});
}
getServiceLogs(payload) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/manageService/readServiceLogs`, payload, {
headers: this.Headers,
});
}
cancelServiceBooking(payload) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/service/adminCancelBookings`, payload, {
headers: this.Headers,
});
}
createServices(payload) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/service/serviceCreate`, payload, {
headers: this.Headers,
});
}
cancelService(serviceId) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/service/cancelService`, { serviceId }, {
headers: this.Headers,
});
}
adjustService(payload) {
return this.http.post(`${this.serviceModuleBaseUrl}/api/service/adjust`, payload, {
headers: this.Headers,
});
}
}
SetupService.ɵfac = function SetupService_Factory(t) { return new (t || SetupService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
SetupService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: SetupService, factory: SetupService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](SetupService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "G/06":
/*!**************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/admin-form-logs/admin-form-logs.ts ***!
\**************************************************************************************************/
/*! exports provided: AdminFormLogsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminFormLogsComponent", function() { return AdminFormLogsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function AdminFormLogsComponent_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AdminFormLogsComponent_tbody_42_tr_1_td_10_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AdminFormLogsComponent_tbody_42_tr_1_td_10_Template_td_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const item_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r7.downloadLogFile(item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Download");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AdminFormLogsComponent_tbody_42_tr_1_td_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "td");
} }
function AdminFormLogsComponent_tbody_42_tr_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AdminFormLogsComponent_tbody_42_tr_1_td_10_Template, 3, 0, "td", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, AdminFormLogsComponent_tbody_42_tr_1_td_11_Template, 1, 0, "td", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 6, item_r4.createdAt, "medium"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.totalFailed + item_r4.totalSuccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.totalFailed ? item_r4.totalFailed : "-");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r4.totalFailed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r4.totalFailed);
} }
function AdminFormLogsComponent_tbody_42_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AdminFormLogsComponent_tbody_42_tr_1_Template, 12, 9, "tr", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function AdminFormLogsComponent_ngx_skeleton_loader_43_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 34);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
class AdminFormLogsComponent {
constructor(customformService, toastService) {
this.customformService = customformService;
this.toastService = toastService;
this.customFormId = null;
this.formName = null;
this.isTableLoading = false;
this.openManage = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.isLoader = false;
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.usersPTable.search = input;
this.loadFormLog();
});
}
onSortUsers({ column, direction }) {
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortBy = direction || 'desc';
this.usersPTable.sortWith = column;
this.usersPTable.page = 1;
this.loadFormLog();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadFormLog();
}
downloadLogFile(logItem) {
this.isLoader = true;
this.customformService
.downloadLogError({ logId: logItem._id, customFormId: this.customFormId })
.subscribe((data) => {
this.downloadFile(data.fileURL, `${this.formName}_${new Date().getUTCSeconds()}.csv`);
this.isLoader = false;
this.toastService.success('File downloaded successfully');
}, (error) => {
this.isLoader = false;
this.toastService.error('There is some error in file download. Try again');
});
}
downloadFile(url, fileName) {
fetch(url)
.then(response => response.blob())
.then(blob => {
// Create a new URL for the blob
const downloadUrl = window.URL.createObjectURL(blob);
// Create a new anchor element
const anchor = document.createElement('a');
// Set the href attribute to the blob URL
anchor.href = downloadUrl;
// Set the download attribute to suggest a filename for the downloaded file
anchor.download = fileName;
// Append the anchor element to the document body
document.body.appendChild(anchor);
// Programmatically click the anchor to trigger the download
anchor.click();
// Clean up by revoking the object URL and removing the anchor
window.URL.revokeObjectURL(downloadUrl);
document.body.removeChild(anchor);
})
.catch(error => console.error('Error downloading the file:', error));
}
onLimitChangeUsers() {
this.usersPTable.page = 1;
this.loadFormLog();
}
ngOnInit() {
console.log('customFormId', this.customFormId, this.formName);
this.loadFormLog();
}
loadFormLog() {
this.isLoader = true;
const query = {
page: this.usersPTable.page,
limit: this.usersPTable.limit,
search: this.usersPTable.search,
sortBy: this.usersPTable.sortBy,
sortWith: this.usersPTable.sortWith,
};
console.log(this.usersPTable, query);
const subscribe = this.customformService
.getIndentLogs(query, this.customFormId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b;
console.log('response.data', response.data);
this.usersPTable.data = (_a = response.data) === null || _a === void 0 ? void 0 : _a.data;
this.usersPTable.total = (_b = response.data) === null || _b === void 0 ? void 0 : _b.total;
this.isLoader = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
this.isLoader = false;
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
goToManage() {
this.openManage.emit(true);
}
}
AdminFormLogsComponent.ɵfac = function AdminFormLogsComponent_Factory(t) { return new (t || AdminFormLogsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_4__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
AdminFormLogsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AdminFormLogsComponent, selectors: [["admin-form-logs"]], viewQuery: function AdminFormLogsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { customFormId: "customFormId", formName: "formName" }, outputs: { openManage: "openManage" }, decls: 49, vars: 16, consts: [[1, "card"], ["style", "position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1050;background-color: rgba(0, 0, 0, 0.5);overflow: auto;", 4, "ngIf"], [1, "card-header", "flexi-header", "my-2", "ps-4"], [1, "card-header", "flexi-header", "p-4"], [1, "btn", "btn-warning", "pull-right", 2, "color", "ivory", 3, "click"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0", 2, "width", "40%", "flex-direction", "row-reverse"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 2, "width", "70%", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "createdAt", 3, "sort"], ["scope", "col", "sortable", "staffId", 3, "sort"], ["scope", "col", "sortable", "totalSuccess", 3, "sort"], ["scope", "col", "sortable", "totalFailed", 3, "sort"], ["scope", "col"], [4, "ngIf"], ["count", "6", 3, "theme", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "700%"], [1, "innerDiv", 2, "position", "absolute", "top", "50%", "left", "50%"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [4, "ngFor", "ngForOf"], [3, "click", 4, "ngIf"], [3, "click"], [1, "link-style"], ["count", "6", 3, "theme"]], template: function AdminFormLogsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AdminFormLogsComponent_div_1_Template, 4, 0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " FORM LOGS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AdminFormLogsComponent_Template_button_click_8_listener() { return ctx.goToManage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "select", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function AdminFormLogsComponent_Template_select_change_15_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function AdminFormLogsComponent_Template_select_ngModelChange_15_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function AdminFormLogsComponent_Template_input_search_27_listener($event) { return ctx.userssearchInput.next($event); })("keyup", function AdminFormLogsComponent_Template_input_keyup_27_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function AdminFormLogsComponent_Template_input_ngModelChange_27_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function AdminFormLogsComponent_Template_th_sort_32_listener($event) { return ctx.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " Date/Time Submitted ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function AdminFormLogsComponent_Template_th_sort_34_listener($event) { return ctx.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, " By Staff Id ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function AdminFormLogsComponent_Template_th_sort_36_listener($event) { return ctx.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, " Submitted Count ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function AdminFormLogsComponent_Template_th_sort_38_listener($event) { return ctx.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " Failed Count ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Error File Path");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](42, AdminFormLogsComponent_tbody_42_Template, 2, 1, "tbody", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](43, AdminFormLogsComponent_ngx_skeleton_loader_43_Template, 1, 2, "ngx-skeleton-loader", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "ngb-pagination", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function AdminFormLogsComponent_Template_ngb_pagination_pageChange_48_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function AdminFormLogsComponent_Template_ngb_pagination_pageChange_48_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.formName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total Records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["DefaultValueAccessor"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbPagination"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_10__["NgxSkeletonLoaderComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DatePipe"]], styles: [".container[_ngcontent-%COMP%] {\n width: 100%;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.header[_ngcontent-%COMP%] {\n font-size: 24px;\n font-weight: bold;\n margin-bottom: 20px;\n}\n\n.form-row[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n}\n\n.form-group[_ngcontent-%COMP%]:last-child {\n margin-right: 0;\n}\n\n.form-control[_ngcontent-%COMP%] {\n width: 100%;\n padding: 8px;\n border-radius: 4px;\n border: 1px solid #ccc;\n height: 40px;\n}\n\n.mat-form-field-infix[_ngcontent-%COMP%] {\n border: 0;\n}\n\n.innerDiv[_ngcontent-%COMP%] {\n position: absolute;\n top: 50%;\n left: 50%;\n}\n\n.box-body[_ngcontent-%COMP%] {\n margin-top: 5px;\n}\n\n@media (max-width: 768px) {\n .form-row[_ngcontent-%COMP%] {\n flex-direction: column;\n }\n}\n\n\n\n.full-width[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n\n\n.mat-form-field[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.mat-input-element[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 8px;\n \n font-size: 16px;\n \n}\n\n\n\n.mat-autocomplete-panel[_ngcontent-%COMP%] {\n max-height: 300px;\n overflow-y: auto;\n}\n\n\n\n.form-group[_ngcontent-%COMP%] {\n margin-bottom: 15px;\n \n position: relative;\n}\n\n.link-style[_ngcontent-%COMP%] {\n color: blue;\n \n cursor: pointer;\n \n text-decoration: none;\n \n}\n\n.link-style[_ngcontent-%COMP%]:hover {\n text-decoration: underline;\n \n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2FkbWluLWZvcm0tbG9ncy9hZG1pbi1mb3JtLWxvZ3Muc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFdBQUE7RUFDQSxpQkFBQTtFQUNBLGNBQUE7QUFDRjs7QUFFQTtFQUNFLGVBQUE7RUFDQSxpQkFBQTtFQUNBLG1CQUFBO0FBQ0Y7O0FBRUE7RUFDRSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxtQkFBQTtBQUNGOztBQUVBO0VBQ0UsZUFBQTtBQUNGOztBQUVBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtBQUNGOztBQUVBO0VBQ0EsU0FBQTtBQUNBOztBQUVBO0VBQ0Usa0JBQUE7RUFDQSxRQUFBO0VBQ0EsU0FBQTtBQUNGOztBQU1BO0VBQ0UsZUFBQTtBQUhGOztBQU1BO0VBQ0U7SUFDRSxzQkFBQTtFQUhGO0FBQ0Y7O0FBV0Esd0NBQUE7O0FBQ0E7RUFDRSxXQUFBO0FBVEY7O0FBWUEsK0NBQUE7O0FBQ0E7RUFDRSxXQUFBO0FBVEY7O0FBWUE7RUFDRSxzQkFBQTtFQUNBLFlBQUE7RUFBZSxtQkFBQTtFQUNmLGVBQUE7RUFBcUIscUJBQUE7QUFQdkI7O0FBWUEsNkNBQUE7O0FBQ0E7RUFDRSxpQkFBQTtFQUNBLGdCQUFBO0FBVEY7O0FBWUEscURBQUE7O0FBQ0E7RUFDRSxtQkFBQTtFQUFxQiwrQkFBQTtFQUNyQixrQkFBQTtBQVJGOztBQVdBO0VBQ0UsV0FBQTtFQUF5QiwyQkFBQTtFQUN6QixlQUFBO0VBQXlCLHFCQUFBO0VBQ3pCLHFCQUFBO0VBQXlCLHFCQUFBO0FBTDNCOztBQVFBO0VBQ0UsMEJBQUE7RUFBNkIsMkJBQUE7QUFKL0IiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jZW50cmFsLWJ1aWxkZXIvZm9ybXMvZm9ybS1tYW5hZ2UvYWRtaW4tZm9ybS1sb2dzL2FkbWluLWZvcm0tbG9ncy5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNvbnRhaW5lciB7XG4gIHdpZHRoOiAxMDAlO1xuICBtYXgtd2lkdGg6IDEyMDBweDtcbiAgbWFyZ2luOiAwIGF1dG87XG59XG5cbi5oZWFkZXIge1xuICBmb250LXNpemU6IDI0cHg7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBtYXJnaW4tYm90dG9tOiAyMHB4O1xufVxuXG4uZm9ybS1yb3cge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIG1hcmdpbi1ib3R0b206IDEwcHg7XG59XG5cbi5mb3JtLWdyb3VwOmxhc3QtY2hpbGQge1xuICBtYXJnaW4tcmlnaHQ6IDA7XG59XG5cbi5mb3JtLWNvbnRyb2wge1xuICB3aWR0aDogMTAwJTtcbiAgcGFkZGluZzogOHB4O1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIGhlaWdodDogNDBweDtcbn1cblxuLm1hdC1mb3JtLWZpZWxkLWluZml4IHtcbmJvcmRlcjogMDtcbn1cblxuLmlubmVyRGl2IHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDUwJTtcbiAgbGVmdDogNTAlO1xufVxuXG4vLyAuYm94IHtcbi8vICAgbWFyZ2luLWJvdHRvbTogMjBweDtcbi8vIH1cblxuLmJveC1ib2R5IHtcbiAgbWFyZ2luLXRvcDogNXB4O1xufVxuXG5AbWVkaWEgKG1heC13aWR0aDogNzY4cHgpIHtcbiAgLmZvcm0tcm93IHtcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICB9XG5cbiAgLy8gLmZvcm0tZ3JvdXAge1xuICAvLyAgIG1hcmdpbi1yaWdodDogMDtcbiAgLy8gICBtYXJnaW4tYm90dG9tOiAxMHB4O1xuICAvLyB9XG59XG5cbi8qIEVuc3VyZSBmdWxsIHdpZHRoIG9mIHRoZSBmb3JtIGZpZWxkICovXG4uZnVsbC13aWR0aCB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4vKiBTdHlsZSB0aGUgaW5wdXQgZmllbGQgZm9yIGJldHRlciBhbGlnbm1lbnQgKi9cbi5tYXQtZm9ybS1maWVsZCB7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4ubWF0LWlucHV0LWVsZW1lbnQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBwYWRkaW5nOiA4cHg7ICAvKiBBZGp1c3QgcGFkZGluZyAqL1xuICBmb250LXNpemU6IDE2cHg7ICAgICAvKiBBZGp1c3QgZm9udCBzaXplICovXG5cbiAgLy8gbGluZS1oZWlnaHQ6IDI0cHg7ICAgLyogQWRqdXN0IGxpbmUgaGVpZ2h0ICovXG59XG5cbi8qIE9wdGlvbmFsOiBBdXRvY29tcGxldGUgcGFuZWwgYWRqdXN0bWVudHMgKi9cbi5tYXQtYXV0b2NvbXBsZXRlLXBhbmVsIHtcbiAgbWF4LWhlaWdodDogMzAwcHg7XG4gIG92ZXJmbG93LXk6IGF1dG87XG59XG5cbi8qIEFkanVzdCBwb3NpdGlvbmluZyBpbnNpZGUgeW91ciBjdXN0b20gZm9ybS1ncm91cCAqL1xuLmZvcm0tZ3JvdXAge1xuICBtYXJnaW4tYm90dG9tOiAxNXB4OyAvKiBBZGp1c3QgbWFyZ2luIGlmIG5lY2Vzc2FyeSAqL1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi5saW5rLXN0eWxlIHtcbiAgY29sb3I6IGJsdWU7ICAgICAgICAgICAgIC8qIFNldCB0ZXh0IGNvbG9yIHRvIGJsdWUgKi9cbiAgY3Vyc29yOiBwb2ludGVyOyAgICAgICAgIC8qIFNob3cgaGFuZCBjdXJzb3IgKi9cbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lOyAgIC8qIFJlbW92ZSB1bmRlcmxpbmUgKi9cbn1cblxuLmxpbmstc3R5bGU6aG92ZXIge1xuICB0ZXh0LWRlY29yYXRpb246IHVuZGVybGluZTsgIC8qIEFkZCB1bmRlcmxpbmUgb24gaG92ZXIgKi9cbn1cblxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AdminFormLogsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'admin-form-logs',
templateUrl: './admin-form-logs.html',
styleUrls: ['./admin-form-logs.scss'],
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_4__["CustomFormService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { customFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], formName: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], openManage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "GSla":
/*!*****************************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/notification/manage-notification/view-notification/view-notification.component.ts ***!
\*****************************************************************************************************************************/
/*! exports provided: ViewNotificationComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewNotificationComponent", function() { return ViewNotificationComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! file-saver */ "Iab2");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var querystring__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! querystring */ "r8II");
/* harmony import */ var querystring__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(querystring__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function ViewNotificationComponent_ng_template_137_tr_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r7.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r7 == null ? null : item_r7.staffId);
} }
function ViewNotificationComponent_ng_template_137_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewNotificationComponent_ng_template_137_tr_2_Template, 5, 2, "tr", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.acknowledgedUserList);
} }
function ViewNotificationComponent_ng_template_141_tr_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r9.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r9 == null ? null : item_r9.staffId);
} }
function ViewNotificationComponent_ng_template_141_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewNotificationComponent_ng_template_141_tr_2_Template, 5, 2, "tr", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r4.unreadUserList);
} }
function ViewNotificationComponent_ng_template_145_Template(rf, ctx) { }
class ViewNotificationComponent {
constructor(notificationService) {
this.notificationService = notificationService;
this.AudienceCollapsed = false;
this.StatusCollapsed = false;
this.acknowledgedUserList = [];
this.unreadUserList = [];
this.active = 1;
this.overViewNotification = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.acknowledgeTable = {
page: 1,
limit: 25,
from: 'acknowledged',
};
}
ngOnInit() {
var _a, _b;
this.getAcknowledgedAndUnreadUserData((_a = this.notificationViewData) === null || _a === void 0 ? void 0 : _a._id, 'acknowledged');
this.getAcknowledgedAndUnreadUserData((_b = this.notificationViewData) === null || _b === void 0 ? void 0 : _b._id, "unreadUsers");
}
overview() {
this.overViewNotification.next(false);
}
getAcknowledge(notification) {
let count = isNaN(notification.notifyAcknowledgedUsers.length /
notification.notifyOverAllUsers.length)
? 0
: notification.notifyAcknowledgedUsers.length /
notification.notifyOverAllUsers.length;
return count * 100;
}
getNotificationUsres(notificationViewData) {
return 100 - this.getAcknowledge(notificationViewData);
}
onExport() {
const data = {
date: new Date(new Date().setHours(0, 0, 0, 0)).toString(),
notificationId: this.notificationViewData._id,
};
this.notificationService.exportNotification(data).subscribe((data) => {
var _a;
if ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.csvLink) {
this.notificationService
.downloadUrl(data.data.csvLink)
.subscribe((content) => {
var a = document.createElement('a');
a.href = 'data:text/csv,' + content;
a.target = '_blank';
a.download = 'notifications_' + new Date() + '.csv';
document.body.appendChild(a);
a.click();
});
}
// window.open(`${environment.imageUrl}/${data.data.csvLink}`)
});
}
downloadAttachmentOfNOtification(attachment) {
console.log(JSON, Object(querystring__WEBPACK_IMPORTED_MODULE_3__["stringify"])(attachment));
if (!attachment) {
this.toastService.error('No attachment found');
return;
}
var lastFileName = attachment.split('/');
lastFileName = lastFileName[lastFileName.length - 1];
this.notificationService
.getMimeType({
fileName: lastFileName,
})
.subscribe((data) => {
// $scope.message('success', 'please wait, file is downloading.')
this.notificationService
.downloadAnyUrl(attachment)
.subscribe((content) => {
file_saver__WEBPACK_IMPORTED_MODULE_1__["saveAs"](new Blob([content], { type: data.type }), attachment);
}, (error) => {
var _a;
if (error.status === 403 && ((_a = error.url) === null || _a === void 0 ? void 0 : _a.includes('amazonaws.com'))) {
this.notificationService.downloadFile(error.url).subscribe((content) => {
file_saver__WEBPACK_IMPORTED_MODULE_1__["saveAs"](new Blob([content], { type: data.type }), attachment);
}, (error) => {
console.error('Error downloading file:', error);
});
}
console.error('Error downloading file:', error);
});
});
}
// get acknowledged and unread user data
getAcknowledgedAndUnreadUserData(id, type) {
// if(type === 'unreadUsers' && this.unreadUserList.length>0){
// return;
// }else if(this.acknowledgedUserList.length>0){
// return;
// }
this.acknowledgeTable.from = type;
const subscribe = this.notificationService
.readAcknowledgedAndUnreadUser(id, this.acknowledgeTable)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { data } = response;
if (type === 'unreadUsers') {
this.unreadUserList = data;
return;
}
this.acknowledgedUserList = data;
}, (error) => {
this.toastService.error('No list found');
});
}
}
ViewNotificationComponent.ɵfac = function ViewNotificationComponent_Factory(t) { return new (t || ViewNotificationComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_4__["NotificationService"])); };
ViewNotificationComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewNotificationComponent, selectors: [["app-view-notification"]], inputs: { notificationViewData: "notificationViewData" }, outputs: { overViewNotification: "overViewNotification" }, decls: 147, vars: 39, consts: [[1, "row"], [1, "col-md-6", "col-sm-6"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], [2, "display", "inline-block"], [1, "btn", "pull-right", "btn-outline-light", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-chevron-left"], [1, "card-body"], [1, "panel-body"], [1, "row", "m-0"], [1, "col-md-6"], [1, "form-group"], [1, "form-text-conteol", "ng-binding"], [1, "btn", "btn-add", 3, "click"], [1, "card-body", "p-3"], [1, "card-header", "flexi-header", 3, "click"], ["aria-hidden", "true", 1, "fa", "pull-right", "fa-lg", "mt-1", 2, "color", "white", 3, "ngClass"], [1, "card-body", 3, "ngbCollapse", "ngbCollapseChange"], ["collapse1", "ngbCollapse"], [1, "table", "table-borderless"], [1, "text-left"], ["aria-hidden", "true", 1, "fa", "fa-spinner"], ["collapse2", "ngbCollapse"], [1, "d-flex", "flex-column", "p-3"], [1, "my-3"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], ["ngbNavLink", ""], [3, "ngbNavOutlet"], [1, "table"], [4, "ngFor", "ngForOf"]], template: function ViewNotificationComponent_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "h3", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "NOTIFICATION DETAIL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "button", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewNotificationComponent_Template_button_click_6_listener() { return ctx.overview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "i", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](20, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Effective From");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](34, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Effective Till");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](41, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Main Category");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](52, "Sub Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewNotificationComponent_Template_button_click_57_listener() { return ctx.downloadAttachmentOfNOtification(ctx.notificationViewData.notificationAttachment); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "Click to download attachment");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, "Acknowledgement Status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewNotificationComponent_Template_div_click_66_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](71); return _r0.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](69, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "div", 17, 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function ViewNotificationComponent_Template_div_ngbCollapseChange_70_listener($event) { return ctx.AudienceCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](76, " Acknowledged ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](77, "i", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, " Unread ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](84, "i", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewNotificationComponent_Template_div_click_89_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](94); return _r1.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, " Notification Status ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](92, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](93, "div", 17, 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function ViewNotificationComponent_Template_div_ngbCollapseChange_93_listener($event) { return ctx.StatusCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](97, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](98, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](99, "Active From :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](100, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](102, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](104, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](105, "Active To :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](106, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](108, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](109, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](110, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](111, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](112, "Business Unit :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](113, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](115, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](116, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](117, "Appointments :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](118, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](120, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](121, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](122, "Select Users :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](123, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](125, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](126, "td", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](127, "Method :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](128, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](129);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](130, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](131, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](132, "ul", 25, 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ViewNotificationComponent_Template_ul_activeIdChange_132_listener($event) { return ctx.active = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](134, "li", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](135, "a", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewNotificationComponent_Template_a_click_135_listener() { return ctx.getAcknowledgedAndUnreadUserData(ctx.notificationViewData._id, "acknowledged"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](136, "Acknowledged");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](137, ViewNotificationComponent_ng_template_137_Template, 3, 1, "ng-template", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](138, "li", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](139, "a", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](140, " Unread");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](141, ViewNotificationComponent_ng_template_141_Template, 3, 1, "ng-template", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](142, "li", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](143, "a", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewNotificationComponent_Template_a_click_143_listener() { return ctx.onExport(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](144, " Export");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](145, ViewNotificationComponent_ng_template_145_Template, 0, 0, "ng-template", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](146, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](133);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.notificationViewData.title, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](20, 29, ctx.notificationViewData.activeFrom));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.notificationViewData.subTitle, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](34, 31, ctx.notificationViewData == null ? null : ctx.notificationViewData.effectiveFrom), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](41, 33, ctx.notificationViewData == null ? null : ctx.notificationViewData.effectiveTo), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.notificationViewData == null ? null : ctx.notificationViewData.subCategoryId == null ? null : ctx.notificationViewData.subCategoryId.categoryId == null ? null : ctx.notificationViewData.subCategoryId.categoryId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.notificationViewData == null ? null : ctx.notificationViewData.subCategoryId == null ? null : ctx.notificationViewData.subCategoryId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx.AudienceCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" Intended Audience ", ctx.notificationViewData == null ? null : ctx.notificationViewData.notifyOverAllUsers == null ? null : ctx.notificationViewData.notifyOverAllUsers.length, " Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.AudienceCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.AudienceCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.getAcknowledge(ctx.notificationViewData) + "%", " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.notificationViewData == null ? null : ctx.notificationViewData.notifyAcknowledgedUsers.length, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.getNotificationUsres(ctx.notificationViewData) + "%", " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.notificationViewData == null ? null : ctx.notificationViewData.notifyUnreadUsers.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx.StatusCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.StatusCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.StatusCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](102, 35, ctx.notificationViewData == null ? null : ctx.notificationViewData.activeFrom), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](108, 37, ctx.notificationViewData == null ? null : ctx.notificationViewData.activeTo));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.notificationViewData == null ? null : ctx.notificationViewData.businessUnitId.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"]((ctx.notificationViewData == null ? null : ctx.notificationViewData.assignUsers == null ? null : ctx.notificationViewData.assignUsers.length) && (ctx.notificationViewData == null ? null : ctx.notificationViewData.assignUsers[0] == null ? null : ctx.notificationViewData.assignUsers[0].appointments[0] == null ? null : ctx.notificationViewData.assignUsers[0].appointments[0].name));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"]((ctx.notificationViewData == null ? null : ctx.notificationViewData.assignUsers == null ? null : ctx.notificationViewData.assignUsers.length) && (ctx.notificationViewData == null ? null : ctx.notificationViewData.assignUsers[0] == null ? null : ctx.notificationViewData.assignUsers[0].user[0] == null ? null : ctx.notificationViewData.assignUsers[0].user[0].name));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx.notificationViewData == null ? null : ctx.notificationViewData.isDynamic) === 0 ? "Static" : "Dynamic", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.active);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r2);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgClass"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbCollapse"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DatePipe"]], styles: [".form-text-conteol[_ngcontent-%COMP%] {\n border: 1px solid #efefef;\n padding: 6px 8px;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n\n.scrollable[_ngcontent-%COMP%] {\n max-height: 600px;\n \n overflow-y: auto;\n \n}\n\n.table-wrapper[_ngcontent-%COMP%] {\n overflow: hidden;\n \n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ub3RpZmljYXRpb24vbWFuYWdlLW5vdGlmaWNhdGlvbi92aWV3LW5vdGlmaWNhdGlvbi92aWV3LW5vdGlmaWNhdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHlCQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLHNCQUFBO0FBQ0Y7O0FBQUU7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFFSjs7QUFBSTtFQUNFLGNBQUE7QUFFTjs7QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTjs7QUFHQTtFQUNFLGlCQUFBO0VBQW1CLG1DQUFBO0VBQ25CLGdCQUFBO0VBQWtCLDJCQUFBO0FBRXBCOztBQUNBO0VBQ0UsZ0JBQUE7RUFBa0IsNkJBQUE7QUFHcEIiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jb21tdW5pY2F0aW9uL25vdGlmaWNhdGlvbi9tYW5hZ2Utbm90aWZpY2F0aW9uL3ZpZXctbm90aWZpY2F0aW9uL3ZpZXctbm90aWZpY2F0aW9uLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZvcm0tdGV4dC1jb250ZW9sIHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2VmZWZlZjtcbiAgcGFkZGluZzogNnB4IDhweDtcbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbi5zY3JvbGxhYmxlIHtcbiAgbWF4LWhlaWdodDogNjAwcHg7IC8qIFNldCB0aGUgZGVzaXJlZCBtYXhpbXVtIGhlaWdodCAqL1xuICBvdmVyZmxvdy15OiBhdXRvOyAvKiBFbmFibGUgdmVydGljYWwgc2Nyb2xsICovXG59XG5cbi50YWJsZS13cmFwcGVyIHtcbiAgb3ZlcmZsb3c6IGhpZGRlbjsgLyogSGlkZSBvdmVyZmxvd2luZyBjb250ZW50ICovXG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewNotificationComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-view-notification',
templateUrl: './view-notification.component.html',
styleUrls: ['./view-notification.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_4__["NotificationService"] }]; }, { notificationViewData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], overViewNotification: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "GZAV":
/*!**************************************************!*\
!*** ./src/app/users/guards/auto-login.guard.ts ***!
\**************************************************/
/*! exports provided: AutoLoginGuard */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutoLoginGuard", function() { return AutoLoginGuard; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../service/auth/auth.service */ "PxIJ");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class AutoLoginGuard {
constructor(authService, router, storageService) {
this.authService = authService;
this.router = router;
this.storageService = storageService;
this.JWT_TOKEN = 'usersToken';
this.isAuthenticated = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](null);
}
canActivate() {
this.loadToken();
return this.isAuthenticated.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(val => val !== null), // Filter out initial Behaviour subject value
Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1),
// Otherwise the Observable doesn't complete!
Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(isAuthenticated => {
if (isAuthenticated) {
// Directly open inside area
this.router.navigateByUrl('/users/home', { replaceUrl: true });
}
else {
// Simply allow access to the login
return true;
}
}));
}
loadToken() {
const token = this.storageService.getByKey(this.JWT_TOKEN);
if (token) {
this.isAuthenticated.next(true);
}
else {
this.isAuthenticated.next(false);
}
}
}
AutoLoginGuard.ɵfac = function AutoLoginGuard_Factory(t) { return new (t || AutoLoginGuard)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
AutoLoginGuard.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: AutoLoginGuard, factory: AutoLoginGuard.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AutoLoginGuard, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "H01m":
/*!************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-events/manage-events.component.ts ***!
\************************************************************************************/
/*! exports provided: ManageEventsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageEventsComponent", function() { return ManageEventsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _events_overview_events_overview_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./events-overview/events-overview.component */ "KjCo");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _create_edit_events_create_edit_events_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./create-edit-events/create-edit-events.component */ "lzKD");
/* harmony import */ var _events_manage_events_manage_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./events-manage/events-manage.component */ "2HCa");
/* harmony import */ var _events_reported_post_events_reported_post_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./events-reported-post/events-reported-post.component */ "jZZG");
/* harmony import */ var _events_reported_comments_events_reported_comments_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./events-reported-comments/events-reported-comments.component */ "Nnxu");
function ManageEventsComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "events-overview", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("EditEvent", function ManageEventsComponent_ng_template_6_Template_events_overview_EditEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.formEdit($event); })("ManageEvent", function ManageEventsComponent_ng_template_6_Template_events_overview_ManageEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.formManage($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageEventsComponent_ng_template_10_app_create_edit_events_0_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-create-edit-events", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function ManageEventsComponent_ng_template_10_app_create_edit_events_0_Template_app_create_edit_events_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("eventId", ctx_r8.boardId);
} }
function ManageEventsComponent_ng_template_10_app_events_manage_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-events-manage", 12);
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("manageId", ctx_r9.boardId);
} }
function ManageEventsComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageEventsComponent_ng_template_10_app_create_edit_events_0_Template, 1, 1, "app-create-edit-events", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageEventsComponent_ng_template_10_app_events_manage_1_Template, 1, 1, "app-events-manage", 10);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r2.isManageEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.isManageEdited);
} }
function ManageEventsComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "events-reported-post");
} }
function ManageEventsComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "events-reported-comments");
} }
class ManageEventsComponent {
constructor() {
this.isBoardEdited = false;
this.isManageEdited = false;
this.activeId = 1;
}
ngOnInit() {
}
overViewEvent(value) {
this.isBoardEdited = false;
this.boardId = null;
this.activeId = 1;
this.isManageEdited = false;
}
formEdit(id) {
this.activeId = 2;
this.isBoardEdited = true;
this.boardId = id;
}
formManage(id) {
this.activeId = 2;
this.isManageEdited = true;
this.boardId = id;
}
}
ManageEventsComponent.ɵfac = function ManageEventsComponent_Factory(t) { return new (t || ManageEventsComponent)(); };
ManageEventsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageEventsComponent, selectors: [["app-manage-events"]], decls: 20, vars: 7, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], ["ngbNavLink", ""], [3, "ngbNavOutlet"], [3, "EditEvent", "ManageEvent"], [3, "eventId", "overViewEvent", 4, "ngIf"], [3, "manageId", 4, "ngIf"], [3, "eventId", "overViewEvent"], [3, "manageId"]], template: function ManageEventsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ManageEventsComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageEventsComponent_Template_a_click_4_listener($event) { return ctx.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageEventsComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ManageEventsComponent_ng_template_10_Template, 2, 2, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "REPORTED POSTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ManageEventsComponent_ng_template_14_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "REPORTED COMMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ManageEventsComponent_ng_template_18_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.isBoardEdited ? "EDIT" : ctx.isManageEdited ? "MANAGE" : "CREATE", "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _events_overview_events_overview_component__WEBPACK_IMPORTED_MODULE_2__["EventsOverviewComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _create_edit_events_create_edit_events_component__WEBPACK_IMPORTED_MODULE_4__["CreateEditEventsComponent"], _events_manage_events_manage_component__WEBPACK_IMPORTED_MODULE_5__["EventsManageComponent"], _events_reported_post_events_reported_post_component__WEBPACK_IMPORTED_MODULE_6__["EventsReportedPostComponent"], _events_reported_comments_events_reported_comments_component__WEBPACK_IMPORTED_MODULE_7__["EventsReportedCommentsComponent"]], styles: [".manageEdited[_ngcontent-%COMP%] {\n margin-left: -30px;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL21hbmFnZS1ldmVudHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxrQkFBQTtBQUNGOztBQUVBO0VBQ0Usc0JBQUE7QUFDRjs7QUFBRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7QUFFSjs7QUFBSTtFQUNFLGNBQUE7QUFFTjs7QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbWFuYWdlLWV2ZW50cy9tYW5hZ2UtZXZlbnRzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm1hbmFnZUVkaXRlZCB7XG4gIG1hcmdpbi1sZWZ0OiAtMzBweDtcbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageEventsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-manage-events',
templateUrl: './manage-events.component.html',
styleUrls: ['./manage-events.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "HCpM":
/*!*********************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/question-builder/question-modal/question-modal.component.ts ***!
\*********************************************************************************************************/
/*! exports provided: QuestionModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionModalComponent", function() { return QuestionModalComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fortawesome/free-regular-svg-icons */ "twK/");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/admin/service/companyservice/company.service */ "RZ9m");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/users/service/channel/channel.service */ "awjJ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! angular-froala-wysiwyg */ "81np");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../../shared/assign-users/assign-users.component */ "9Zea");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
// import { fas } from '@fortawesome/free-solid-svg-icons';
const _c0 = ["selfClosingAlert"];
const _c1 = ["myImage"];
function QuestionModalComponent_ng_container_2_h3_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r22.name);
} }
function QuestionModalComponent_ng_container_2_button_3_Template(rf, ctx) { if (rf & 1) {
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_ng_container_2_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r27); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r26.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0, 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, QuestionModalComponent_ng_container_2_h3_2_Template, 2, 1, "h3", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, QuestionModalComponent_ng_container_2_button_3_Template, 2, 0, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r22 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitch", item_r22.type);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.value.type === item_r22.type);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.value.type === item_r22.type);
} }
function QuestionModalComponent_ngb_alert_4_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ngb-alert", 14, 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("closed", function QuestionModalComponent_ngb_alert_4_Template_ngb_alert_closed_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r30); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r29.successMessage = ""; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r1.successMessage, " ");
} }
function QuestionModalComponent_div_5_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r31.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r31.selectedIcon, " ");
} }
function QuestionModalComponent_div_5_div_14_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r40); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r39.onDeleteIcon(ctx_r39.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_5_div_15_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_5_div_15_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r42); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r41.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_5_div_17_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r45.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_5_div_17_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r47 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r47.value, " ");
} }
function QuestionModalComponent_div_5_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_div_5_div_17_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_div_17_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r49); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r48.addConditionalQuestion(ctx_r48.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_div_17_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r49); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r50.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r44.conditionalAnswers);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r44.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_5_div_17_Template(rf, ctx) { if (rf & 1) {
const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_5_div_17_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r52); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r51.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_5_div_17_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_5_div_17_div_6_Template, 11, 5, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r34.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_div_5_tr_21_Template(rf, ctx) { if (rf & 1) {
const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_tr_21_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r56); const index_r54 = ctx.index; const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r55.conditionQuestionDelete(index_r54); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r53 = ctx.$implicit;
const index_r54 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r53.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r53.get("option").value, "");
} }
function QuestionModalComponent_div_5_tr_59_div_7_Template(rf, ctx) { if (rf & 1) {
const _r63 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_5_tr_59_div_7_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r63); const index_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r62.BannerUpload($event, index_r58); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_5_tr_59_div_8_Template(rf, ctx) { if (rf & 1) {
const _r67 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_tr_59_div_8_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r67); const index_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r65.onDeleteImage(index_r58); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r57.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_div_5_tr_59_div_10_Template(rf, ctx) { if (rf & 1) {
const _r71 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_tr_59_div_10_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r71); const index_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r69.onDeleteOptions(index_r58); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_5_tr_59_Template(rf, ctx) { if (rf & 1) {
const _r73 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_5_tr_59_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r73); const index_r58 = ctx.index; const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r72.onClickCorrectAnswer($event, index_r58); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_div_5_tr_59_div_7_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_div_5_tr_59_div_8_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_div_5_tr_59_div_10_Template, 2, 0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r57 = ctx.$implicit;
const index_r58 = ctx.index;
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", field_r57.get("correctAns").value ? true : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r57.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r57.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r36.OptionControl.controls.length >= 2);
} }
function QuestionModalComponent_div_5_option_73_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r74 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r74, " ");
} }
function QuestionModalComponent_div_5_div_74_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r38.options);
} }
const _c2 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function QuestionModalComponent_div_5_Template(rf, ctx) { if (rf & 1) {
const _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r76); const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r75.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_div_5_div_13_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_div_5_div_14_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_div_5_div_15_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_div_5_div_17_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, QuestionModalComponent_div_5_tr_21_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "Option View");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Vertical ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](32, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Horizontal");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "button", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_Template_button_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r76); const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r77.addOptions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](54, "CORRECT ANSWER");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56, "IMAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](57, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](59, QuestionModalComponent_div_5_tr_59_Template, 11, 5, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](65, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](69, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](72, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](73, QuestionModalComponent_div_5_option_73_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](74, QuestionModalComponent_div_5_div_74_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_Template_button_click_77_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r76); const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r78.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](78, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_5_Template_button_click_79_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r76); const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r79.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](80, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r2.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r2.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r2.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r2.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r2.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r2.OptionControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r2.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r2.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](18, _c2, ctx_r2.isLoading, !ctx_r2.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r2.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_6_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r80.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r80.selectedIcon, " ");
} }
function QuestionModalComponent_div_6_div_14_Template(rf, ctx) { if (rf & 1) {
const _r89 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r89); const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r88.onDeleteIcon(ctx_r88.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_6_div_15_Template(rf, ctx) { if (rf & 1) {
const _r91 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_6_div_15_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r91); const ctx_r90 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r90.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_6_div_17_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r94 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r94.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_6_div_17_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r96 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r96.value, " ");
} }
function QuestionModalComponent_div_6_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
const _r98 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_div_6_div_17_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_div_17_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r98); const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r97.addConditionalQuestion(ctx_r97.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_div_17_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r98); const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r99.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r93.conditionalAnswers);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r93.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_6_div_17_Template(rf, ctx) { if (rf & 1) {
const _r101 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_6_div_17_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r101); const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r100.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_6_div_17_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_6_div_17_div_6_Template, 11, 5, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r83.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r83.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_div_6_tr_21_Template(rf, ctx) { if (rf & 1) {
const _r105 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_tr_21_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r105); const index_r103 = ctx.index; const ctx_r104 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r104.conditionQuestionDelete(index_r103); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r102 = ctx.$implicit;
const index_r103 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r102.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r102.get("option").value, "");
} }
function QuestionModalComponent_div_6_tr_59_div_7_Template(rf, ctx) { if (rf & 1) {
const _r112 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_6_tr_59_div_7_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r112); const index_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r111.BannerUpload($event, index_r107); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_6_tr_59_div_8_Template(rf, ctx) { if (rf & 1) {
const _r116 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_tr_59_div_8_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r116); const index_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r114 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r114.onDeleteImage(index_r107); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r106.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_div_6_tr_59_div_10_Template(rf, ctx) { if (rf & 1) {
const _r120 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_tr_59_div_10_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r120); const index_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r118 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r118.onDeleteOptions(index_r107); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_6_tr_59_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_div_6_tr_59_div_7_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_div_6_tr_59_div_8_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_div_6_tr_59_div_10_Template, 2, 0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r106 = ctx.$implicit;
const index_r107 = ctx.index;
const ctx_r85 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", field_r106.get("correctAns").value ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r106.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r106.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r85.OptionControl.controls.length >= 2);
} }
function QuestionModalComponent_div_6_option_73_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r121 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r121, " ");
} }
function QuestionModalComponent_div_6_div_74_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r87.options);
} }
function QuestionModalComponent_div_6_Template(rf, ctx) { if (rf & 1) {
const _r123 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r122 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r122.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_div_6_div_13_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_div_6_div_14_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_div_6_div_15_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_div_6_div_17_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, QuestionModalComponent_div_6_tr_21_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "Option View");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Vertical ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](32, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Horizontal");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "button", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_Template_button_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r124.addOptions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](54, "CORRECT ANSWER");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56, "Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](57, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](59, QuestionModalComponent_div_6_tr_59_Template, 11, 5, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](65, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](69, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](72, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](73, QuestionModalComponent_div_6_option_73_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](74, QuestionModalComponent_div_6_div_74_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_Template_button_click_77_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r125 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r125.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](78, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_6_Template_button_click_79_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r126.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](80, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r3.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r3.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r3.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r3.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r3.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r3.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r3.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r3.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r3.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r3.OptionControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r3.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r3.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r3.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](18, _c2, ctx_r3.isLoading, !ctx_r3.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r3.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_7_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r127 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r127.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r127.selectedIcon, " ");
} }
function QuestionModalComponent_div_7_div_14_Template(rf, ctx) { if (rf & 1) {
const _r138 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r138); const ctx_r137 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r137.onDeleteIcon(ctx_r137.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_7_div_15_Template(rf, ctx) { if (rf & 1) {
const _r140 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_7_div_15_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r140); const ctx_r139 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r139.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_7_div_17_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r143 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r143.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_7_div_17_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r145 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r145.value, " ");
} }
function QuestionModalComponent_div_7_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
const _r147 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_div_7_div_17_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_div_17_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r147); const ctx_r146 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r146.addConditionalQuestion(ctx_r146.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_div_17_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r147); const ctx_r148 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r148.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r142 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r142.conditionalAnswers);
} }
function QuestionModalComponent_div_7_div_17_Template(rf, ctx) { if (rf & 1) {
const _r150 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_7_div_17_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r150); const ctx_r149 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r149.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_7_div_17_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_7_div_17_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r130 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r130.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r130.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_div_7_tr_21_Template(rf, ctx) { if (rf & 1) {
const _r154 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_tr_21_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r154); const index_r152 = ctx.index; const ctx_r153 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r153.conditionQuestionDelete(index_r152); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r151 = ctx.$implicit;
const index_r152 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r151.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r151.get("option").value, "");
} }
function QuestionModalComponent_div_7_div_53_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_7_tr_66_div_9_Template(rf, ctx) { if (rf & 1) {
const _r162 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_7_tr_66_div_9_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r162); const index_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r161 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r161.BannerUpload($event, index_r156, false); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_7_tr_66_div_10_Template(rf, ctx) { if (rf & 1) {
const _r166 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_tr_66_div_10_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r166); const index_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r164 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r164.onDeleteImage(index_r156); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r155.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_div_7_tr_66_div_12_Template(rf, ctx) { if (rf & 1) {
const _r170 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_tr_66_div_12_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r170); const index_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r168 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r168.onDeleteOptions(index_r156); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_7_tr_66_tr_13_div_5_Template(rf, ctx) { if (rf & 1) {
const _r174 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_7_tr_66_tr_13_div_5_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r174); const index_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).index; const ctx_r173 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r173.BannerUpload($event, index_r156, true); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r171 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" Upload Image ", ctx_r171.createQuestionForm.value.pollingDescriptionImageSrc, " ");
} }
function QuestionModalComponent_div_7_tr_66_tr_13_div_6_Template(rf, ctx) { if (rf & 1) {
const _r178 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_tr_66_tr_13_div_6_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r178); const index_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).index; const ctx_r176 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r176.onDeletePollingDescriptionImage(index_r156); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r155.get("pollingDescriptionImageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_div_7_tr_66_tr_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "textarea", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_7_tr_66_tr_13_div_5_Template, 4, 1, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_7_tr_66_tr_13_div_6_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r180 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
const index_r156 = ctx_r180.index;
const field_r155 = ctx_r180.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r155.get("pollingDescriptionImageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r155.get("pollingDescriptionImageSrc").value);
} }
function QuestionModalComponent_div_7_tr_66_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](5, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, QuestionModalComponent_div_7_tr_66_div_9_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_div_7_tr_66_div_10_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_div_7_tr_66_div_12_Template, 2, 0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_div_7_tr_66_tr_13_Template, 8, 3, "tr", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r155 = ctx.$implicit;
const index_r156 = ctx.index;
const ctx_r133 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r155.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r155.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r133.OptionControl.controls.length >= 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r133.isExtendOptions);
} }
function QuestionModalComponent_div_7_div_67_tr_11_div_7_Template(rf, ctx) { if (rf & 1) {
const _r187 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_7_div_67_tr_11_div_7_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r187); const index_r183 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r186 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r186.BannerUpload($event, index_r183); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_7_div_67_tr_11_div_8_Template(rf, ctx) { if (rf & 1) {
const _r191 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_div_67_tr_11_div_8_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r191); const index_r183 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r189 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r189.onDeleteImage(index_r183); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r182 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r182.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_div_7_div_67_tr_11_Template(rf, ctx) { if (rf & 1) {
const _r194 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_7_div_67_tr_11_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r194); const index_r183 = ctx.index; const ctx_r193 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r193.onClickCorrectAnswer($event, index_r183); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_div_7_div_67_tr_11_div_7_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_div_7_div_67_tr_11_div_8_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r182 = ctx.$implicit;
const index_r183 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r183);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", field_r182.get("correctAns").value ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r182.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r182.get("imageSrc").value);
} }
function QuestionModalComponent_div_7_div_67_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, QuestionModalComponent_div_7_div_67_tr_11_Template, 9, 4, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r134 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r134.OptionControl.controls);
} }
function QuestionModalComponent_div_7_option_81_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r195 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r195);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r195, " ");
} }
function QuestionModalComponent_div_7_div_82_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r136 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r136.options);
} }
const _c3 = function () { return { standalone: true }; };
const _c4 = function () { return [3]; };
function QuestionModalComponent_div_7_Template(rf, ctx) { if (rf & 1) {
const _r197 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r197); const ctx_r196 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r196.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_div_7_div_13_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_div_7_div_14_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_div_7_div_15_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_div_7_div_17_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, QuestionModalComponent_div_7_tr_21_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "Option View");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Vertical ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](32, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Horizontal");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "button", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_Template_button_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r197); const ctx_r198 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r198.addOptions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "input", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function QuestionModalComponent_div_7_Template_input_ngModelChange_46_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r197); const ctx_r199 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r199.isExtendOptions = $event; })("click", function QuestionModalComponent_div_7_Template_input_click_46_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r197); const ctx_r200 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r200.extendOptions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "label", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](48, "Extended option details");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "input", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_Template_input_click_50_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r197); const ctx_r201 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r201.getMoreThanOne(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "label", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "Allow user to choose more than 1 option");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](53, QuestionModalComponent_div_7_div_53_Template, 3, 0, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "th", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, " ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](63, "Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](64, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](66, QuestionModalComponent_div_7_tr_66_Template, 14, 5, "tr", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](67, QuestionModalComponent_div_7_div_67_Template, 12, 1, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](72, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](73, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](74, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](77, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](80, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](81, QuestionModalComponent_div_7_option_81_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](82, QuestionModalComponent_div_7_div_82_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](85, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_Template_button_click_85_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r197); const ctx_r202 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r202.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](86, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](87, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_7_Template_button_click_87_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r197); const ctx_r203 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r203.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](88, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r4.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r4.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r4.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r4.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r4.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r4.isExtendOptions)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](22, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.moreThanOneOption);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r4.OptionControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](23, _c4).includes(ctx_r4.value.type));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r4.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r4.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](24, _c2, ctx_r4.isLoading, !ctx_r4.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r4.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r204 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r204.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r204.selectedIcon, " ");
} }
function QuestionModalComponent_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
const _r213 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_8_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r213); const ctx_r212 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r212.onDeleteIcon(ctx_r212.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_8_div_15_Template(rf, ctx) { if (rf & 1) {
const _r215 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_8_div_15_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r215); const ctx_r214 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r214.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_8_div_17_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r218 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r218);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r218.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_8_div_17_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r220 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r220);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r220.value, " ");
} }
function QuestionModalComponent_div_8_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
const _r222 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_div_8_div_17_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_8_div_17_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r222); const ctx_r221 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r221.addConditionalQuestion(ctx_r221.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_8_div_17_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r222); const ctx_r223 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r223.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r217 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r217.conditionalAnswers);
} }
function QuestionModalComponent_div_8_div_17_Template(rf, ctx) { if (rf & 1) {
const _r225 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_8_div_17_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r225); const ctx_r224 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r224.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_8_div_17_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_8_div_17_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r207 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r207.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r207.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_div_8_tr_21_Template(rf, ctx) { if (rf & 1) {
const _r229 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_8_tr_21_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r229); const index_r227 = ctx.index; const ctx_r228 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r228.conditionQuestionDelete(index_r227); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r226 = ctx.$implicit;
const index_r227 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r226.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r227);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r226.get("option").value, "");
} }
function QuestionModalComponent_div_8_tr_56_div_7_Template(rf, ctx) { if (rf & 1) {
const _r235 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_8_tr_56_div_7_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r235); const index_r231 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r234 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r234.BannerUpload($event, index_r231); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_8_tr_56_div_8_Template(rf, ctx) { if (rf & 1) {
const _r239 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_8_tr_56_div_8_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r239); const index_r231 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r237 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r237.onDeleteImage(index_r231); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r230 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r230.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_div_8_tr_56_Template(rf, ctx) { if (rf & 1) {
const _r242 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_8_tr_56_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r242); const index_r231 = ctx.index; const ctx_r241 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r241.onClickCorrectAnswer($event, index_r231); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_div_8_tr_56_div_7_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_div_8_tr_56_div_8_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r230 = ctx.$implicit;
const index_r231 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r231);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", field_r230.get("correctAns").value ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r230.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r230.get("imageSrc").value);
} }
function QuestionModalComponent_div_8_option_70_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r243 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r243);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r243, " ");
} }
function QuestionModalComponent_div_8_div_71_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r211 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r211.options);
} }
function QuestionModalComponent_div_8_Template(rf, ctx) { if (rf & 1) {
const _r245 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_8_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r245); const ctx_r244 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r244.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_div_8_div_13_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_div_8_div_14_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_div_8_div_15_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_div_8_div_17_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, QuestionModalComponent_div_8_tr_21_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "Option View");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Vertical ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](32, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Horizontal");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](48, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "CORRECT ANSWER");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](54, "Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](56, QuestionModalComponent_div_8_tr_56_Template, 9, 4, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](62, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](63, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](69, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](70, QuestionModalComponent_div_8_option_70_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](71, QuestionModalComponent_div_8_div_71_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_8_Template_button_click_74_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r245); const ctx_r246 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r246.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](75, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_8_Template_button_click_76_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r245); const ctx_r247 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r247.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](77, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r5.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r5.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r5.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r5.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r5.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r5.OptionControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r5.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r5.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](18, _c2, ctx_r5.isLoading, !ctx_r5.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r5.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_9_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r248 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r248.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r248.selectedIcon, " ");
} }
function QuestionModalComponent_div_9_div_14_Template(rf, ctx) { if (rf & 1) {
const _r255 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_9_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r255); const ctx_r254 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r254.onDeleteIcon(ctx_r254.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_9_div_15_Template(rf, ctx) { if (rf & 1) {
const _r257 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_9_div_15_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r257); const ctx_r256 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r256.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_9_div_17_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r260 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r260);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r260.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_9_div_17_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r262 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r262);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r262.value, " ");
} }
function QuestionModalComponent_div_9_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
const _r264 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_div_9_div_17_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_9_div_17_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r264); const ctx_r263 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r263.addConditionalQuestion(ctx_r263.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_9_div_17_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r264); const ctx_r265 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r265.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r259 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r259.conditionalAnswers);
} }
function QuestionModalComponent_div_9_div_17_Template(rf, ctx) { if (rf & 1) {
const _r267 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_9_div_17_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r267); const ctx_r266 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r266.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_9_div_17_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_9_div_17_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r251 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r251.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r251.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_div_9_tr_21_Template(rf, ctx) { if (rf & 1) {
const _r271 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_9_tr_21_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r271); const index_r269 = ctx.index; const ctx_r270 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r270.conditionQuestionDelete(index_r269); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r268 = ctx.$implicit;
const index_r269 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r268.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r269);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r268.get("option").value, "");
} }
function QuestionModalComponent_div_9_option_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r272 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r272);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r272, " ");
} }
function QuestionModalComponent_div_9_Template(rf, ctx) { if (rf & 1) {
const _r274 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_9_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r274); const ctx_r273 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r273.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_div_9_div_13_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_div_9_div_14_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_div_9_div_15_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_div_9_div_17_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, QuestionModalComponent_div_9_tr_21_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](29, QuestionModalComponent_div_9_option_29_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_9_Template_button_click_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r274); const ctx_r275 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r275.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](33, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_9_Template_button_click_34_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r274); const ctx_r276 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r276.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r6.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r6.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r6.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r6.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r6.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r6.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r6.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](13, _c2, ctx_r6.isLoading, !ctx_r6.isLoading));
} }
function QuestionModalComponent_form_10_div_2_Template(rf, ctx) { if (rf & 1) {
const _r284 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "input", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_10_div_2_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r284); const index_r282 = ctx.index; const ctx_r283 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r283.changeQuickLinkStatus(index_r282, $event.target.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const link_r281 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", link_r281.isSelected)("value", link_r281.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", link_r281.name, " ");
} }
function QuestionModalComponent_form_10_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r278 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r278.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r278.selectedIcon, " ");
} }
function QuestionModalComponent_form_10_div_7_Template(rf, ctx) { if (rf & 1) {
const _r286 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_10_div_7_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r286); const ctx_r285 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r285.onDeleteIcon(ctx_r285.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_10_option_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r287 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r287);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r287, " ");
} }
function QuestionModalComponent_form_10_Template(rf, ctx) { if (rf & 1) {
const _r289 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, QuestionModalComponent_form_10_div_2_Template, 4, 3, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_10_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r289); const ctx_r288 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r288.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_10_div_6_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_form_10_div_7_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_form_10_option_15_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_10_Template_button_click_18_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r289); const ctx_r290 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r290.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_10_Template_button_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r289); const ctx_r291 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r291.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r7.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r7.defaultProfileFields);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r7.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r7.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](9, _c2, ctx_r7.isLoading, !ctx_r7.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r7.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_form_11_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r292 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r292.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r292.selectedIcon, " ");
} }
function QuestionModalComponent_form_11_div_13_Template(rf, ctx) { if (rf & 1) {
const _r301 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r301); const ctx_r300 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r300.onDeleteIcon(ctx_r300.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_11_div_14_Template(rf, ctx) { if (rf & 1) {
const _r303 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_11_div_14_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r303); const ctx_r302 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r302.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_11_div_16_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r306 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r306);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r306.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_form_11_div_16_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r308 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r308);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r308.value, " ");
} }
function QuestionModalComponent_form_11_div_16_div_6_Template(rf, ctx) { if (rf & 1) {
const _r310 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_form_11_div_16_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_div_16_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r310); const ctx_r309 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r309.addConditionalQuestion(ctx_r309.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_div_16_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r310); const ctx_r311 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r311.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r305 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r305.conditionalAnswers);
} }
function QuestionModalComponent_form_11_div_16_Template(rf, ctx) { if (rf & 1) {
const _r313 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_11_div_16_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r313); const ctx_r312 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r312.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_11_div_16_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_11_div_16_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r295 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r295.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r295.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_form_11_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r317 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_tr_20_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r317); const index_r315 = ctx.index; const ctx_r316 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r316.conditionQuestionDelete(index_r315); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r314 = ctx.$implicit;
const index_r315 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r314.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r315);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r314.get("option").value, "");
} }
function QuestionModalComponent_form_11_tr_40_div_7_Template(rf, ctx) { if (rf & 1) {
const _r324 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_11_tr_40_div_7_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r324); const index_r319 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r323 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r323.BannerUpload($event, index_r319); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_11_tr_40_div_8_Template(rf, ctx) { if (rf & 1) {
const _r328 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_tr_40_div_8_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r328); const index_r319 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r326 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r326.onDeleteImage(index_r319); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r318 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r318.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_form_11_tr_40_div_10_Template(rf, ctx) { if (rf & 1) {
const _r332 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_tr_40_div_10_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r332); const index_r319 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r330 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r330.onDeleteOptions(index_r319); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_11_tr_40_Template(rf, ctx) { if (rf & 1) {
const _r334 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_11_tr_40_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r334); const index_r319 = ctx.index; const ctx_r333 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r333.onClickCorrectAnswer($event, index_r319); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_form_11_tr_40_div_7_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_form_11_tr_40_div_8_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_form_11_tr_40_div_10_Template, 2, 0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r318 = ctx.$implicit;
const index_r319 = ctx.index;
const ctx_r297 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r319);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", field_r318.get("correctAns").value ? true : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r318.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r318.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r297.OptionControl.controls.length >= 2);
} }
function QuestionModalComponent_form_11_option_69_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r335 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r335);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r335, " ");
} }
function QuestionModalComponent_form_11_div_70_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r299 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r299.options);
} }
const _c5 = function (a0) { return { "is-invalid": a0 }; };
function QuestionModalComponent_form_11_Template(rf, ctx) { if (rf & 1) {
const _r337 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r337); const ctx_r336 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r336.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_11_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_11_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_11_div_14_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_form_11_div_16_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, QuestionModalComponent_form_11_tr_20_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "CORRECT ANSWER");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](40, QuestionModalComponent_form_11_tr_40_Template, 11, 5, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "label", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "Text Must be between");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](44, "input", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, " and ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](47, "input", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](49, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](51, "label", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "span", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53, "*Note: Please enter max character limit ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](54, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](55, "(max limit is upto 5000 characters)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](60, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](61, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](62, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](65, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](68, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](69, QuestionModalComponent_form_11_option_69_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](70, QuestionModalComponent_form_11_div_70_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_Template_button_click_73_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r337); const ctx_r338 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r338.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](74, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_11_Template_button_click_75_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r337); const ctx_r339 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r339.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](76, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r8.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r8.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r8.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r8.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r8.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r8.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r8.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r8.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r8.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r8.OptionControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](17, _c5, ctx_r8.submittedForm && ctx_r8.createQuestionForm.get("maxlength").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r8.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r8.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r8.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](19, _c2, ctx_r8.isLoading, !ctx_r8.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r8.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_form_12_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r340 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r340.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r340.selectedIcon, " ");
} }
function QuestionModalComponent_form_12_div_13_Template(rf, ctx) { if (rf & 1) {
const _r350 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r350); const ctx_r349 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r349.onDeleteIcon(ctx_r349.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_12_div_14_Template(rf, ctx) { if (rf & 1) {
const _r352 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_12_div_14_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r352); const ctx_r351 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r351.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_12_div_16_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r355 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r355);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r355.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_form_12_div_16_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r357 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r357);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r357.value, " ");
} }
function QuestionModalComponent_form_12_div_16_div_6_Template(rf, ctx) { if (rf & 1) {
const _r359 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_form_12_div_16_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_div_16_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r359); const ctx_r358 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r358.addConditionalQuestion(ctx_r358.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_div_16_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r359); const ctx_r360 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r360.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r354 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r354.conditionalAnswers);
} }
function QuestionModalComponent_form_12_div_16_Template(rf, ctx) { if (rf & 1) {
const _r362 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_12_div_16_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r362); const ctx_r361 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r361.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_12_div_16_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_12_div_16_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r343 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r343.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r343.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_form_12_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r366 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_tr_20_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r366); const index_r364 = ctx.index; const ctx_r365 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r365.conditionQuestionDelete(index_r364); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r363 = ctx.$implicit;
const index_r364 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r363.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r364);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r363.get("option").value, "");
} }
function QuestionModalComponent_form_12_tr_40_div_7_Template(rf, ctx) { if (rf & 1) {
const _r373 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_12_tr_40_div_7_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r373); const index_r368 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r372 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r372.BannerUpload($event, index_r368); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_12_tr_40_div_8_Template(rf, ctx) { if (rf & 1) {
const _r377 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_tr_40_div_8_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r377); const index_r368 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r375 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r375.onDeleteImage(index_r368); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r367 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r367.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_form_12_tr_40_div_10_Template(rf, ctx) { if (rf & 1) {
const _r381 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_tr_40_div_10_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r381); const index_r368 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r379 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r379.onDeleteOptions(index_r368); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_12_tr_40_Template(rf, ctx) { if (rf & 1) {
const _r383 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_12_tr_40_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r383); const index_r368 = ctx.index; const ctx_r382 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r382.onClickCorrectAnswer($event, index_r368); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_form_12_tr_40_div_7_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_form_12_tr_40_div_8_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_form_12_tr_40_div_10_Template, 2, 0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r367 = ctx.$implicit;
const index_r368 = ctx.index;
const ctx_r345 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r368);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", field_r367.get("correctAns").value ? true : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r367.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r367.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r345.OptionControl.controls.length >= 2);
} }
function QuestionModalComponent_form_12_option_74_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r384 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r384);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r384, " ");
} }
function QuestionModalComponent_form_12_div_75_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r347 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r347.options);
} }
function QuestionModalComponent_form_12_div_76_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Explanation");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r348 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r348.options);
} }
function QuestionModalComponent_form_12_Template(rf, ctx) { if (rf & 1) {
const _r386 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r386); const ctx_r385 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r385.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_12_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_12_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_12_div_14_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_form_12_div_16_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, QuestionModalComponent_form_12_tr_20_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "CORRECT ANSWER");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](40, QuestionModalComponent_form_12_tr_40_Template, 11, 5, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "label", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "Text Must be between");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](44, "input", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, " and ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](47, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](49, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](51, "label", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "span", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53, "*Note: Please enter max character limit ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](54, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](55, "(max limit is upto 50 characters)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](59, "input", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](60, " Is Numeric ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](65, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](66, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](67, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](70, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](73, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](74, QuestionModalComponent_form_12_option_74_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](75, QuestionModalComponent_form_12_div_75_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](76, QuestionModalComponent_form_12_div_76_Template, 6, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_Template_button_click_79_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r386); const ctx_r387 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r387.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](80, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](81, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_12_Template_button_click_81_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r386); const ctx_r388 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r388.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](82, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r9.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r9.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r9.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r9.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r9.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r9.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r9.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r9.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r9.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r9.OptionControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("min", 1)("max", 50)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](20, _c5, ctx_r9.submittedForm && ctx_r9.createQuestionForm.get("maxlength").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r9.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r9.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r9.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r9.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](22, _c2, ctx_r9.isLoading, !ctx_r9.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r9.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_form_13_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r389 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r389.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r389.selectedIcon, " ");
} }
function QuestionModalComponent_form_13_div_13_Template(rf, ctx) { if (rf & 1) {
const _r399 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r399); const ctx_r398 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r398.onDeleteIcon(ctx_r398.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_13_div_14_Template(rf, ctx) { if (rf & 1) {
const _r401 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_13_div_14_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r401); const ctx_r400 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r400.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_13_div_16_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r404 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r404);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r404.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_form_13_div_16_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r406 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r406);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r406.value, " ");
} }
function QuestionModalComponent_form_13_div_16_div_6_Template(rf, ctx) { if (rf & 1) {
const _r408 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_form_13_div_16_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_div_16_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r408); const ctx_r407 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r407.addConditionalQuestion(ctx_r407.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_div_16_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r408); const ctx_r409 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r409.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r403 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r403.conditionalAnswers);
} }
function QuestionModalComponent_form_13_div_16_Template(rf, ctx) { if (rf & 1) {
const _r411 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_13_div_16_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r411); const ctx_r410 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r410.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_13_div_16_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_13_div_16_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r392 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r392.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r392.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_form_13_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r415 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_tr_20_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r415); const index_r413 = ctx.index; const ctx_r414 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r414.conditionQuestionDelete(index_r413); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r412 = ctx.$implicit;
const index_r413 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r412.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r413);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r412.get("option").value, "");
} }
function QuestionModalComponent_form_13_tr_40_div_7_Template(rf, ctx) { if (rf & 1) {
const _r422 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_13_tr_40_div_7_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r422); const index_r417 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r421 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r421.BannerUpload($event, index_r417); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_13_tr_40_div_8_Template(rf, ctx) { if (rf & 1) {
const _r426 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_tr_40_div_8_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r426); const index_r417 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r424 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r424.onDeleteImage(index_r417); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r416 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r416.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_form_13_tr_40_div_10_Template(rf, ctx) { if (rf & 1) {
const _r430 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_tr_40_div_10_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r430); const index_r417 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r428 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r428.onDeleteOptions(index_r417); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_13_tr_40_Template(rf, ctx) { if (rf & 1) {
const _r432 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_13_tr_40_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r432); const index_r417 = ctx.index; const ctx_r431 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r431.onClickCorrectAnswer($event, index_r417); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_form_13_tr_40_div_7_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_form_13_tr_40_div_8_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_form_13_tr_40_div_10_Template, 2, 0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r416 = ctx.$implicit;
const index_r417 = ctx.index;
const ctx_r394 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r417);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", field_r416.get("correctAns").value ? true : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r416.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r416.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r394.OptionControl.controls.length >= 2);
} }
function QuestionModalComponent_form_13_option_54_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r433 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r433);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r433, " ");
} }
function QuestionModalComponent_form_13_div_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r396 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r396.options);
} }
function QuestionModalComponent_form_13_div_63_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r397 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r397.options);
} }
function QuestionModalComponent_form_13_Template(rf, ctx) { if (rf & 1) {
const _r435 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r435); const ctx_r434 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r434.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_13_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_13_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_13_div_14_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_form_13_div_16_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, QuestionModalComponent_form_13_tr_20_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "CORRECT ANSWER");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](40, QuestionModalComponent_form_13_tr_40_Template, 11, 5, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](46, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](47, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](54, QuestionModalComponent_form_13_option_54_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](55, QuestionModalComponent_form_13_div_55_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_Template_button_click_58_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r435); const ctx_r436 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r436.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_13_Template_button_click_60_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r435); const ctx_r437 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r437.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](61, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](63, QuestionModalComponent_form_13_div_63_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r10.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r10.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r10.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r10.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r10.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r10.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r10.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r10.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r10.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r10.OptionControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r10.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r10.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r10.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](17, _c2, ctx_r10.isLoading, !ctx_r10.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r10.isEdit ? "Update" : "Add", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r10.createQuestionForm.get("editable").value);
} }
function QuestionModalComponent_form_14_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r438 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r438.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r438.selectedIcon, " ");
} }
function QuestionModalComponent_form_14_div_13_Template(rf, ctx) { if (rf & 1) {
const _r446 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_14_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r446); const ctx_r445 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r445.onDeleteIcon(ctx_r445.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_14_div_14_Template(rf, ctx) { if (rf & 1) {
const _r448 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_14_div_14_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r448); const ctx_r447 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r447.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_14_div_16_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r451 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r451);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r451.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_form_14_div_16_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r453 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r453);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r453.value, " ");
} }
function QuestionModalComponent_form_14_div_16_div_6_Template(rf, ctx) { if (rf & 1) {
const _r455 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_form_14_div_16_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_14_div_16_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r455); const ctx_r454 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r454.addConditionalQuestion(ctx_r454.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_14_div_16_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r455); const ctx_r456 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r456.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r450.conditionalAnswers);
} }
function QuestionModalComponent_form_14_div_16_Template(rf, ctx) { if (rf & 1) {
const _r458 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_14_div_16_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r458); const ctx_r457 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r457.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_14_div_16_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_14_div_16_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r441 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r441.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r441.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_form_14_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r462 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_14_tr_20_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r462); const index_r460 = ctx.index; const ctx_r461 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r461.conditionQuestionDelete(index_r460); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r459 = ctx.$implicit;
const index_r460 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r459.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r460);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r459.get("option").value, "");
} }
function QuestionModalComponent_form_14_option_44_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r463 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r463);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r463, " ");
} }
function QuestionModalComponent_form_14_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r444 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r444.options);
} }
function QuestionModalComponent_form_14_Template(rf, ctx) { if (rf & 1) {
const _r465 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_14_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r465); const ctx_r464 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r464.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_14_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_14_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_14_div_14_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_form_14_div_16_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, QuestionModalComponent_form_14_tr_20_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "p", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, " Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "input", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_14_Template_input_change_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r465); const ctx_r466 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r466.setDateTime($event.target.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](31, " Date ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_14_Template_input_change_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r465); const ctx_r467 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r467.setDateTime($event.target.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, " Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](36, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "select", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](44, QuestionModalComponent_form_14_option_44_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](45, QuestionModalComponent_form_14_div_45_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_14_Template_button_click_48_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r465); const ctx_r468 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r468.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](49, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_14_Template_button_click_50_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r465); const ctx_r469 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r469.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](51, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r11.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r11.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r11.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r11.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r11.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1)("checked", ctx_r11.dateTimeChecked.date === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2)("checked", ctx_r11.dateTimeChecked.time === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r11.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r11.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](19, _c2, ctx_r11.isLoading, !ctx_r11.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r11.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_form_15_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r470 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r470.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r470.selectedIcon, " ");
} }
function QuestionModalComponent_form_15_div_13_Template(rf, ctx) { if (rf & 1) {
const _r478 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r478); const ctx_r477 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r477.onDeleteIcon(ctx_r477.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_15_div_14_Template(rf, ctx) { if (rf & 1) {
const _r480 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_15_div_14_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r480); const ctx_r479 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r479.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_15_div_19_option_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const apicall_r482 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", apicall_r482);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", apicall_r482, " ");
} }
function QuestionModalComponent_form_15_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Select Service Module");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "select", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Select Service");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_15_div_19_option_6_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r473 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r473.serviceCall);
} }
function QuestionModalComponent_form_15_div_20_div_2_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r488 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r488);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r488.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_form_15_div_20_div_2_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r490 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r490);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r490.value, " ");
} }
function QuestionModalComponent_form_15_div_20_div_2_div_6_Template(rf, ctx) { if (rf & 1) {
const _r492 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_form_15_div_20_div_2_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_div_20_div_2_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r492); const ctx_r491 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r491.addConditionalQuestion(ctx_r491.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_div_20_div_2_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r492); const ctx_r493 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r493.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r487 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r487.conditionalAnswers);
} }
function QuestionModalComponent_form_15_div_20_div_2_Template(rf, ctx) { if (rf & 1) {
const _r495 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_15_div_20_div_2_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r495); const ctx_r494 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r494.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_15_div_20_div_2_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_15_div_20_div_2_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r483 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r483.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r483.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_form_15_div_20_tr_6_Template(rf, ctx) { if (rf & 1) {
const _r499 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_div_20_tr_6_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r499); const index_r497 = ctx.index; const ctx_r498 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r498.conditionQuestionDelete(index_r497); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r496 = ctx.$implicit;
const index_r497 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r496.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r497);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r496.get("option").value, "");
} }
function QuestionModalComponent_form_15_div_20_tr_31_div_7_Template(rf, ctx) { if (rf & 1) {
const _r506 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_15_div_20_tr_31_div_7_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r506); const index_r501 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r505 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r505.BannerUpload($event, index_r501); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_15_div_20_tr_31_div_8_Template(rf, ctx) { if (rf & 1) {
const _r510 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_div_20_tr_31_div_8_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r510); const index_r501 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r508 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r508.onDeleteImage(index_r501); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r500 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r500.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_form_15_div_20_tr_31_div_10_Template(rf, ctx) { if (rf & 1) {
const _r514 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_div_20_tr_31_div_10_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r514); const index_r501 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r512 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r512.onDeleteOptions(index_r501); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_15_div_20_tr_31_Template(rf, ctx) { if (rf & 1) {
const _r516 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_15_div_20_tr_31_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r516); const index_r501 = ctx.index; const ctx_r515 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r515.onClickCorrectAnswer($event, index_r501); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_form_15_div_20_tr_31_div_7_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_form_15_div_20_tr_31_div_8_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_form_15_div_20_tr_31_div_10_Template, 2, 0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r500 = ctx.$implicit;
const index_r501 = ctx.index;
const ctx_r485 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r501);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", field_r500.get("correctAns").value ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r500.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r500.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r485.OptionControl.controls.length >= 2);
} }
function QuestionModalComponent_form_15_div_20_Template(rf, ctx) { if (rf & 1) {
const _r518 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, QuestionModalComponent_form_15_div_20_div_2_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_15_div_20_tr_6_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "button", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_div_20_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r518); const ctx_r517 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r517.addOptions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "CORRECT ANSWER");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](29, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](31, QuestionModalComponent_form_15_div_20_tr_31_Template, 11, 5, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r474 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r474.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r474.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r474.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r474.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r474.OptionControl.controls);
} }
function QuestionModalComponent_form_15_option_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r519 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r519);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r519, " ");
} }
function QuestionModalComponent_form_15_div_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r476 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r476.options);
} }
function QuestionModalComponent_form_15_Template(rf, ctx) { if (rf & 1) {
const _r521 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r521); const ctx_r520 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r520.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_15_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_15_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_15_div_14_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "input", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_15_Template_input_change_17_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r521); const ctx_r522 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r522.setIsDynamic($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, " Is Dynamic Data Required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, QuestionModalComponent_form_15_div_19_Template, 7, 2, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, QuestionModalComponent_form_15_div_20_Template, 32, 5, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](33, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](34, QuestionModalComponent_form_15_option_34_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](35, QuestionModalComponent_form_15_div_35_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_Template_button_click_38_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r521); const ctx_r523 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r523.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_15_Template_button_click_40_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r521); const ctx_r524 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r524.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](41, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r12.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r12.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r12.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r12.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r12.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !!ctx_r12.createQuestionForm.get("isDynamicData").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r12.createQuestionForm.get("isDynamicData").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r12.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r12.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r12.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](13, _c2, ctx_r12.isLoading, !ctx_r12.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r12.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_form_16_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r525 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r525.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r525.selectedIcon, " ");
} }
function QuestionModalComponent_form_16_div_13_Template(rf, ctx) { if (rf & 1) {
const _r531 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_16_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r531); const ctx_r530 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r530.onDeleteIcon(ctx_r530.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_16_div_15_Template(rf, ctx) { if (rf & 1) {
const _r535 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "input", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_16_div_15_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r535); const index_r533 = ctx.index; const ctx_r534 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r534.onAttachments(index_r533, $event.target.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const link_r532 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", link_r532.value)("checked", link_r532.selected);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", link_r532.value, " ");
} }
function QuestionModalComponent_form_16_option_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r536 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r536);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r536, " ");
} }
function QuestionModalComponent_form_16_div_30_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r529 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r529.options);
} }
function QuestionModalComponent_form_16_Template(rf, ctx) { if (rf & 1) {
const _r538 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_16_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r538); const ctx_r537 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r537.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_16_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_16_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_form_16_div_15_Template, 4, 3, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](29, QuestionModalComponent_form_16_option_29_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](30, QuestionModalComponent_form_16_div_30_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_16_Template_button_click_33_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r538); const ctx_r539 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r539.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_16_Template_button_click_35_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r538); const ctx_r540 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r540.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](36, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r13.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r13.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r13.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r13.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r13.attachMents);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r13.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r13.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r13.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](11, _c2, ctx_r13.isLoading, !ctx_r13.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r13.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_form_17_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r541 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r541.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r541.selectedIcon, " ");
} }
function QuestionModalComponent_form_17_div_13_Template(rf, ctx) { if (rf & 1) {
const _r550 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_17_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r550); const ctx_r549 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r549.onDeleteIcon(ctx_r549.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_17_div_14_Template(rf, ctx) { if (rf & 1) {
const _r552 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_17_div_14_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r552); const ctx_r551 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r551.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_17_div_17_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r555 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r555);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r555.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_form_17_div_17_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r557 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r557);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r557.value, " ");
} }
function QuestionModalComponent_form_17_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
const _r559 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_form_17_div_17_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_17_div_17_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r559); const ctx_r558 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r558.addConditionalQuestion(ctx_r558.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_17_div_17_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r559); const ctx_r560 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r560.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r554 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r554.conditionalAnswers);
} }
function QuestionModalComponent_form_17_div_17_Template(rf, ctx) { if (rf & 1) {
const _r562 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_17_div_17_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r562); const ctx_r561 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r561.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_17_div_17_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_17_div_17_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r544 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r544.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r544.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_form_17_tr_21_Template(rf, ctx) { if (rf & 1) {
const _r566 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_17_tr_21_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r566); const index_r564 = ctx.index; const ctx_r565 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r565.conditionQuestionDelete(index_r564); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r563 = ctx.$implicit;
const index_r564 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r563.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r564);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r563.get("option").value, "");
} }
function QuestionModalComponent_form_17_option_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r567 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r567);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r567, " ");
} }
function QuestionModalComponent_form_17_option_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r568 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r568);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r568, " ");
} }
function QuestionModalComponent_form_17_div_46_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r548 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r548.options);
} }
function QuestionModalComponent_form_17_Template(rf, ctx) { if (rf & 1) {
const _r570 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_17_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r570); const ctx_r569 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r569.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_17_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_17_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_17_div_14_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_form_17_div_17_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, QuestionModalComponent_form_17_tr_21_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "No of Stars");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "select", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](31, QuestionModalComponent_form_17_option_31_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](37, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](41, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](45, QuestionModalComponent_form_17_option_45_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](46, QuestionModalComponent_form_17_div_46_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_17_Template_button_click_49_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r570); const ctx_r571 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r571.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_17_Template_button_click_51_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r570); const ctx_r572 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r572.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](52, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r14.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r14.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r14.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r14.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r14.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r14.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r14.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r14.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r14.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r14.noOfStars);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r14.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r14.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r14.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](17, _c2, ctx_r14.isLoading, !ctx_r14.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r14.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_form_18_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r573 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r573.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r573.selectedIcon, " ");
} }
function QuestionModalComponent_form_18_div_13_Template(rf, ctx) { if (rf & 1) {
const _r581 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_18_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r581); const ctx_r580 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r580.onDeleteIcon(ctx_r580.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_18_div_14_Template(rf, ctx) { if (rf & 1) {
const _r583 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_18_div_14_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r583); const ctx_r582 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r582.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_18_div_16_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r586 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r586);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r586.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_form_18_div_16_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r588 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r588);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r588.value, " ");
} }
function QuestionModalComponent_form_18_div_16_div_6_Template(rf, ctx) { if (rf & 1) {
const _r590 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_form_18_div_16_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_18_div_16_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r590); const ctx_r589 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r589.addConditionalQuestion(ctx_r589.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_18_div_16_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r590); const ctx_r591 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r591.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r585 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r585.conditionalAnswers);
} }
function QuestionModalComponent_form_18_div_16_Template(rf, ctx) { if (rf & 1) {
const _r593 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_18_div_16_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r593); const ctx_r592 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r592.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_18_div_16_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_18_div_16_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r576 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r576.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r576.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_form_18_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r597 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_18_tr_20_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r597); const index_r595 = ctx.index; const ctx_r596 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r596.conditionQuestionDelete(index_r595); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r594 = ctx.$implicit;
const index_r595 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r594.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r595);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r594.get("option").value, "");
} }
function QuestionModalComponent_form_18_option_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r598 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r598);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r598, " ");
} }
function QuestionModalComponent_form_18_div_37_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r579 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r579.options);
} }
function QuestionModalComponent_form_18_Template(rf, ctx) { if (rf & 1) {
const _r600 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_18_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r600); const ctx_r599 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r599.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_18_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_18_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_18_div_14_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_form_18_div_16_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, QuestionModalComponent_form_18_tr_20_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "assign-users", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("onSubmitAssignUsers", function QuestionModalComponent_form_18_Template_assign_users_onSubmitAssignUsers_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r600); const ctx_r601 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r601.updatedUserDetails($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](36, QuestionModalComponent_form_18_option_36_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](37, QuestionModalComponent_form_18_div_37_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_18_Template_button_click_40_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r600); const ctx_r602 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r602.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](41, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_18_Template_button_click_42_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r600); const ctx_r603 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r603.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](43, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r15.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r15.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r15.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r15.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r15.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("isAdminView", false)("userDetails", ctx_r15.userDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r15.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r15.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](17, _c2, ctx_r15.isLoading, !ctx_r15.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r15.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_form_19_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r604 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r604.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r604.selectedIcon, " ");
} }
function QuestionModalComponent_form_19_div_13_Template(rf, ctx) { if (rf & 1) {
const _r613 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_div_13_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r613); const ctx_r612 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r612.onDeleteIcon(ctx_r612.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_19_div_14_Template(rf, ctx) { if (rf & 1) {
const _r615 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_19_div_14_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r615); const ctx_r614 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r614.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_19_div_16_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r618 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r618);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r618.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_form_19_div_16_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r620 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r620);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r620.value, " ");
} }
function QuestionModalComponent_form_19_div_16_div_6_Template(rf, ctx) { if (rf & 1) {
const _r622 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_form_19_div_16_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_div_16_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r622); const ctx_r621 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r621.addConditionalQuestion(ctx_r621.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_div_16_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r622); const ctx_r623 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r623.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r617 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r617.conditionalAnswers);
} }
function QuestionModalComponent_form_19_div_16_Template(rf, ctx) { if (rf & 1) {
const _r625 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_19_div_16_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r625); const ctx_r624 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r624.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_19_div_16_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_19_div_16_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r607 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r607.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r607.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_form_19_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r629 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_tr_20_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r629); const index_r627 = ctx.index; const ctx_r628 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r628.conditionQuestionDelete(index_r627); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r626 = ctx.$implicit;
const index_r627 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r626.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r627);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r626.get("option").value, "");
} }
function QuestionModalComponent_form_19_tr_45_div_5_Template(rf, ctx) { if (rf & 1) {
const _r636 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_form_19_tr_45_div_5_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r636); const index_r631 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r635 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r635.BannerUpload($event, index_r631); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_19_tr_45_div_6_Template(rf, ctx) { if (rf & 1) {
const _r640 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_tr_45_div_6_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r640); const index_r631 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r638 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r638.onDeleteImage(index_r631); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r630 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", field_r630.get("imageSrc").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function QuestionModalComponent_form_19_tr_45_div_8_Template(rf, ctx) { if (rf & 1) {
const _r644 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "i", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_tr_45_div_8_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r644); const index_r631 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r642 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r642.onDeleteOptions(index_r631); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_form_19_tr_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_form_19_tr_45_div_5_Template, 4, 0, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_form_19_tr_45_div_6_Template, 4, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_form_19_tr_45_div_8_Template, 2, 0, "div", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r630 = ctx.$implicit;
const index_r631 = ctx.index;
const ctx_r609 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r631);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !field_r630.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", field_r630.get("imageSrc").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r609.OptionControl.controls.length >= 2);
} }
function QuestionModalComponent_form_19_option_59_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r645 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r645);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r645, " ");
} }
function QuestionModalComponent_form_19_div_60_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r611 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r611.options);
} }
function QuestionModalComponent_form_19_Template(rf, ctx) { if (rf & 1) {
const _r647 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r647); const ctx_r646 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r646.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_19_div_12_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_19_div_13_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_19_div_14_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_form_19_div_16_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, QuestionModalComponent_form_19_tr_20_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Answer Options");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "button", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_Template_button_click_29_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r647); const ctx_r648 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r648.addOptions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "p", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "Please fill options in correct sequence");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "ANSWER CHOICES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](43, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](45, QuestionModalComponent_form_19_tr_45_Template, 9, 4, "tr", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](51, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](55, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](59, QuestionModalComponent_form_19_option_59_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](60, QuestionModalComponent_form_19_div_60_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_Template_button_click_63_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r647); const ctx_r649 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r649.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_form_19_Template_button_click_65_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r647); const ctx_r650 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r650.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](66, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r16.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r16.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r16.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r16.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r16.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r16.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r16.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r16.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r16.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r16.OptionControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r16.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r16.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r16.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](16, _c2, ctx_r16.isLoading, !ctx_r16.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r16.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_20_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r651 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r651.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r651.selectedIcon, " ");
} }
function QuestionModalComponent_div_20_div_14_Template(rf, ctx) { if (rf & 1) {
const _r663 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r663); const ctx_r662 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r662.onDeleteIcon(ctx_r662.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_20_div_15_Template(rf, ctx) { if (rf & 1) {
const _r665 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_20_div_15_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r665); const ctx_r664 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r664.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_20_div_17_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r668 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r668);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r668.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_20_div_17_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r670 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r670);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r670.value, " ");
} }
function QuestionModalComponent_div_20_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
const _r672 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_div_20_div_17_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_div_17_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r672); const ctx_r671 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r671.addConditionalQuestion(ctx_r671.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_div_17_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r672); const ctx_r673 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r673.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r667 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r667.conditionalAnswers);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r667.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_20_div_17_Template(rf, ctx) { if (rf & 1) {
const _r675 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_20_div_17_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r675); const ctx_r674 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r674.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_20_div_17_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_20_div_17_div_6_Template, 11, 5, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r654 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r654.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r654.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_div_20_tr_21_Template(rf, ctx) { if (rf & 1) {
const _r679 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Question - ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "p", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_tr_21_Template_img_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r679); const index_r677 = ctx.index; const ctx_r678 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r678.conditionQuestionDelete(index_r677); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r676 = ctx.$implicit;
const index_r677 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("innerHtml", field_r676.get("question").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r677);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Answer - ", field_r676.get("option").value, "");
} }
function QuestionModalComponent_div_20_div_24_Template(rf, ctx) { if (rf & 1) {
const _r681 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_20_div_24_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r681); const ctx_r680 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r680.photoUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_20_div_25_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 167);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 168);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r684 = ctx.$implicit;
const i_r685 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("left", item_r684 == null ? null : item_r684.value == null ? null : item_r684.value.x, "%")("top", item_r684 == null ? null : item_r684.value == null ? null : item_r684.value.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](i_r685 + 1);
} }
const _c6 = function (a0) { return { position: a0 }; };
function QuestionModalComponent_div_20_div_25_Template(rf, ctx) { if (rf & 1) {
const _r687 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Please click on image to select a spot");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_div_25_Template_div_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r687); const ctx_r686 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r686.openPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "i", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "img", 164, 165);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_div_25_Template_img_click_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r687); const ctx_r688 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r688.onImageClick($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_div_20_div_25_div_8_Template, 3, 5, "div", 166);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r657 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](3, _c6, ctx_r657.isPopupOpen ? "sticky" : "relative"));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r657.photopickForm.value.imgSrc, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r657.imgDescControls == null ? null : ctx_r657.imgDescControls.controls);
} }
function QuestionModalComponent_div_20_div_26_Template(rf, ctx) { if (rf & 1) {
const _r690 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 169);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_20_div_26_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r690); const ctx_r689 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r689.photoUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 170);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Change Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_20_tr_40_div_7_Template(rf, ctx) { if (rf & 1) {
const _r696 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_tr_40_div_7_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r696); const index_r692 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r694 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r694.onDeleteDescription(index_r692); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_20_tr_40_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 171);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](1, 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "td", 172);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_div_20_tr_40_div_7_Template, 2, 0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const index_r692 = ctx.index;
const ctx_r659 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r692);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", index_r692 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r659.imgDescControls.controls.length >= 1);
} }
function QuestionModalComponent_div_20_option_54_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r697 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r697);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r697, " ");
} }
function QuestionModalComponent_div_20_div_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Post Answer Explanation");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r661 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r661.options);
} }
function QuestionModalComponent_div_20_Template(rf, ctx) { if (rf & 1) {
const _r699 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Question/Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r699); const ctx_r698 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r698.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_div_20_div_13_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_div_20_div_14_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_div_20_div_15_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_div_20_div_17_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "table", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, QuestionModalComponent_div_20_tr_21_Template, 11, 3, "tr", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "hr", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](24, QuestionModalComponent_div_20_div_24_Template, 4, 0, "div", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](25, QuestionModalComponent_div_20_div_25_Template, 9, 5, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](26, QuestionModalComponent_div_20_div_26_Template, 4, 0, "div", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "strong", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Spot descriptions");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "th", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35, "SNO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37, "DESCRIPTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](38, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](40, QuestionModalComponent_div_20_tr_40_Template, 8, 3, "tr", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, " Advanced Options ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](46, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](47, " Post Answer Explanation ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](54, QuestionModalComponent_div_20_option_54_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](55, QuestionModalComponent_div_20_div_55_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_Template_button_click_58_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r699); const ctx_r700 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r700.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_20_Template_button_click_60_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r699); const ctx_r701 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r701.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](61, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r17.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r17.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r17.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r17.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r17.conditionalQuestionsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r17.photopickForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r17.photopickForm.value.imgSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.photopickForm.value.imgSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.photopickForm.value.imgSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r17.imgDescControls.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r17.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r17.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r17.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](21, _c2, ctx_r17.isLoading, !ctx_r17.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r17.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_21_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r702 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r702.options);
} }
function QuestionModalComponent_div_21_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r703 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r703.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r703.selectedIcon, " ");
} }
function QuestionModalComponent_div_21_div_16_Template(rf, ctx) { if (rf & 1) {
const _r711 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_21_div_16_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r711); const ctx_r710 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r710.onDeleteIcon(ctx_r710.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_21_div_17_Template(rf, ctx) { if (rf & 1) {
const _r713 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_21_div_17_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r713); const ctx_r712 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r712.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_21_div_19_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r716 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r716);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r716.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_21_div_19_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r718 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r718);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r718.value, " ");
} }
function QuestionModalComponent_div_21_div_19_div_6_Template(rf, ctx) { if (rf & 1) {
const _r720 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_div_21_div_19_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_21_div_19_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r720); const ctx_r719 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r719.addConditionalQuestion(ctx_r719.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_21_div_19_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r720); const ctx_r721 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r721.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r715 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r715.conditionalAnswers);
} }
function QuestionModalComponent_div_21_div_19_Template(rf, ctx) { if (rf & 1) {
const _r723 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_21_div_19_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r723); const ctx_r722 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r722.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_21_div_19_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_21_div_19_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r706 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r706.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r706.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_div_21_ng_option_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r724 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r724 == null ? null : item_r724._id);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r724.name), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_21_option_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r725 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", field_r725);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", field_r725, " ");
} }
function QuestionModalComponent_div_21_tr_58_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r731 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r731._id);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r731.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_21_tr_58_option_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r732 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", field_r732);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", field_r732, " ");
} }
function QuestionModalComponent_div_21_tr_58_button_10_Template(rf, ctx) { if (rf & 1) {
const _r735 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_21_tr_58_button_10_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r735); const i_r727 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().index; const ctx_r733 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r733.removeDynamicRow(i_r727); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Remove");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_21_tr_58_Template(rf, ctx) { if (rf & 1) {
const _r737 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "ng-select", 179);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_21_tr_58_Template_ng_select_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r737); const ctx_r736 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r736.getContionalAnswersforSourceQuestions($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, QuestionModalComponent_div_21_tr_58_ng_option_3_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "select", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_div_21_tr_58_option_8_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_div_21_tr_58_button_10_Template, 2, 0, "button", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r727 = ctx.index;
const ctx_r709 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", i_r727);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r709.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r709.lookupFields);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", i_r727 > 0);
} }
function QuestionModalComponent_div_21_Template(rf, ctx) { if (rf & 1) {
const _r739 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_div_21_div_10_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_21_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r739); const ctx_r738 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r738.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_div_21_div_15_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_div_21_div_16_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_div_21_div_17_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, QuestionModalComponent_div_21_div_19_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "Lookup Table");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "ng-select", 173);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_21_Template_ng_select_change_26_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r739); const ctx_r740 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r740.getLookupFields($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](27, QuestionModalComponent_div_21_ng_option_27_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Display Field");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "select", 174);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](36, QuestionModalComponent_div_21_option_36_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "div", 175);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "h5", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](41, "Auto Populate Data Field List");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "button", 176);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_21_Template_button_click_42_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r739); const ctx_r741 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r741.addDynamicRow(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "Add Row");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "table", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](48, "Source Questions");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "Lookup Field");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](54, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "tbody", 177);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](58, QuestionModalComponent_div_21_tr_58_Template, 11, 8, "tr", 178);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_21_Template_button_click_61_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r739); const ctx_r742 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r742.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](62, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_21_Template_button_click_63_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r739); const ctx_r743 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r743.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](64, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r18.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r18.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r18.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r18.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r18.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r18.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r18.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r18.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r18.lookupData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r18.lookupFields);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r18.autoPopulateData.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r18.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](18, _c2, ctx_r18.isLoading, !ctx_r18.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r18.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_div_22_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r744 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r744.options);
} }
function QuestionModalComponent_div_22_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Selected Icon:");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r745 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + ctx_r745.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r745.selectedIcon, " ");
} }
function QuestionModalComponent_div_22_div_16_Template(rf, ctx) { if (rf & 1) {
const _r752 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_22_div_16_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r752); const ctx_r751 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r751.onDeleteIcon(ctx_r751.index); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_22_div_17_Template(rf, ctx) { if (rf & 1) {
const _r754 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_22_div_17_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r754); const ctx_r753 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r753.getConditionalQuestions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Make this question conditional, based on another selected question and answer ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function QuestionModalComponent_div_22_div_19_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "p", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r757 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r757);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](2, 2, item_r757.question), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
} }
function QuestionModalComponent_div_22_div_19_div_6_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r759 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r759);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r759.value, " ");
} }
function QuestionModalComponent_div_22_div_19_div_6_Template(rf, ctx) { if (rf & 1) {
const _r761 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Answers");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_div_22_div_19_div_6_ng_option_4_Template, 2, 2, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_22_div_19_div_6_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r761); const ctx_r760 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r760.addConditionalQuestion(ctx_r760.conditionalQuestionForm.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_22_div_19_div_6_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r761); const ctx_r762 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r762.onClearConditionalQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r756 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r756.conditionalAnswers);
} }
function QuestionModalComponent_div_22_div_19_Template(rf, ctx) { if (rf & 1) {
const _r764 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "ng-select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function QuestionModalComponent_div_22_div_19_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r764); const ctx_r763 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r763.getContionalAnswers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_22_div_19_ng_option_5_Template, 3, 4, "ng-option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_22_div_19_div_6_Template, 11, 4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r748 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r748.conditionalQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r748.conditionalAnswers.length != 0);
} }
function QuestionModalComponent_div_22_option_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r765 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r765);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r765, " ");
} }
function QuestionModalComponent_div_22_option_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r766 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r766);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r766, " ");
} }
function QuestionModalComponent_div_22_Template(rf, ctx) { if (rf & 1) {
const _r768 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Question Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_div_22_div_10_Template, 6, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 183);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "button", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_22_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r768); const ctx_r767 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r767.openIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, " Choose Icon ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_div_22_div_15_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_div_22_div_16_Template, 3, 0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_div_22_div_17_Template, 5, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "form", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, QuestionModalComponent_div_22_div_19_Template, 7, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "Display Value");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "select", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](29, QuestionModalComponent_div_22_option_29_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "option", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](36, QuestionModalComponent_div_22_option_36_Template, 2, 2, "option", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_22_Template_button_click_39_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r768); const ctx_r769 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r769.cancelPopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_22_Template_button_click_41_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r768); const ctx_r770 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r770.onCreateQuestion(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](42, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r19.createQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx_r19.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r19.createQuestionForm.get("editable").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r19.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r19.selectedIcon);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r19.value.questionslength > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r19.conditionalQuestionForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r19.createQuestionForm.get("isConditional").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r19.buttonsValues);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r19.order);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r19.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](15, _c2, ctx_r19.isLoading, !ctx_r19.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r19.isEdit ? "Update" : "Add", " ");
} }
function QuestionModalComponent_ng_container_23_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 168);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r773 = ctx.$implicit;
const i_r774 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstyleProp"]("left", item_r773 == null ? null : item_r773.value == null ? null : item_r773.value.x, "%")("top", item_r773 == null ? null : item_r773.value == null ? null : item_r773.value.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](i_r774 + 1);
} }
function QuestionModalComponent_ng_container_23_Template(rf, ctx) { if (rf & 1) {
const _r776 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 185);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 186);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 187);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_ng_container_23_Template_div_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r776); const ctx_r775 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r775.closePopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "i", 188);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "img", 164, 165);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_ng_container_23_Template_img_click_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r776); const ctx_r777 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r777.onImageClick($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_ng_container_23_div_8_Template, 3, 5, "div", 189);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r20.photopickForm.value.imgSrc, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r20.imgDescControls == null ? null : ctx_r20.imgDescControls.controls);
} }
function QuestionModalComponent_div_24_div_5_Template(rf, ctx) { if (rf & 1) {
const _r781 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_24_div_5_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r781); const icon_r779 = ctx.$implicit; const ctx_r780 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r780.selectIcon(icon_r779); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const icon_r779 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"]("fa " + icon_r779);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](icon_r779);
} }
function QuestionModalComponent_div_24_Template(rf, ctx) { if (rf & 1) {
const _r783 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 191);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 192);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function QuestionModalComponent_div_24_Template_span_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r783); const ctx_r782 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r782.closeIconPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 194);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_24_div_5_Template, 4, 3, "div", 195);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r21.icons);
} }
class QuestionModalComponent {
constructor(activeModal, http, formbuilder, companyService, toastService, centralBuilderService, customFields, modalService, userService, buUnit, customFieldService, channelService) {
this.activeModal = activeModal;
this.http = http;
this.formbuilder = formbuilder;
this.companyService = companyService;
this.toastService = toastService;
this.centralBuilderService = centralBuilderService;
this.customFields = customFields;
this.modalService = modalService;
this.userService = userService;
this.buUnit = buUnit;
this.customFieldService = customFieldService;
this.channelService = channelService;
this.planBuUnitDropDownLoading = false;
this.apppoinmentDropDownLoading = false;
this.CustomFieldDropDownLoading = false;
this.isPopupOpen = false;
this.buDropDownToClear = null;
this.apoinemntDropDownToClear = null;
this.customFeildDropDownToClear = null;
this.adminDropDownToClear = null;
this.moreThanOneOption = false;
this.isExtendOptions = false;
this.authorDropDownToClear = null;
this.isUserDetailsEdited = false;
this.profileFields = [];
this.order = [];
this.successMessage = '';
this.submittedForm = false;
this._success = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
this.conditionalQuestions = [];
this.lookupData = [];
this.lookupFields = null;
this.conditionalAnswers = [];
this.attachMents = [
{
value: 'png',
selected: false,
},
{
value: 'jpg',
selected: false,
},
{
value: 'jpeg',
selected: false,
},
{
value: 'pdf',
selected: false,
},
{
value: 'svg',
selected: false,
},
{
value: 'doc',
selected: false,
},
{
value: 'xls',
selected: false,
},
{
value: 'csv',
selected: false,
},
{
value: 'ppt',
selected: false,
},
];
this.defaultProfileFields = [
{
name: 'User Name',
isSelected: false,
},
{
name: 'Staff Id',
isSelected: false,
},
{
name: 'Business Unit',
isSelected: false,
},
{
name: 'Appointment',
isSelected: false,
},
{
name: 'Email',
isSelected: false,
},
{
name: 'Mobile',
isSelected: false,
},
{
name: 'Given Name',
isSelected: false,
},
{
name: 'Office Phone',
isSelected: false,
},
{
name: 'Surname',
isSelected: false,
},
{
name: 'Reporting Officer',
isSelected: false,
},
{
name: 'Office',
isSelected: false,
},
{
name: 'Employment Status',
isSelected: false,
},
];
this.questionTypes = [
{
name: 'Multiple Choices',
type: 2,
},
{
name: 'Check Box',
type: 5,
},
{
name: 'Polling',
type: 4,
},
{
name: 'True or False Options',
type: 3,
},
{
name: 'Signature',
type: 6,
},
{
name: 'Profile Fields',
type: 7,
},
{
name: 'Free Text(Long)',
type: 1,
},
{
name: 'Free Text(Short)',
type: 8,
},
{
name: 'Numeric',
type: 9,
},
{
name: 'Date & Time',
type: 10,
},
{
name: 'Drop Down',
type: 11,
},
{
name: 'Attachment',
type: 12,
},
{
name: 'Star Rating',
type: 13,
},
{
name: 'Nominate User',
type: 14,
},
{
name: 'Sequence Type',
type: 15,
},
{
name: 'Photopick',
type: 16,
},
{
name: 'Auto Populate',
type: 21,
},
{
name: 'Button Action',
type: 22,
},
];
this.noOfStars = [5, 6, 7, 8, 9, 10];
this.serviceCall = ['SERVICE API'];
this.buttonsValues = ["currrentDate", "currentTime", "currentDateTime"];
this.options = {
key: src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].froalaEditorKey,
videoResponsive: true,
quickInsertEnabled: false,
videoInsertButtons: [
'videoBack',
'|',
'videoByURL',
'videoEmbed',
'videoUpload',
],
videoEditButtons: [
'videoReplace',
'videoRemove'
],
imageEditButtons: ['imageReplace', 'imageAlign', 'imageCaption', 'imageRemove'],
listAdvancedTypes: true,
toolbarButtons: [
'undo',
'redo',
'bold',
'italic',
'underline',
'strikeThrough',
'subscript',
'superscript',
'fontFamily',
'fontSize',
'color',
'formatBlock',
'blockStyle',
'inlineStyle',
'align',
'insertOrderedList',
'insertUnorderedList',
'outdent',
'indent',
'selectAll',
'createLink',
'insertImage',
'insertVideo',
'table',
'undo',
'redo',
'html',
'save',
'insertHorizontalRule',
'uploadFile',
'removeFormat',
'fullscreen',
],
videoUploadURL: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].baseUrl}/notification/uploadContentFiles/`,
requestHeaders: {
Authorization: localStorage.getItem('flexiusersToken'),
},
// Set the image upload URL.
imageUploadURL: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].baseUrl}/notification/uploadContentFiles/`,
// Set request type.
imageUploadMethod: 'POST',
attribution: false,
// Allow to upload PNG and JPG.
imageAllowedTypes: ['jpeg', 'jpg', 'png'],
// Set request type.
videoUploadMethod: 'POST',
// Set max video size to 50MB.
videoMaxSize: 50 * 1024 * 1024,
// Allow to upload MP4, WEBM and OGG
videoAllowedTypes: ['webm', 'jpg', 'ogg', 'mp4', 'mov', 'MKV'],
events: {
'video.beforeUpload': function (videos) {
// Return false if you want to stop the video upload.
},
'video.uploaded': function (response) {
// Video was uploaded to the server.
},
'video.inserted': function ($img, response) {
// Video was inserted in the editor.
},
'video.replaced': function ($img, response) {
// Video was replaced in the editor.
},
'video.error': function (error, response) { },
'image.beforeUpload': function (images) {
// Return false if you want to stop the image upload.
},
'image.uploaded': function (response) {
// Image was uploaded to the server.
},
'image.inserted': function ($img, response) {
// Image was inserted in the editor.
},
'image.replaced': function ($img, response) {
// Image was replaced in the editor.
},
},
};
this.userDropDown = [];
this.userDetails = [];
this.isLoading = false;
this.UpdateduserDetails = [];
this.questionTypePolling = 4;
this.icons = [
'fa-angry',
'fa-address-book',
'fa-address-card',
'fa-adjust',
'fa-home',
'fa-search',
'fa-user',
'fa-facebook',
'fa-check',
'fa-download',
'fa-twitter',
'fa-image',
'fa-instagram',
'fa-phone',
'fa-bars',
'fa-envelope',
'fa-linkedin',
'fa-star',
];
this.showIconPicker = false;
this.clearFormArray = (formArray) => {
while (formArray.length !== 0) {
formArray.removeAt(0);
}
};
this.bussinesUnitplanPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
this.appoinmentPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.CustomFieldPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.adminPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.dateTimeChecked = {
date: 0,
time: 0,
};
}
ngOnInit() {
var _a, _b, _c, _d;
const solidIcons = Object.keys(_fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_7__["far"]);
this.icons = [...solidIcons].map((name) => this.toKebabCase(name));
this.icons = ['fa-calendar-alt',
'fa-home',
'fa-map-pin',
'fa-location-arrow',
'fa-clock', ...this.icons];
// console.log(' this.icons ', this.icons )
for (let i = 0; i < this.value.questionslength; i++) {
this.order.push(i + 1);
}
this.order.push(this.order.length + 1);
this.initForm();
this.buildPhotopickForm();
this.initConditionalQuestionFrom();
if (this.value.type === 3) {
const Control = this.OptionControl;
for (let i = 0; i < 2; i++) {
if (i == 0) {
Control.push(this.formbuilder.group({
value: ['true', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
correctAns: false,
imageSrc: '',
}));
}
else {
Control.push(this.formbuilder.group({
value: ['false', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
correctAns: false,
imageSrc: '',
}));
}
}
}
if (this.value.type === this.questionTypePolling) {
const Control = this.OptionControl;
Control.push(this.formbuilder.group({
value: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
correctAns: false,
imageSrc: '',
pollingDescription: '',
pollingDescriptionImageSrc: ''
}));
}
if ([7].includes(this.value.type)) {
this.f.question.clearValidators();
this.f.maxlength.updateValueAndValidity();
}
if ([1, 8].includes(this.value.type)) {
this.f.maxlength.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
this.f.maxlength.updateValueAndValidity();
}
if (this.value.type == 14) {
this.inituserDetailsFrom();
// this.loadBussinessPlanUnit();
// this.loadAppoinment();
// this.loadCustomField();
}
if (this.value.type == 7) {
const _e = this.CustomFieldPTable, { data, total } = _e, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_e, ["data", "total"]);
const sub = this.customFields
.getCustomField(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((response) => {
var _a;
const { count, data } = response.data;
const modifiedData = data.map((rawProduct) => {
return Object.assign(Object.assign({}, rawProduct), { isSelected: false });
});
this.CustomFieldPTable.data = modifiedData;
(_a = this.value.profile) === null || _a === void 0 ? void 0 : _a.forEach((profile) => {
this.CustomFieldPTable.data.forEach((tableData) => {
if (profile.questionName === tableData.fieldName) {
tableData.isSelected = true;
}
});
});
}, (error) => {
this.CustomFieldPTable.data = [];
this._success.next('No list found');
});
}
if ([2, 5, 15].includes(this.value.type)) {
this.OptionControl.push(this.createOption());
}
if ([11].includes(this.value.type)) {
this.createQuestionForm.controls.isDynamicData.setValue(this.value.isDynamicData);
if (!!this.value.isDynamicData) {
this.createQuestionForm.controls.serviceApi.setValue("SERVICE API");
}
if (!this.value.isDynamicData) {
this.OptionControl.push(this.createOption());
}
}
if ([10].includes(this.value.type)) {
this.f.date.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
this.f.time.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
this.f.date.updateValueAndValidity();
this.f.time.updateValueAndValidity();
}
if ([13].includes(this.value.type)) {
this.f.value.setValue(null);
this.f.value.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
this.f.value.updateValueAndValidity();
}
if ([22].includes(this.value.type)) {
this.f.buttonValue.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
this.f.buttonValue.updateValueAndValidity();
}
if ([21].includes(this.value.type)) {
// this.f.sourceQuestion.setValidators([Validators.required]);
// this.f.sourceQuestion.updateValueAndValidity();
this.f.lookupTable.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
this.f.lookupTable.updateValueAndValidity();
// this.f.lookupField.setValidators([Validators.required]);
// this.f.lookupField.updateValueAndValidity();
this.f.displayField.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
this.f.displayField.updateValueAndValidity();
}
if (!!this.value.isEdited) {
const Control = this.conditionalQuestionsControl;
this.getConditionalQuestions();
if (this.value.conditionalQuestions.length > 0) {
this.createQuestionForm.controls.isConditional.setValue(true);
}
else {
this.createQuestionForm.controls.isConditional.setValue(false);
}
this.value.conditionalQuestions.length &&
this.value.conditionalQuestions.forEach((element) => {
var _a, _b, _c, _d;
let field = this.formbuilder.group({
questionId: [
(_a = element.questionId) === null || _a === void 0 ? void 0 : _a._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
question: [
(_b = element.questionId) === null || _b === void 0 ? void 0 : _b.name,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
optionId: [
(_c = element.optionId) === null || _c === void 0 ? void 0 : _c._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
option: [
(_d = element.optionId) === null || _d === void 0 ? void 0 : _d.name,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
});
Control.push(field);
});
this.dateTimeChecked = {
date: ((_a = this.value.dateTime) === null || _a === void 0 ? void 0 : _a.includes(1)) ? 1 : 0,
time: ((_b = this.value.dateTime) === null || _b === void 0 ? void 0 : _b.includes(2)) ? 2 : 0
};
this.createQuestionForm.patchValue({
moduleId: this.value.moduleId,
question: this.value.question,
type: this.value.type,
indexNum: +this.value.indexNum + 1,
required: true,
value: this.value.value,
date: 1,
time: 2,
maxlength: this.value.maxlength,
minlength: !!this.value.isNumeric ? this.value.maxlength : 1,
sourceQuestion: this.value.sourceQuestion,
lookupTable: this.value.lookupTable,
lookupField: this.value.lookupField,
displayField: this.value.displayField,
buttonValue: this.value.buttonValue,
sectionId: this.value.sectionId,
optionsView: this.value.optionsView,
editable: this.value.explanation ? true : false,
explanation: this.value.explanation,
imageSrc: this.value.imgeSrc,
questionIcon: this.value.questionIcon,
extendedOption: this.value.type === this.questionTypePolling ? this.value.extendedOption : false,
isNumeric: this.value.isNumeric,
autoPopulateData: this.value.autoPopulateData
});
this.selectedIcon = this.value.questionIcon,
this.isExtendOptions = this.value.type === this.questionTypePolling ? this.value.extendedOption : false;
const formDateArray = this.dateTimeQuestionControl;
formDateArray.clear();
if ((_d = (_c = this.value) === null || _c === void 0 ? void 0 : _c.dateTime) === null || _d === void 0 ? void 0 : _d.length) {
this.value.dateTime.forEach((control) => {
let field = this.formbuilder.group({
date: [parseInt(control)],
});
formDateArray.push(field);
});
}
if (this.value.options.length != 0) {
if (this.value.type === 12) {
this.clearFormArray(this.ProfileControl);
this.value.options.forEach((el) => {
let field = this.formbuilder.group({
value: [el.value, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
selected: el.selected,
});
this.OptionControl.push(field);
});
this.value.options.forEach((el) => {
this.attachMents.map((element) => {
if (el.value === element.value) {
element.selected = true;
}
});
});
}
else {
// alert(JSON.stringify(this.value.options))
this.clearFormArray(this.OptionControl);
this.value.options.forEach((el) => {
let field = this.formbuilder.group(Object.assign(Object.assign({ value: [el.value, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required], correctAns: el.correctAns, imageSrc: el.imageSrc }, (this.value.type === this.questionTypePolling) ? { pollingDescription: (el.pollingDescription ? el.pollingDescription : '') } : {}), (this.value.type === this.questionTypePolling) ? { pollingDescriptionImageSrc: (el.pollingDescriptionImageSrc ? el.pollingDescriptionImageSrc : '') } : {}));
this.OptionControl.push(field);
});
}
}
if (this.value.profile.length != 0) {
this.value.profile.forEach((el) => {
let field = this.formbuilder.group({
questionName: [
el.questionName,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
});
this.ProfileControl.push(field);
this.defaultProfileFields.map((element) => {
if (el.questionName === element.name) {
element.isSelected = true;
}
});
});
}
if (this.value && this.value.assignUsers && this.value.assignUsers.length && this.value.assignUsers.length != 0) {
this.userDetails = this.value.assignUsers;
this.UpdateduserDetails = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__["getAssignedUsers"])(this.value.assignUsers);
}
if (this.value.type === 16) {
this.photopickForm.controls.imgSrc.setValue(this.value.imageSrc);
const coordinates = this.value.options;
const Control = this.imgDescControls;
coordinates === null || coordinates === void 0 ? void 0 : coordinates.forEach(element => {
var _a, _b, _c, _d, _e;
let field = this.formbuilder.group({
value: [element.value, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
x: [Number((_a = element === null || element === void 0 ? void 0 : element.coordinates) === null || _a === void 0 ? void 0 : _a.x), _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
y: [Number((_b = element === null || element === void 0 ? void 0 : element.coordinates) === null || _b === void 0 ? void 0 : _b.y), _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
radious: [Number((_c = element === null || element === void 0 ? void 0 : element.coordinates) === null || _c === void 0 ? void 0 : _c.radious), _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
imgWidth: [Number((_d = element === null || element === void 0 ? void 0 : element.coordinates) === null || _d === void 0 ? void 0 : _d.imgWidth), _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
imgHeight: [Number((_e = element === null || element === void 0 ? void 0 : element.coordinates) === null || _e === void 0 ? void 0 : _e.imgHeight), _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
id: [element === null || element === void 0 ? void 0 : element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
});
Control.push(field);
});
}
}
this._success.subscribe((message) => (this.successMessage = message));
this._success.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["debounceTime"])(1000)).subscribe(() => {
if (this.selfClosingAlert) {
this.selfClosingAlert.close();
}
});
}
toKebabCase(iconName) {
return iconName.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
}
getMoreThanOne() {
this.moreThanOneOption = !this.moreThanOneOption;
}
extendOptions() {
this.isExtendOptions = !this.isExtendOptions;
}
get f() {
return this.createQuestionForm.controls;
}
get OptionControl() {
var _a;
return (_a = this.createQuestionForm) === null || _a === void 0 ? void 0 : _a.get('options');
}
get imgDescControls() {
var _a;
return (_a = this.photopickForm) === null || _a === void 0 ? void 0 : _a.get('imgDescription');
}
get ProfileControl() {
var _a;
return (_a = this.createQuestionForm) === null || _a === void 0 ? void 0 : _a.get('profile');
}
get conditionalQuestionsControl() {
var _a;
return (_a = this.createQuestionForm) === null || _a === void 0 ? void 0 : _a.get('conditionalQuestions');
}
get dateTimeQuestionControl() {
var _a;
return (_a = this.createQuestionForm) === null || _a === void 0 ? void 0 : _a.get('dateTime');
}
inituserDetailsFrom() {
return (this.userDetailsForm = this.formbuilder.group({
businessUnits: this.formbuilder.array([], [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
buFilterType: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
appointments: this.formbuilder.array([]),
subSkillSets: this.formbuilder.array([]),
user: this.formbuilder.array([]),
allBuToken: '',
allBuTokenStaffId: '',
customField: this.formbuilder.array([]),
}));
}
initConditionalQuestionFrom() {
return (this.conditionalQuestionForm = this.formbuilder.group({
questionId: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
optionId: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
}));
}
initForm() {
var _a, _b;
this.createQuestionForm = this.formbuilder.group({
moduleId: this.value.moduleId,
question: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
type: this.value.type,
indexNum: [this.order.length, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
required: false,
sectionId: this.value.sectionId,
// userDetails: this.formbuilder.array([]),
value: 0,
options: this.formbuilder.array([]),
dateTime: this.formbuilder.array([]),
date: 1,
time: 2,
maxlength: '',
minlength: '',
profile: this.formbuilder.array([]),
conditionalQuestions: this.formbuilder.array([]),
optionsView: 0,
editable: false,
isConditional: false,
explanation: '',
imageSrc: '',
extendOptions: false,
sourceQuestion: "",
lookupTable: "",
lookupField: "",
displayField: "",
isDynamicData: false,
serviceApi: "",
buttonValue: "",
questionIcon: "",
isNumeric: false,
autoPopulateData: this.formbuilder.array(this.createDynamicRow((_b = (_a = this.value.autoPopulateData) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 1)),
});
if (this.value.type == 21) {
this.getConditionalQuestions();
this.getlookupData();
}
}
updatedUserDetails(userDetails) {
this.UpdateduserDetails = userDetails;
}
getConditionalQuestions() {
this.conditionalQuestions = [];
const sub = this.centralBuilderService
.getSingleQuestions(this.value.moduleId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b;
const newData = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.sections.flatMap((section) => section.questions.map(({ _id, question, options, type }) => ({
_id,
question,
options,
type,
})));
this.conditionalQuestions = newData;
});
}
getlookupData() {
this.lookupData = [];
const sub = this.centralBuilderService
.readLookupTable()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.lookupData = res === null || res === void 0 ? void 0 : res.data;
if (this.value.type == 21)
this.getLookupFields(this.value.lookupTable);
});
}
get autoPopulateData() {
return this.createQuestionForm.get('autoPopulateData');
}
createDynamicRow(count) {
const defaultArray = [];
for (let index = 0; index < count; index++) {
const row = this.formbuilder.group({
sourceQuestion: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
lookupField: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
});
defaultArray.push(row);
}
return defaultArray;
}
addDynamicRow() {
const row = this.formbuilder.group({
sourceQuestion: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
lookupField: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
});
this.autoPopulateData.push(row);
}
removeDynamicRow(index) {
if (this.autoPopulateData.length > 1) {
this.autoPopulateData.removeAt(index);
}
}
getContionalAnswers(value) {
this.conditionalQuestions.forEach((ele) => {
if (ele._id === value._id) {
this.conditionalAnswers = ele.options;
return;
}
});
}
getContionalAnswersforSourceQuestions(value) {
this.conditionalQuestions.forEach((ele) => {
if (ele._id === value) {
this.conditionalAnswers = ele.options;
return;
}
});
}
getLookupFields(value) {
var _a;
console.log(value);
let filteredData = this.lookupData.filter((val) => (val === null || val === void 0 ? void 0 : val._id) === value);
this.lookupFields = (_a = filteredData[0]) === null || _a === void 0 ? void 0 : _a.columns;
}
addConditionalQuestion({ questionId, optionId }) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.conditionalQuestionsControl;
let field = this.formbuilder.group({
questionId: [questionId._id, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
question: [
questionId.question,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
optionId: [optionId._id, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
option: [optionId.value, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
});
Control.push(field);
this.initConditionalQuestionFrom();
});
}
onClearConditionalQuestion() {
this.initConditionalQuestionFrom();
}
conditionQuestionDelete(index) {
const Control = this.conditionalQuestionsControl;
Control.removeAt(index);
}
changeQuickLinkStatus(index, value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.ProfileControl;
const index = yield Control.value.findIndex((x) => x.questionName === value);
if (index > -1) {
Control.removeAt(index);
}
else {
let field = this.formbuilder.group({
questionName: [value, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
selected: true,
});
Control.push(field);
}
}
});
}
setDateTime(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.dateTimeQuestionControl;
const index = yield Control.value.findIndex((x) => +x.date === +value);
if (index > -1) {
Control.removeAt(index);
}
else {
let field = this.formbuilder.group({
date: [parseInt(value)],
});
Control.push(field);
}
}
});
}
cancelPopup() {
this.activeModal.dismiss();
}
createOption() {
return this.formbuilder.group(Object.assign(Object.assign({ value: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required], correctAns: false, imageSrc: '' }, (this.value.type === 4) ? { pollingDescription: '' } : {}), (this.value.type === 4) ? { pollingDescriptionImageSrc: '' } : {}));
}
updateValidators() {
const autoPopulateArray = this.createQuestionForm.get('autoPopulateData');
autoPopulateArray.controls.forEach((controlGroup) => {
var _a;
const sourceQuestionControl = controlGroup.get('sourceQuestion');
const lookupFieldControl = controlGroup.get('lookupField');
if (((_a = this.value) === null || _a === void 0 ? void 0 : _a.type) == 21) {
// Apply required validators if type is not 21
sourceQuestionControl === null || sourceQuestionControl === void 0 ? void 0 : sourceQuestionControl.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
lookupFieldControl === null || lookupFieldControl === void 0 ? void 0 : lookupFieldControl.setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]);
}
else {
// Remove validators if type is 21
sourceQuestionControl === null || sourceQuestionControl === void 0 ? void 0 : sourceQuestionControl.clearValidators();
lookupFieldControl === null || lookupFieldControl === void 0 ? void 0 : lookupFieldControl.clearValidators();
}
// Recalculate validity after changing validators
sourceQuestionControl === null || sourceQuestionControl === void 0 ? void 0 : sourceQuestionControl.updateValueAndValidity();
lookupFieldControl === null || lookupFieldControl === void 0 ? void 0 : lookupFieldControl.updateValueAndValidity();
});
}
onCreateQuestion() {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.submittedForm = true;
let typesforExclude = [21];
// if ((this.value?.type == "22") || (this.value?.type == "21")) {
// this.createQuestionForm.patchValue({
// type : this.value?.type == 22 ? 22 : 21
// });
// this.createQuestionForm.value.options = [];
// }
if (!typesforExclude.includes((_a = this.value) === null || _a === void 0 ? void 0 : _a.type)) {
delete this.createQuestionForm.value.sourceQuestion;
// delete this.createQuestionForm.value.isDynamicData;
delete this.createQuestionForm.value.lookupTable;
delete this.createQuestionForm.value.lookupField;
delete this.createQuestionForm.value.displayField;
delete this.createQuestionForm.value.autoPopulateData;
}
this.updateValidators();
if (![11].includes((_b = this.value) === null || _b === void 0 ? void 0 : _b.type)) {
delete this.createQuestionForm.value.isDynamicData;
delete this.createQuestionForm.value.serviceApi;
}
if ((this.value.type == 11) && !!this.createQuestionForm.value.isDynamicData) {
delete this.createQuestionForm.value.options;
}
if (!this.createQuestionForm.valid) {
this._success.next(`Please fill all fields`);
return;
}
if ((this.value.type == 4) || (this.value.type == 5) || (this.value.type == 2)) {
if (this.createQuestionForm.value.options.length < 2) {
this.toastService.error(`Select atleast two options`, '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
return;
}
}
if (this.value.type === 12) {
if (this.createQuestionForm.value.options.length === 0) {
this.toastService.error(`Please Select the Checkboxes`, '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
return;
}
}
if (this.value.type === 10) {
if (this.createQuestionForm.value.dateTime.length === 0) {
this.toastService.error(`Please Select the Checkboxes`, '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
return;
}
}
if (this.value.type === 7) {
if (this.createQuestionForm.value.profile.length === 0) {
this.toastService.error(`Please select atleast 1 profile field.`, '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
return;
}
}
if (this.value.type === 22) {
if (this.createQuestionForm.value.buttonValue.length === 0) {
this.toastService.error(`Please select atleast 1 display field.`, '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
return;
}
}
if (this.value.type === 14) {
if (this.UpdateduserDetails.length === 0) {
this.toastService.error(`Please select and add at least one business unit`, '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
this.isLoading = false;
return;
}
}
if (this.value.type === 21) {
delete this.createQuestionForm.value.sourceQuestion;
delete this.createQuestionForm.value.lookupField;
this.createQuestionForm.value.autoPopulateData = this.createQuestionForm.value.autoPopulateData;
this.createQuestionForm.value.lookupTable = this.createQuestionForm.value.lookupTable;
// if (this.createQuestionForm.value.buttonValue.length === 0) {
// this.toastService.error(`Please select atleast 1 display field.`, '', {
// timeOut: 3000,
// positionClass: 'toast-top-right',
// });
// return;
// }
}
if (this.value.type === 1 || this.value.type === 8 || this.value.type === 9) {
this.createQuestionForm.value.optionsView = "1";
}
if (this.value.type !== 8) {
delete this.createQuestionForm.value.isNumeric;
}
if (this.value.type === 8) {
this.createQuestionForm.value.minlength = !!this.value.isNumeric ? this.createQuestionForm.value.maxlength : 1;
}
this.isLoading = true;
const profileData = this.ProfileControl.value.map(({ questionName }) => ({
questionName,
}));
const initialValue = this.dateTimeQuestionControl.value.map(({ date }) => ({
date,
}));
const dateTimeData = initialValue.map((val) => {
return val.date;
});
if (this.value.type !== 21) {
delete this.createQuestionForm.value.sourceQuestion;
// delete this.createQuestionForm.value.isDynamicData;
delete this.createQuestionForm.value.lookupTable;
delete this.createQuestionForm.value.lookupField;
delete this.createQuestionForm.value.displayField;
delete this.createQuestionForm.value.autoPopulateData;
}
if (!!this.value.isEdited) {
const _c = this.createQuestionForm.value, { editable, isConditional, question } = _c, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_c, ["editable", "isConditional", "question"]);
if (this.value.type === 14) {
const data = Object.assign(Object.assign({}, rest), { _id: this.value._id, sectionId: this.value.sectionId, isConditional: isConditional === true ? true : false, question: this.value.type == 7 ? 'Profile Details' : question, assignUsers: this.UpdateduserDetails, dateTime: this.dateTimeQuestionControl.length != 0 ? dateTimeData : [1, 1], conditionalQuestions: this.conditionalQuestionsControl.value.map(({ questionId, optionId }) => ({
questionId,
optionId,
})) });
data.indexNum = data.indexNum - 1;
this.centralBuilderService.createQuestion(data).subscribe((res) => {
this.cancelPopup();
this.initForm();
this.isLoading = false;
this.toastService.success("Question Created Successfully");
this.submittedForm = false;
}, (error) => {
this._success.next(error.error.message);
this.isLoading = false;
this.submittedForm = false;
});
}
else if (this.value.type === 16) {
if (!this.photopickForm.valid) {
this._success.next(`Please fill all fields`);
return;
}
const imageCordinatorArray = [];
this.imgDescControls.value.forEach((ele) => {
const imgObj = {
coordinates: {
x: Number,
y: Number,
radious: Number,
imgHeight: Number,
imgWidth: Number
},
value: String,
_id: String
};
imgObj.coordinates = ele;
imgObj.value = ele.value,
imgObj._id = ele.id,
delete imgObj.coordinates['value'];
delete imgObj.coordinates['id'];
!imgObj._id ? delete imgObj._id : '';
imageCordinatorArray.push(imgObj);
});
const data = Object.assign(Object.assign({}, rest), { _id: this.value._id, isConditional: isConditional === true ? true : false, question: question, sectionId: this.value.sectionId, imageSrc: this.photopickForm.value.imgSrc, profile: this.ProfileControl.length != 0 ? profileData : [], assignUsers: this.UpdateduserDetails, conditionalQuestions: this.conditionalQuestionsControl.value.map(({ questionId, optionId }) => ({
questionId,
optionId,
})), options: imageCordinatorArray, chooseCount: this.value.chooseCount, ppimageuploadfrom: this.value.ppimageuploadfrom, pollingSelectionCount: this.value.pollingSelectionCount, status: this.value.status, createdAt: this.value.createdAt, updatedAt: this.value.updatedAt, __v: this.value.__v, optionsView: (this.value.optionsView).toString() });
data.indexNum = data.indexNum - 1;
delete data.date;
delete data.time;
delete data.value;
delete data.dateTime;
this.centralBuilderService.createQuestion(data).subscribe((res) => {
this.cancelPopup();
this.initForm();
this.toastService.success("Question Created Successfully");
this.isLoading = false;
this.submittedForm = false;
}, (error) => {
this._success.next(error.error.message);
this.isLoading = false;
this.submittedForm = false;
});
}
else {
const data = Object.assign(Object.assign(Object.assign(Object.assign({}, rest), { _id: this.value._id, sectionId: this.value.sectionId, isConditional: isConditional === true ? true : false }), (this.value.type === this.questionTypePolling) ? { extendedOption: this.isExtendOptions } : {}), { question: this.value.type == 7 ? 'Profile Details' : question, dateTime: this.dateTimeQuestionControl.length != 0 ? dateTimeData : [1, 1], profile: this.ProfileControl.length != 0 ? profileData : [], conditionalQuestions: this.conditionalQuestionsControl.value.map(({ questionId, optionId }) => ({
questionId,
optionId,
})) });
data.indexNum = data.indexNum - 1;
this.centralBuilderService.createQuestion(data).subscribe((res) => {
this.cancelPopup();
this.initForm();
this.toastService.success("Question Created Successfully");
this.submittedForm = false;
// this.onClearAllFrom();
this.isLoading = false;
}, (error) => {
this._success.next(error.error.message);
this.isLoading = false;
this.submittedForm = false;
});
}
}
else {
const _d = this.createQuestionForm.value, { editable, isConditional, question } = _d, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_d, ["editable", "isConditional", "question"]);
if (this.value.type === 14) {
const data = Object.assign(Object.assign({}, rest), { question: this.value.type == 7 ? 'Profile Details' : question, isConditional: isConditional === true ? true : false, assignUsers: this.UpdateduserDetails, sectionId: this.value.sectionId, dateTime: this.dateTimeQuestionControl.length != 0 ? dateTimeData : [1, 1], conditionalQuestions: this.conditionalQuestionsControl.value.map(({ questionId, optionId }) => ({
questionId,
optionId,
})) });
this.centralBuilderService.createQuestion(data).subscribe((res) => {
this.cancelPopup();
this.initForm();
this.toastService.success("Question Created Successfully");
this.isLoading = false;
this.submittedForm = false;
}, (error) => {
this._success.next(error.error.message);
this.isLoading = false;
this.submittedForm = false;
});
}
else if (this.value.type === 16) {
if (!this.photopickForm.valid) {
this._success.next(`Please fill all fields`);
return;
}
const imageCordinatorArray = [];
this.imgDescControls.value.forEach((ele) => {
const imgObj = {
coordinates: {
x: Number,
y: Number,
radious: Number,
imgHeight: Number,
imgWidth: Number
},
value: String
};
imgObj.coordinates = ele;
imgObj.value = ele.value,
delete imgObj.coordinates['value'];
imageCordinatorArray.push(imgObj);
});
const data = Object.assign(Object.assign({}, rest), { question: question, sectionId: this.value.sectionId, imageSrc: this.photopickForm.value.imgSrc, conditionalQuestions: this.conditionalQuestionsControl.value.map(({ questionId, optionId }) => ({
questionId,
optionId,
})), options: imageCordinatorArray });
delete data.date;
delete data.dateTime;
delete data.maxlength;
delete data.profile;
delete data.required;
delete data.time;
delete data.value;
delete data.minlength;
data.explanation === null || data.explanation === '' ? delete data.explanation : '';
this.centralBuilderService.createQuestion(data).subscribe((res) => {
this.cancelPopup();
this.initForm();
this.buildPhotopickForm();
this.isLoading = false;
this.toastService.success("Question Created Successfully");
this.submittedForm = false;
}, (error) => {
this._success.next(error.error.message);
this.isLoading = false;
this.submittedForm = false;
});
}
else {
const data = Object.assign(Object.assign(Object.assign(Object.assign({}, rest), { isConditional: isConditional === true ? true : false, sectionId: this.value.sectionId, profile: this.ProfileControl.length != 0 ? profileData : [] }), (this.value.type === this.questionTypePolling) ? { extendedOption: this.isExtendOptions } : {}), { dateTime: this.dateTimeQuestionControl.length != 0 ? dateTimeData : [1, 1], question: this.value.type == 7 ? 'Profile Details' : question, conditionalQuestions: this.conditionalQuestionsControl.value.map(({ questionId, optionId }) => ({
questionId,
optionId,
})) });
this.centralBuilderService.createQuestion(data).subscribe((res) => {
this.cancelPopup();
this.initForm();
// this.value.type === 14 && this.onClearAllFrom();
this.isLoading = false;
this.toastService.success("Question Created Successfully");
this.submittedForm = false;
}, (error) => {
this._success.next(error.error.message);
this.isLoading = false;
this.submittedForm = false;
});
}
}
});
}
onClickCorrectAnswer(event, ind) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.OptionControl;
if (event.target.checked) {
this.setCorrectAnsValue(Control);
let obj = {};
obj['correctAns'] = true;
Control.at(ind).patchValue(obj);
}
else {
this.setCorrectAnsValue(Control);
}
});
}
setIsDynamic(event) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (event.target.checked) {
this.createQuestionForm.value.options.length = 0;
this.createQuestionForm.patchValue({
options: []
});
this.OptionControl.clear();
}
else {
this.OptionControl.push(this.createOption());
}
});
}
setCorrectAnsValue(Control) {
for (let i = 0; i < Control.controls.length; i++) {
let obj = {};
obj['correctAns'] = false;
Control.at(i).patchValue(obj);
}
}
addOptions() {
const Control = this.OptionControl;
if (!Control.valid) {
this._success.next(`Please enter answser`);
return;
}
Control.push(this.createOption());
}
correctAnswerexists() { }
onDeleteImage(index) {
const Control = this.OptionControl;
let obj = {};
obj['imageSrc'] = '';
Control.at(index).patchValue(obj);
}
onDeletePollingDescriptionImage(index) {
const Control = this.OptionControl;
let obj = {};
obj['pollingDescriptionImageSrc'] = '';
Control.at(index).patchValue(obj);
}
onDeleteOptions(index) {
const Control = this.OptionControl;
Control.removeAt(index);
}
onAttachments(index, value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.OptionControl;
const index = yield Control.value.findIndex((x) => x.value === value);
if (index > -1) {
Control.removeAt(index);
}
else {
let field = this.formbuilder.group({
value: [value, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
selected: [true, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
});
Control.push(field);
}
}
});
}
BannerUpload(event, index, isDescription, isIcon) {
const Control = this.OptionControl;
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.companyService
.uploadAnswerImage(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
let obj = {};
if (isDescription) {
this.createQuestionForm.value.pollingDescriptionImageSrc = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${data.data.filePath}`;
obj['pollingDescriptionImageSrc'] = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${data.data.filePath}`;
}
else if (!!isIcon) {
this.createQuestionForm.value.questionIcon = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${data.data.filePath}`;
}
else {
this.createQuestionForm.value.imageSrc = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${data.data.filePath}`;
obj['imageSrc'] = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${data.data.filePath}`;
}
Control.at(index).patchValue(obj);
}, (error) => {
this._success.next(error.error.message);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
IconUpload(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.companyService
.uploadAnswerImage(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.createQuestionForm.patchValue({
questionIcon: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${data.data.filePath}`
});
}, (error) => {
this._success.next(error.error.message);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
openIconPicker() {
this.showIconPicker = true;
}
closeIconPicker() {
this.showIconPicker = false;
}
selectIcon(icon) {
this.selectedIcon = icon;
this.createQuestionForm.patchValue({
questionIcon: this.selectedIcon
});
this.closeIconPicker(); // Close the modal after selecting an icon
}
onDeleteIcon(index) {
this.createQuestionForm.patchValue({
questionIcon: ""
});
this.selectedIcon = "";
}
buildPhotopickForm() {
this.photopickForm = this.formbuilder.group({
imgSrc: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
imgDescription: this.formbuilder.array([]),
});
}
photoUpload(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.companyService
.uploadAnswerImage(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.photopickForm.controls.imgSrc.setValue(`${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${data.data.filePath}`);
this.imgDescControls.controls = [];
}, (error) => {
this._success.next(error.error.message);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
this.imgDescControls.controls = [];
this.photopickForm.controls.imgSrc.reset();
}
}
}
onDeleteDescription(index) {
const Control = this.imgDescControls;
Control.removeAt(index);
}
onImageClick(event) {
const imageElement = event.target;
const imageWidth = imageElement.offsetWidth;
const imageHeight = imageElement.offsetHeight;
const offsetX = event.offsetX;
const offsetY = event.offsetY;
const percentageX = ((offsetX / imageWidth) * 100) - 3.3;
const percentageY = ((offsetY / imageHeight) * 100) - 5.8;
const Control = this.imgDescControls;
let field = this.formbuilder.group({
value: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
x: [percentageX, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
y: [percentageY, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
radious: [36, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
imgWidth: [imageWidth, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
imgHeight: [imageHeight, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
});
Control.push(field);
}
openPopup() {
this.isPopupOpen = true;
}
closePopup() {
this.isPopupOpen = false;
}
}
QuestionModalComponent.ɵfac = function QuestionModalComponent_Factory(t) { return new (t || QuestionModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbActiveModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_10__["CompanyService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_11__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_12__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__["CustomFieldService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_14__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_15__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__["CustomFieldService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_16__["ChannelService"])); };
QuestionModalComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: QuestionModalComponent, selectors: [["app-question-modal"]], viewQuery: function QuestionModalComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.selfClosingAlert = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.myImage = _t.first);
} }, inputs: { value: "value", isEdit: "isEdit" }, decls: 25, vars: 23, consts: [[1, "card", "m-3", 2, "min-height", "80vh"], [1, "card-header", "flexi-header", "pt-4"], ["style", "display: flex; flex-direction: row; justify-content: space-between", 4, "ngFor", "ngForOf"], [1, "card-body", 3, "ngSwitch"], ["class", "mt-4", "type", "danger", 3, "closed", 4, "ngIf"], [4, "ngSwitchCase"], [3, "formGroup", 4, "ngSwitchCase"], [4, "ngIf"], ["class", "child-modal", 4, "ngIf"], [2, "display", "flex", "flex-direction", "row", "justify-content", "space-between"], [3, "ngSwitch"], ["type", "button", "class", "btn btn-large close-icon", "aria-label", "Close", 3, "click", 4, "ngIf"], ["type", "button", "aria-label", "Close", 1, "btn", "btn-large", "close-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], ["type", "danger", 1, "mt-4", 3, "closed"], ["selfClosingAlert", ""], [3, "formGroup"], [1, "row"], [1, "col-md-12"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], [1, "field-mandatory"], ["formControlName", "question", 3, "froalaEditor"], [1, "row", "d-flex", "px-4", "pb-4"], [1, "btn", "btn-info", "btn-sm", 3, "click"], ["class", "pl-4", 4, "ngIf"], ["class", "row", 4, "ngIf"], ["class", "row mt-2", 4, "ngIf"], [1, "table", "table-borderless", "mt-3"], ["formArrayName", "conditionalQuestions", 4, "ngFor", "ngForOf"], [1, "row", "mt-2"], [1, "font-weight-bold", "col-md-3"], [1, "form-group", "col-md-3", "pr-0"], ["type", "radio", "formControlName", "optionsView", 3, "value"], ["for", "std-row", 1, "radio-inline", "ml-1"], ["for", "custom-row", 1, "radio-inline", "ml-1"], [1, "col-xs-12", "col-sm-12", "col-md-12", "col-lg-12"], [1, "d-flex", "justify-content-between"], ["for", "", 1, "font-weight-bold"], [1, "btn", "p-2", "m-1", "btn-add", "pull-right", 3, "click"], [1, "table"], ["formArrayName", "options", 4, "ngFor", "ngForOf"], [1, "col-md-6"], [1, "form-group", "pr-0"], ["type", "checkbox", "formControlName", "editable", 1, "checkbox", "checkbox-danger"], [1, "col-md-4"], [1, "font-weight-bold"], ["formControlName", "indexNum", 1, "dropdown-select", "w-50", "form-control"], ["disabled", "", 3, "value"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "row", "mt-3"], [1, "btn", "btn-clear", 3, "click"], [1, "btn", "btn-submit", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "pl-4"], [2, "width", "40px", "height", "40px", "font-size", "x-large", "padding-left", "10px"], [1, "image-with-delete-icon", 2, "width", "100px", "height", "50px"], ["title", "Delete", "for", "4", 1, "fa", "fa-close", 3, "click"], ["type", "checkbox", "formControlName", "isConditional", 1, "checkbox", "checkbox-danger", 3, "change"], ["bindLabel", "name", "placeholder", "Select Questions", "appendTo", "body", "formControlName", "questionId", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], [3, "value", 4, "ngFor", "ngForOf"], ["class", "col-md-12 mt-2", 4, "ngIf"], [3, "value"], [3, "innerHTML"], [1, "col-md-12", "mt-2"], ["bindLabel", "name", "placeholder", "Select Questions", "appendTo", "body", "formControlName", "optionId", 1, "custom", 3, "multiple", "searchable", "clearable"], [1, "btn", "btn-add", 3, "click"], ["formArrayName", "conditionalQuestions"], [1, "questions-container", "mt-2"], [1, "questions", 3, "innerHtml"], [1, "text-items", 2, "word-break", "break-all", 3, "formGroupName"], [1, "cancel-button"], ["alt", "", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-1", 3, "click"], ["formArrayName", "options"], [3, "formGroupName"], [1, "w-50"], ["type", "text", "formControlName", "value", 1, "form-control"], ["type", "checkbox", "formControlName", "correctAns", 1, "m-2", "w-50", 3, "checked", "change"], ["class", "custom-file mt-0 pt-4 pb-4", "style", "width: 67px", 4, "ngIf"], ["class", "m-3", 4, "ngIf"], [1, "custom-file", "mt-0", "pt-4", "pb-4", 2, "width", "67px"], ["type", "file", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "text-align", "center", "width", "80%", "opacity", "0", 3, "change"], ["for", "b", 1, "custom-file-label"], [1, "image-with-delete-icon", "width-180"], ["width", "200px", "height", "200px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], [1, "m-3"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 3, "click"], [3, "ngValue"], ["formControlName", "explanation", 3, "froalaEditor"], [1, "btn", "btn-info", 3, "click"], [1, "btn", "p-2", "btn-add", "pull-right", 3, "click"], ["type", "checkbox", "formControlName", "editable"], ["class", "col-md-12", 4, "ngIf"], [1, "questions-container"], ["type", "checkbox", "formControlName", "correctAns", 1, "m-2", 3, "checked"], ["type", "file", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "80%", "opacity", "0", 3, "change"], ["width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], [1, "form-check"], ["type", "checkbox", "id", "exampleCheck1", 1, "form-check-input", 3, "ngModel", "ngModelOptions", "ngModelChange", "click"], ["for", "exampleCheck1", 1, "form-check-label", "mt-1", "ml-2"], [1, "form-check", "mt-2", "mb-2"], ["type", "checkbox", "id", "exampleCheck1", 1, "form-check-input", 3, "click"], ["class", "p-3 form-row", 4, "ngIf"], ["class", "table-border-bottom", "formArrayName", "options", 4, "ngFor", "ngForOf"], ["class", "table", 4, "ngIf"], [1, "p-3", "form-row"], [1, "col-12"], ["type", "number", "onKeyPress", "if(this.value.length == 1) return false;", "pattern", "/^-?\\d+\\.?\\d*$/", "id", "exampleInputEmail1", "aria-describedby", "emailHelp", "placeholder", "", 1, "form-control"], ["formArrayName", "options", 1, "table-border-bottom"], ["colspan", "3"], ["type", "text", "rows", "3", "formControlName", "pollingDescription", 1, "form-control"], ["type", "file", "accept", "image/png, image/jpeg, image/jpg", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "80%", "opacity", "0", 3, "change"], ["type", "checkbox", "formControlName", "correctAns", 1, "m-2", 3, "checked", "change"], ["type", "text", "formControlName", "value", "disabled", "", 1, "form-control"], ["class", "col-xs-12 col-sm-12 col-md-3 col-lg-3", 4, "ngFor", "ngForOf"], [1, "col-xs-12", "col-sm-12", "col-md-3", "col-lg-3"], [2, "padding", "5px"], ["type", "checkbox", 3, "checked", "value", "change"], [1, "form-group", "d-flex", "align-items-center", "mt-2", "position-relative"], ["for", "", 1, "flex-fill"], ["type", "number", "oninput", "validity.valid || (value='')", "min", "0", "value", "1", "disabled", "", 1, "form-control", 2, "width", "20% !important", "margin", "0 1rem"], ["type", "number", "formControlName", "freeTextRange", "min", "1", "max", "5000", "oninput", "validity.valid || (value='')", "step", "1", "formControlName", "maxlength", "placeholder", "Please enter limit here", 1, "form-control", 2, "width", "21% !important", "margin", "0px 1rem", 3, "ngClass"], [1, "field-mandatory", "required", "font-weight-bold"], [1, "text-danger"], ["type", "file", "accept", "image/png, image/jpeg, image/jpg", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "text-align", "center", "width", "80%", "opacity", "0", 3, "change"], ["type", "number", "ng-model", "longTextMin", "oninput", "validity.valid || (value='')", "id", "inputlongTextMin", "value", "1", "disabled", "", 1, "form-control", 2, "width", "20% !important", "margin", "0 1rem"], ["type", "number", "oninput", "validity.valid || (value='')", "formControlName", "maxlength", "step", "1", "placeholder", "Please enter limit here", 1, "form-control", 2, "width", "21% !important", "margin", "0px 1rem", 3, "min", "max", "ngClass"], ["type", "checkbox", "formControlName", "isNumeric", 1, "checkbox", "checkbox-danger"], [1, "d-flex"], [1, "col-8"], [1, "col", "mt-1"], ["type", "checkbox", "name", "date", 3, "value", "checked", "change"], ["type", "checkbox", "name", "time", 3, "value", "checked", "change"], [1, "col-4"], ["formControlName", "indexNum", 1, "dropdown-select", "form-control"], [1, "row", "mt-2", "mb-4"], [1, "form-group", "pr-0", "col-md-6"], ["type", "checkbox", "formControlName", "isDynamicData", 1, "checkbox", "checkbox-danger", 3, "change"], ["class", "col-md-6", 4, "ngIf"], ["formControlName", "serviceApi", 1, "dropdown-select", "w-50", "form-control"], ["type", "checkbox", 3, "value", "checked", "change"], ["formControlName", "value", 1, "dropdown-select", "w-50", "form-control"], [3, "isAdminView", "userDetails", "onSubmitAssignUsers"], ["alt", "", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 3, "click"], [1, "bold-text"], ["alt", "", "src", "../../../../../../assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-1", 3, "click"], ["title", "Delete Row", "placement", "bottom", 4, "ngIf"], [1, "image-with-delete-icon", "width-180", "image-width-165"], ["for", "4", "title", "Remove or Change Image", "placement", "bottom", 1, "fa", "fa-close", 3, "click"], ["width", "100%", "height", "120px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], ["title", "Delete Row", "placement", "bottom"], [1, "fa", "fa-trash", "delete-trash-size", 3, "click"], ["class", "custom-file mt-0 pt-4 pb-4", 4, "ngIf"], [1, "row", "imgSrc"], [1, "pb-3"], [1, "width-10"], ["formArrayName", "imgDescription", 4, "ngFor", "ngForOf"], [1, "row", "imgSrc", 3, "formGroup"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["type", "file", "id", "b", 3, "change"], ["for", "b", 1, "btn", "btn-clear"], [3, "ngStyle"], ["ngbTooltip", "Expand", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-expand"], ["width", "100%", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src", "click"], ["myImage", ""], ["class", "circle", 3, "left", "top", 4, "ngFor", "ngForOf"], [1, "circle"], [1, "text"], ["type", "file", "id", "img", 3, "change"], ["for", "img", 1, "btn", "btn-clear"], ["formArrayName", "imgDescription"], [1, "srNo"], ["bindLabel", "name", "placeholder", "Select Lookup Value", "appendTo", "body", "formControlName", "lookupTable", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], ["formControlName", "displayField", 1, "form-control", 2, "height", "36px"], [1, "col-md-12", "d-flex", "justify-content-between", "align-items-center"], ["type", "button", 1, "btn", "btn-primary", 3, "click"], ["formArrayName", "autoPopulateData"], [3, "formGroupName", 4, "ngFor", "ngForOf"], ["bindLabel", "question", "placeholder", "Select Questions", "appendTo", "body", "formControlName", "sourceQuestion", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], ["formControlName", "lookupField", 1, "form-control", 2, "height", "36px"], ["type", "button", "class", "btn btn-danger", 3, "click", 4, "ngIf"], ["type", "button", 1, "btn", "btn-danger", 3, "click"], [1, "row", "d-flex", "px-4", "pb-4", "pb-4"], ["formControlName", "buttonValue", 1, "dropdown-select", "w-50", "form-control"], [1, "popup-overlay"], [1, "popup"], ["ngbTooltip", "Exit fullscreen", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-compress"], ["class", "circlePopup", 3, "left", "top", 4, "ngFor", "ngForOf"], [1, "circlePopup"], [1, "child-modal"], [1, "child-modal-content"], [1, "close", 3, "click"], [1, "icon-grid"], ["class", "icon-item", 3, "click", 4, "ngFor", "ngForOf"], [1, "icon-item", 3, "click"]], template: function QuestionModalComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, QuestionModalComponent_ng_container_2_Template, 4, 3, "ng-container", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, QuestionModalComponent_ngb_alert_4_Template, 3, 1, "ngb-alert", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, QuestionModalComponent_div_5_Template, 82, 21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, QuestionModalComponent_div_6_Template, 82, 21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, QuestionModalComponent_div_7_Template, 90, 27, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, QuestionModalComponent_div_8_Template, 79, 21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, QuestionModalComponent_div_9_Template, 37, 16, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, QuestionModalComponent_form_10_Template, 23, 12, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, QuestionModalComponent_form_11_Template, 78, 22, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, QuestionModalComponent_form_12_Template, 84, 25, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, QuestionModalComponent_form_13_Template, 64, 20, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, QuestionModalComponent_form_14_Template, 53, 22, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, QuestionModalComponent_form_15_Template, 43, 16, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, QuestionModalComponent_form_16_Template, 38, 14, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, QuestionModalComponent_form_17_Template, 54, 20, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, QuestionModalComponent_form_18_Template, 45, 20, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, QuestionModalComponent_form_19_Template, 68, 19, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, QuestionModalComponent_div_20_Template, 63, 24, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, QuestionModalComponent_div_21_Template, 66, 21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](22, QuestionModalComponent_div_22_Template, 44, 18, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](23, QuestionModalComponent_ng_container_23_Template, 9, 2, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](24, QuestionModalComponent_div_24_Template, 6, 1, "div", 8);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.questionTypes);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitch", ctx.value.type);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.successMessage);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngSwitchCase", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isPopupOpen);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.showIconPicker);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_17__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgSwitchCase"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbAlert"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_18__["NativeElementInjectorDirective"], angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_19__["FroalaEditorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgClass"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupName"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NumberValueAccessor"], _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_21__["AssignUsersComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgStyle"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbTooltip"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_22__["SafeHtmlPipe"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n margin: 0;\n}ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}.cancel-button[_ngcontent-%COMP%] {\n position: relative;\n right: 20px;\n top: 30px;\n}.full-width[_ngcontent-%COMP%] {\n width: 100%;\n}.questions[_ngcontent-%COMP%] {\n display: inline-block;\n}.questions-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n border: 1px solid #bdbdbd;\n border-radius: 10px;\n padding: 10px;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3;\n color: white;\n}.bold-text[_ngcontent-%COMP%] {\n font-size: 15px;\n}.required[_ngcontent-%COMP%] {\n position: absolute;\n right: 10px;\n bottom: 20px;\n}.imgSrc[_ngcontent-%COMP%] {\n padding: 2.5% 3%;\n}[_ngcontent-%COMP%]::placeholder {\n \n color: #495057a1;\n opacity: 1;\n \n}.circle[_ngcontent-%COMP%] {\n position: absolute;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: black;\n border: 2px solid black;\n}.circlePopup[_ngcontent-%COMP%] {\n position: absolute;\n width: 70px;\n height: 70px;\n border-radius: 50%;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: black;\n border: 2px solid black;\n}.text[_ngcontent-%COMP%] {\n text-align: center;\n}.srNo[_ngcontent-%COMP%] {\n width: 20px;\n font-weight: 700;\n text-align: center;\n}.full-icon[_ngcontent-%COMP%] {\n position: absolute;\n background: white;\n padding: 6px;\n text-align: center;\n border-radius: 6px;\n z-index: 99999999999;\n cursor: pointer;\n width: 50px;\n top: 10px;\n right: 10px;\n border: 1px solid #e9e9e9;\n}.full-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 25px;\n}.picturePopup[_ngcontent-%COMP%] {\n margin: auto !important;\n min-width: 80% !important;\n}.image-width-165[_ngcontent-%COMP%] {\n width: 165px !important;\n}.delete-trash-size[_ngcontent-%COMP%] {\n font-size: 20px;\n color: red;\n cursor: pointer !important;\n}.popup-overlay[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 99;\n}.popup[_ngcontent-%COMP%] {\n background-color: #fff;\n padding: 10px;\n border-radius: 4px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n border-top: none !important;\n}.table-border-bottom[_ngcontent-%COMP%] {\n border-bottom: 1px solid #dee2e6;\n}.child-modal[_ngcontent-%COMP%] {\n display: block;\n position: fixed;\n z-index: 9999;\n \n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n overflow: auto;\n background-color: rgba(0, 0, 0, 0.5);\n \n}.child-modal-content[_ngcontent-%COMP%] {\n background-color: #fff;\n margin: 10% auto;\n \n padding: 20px;\n border-radius: 8px;\n \n border: 1px solid #888;\n width: 80%;\n \n max-width: 600px;\n max-height: 80vh;\n \n overflow-y: auto;\n \n}.close[_ngcontent-%COMP%] {\n color: #aaa;\n float: right;\n font-size: 28px;\n font-weight: bold;\n}.close[_ngcontent-%COMP%]:hover, .close[_ngcontent-%COMP%]:focus {\n color: black;\n text-decoration: none;\n cursor: pointer;\n}.icon-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));\n \n gap: 15px;\n justify-items: center;\n}.icon-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n cursor: pointer;\n padding: 10px;\n transition: background-color 0.3s ease;\n}.icon-item[_ngcontent-%COMP%]:hover {\n background-color: #f0f0f0;\n border-radius: 8px;\n}.icon-item[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 24px;\n margin-bottom: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9xdWVzdGlvbi1idWlsZGVyL3F1ZXN0aW9uLW1vZGFsL3F1ZXN0aW9uLW1vZGFsLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlEQUFpRCxlQUFlLENBQUMsaUNBQWlDLENBQUMsdURBQXVELGVBQWUsQ0FBQywyREFBMkQsUUFBUSxDQUFDLHlDQUF5QyxDQUFDLHNCQUFzQixDQUFDLGlFQUFpRSx5Q0FBeUMsQ0FBQyxrRUFBa0UsNEJBQTRCLENBQUMsMkJBQTJCLENBQUMsK0RBQStELHlCQUF5QixDQUFDLHdCQUF3QixDQUFDLHlFQUF5RSxvQkFBb0IsQ0FBQywwRUFBMEUsQ0FBQyxtREFBbUQsd0JBQXdCLENBQUMseUNBQXlDLFlBQVksQ0FBQyxnQ0FBZ0MsVUFBVSxDQUFDLHFCQUFxQixDQUFDLGlCQUFpQixDQUFDLHFCQUFxQixDQUFDLGVBQWUsQ0FBQyxrQkFBa0IsQ0FBQyxzQ0FBc0MsbUNBQW1DLENBQUMsb0RBQW9ELGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLGdFQUFnRSxrQkFBa0IsQ0FBQyxjQUFjLENBQUMsb0VBQW9FLFVBQVUsQ0FBQyxpREFBaUQsV0FBVyxDQUFDLCtFQUErRSxPQUFPLENBQUMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLGtCQUFrQixDQUFDLDJGQUEyRixrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxvR0FBb0csd0JBQXdCLENBQUMsd0JBQXdCLENBQUMsb0hBQW9ILGFBQWEsQ0FBQyx1RUFBdUUsZUFBZSxDQUFDLGdCQUFnQixDQUFDLG1GQUFtRixpQkFBaUIsQ0FBQyxjQUFjLENBQUMsaUZBQWlGLGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyx3QkFBd0IsQ0FBQyxpQkFBaUIsQ0FBQyxnQkFBZ0IsQ0FBQyw2RkFBNkYsY0FBYyxDQUFDLGVBQWUsQ0FBQyxtR0FBbUcsd0JBQXdCLENBQUMsbUhBQW1ILGdCQUFnQixDQUFDLCtIQUErSCxjQUFjLENBQUMsaUJBQWlCLENBQUMsaUdBQWlHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxnR0FBZ0csb0JBQW9CLENBQUMsZUFBZSxDQUFDLHNHQUFzRyx3QkFBd0IsQ0FBQyxxR0FBcUcsOEJBQThCLENBQUMsaUhBQWlILDZCQUE2QixDQUFDLGlCQUFpQixDQUFDLHNHQUFzRyw2QkFBNkIsQ0FBQyxrSEFBa0gsYUFBYSxDQUFDLDhCQUE4QixDQUFDLGlGQUFpRixtQkFBbUIsQ0FBQyw2RkFBNkYsbUJBQW1CLENBQUMsdUZBQXVGLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxnQkFBZ0IsQ0FBQyxtR0FBbUcsaUJBQWlCLENBQUMsY0FBYyxDQUFDLDZCQUE2QixVQUFVLENBQUMsNkNBQTZDLGFBQWEsQ0FBQyw0QkFBNEIsbUJBQW1CLENBQUMsd0NBQXdDLG1CQUFtQixDQUFDLDZCQUE2QixVQUFVLENBQUMsaUJBQWlCLENBQUMseUNBQXlDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQyw2Q0FBNkMscUJBQXFCLENBQUMsdUNBQXVDLHlDQUF5QyxDQUFDLGtCQUFrQixDQUFDLDBCQUEwQixDQUFDLG1CQUFtQixxQkFBcUIsQ0FBQyxxQkFBcUIsQ0FBQyxtQ0FBbUMsQ0FBQyxNQUFNLENBQUMsb0NBQW9DLFFBQVEsQ0FBQyw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsbUZBQW1GLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLGlDQUFpQyxXQUFXLENBQUMsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsMkJBQTJCLENBQUMsa0JBQWtCLENBQUMsaUZBQWlGLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLHVDQUF1Qyw0QkFBNEIsQ0FBQyxlQUFlLENBQUMsdUNBQXVDLHlCQUF5QixDQUFDLGVBQWUsQ0FBQyx5REFBeUQsd0JBQWdCLENBQWhCLGdCQUFnQixDQUFDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQyxzQkFBc0IsQ0FBQyxjQUFjLENBQUMsNEVBQTRFLGNBQWMsQ0FBQywwRUFBMEUsd0JBQXdCLENBQUMseUtBQXlLLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyx1REFBdUQscUJBQXFCLENBQUMsc0JBQXNCLENBQUMsZ0JBQWdCLENBQUMscUtBQXFLLFVBQVUsQ0FBQyx3QkFBd0IsQ0FBQyx1TUFBdU0sZUFBZSxDQUFDLHdFQUF3RSx3QkFBd0IsQ0FBQyxVQUFVLENBQUMsMEVBQTBFLFVBQVUsQ0FBQyx1RUFBdUUsaUJBQWlCLENBQUMsbUZBQW1GLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxxRUFBcUUsYUFBYSxDQUFDLGVBQWUsQ0FBQyxpQkFBaUIsQ0FBQyxpRkFBaUYsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLCtCQUErQixhQUFhLENBQUMsZ0JBQWdCLENDRTE0Tzs7RUFFSSx3QkFBQTtFQUNBLHFCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxTQUFBO0FBQUosQ0FHQTtFQUNFLHFCQUFBO0VBQ0EsVUFBQTtBQUFGLENBR0E7RUFDQyxrQkFBQTtFQUNBLFdBQUE7RUFDQSxTQUFBO0FBQUQsQ0FHQTtFQUNFLFdBQUE7QUFBRixDQUdBO0VBQ0UscUJBQUE7QUFBRixDQUdBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0VBQ0EseUJBQUE7RUFDQSxtQkFBQTtFQUNBLGFBQUE7QUFBRixDQUdBO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0FBQUYsQ0FHQTtFQUNFLGVBQUE7QUFBRixDQUdBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtBQUFGLENBR0E7RUFDRSxnQkFBQTtBQUFGLENBRUE7RUFBZ0IseUNBQUE7RUFDZCxnQkFBQTtFQUNBLFVBQUE7RUFBWSxZQUFBO0FBR2QsQ0FEQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLDZCQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0VBQ0EsdUJBQUE7RUFDQSxpQkFBQTtFQUNBLFlBQUE7RUFDQSx1QkFBQTtBQUlGLENBREE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsaUJBQUE7RUFDQSxZQUFBO0VBQ0EsdUJBQUE7QUFJRixDQURBO0VBQ0Usa0JBQUE7QUFJRixDQURBO0VBQ0UsV0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFJRixDQURBO0VBQ0Usa0JBQUE7RUFDQSxpQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0Esb0JBQUE7RUFDQSxlQUFBO0VBQ0EsV0FBQTtFQUNBLFNBQUE7RUFDQSxXQUFBO0VBQ0EseUJBQUE7QUFJRixDQUZFO0VBQ0UsZUFBQTtBQUlKLENBQUE7RUFDRSx1QkFBQTtFQUNBLHlCQUFBO0FBR0YsQ0FEQTtFQUNFLHVCQUFBO0FBSUYsQ0FEQTtFQUNFLGVBQUE7RUFDQSxVQUFBO0VBQ0EsMEJBQUE7QUFJRixDQURBO0VBQ0UsZUFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxvQ0FBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsV0FBQTtBQUlGLENBREE7RUFDRSxzQkFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLHdDQUFBO0FBSUYsQ0FEQTtFQUNFLDJCQUFBO0FBSUYsQ0FEQTtFQUNFLGdDQUFBO0FBSUYsQ0FEQSw0Q0FBQSxDQUNBO0VBQ0UsY0FBQTtFQUNBLGVBQUE7RUFDQSxhQUFBO0VBQWUsMENBQUE7RUFDZixPQUFBO0VBQ0EsTUFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLG9DQUFBO0VBQXNDLDRDQUFBO0FBTXhDLENBSEEsd0RBQUEsQ0FDQTtFQUNFLHNCQUFBO0VBQ0EsZ0JBQUE7RUFBa0IscUJBQUE7RUFDbEIsYUFBQTtFQUNBLGtCQUFBO0VBQW9CLG9CQUFBO0VBQ3BCLHNCQUFBO0VBQ0EsVUFBQTtFQUFZLHFCQUFBO0VBQ1osZ0JBQUE7RUFDQSxnQkFBQTtFQUFrQixzREFBQTtFQUNsQixnQkFBQTtFQUFrQixpREFBQTtBQVdwQixDQVJBLHlCQUFBLENBQ0E7RUFDRSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTtBQVdGLENBUkE7O0VBRUUsWUFBQTtFQUNBLHFCQUFBO0VBQ0EsZUFBQTtBQVdGLENBUkEsMkNBQUEsQ0FDQTtFQUNFLGFBQUE7RUFDQSw0REFBQTtFQUE4RCxvQkFBQTtFQUM5RCxTQUFBO0VBQ0EscUJBQUE7QUFZRixDQVRBLDBCQUFBLENBQ0E7RUFDRSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtFQUNBLGVBQUE7RUFDQSxhQUFBO0VBQ0Esc0NBQUE7QUFZRixDQVRBO0VBQ0UseUJBQUE7RUFDQSxrQkFBQTtBQVlGLENBVEE7RUFDRSxlQUFBO0VBQ0EsbUJBQUE7QUFZRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9xdWVzdGlvbi1idWlsZGVyL3F1ZXN0aW9uLW1vZGFsL3F1ZXN0aW9uLW1vZGFsLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQ6I2ZmZjtib3JkZXItY29sb3I6I2IzYjNiMyAjY2NjICNkOWQ5ZDl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyOmhvdmVye2JveC1zaGFkb3c6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLWFycm93e3RvcDotMnB4O2JvcmRlci1jb2xvcjp0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjOTk5O2JvcmRlci13aWR0aDowIDVweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvdzpob3Zlcntib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzMzM30ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LWJvdHRvbT4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czowO2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LXRvcD4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItdG9wLXJpZ2h0LXJhZGl1czowO2JvcmRlci10b3AtbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1mb2N1c2VkOm5vdCgubmctc2VsZWN0LW9wZW5lZCk+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWNvbG9yOiMwMDdlZmY7Ym94LXNoYWRvdzppbnNldCAwIDFweCAxcHggcmdiYSgwLDAsMCwwLjA3NSksMCAwIDAgM3B4IHJnYmEoMCwxMjYsMjU1LDAuMSl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXJ7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3QgLm5nLWhhcy12YWx1ZSAubmctcGxhY2Vob2xkZXJ7ZGlzcGxheTpub25lfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXJ7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Ym9yZGVyLXJhZGl1czo0cHg7Ym9yZGVyOjFweCBzb2xpZCAjY2NjO21pbi1oZWlnaHQ6MzZweDthbGlnbi1pdGVtczpjZW50ZXJ9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7YWxpZ24taXRlbXM6Y2VudGVyO3BhZGRpbmctbGVmdDoxMHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVye2hlaWdodDozNnB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHt0b3A6NXB4O2xlZnQ6MDtwYWRkaW5nLWxlZnQ6MTBweDtwYWRkaW5nLXJpZ2h0OjUwcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZy1yaWdodDoxMHB4O3BhZGRpbmctbGVmdDo1MHB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjk7Ym9yZGVyOjFweCBzb2xpZCAjZTZlNmU2fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtbGFiZWx7cGFkZGluZzowIDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctdG9wOjVweDtwYWRkaW5nLWxlZnQ6N3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjdweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtmb250LXNpemU6LjllbTttYXJnaW4tYm90dG9tOjVweDtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Ym9yZGVyLXJhZGl1czoycHg7bWFyZ2luLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle21hcmdpbi1yaWdodDowO21hcmdpbi1sZWZ0OjVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZCAubmctdmFsdWUtbGFiZWx7cGFkZGluZy1sZWZ0OjA7cGFkZGluZy1yaWdodDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse2Rpc3BsYXk6aW5saW5lLWJsb2NrO3BhZGRpbmc6MXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbntkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb246aG92ZXJ7YmFja2dyb3VuZC1jb2xvcjojZDFlOGZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ubGVmdHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZjtib3JkZXItcmlnaHQ6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLnJpZ2h0e2JvcmRlci1sZWZ0OjA7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmc6MCAwIDNweCAzcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgM3B4IDNweCAwfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye3RvcDo1cHg7cGFkZGluZy1ib3R0b206NXB4O3BhZGRpbmctbGVmdDozcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntwYWRkaW5nLXJpZ2h0OjNweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1jbGVhci13cmFwcGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcjpob3ZlciAubmctY2xlYXJ7Y29sb3I6I0QwMDIxQn0ubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggNXB4IDAgMH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNwaW5uZXItem9uZXtwYWRkaW5nOjVweCAwIDAgNXB4fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7d2lkdGg6MjVweDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcjpob3ZlciAubmctYXJyb3d7Ym9yZGVyLXRvcC1jb2xvcjojNjY2fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXIgLm5nLWFycm93e2JvcmRlci1jb2xvcjojOTk5IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O2JvcmRlci1zdHlsZTpzb2xpZDtib3JkZXItd2lkdGg6NXB4IDVweCAyLjVweH0ubmctZHJvcGRvd24tcGFuZWx7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlcjoxcHggc29saWQgI2NjYztib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KTtsZWZ0OjB9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b217dG9wOjEwMCU7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4O2JvcmRlci10b3AtY29sb3I6I2U2ZTZlNjttYXJnaW4tdG9wOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b20gLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246bGFzdC1jaGlsZHtib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czo0cHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3B7Ym90dG9tOjEwMCU7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tY29sb3I6I2U2ZTZlNjttYXJnaW4tYm90dG9tOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3AgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246Zmlyc3QtY2hpbGR7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24taGVhZGVye2JvcmRlci1ib3R0b206MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tZm9vdGVye2JvcmRlci10b3A6MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3Vwe3VzZXItc2VsZWN0Om5vbmU7cGFkZGluZzo4cHggMTBweDtmb250LXdlaWdodDo1MDA7Y29sb3I6cmdiYSgwLDAsMCwwLjU0KTtjdXJzb3I6cG9pbnRlcn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tZGlzYWJsZWR7Y3Vyc29yOmRlZmF1bHR9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLXNlbGVjdGVkLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2ViZjVmZjtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9ue2JhY2tncm91bmQtY29sb3I6I2ZmZjtjb2xvcjpyZ2JhKDAsMCwwLDAuODcpO3BhZGRpbmc6OHB4IDEwcHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWR7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCAubmctb3B0aW9uLWxhYmVsLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZCAubmctb3B0aW9uLWxhYmVse2ZvbnQtd2VpZ2h0OjYwMH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmY7Y29sb3I6IzMzM30ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWRpc2FibGVke2NvbG9yOiNjY2N9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1jaGlsZHtwYWRkaW5nLWxlZnQ6MjJweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1yaWdodDoyMnB4O3BhZGRpbmctbGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse2ZvbnQtc2l6ZTo4MCU7Zm9udC13ZWlnaHQ6NDAwO3BhZGRpbmctcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uIC5uZy10YWctbGFiZWx7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWx7ZGlyZWN0aW9uOnJ0bDt0ZXh0LWFsaWduOnJpZ2h0fVxuIiwiQGltcG9ydCBcIn5Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3NcIjtcblxuaW5wdXRbdHlwZT1udW1iZXJdOjotd2Via2l0LWlubmVyLXNwaW4tYnV0dG9uLFxuaW5wdXRbdHlwZT1udW1iZXJdOjotd2Via2l0LW91dGVyLXNwaW4tYnV0dG9uIHtcbiAgICAtd2Via2l0LWFwcGVhcmFuY2U6IG5vbmU7XG4gICAgLW1vei1hcHBlYXJhbmNlOiBub25lO1xuICAgIGFwcGVhcmFuY2U6IG5vbmU7XG4gICAgbWFyZ2luOiAwO1xufVxuXG51bHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICBwYWRkaW5nOiAwO1xufVxuXG4uY2FuY2VsLWJ1dHRvbntcbiBwb3NpdGlvbjogcmVsYXRpdmU7XG4gcmlnaHQ6IDIwcHg7XG4gdG9wOiAzMHB4O1xufVxuXG4uZnVsbC13aWR0aHtcbiAgd2lkdGg6IDEwMCU7XG59XG5cbi5xdWVzdGlvbnN7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbn1cblxuLnF1ZXN0aW9ucy1jb250YWluZXJ7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYm9yZGVyOiAxcHggc29saWQgI2JkYmRiZDtcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcbiAgcGFkZGluZzogMTBweDtcbn1cblxuOjpuZy1kZWVwIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tbWFya2VkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzIxOTZmMztcbiAgY29sb3I6IHdoaXRlO1xufVxuXG4uYm9sZC10ZXh0e1xuICBmb250LXNpemU6IDE1cHg7XG59XG5cbi5yZXF1aXJlZCB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDEwcHg7XG4gIGJvdHRvbTogMjBweDtcbn1cblxuLmltZ1NyY3tcbiAgcGFkZGluZzogMi41JSAzJTtcbn1cbjo6cGxhY2Vob2xkZXIgeyAvKiBDaHJvbWUsIEZpcmVmb3gsIE9wZXJhLCBTYWZhcmkgMTAuMSsgKi9cbiAgY29sb3I6ICM0OTUwNTdhMTtcbiAgb3BhY2l0eTogMTsgLyogRmlyZWZveCAqL1xufVxuLmNpcmNsZSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgd2lkdGg6IDUwcHg7XG4gIGhlaWdodDogNTBweDtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBjb2xvcjogYmxhY2s7XG4gIGJvcmRlcjogMnB4IHNvbGlkIGJsYWNrO1xufVxuXG4uY2lyY2xlUG9wdXB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgd2lkdGg6IDcwcHg7XG4gIGhlaWdodDogNzBweDtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBjb2xvcjogYmxhY2s7XG4gIGJvcmRlcjogMnB4IHNvbGlkIGJsYWNrO1xufVxuXG4udGV4dCB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cblxuLnNyTm97XG4gIHdpZHRoOiAyMHB4O1xuICBmb250LXdlaWdodDogNzAwO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5mdWxsLWljb257XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgYmFja2dyb3VuZDogd2hpdGU7XG4gIHBhZGRpbmc6IDZweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBib3JkZXItcmFkaXVzOiA2cHg7XG4gIHotaW5kZXg6IDk5OTk5OTk5OTk5O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHdpZHRoOiA1MHB4O1xuICB0b3A6IDEwcHg7XG4gIHJpZ2h0OiAxMHB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjZTllOWU5O1xuXG4gIGl7XG4gICAgZm9udC1zaXplOiAyNXB4O1xuICB9XG59XG5cbi5waWN0dXJlUG9wdXB7XG4gIG1hcmdpbjogYXV0byAhaW1wb3J0YW50O1xuICBtaW4td2lkdGg6IDgwJSAhaW1wb3J0YW50O1xufVxuLmltYWdlLXdpZHRoLTE2NXtcbiAgd2lkdGg6IDE2NXB4ICFpbXBvcnRhbnQ7XG59XG5cbi5kZWxldGUtdHJhc2gtc2l6ZSB7XG4gIGZvbnQtc2l6ZTogMjBweDtcbiAgY29sb3I6IHJlZDtcbiAgY3Vyc29yOiBwb2ludGVyICFpbXBvcnRhbnQ7XG59XG5cbi5wb3B1cC1vdmVybGF5IHtcbiAgcG9zaXRpb246IGZpeGVkO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIHotaW5kZXg6IDk5O1xufVxuXG4ucG9wdXAge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBwYWRkaW5nOiAxMHB4O1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGJveC1zaGFkb3c6IDAgMnB4IDRweCByZ2JhKDAsIDAsIDAsIDAuMSk7XG59XG5cbi50YWJsZSB0ZCB7XG4gIGJvcmRlci10b3A6IG5vbmUgIWltcG9ydGFudDtcbn1cblxuLnRhYmxlLWJvcmRlci1ib3R0b20ge1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2RlZTJlNjtcbn1cblxuLyogRW5zdXJlIHRoZSBtb2RhbCBjb3ZlcnMgdGhlIGVudGlyZSBwYWdlICovXG4uY2hpbGQtbW9kYWwge1xuICBkaXNwbGF5OiBibG9jaztcbiAgcG9zaXRpb246IGZpeGVkO1xuICB6LWluZGV4OiA5OTk5OyAvKiBIaWdoZXIgei1pbmRleCB0byBlbnN1cmUgaXQgaXMgb24gdG9wICovXG4gIGxlZnQ6IDA7XG4gIHRvcDogMDtcbiAgd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogMTAwJTtcbiAgb3ZlcmZsb3c6IGF1dG87XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTsgLyogQWRkIHNvbWUgdHJhbnNwYXJlbmN5IHRvIHRoZSBiYWNrZ3JvdW5kICovXG59XG5cbi8qIE1vZGFsIGNvbnRlbnQgY2VudGVyZWQgYW5kIHdpdGggYXBwcm9wcmlhdGUgcGFkZGluZyAqL1xuLmNoaWxkLW1vZGFsLWNvbnRlbnQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBtYXJnaW46IDEwJSBhdXRvOyAvKiBDZW50ZXIgdGhlIG1vZGFsICovXG4gIHBhZGRpbmc6IDIwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDhweDsgLyogUm91bmRlZCBjb3JuZXJzICovXG4gIGJvcmRlcjogMXB4IHNvbGlkICM4ODg7XG4gIHdpZHRoOiA4MCU7IC8qIFJlc3BvbnNpdmUgd2lkdGggKi9cbiAgbWF4LXdpZHRoOiA2MDBweDtcbiAgbWF4LWhlaWdodDogODB2aDsgLyogUHJldmVudHMgdGhlIG1vZGFsIGZyb20gZXhjZWVkaW5nIHZpZXdwb3J0IGhlaWdodCAqL1xuICBvdmVyZmxvdy15OiBhdXRvOyAvKiBTY3JvbGwgd2l0aGluIHRoZSBtb2RhbCBpZiBjb250ZW50IG92ZXJmbG93cyAqL1xufVxuXG4vKiBDbG9zZSBidXR0b24gc3R5bGluZyAqL1xuLmNsb3NlIHtcbiAgY29sb3I6ICNhYWE7XG4gIGZsb2F0OiByaWdodDtcbiAgZm9udC1zaXplOiAyOHB4O1xuICBmb250LXdlaWdodDogYm9sZDtcbn1cblxuLmNsb3NlOmhvdmVyLFxuLmNsb3NlOmZvY3VzIHtcbiAgY29sb3I6IGJsYWNrO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLyogR3JpZCBmb3IgaWNvbnMsIGFkanVzdHMgdG8gc2NyZWVuIHNpemUgKi9cbi5pY29uLWdyaWQge1xuICBkaXNwbGF5OiBncmlkO1xuICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IHJlcGVhdChhdXRvLWZpbGwsIG1pbm1heCgxMDBweCwgMWZyKSk7IC8qIFJlc3BvbnNpdmUgZ3JpZCAqL1xuICBnYXA6IDE1cHg7XG4gIGp1c3RpZnktaXRlbXM6IGNlbnRlcjtcbn1cblxuLyogSW5kaXZpZHVhbCBpY29uIGl0ZW1zICovXG4uaWNvbi1pdGVtIHtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBwYWRkaW5nOiAxMHB4O1xuICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDAuM3MgZWFzZTtcbn1cblxuLmljb24taXRlbTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmMGYwZjA7XG4gIGJvcmRlci1yYWRpdXM6IDhweDtcbn1cblxuLmljb24taXRlbSBpIHtcbiAgZm9udC1zaXplOiAyNHB4O1xuICBtYXJnaW4tYm90dG9tOiAxMHB4O1xufVxuXG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](QuestionModalComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
args: [{
selector: 'app-question-modal',
templateUrl: './question-modal.component.html',
styleUrls: ['./question-modal.component.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbActiveModal"] }, { type: _angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClient"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"] }, { type: src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_10__["CompanyService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_11__["ToastrService"] }, { type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_12__["CentralBuilderService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__["CustomFieldService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_14__["UsersService"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_15__["BussinessUnitService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__["CustomFieldService"] }, { type: src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_16__["ChannelService"] }]; }, { value: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], isEdit: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], selfClosingAlert: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['selfClosingAlert', { static: false }]
}], myImage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['myImage', { static: false }]
}] }); })();
/***/ }),
/***/ "HItE":
/*!*********************************************************************!*\
!*** ./src/app/users/service/operations/shift-scheduler.service.ts ***!
\*********************************************************************/
/*! exports provided: ShiftSchedulerService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShiftSchedulerService", function() { return ShiftSchedulerService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
class ShiftSchedulerService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getWeeks(buId) {
return this.http.get(`${this.baseUrl}/businessunit/weekNo/` + buId, {
headers: this.Headers,
});
}
getUserbyPlanBU(data) {
/*const payload = {
"parentBussinessUnitId[]": id
}*/
return this.http.post(`${this.baseUrl}/companyUser/readUserByPlanBU/assignShift`, data, {
headers: this.Headers,
});
}
getStaffIdShift(id) {
return this.http.get(`${this.baseUrl}/assginshift/stafflist/` + id, {
headers: this.Headers,
});
}
getBuShiftName({ page, limit, search, sortWith, sortBy }) {
return this.http.get(`${this.baseUrl}/businessunit/planBU/addedShiftSetup`, {
headers: this.Headers,
params: { page, limit, search, sortWith, sortBy }
});
}
getPageSettingSkill() {
return this.http.get(`${this.baseUrl}/pageSetting/skillset`, {
headers: this.Headers,
});
}
getStaffSkill(staffId) {
return this.http.get(`${this.baseUrl}/assginshift/stafflist` + staffId, {
headers: this.Headers,
});
}
readAssignShift(data) {
return this.http.post(`${this.baseUrl}/assginshift/read`, data, {
headers: this.Headers,
});
}
shiftLogRead(data) {
return this.http.post(`${this.baseUrl}/shiftLog/read`, data, {
headers: this.Headers,
});
}
createShift(data) {
return this.http.post(`${this.baseUrl}/shift/create`, data, {
headers: this.Headers,
});
}
createEmptyShift(data) {
return this.http.post(`${this.baseUrl}/assginshift/stafflisting`, data, {
headers: this.Headers,
});
}
deleteSingleShift(data) {
return this.http.post(`${this.baseUrl}/assginshift/staff/delete`, data, {
headers: this.Headers,
});
}
alertAction(data) {
return this.http.post(`${this.baseUrl}/assginshift/alertaction`, data, {
headers: this.Headers,
});
}
updateShift(data) {
return this.http.post(`${this.baseUrl}/assginshift/staff/update`, data, {
headers: this.Headers,
});
}
updateShiftRestOff(data) {
return this.http.post(`${this.baseUrl}/assginshift/staff/update/restoff`, data, {
headers: this.Headers,
});
}
assignShiftPublish(data) {
return this.http.post(`${this.baseUrl}/assginshift/publishAll`, data, {
headers: this.Headers,
});
}
uploadRoster(d, f) {
const formData = new FormData();
formData.append('shift', JSON.stringify(d));
formData.append('ff', f);
return this.http.post(`${this.baseUrl}/assginshift/create`, formData);
}
shiftExtension(data) {
return this.http.post(`${this.baseUrl}/shift/checklimit`, data, {
headers: this.Headers,
});
}
stopShiftExtension(data) {
return this.http.post(`${this.baseUrl}/shift/shiftExtension/stop`, data, {
headers: this.Headers,
});
}
againShiftExtension(data) {
return this.http.post(`${this.baseUrl}/shift/shiftExtension/again`, data, {
headers: this.Headers,
});
}
confirmedShift(data) {
return this.http.post(`${this.baseUrl}/shift/shiftExtension`, data, {
headers: this.Headers,
});
}
saveAdjustShift(data) {
return this.http.post(`${this.baseUrl}/shift/adjust`, data, {
headers: this.Headers,
});
}
getViewBooking(data) {
return this.http.post(`${this.baseUrl}/shift/viewbookings`, data, {
headers: this.Headers,
});
}
savePlanShift(data) {
return this.http.post(`${this.baseUrl}/template/create`, data, {
headers: this.Headers,
});
}
getBusinessUnitSetting(businessUnitId) {
return this.http.get(`${this.baseUrl}/bu-shift/setting/${businessUnitId}`, {
headers: this.Headers,
});
}
getGeoReportingLocationSetting(businessUnitId) {
return this.http.get(`${this.baseUrl}/bu-shift/setting/${businessUnitId}`, {
headers: this.Headers,
});
}
getTemplate(data) {
return this.http.post(`${this.baseUrl}/template/read`, data, {
headers: this.Headers,
});
}
deleteTemplate(data) {
return this.http.post(`${this.baseUrl}/template/remove`, data, {
headers: this.Headers,
});
}
deleteShiftTemplate(data) {
return this.http.post(`${this.baseUrl}/template/deleteShiftInTemplate`, data, {
headers: this.Headers,
});
}
getPlanShift(data) {
return this.http.post(`${this.baseUrl}/shift/read`, data, {
headers: this.Headers,
});
}
getShiftGraph(data) {
return this.http.post(`${this.baseUrl}/shift/graphData`, data, {
headers: this.Headers,
});
}
createRecall(data) {
return this.http.post(`${this.baseUrl}/shift/create/restoff`, data, {
headers: this.Headers,
});
}
getShiftLog(data) {
return this.http.post(`${this.baseUrl}/shiftLog/read`, data, {
headers: this.Headers,
});
}
requestChange(data) {
return this.http.post(`${this.baseUrl}/shift/requestChange`, data, {
headers: this.Headers,
});
}
stopRequestChange(data) {
return this.http.post(`${this.baseUrl}/shift/stopRequesting`, data, {
headers: this.Headers,
});
}
cancelShiftNew(data) {
const result = this.http.post(`${this.baseUrl}/shift/cancel`, data, {
headers: this.Headers,
});
return result;
}
cancelBookedShift(data) {
const result = this.http.post(`${this.baseUrl}/shift/cancelIndividualShift`, data, {
headers: this.Headers,
});
return result;
}
//TimeSheet Services
readTimesheet(id, payload) {
return this.http
.post(`${this.baseUrl}/timesheet/read/${id}`, payload, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((val) => {
var _a;
const filterdata = [];
(_a = val.data) === null || _a === void 0 ? void 0 : _a.forEach((res) => {
if (Object.keys(res).includes('attendance')) {
if (Object.keys(res.attendance).includes('clockOutDateTime') ==
false) {
filterdata.push(res);
}
}
else {
filterdata.push(res);
}
});
return filterdata;
}));
}
getTimesheetData(id) {
return this.http.get(`${this.baseUrl}/timesheet/${id}`, {
headers: this.Headers,
});
}
generateQr(userId, shiftDetailId) {
return this.http.get(`${this.baseUrl}/timesheet/qrcode/${userId}/${shiftDetailId}`, {
headers: this.Headers,
});
}
getTimesheetHistory(id, data) {
return this.http.post(`${this.baseUrl}/timesheet/history/${id}`, data, {
headers: this.Headers,
});
}
lockShift(data) {
return this.http.post(`${this.baseUrl}/timesheet/lockall`, data, {
headers: this.Headers,
});
}
getAttendance(data) {
return this.http.post(`${this.baseUrl}/attendance/add`, data, {
headers: this.Headers,
});
}
approvalTimeSheet(data) {
return this.http.post(`${this.baseUrl}/timesheet/approval`, data, {
headers: this.Headers,
});
}
breakTimeAdd(payload) {
return this.http.post(`${this.baseUrl}/attendance/breakTime`, payload, {
headers: this.Headers,
});
}
lock(payload) {
return this.http.post(`${this.baseUrl}/timesheet/lock`, payload, {
headers: this.Headers,
});
}
exportTimesheetData(id) {
return this.http.get(`${this.baseUrl}/timesheet/export/${id}`, {
headers: this.Headers,
});
}
exportHistoryTSData(id, data) {
return this.http.post(`${this.baseUrl}/timesheet/history/export/${id}`, data, {
headers: this.Headers,
});
}
attendance(data) {
return this.http.post(`${this.baseUrl}/attendance/add`, data, {
headers: this.Headers,
});
}
attendanceLog(data) {
return this.http.post(`${this.baseUrl}/attendance/logs`, data, {
headers: this.Headers,
});
}
//Log Assign Services
getLogAssign(payload) {
return this.http.post(`${this.baseUrl}/assginshift/log`, payload, {
headers: this.Headers,
});
}
}
ShiftSchedulerService.ɵfac = function ShiftSchedulerService_Factory(t) { return new (t || ShiftSchedulerService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"])); };
ShiftSchedulerService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: ShiftSchedulerService, factory: ShiftSchedulerService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ShiftSchedulerService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "HW0N":
/*!**********************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/forms-overview/forms-overview.component.ts ***!
\**********************************************************************************************/
/*! exports provided: FormsOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormsOverviewComponent", function() { return FormsOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @techiediaries/ngx-qrcode */ "hiuq");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["exportForm"];
function FormsOverviewComponent_div_0_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_0_tbody_39_tr_1_button_15_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_div_0_tbody_39_tr_1_button_15_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r16.getSingleFormData(item_r7, 1); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_0_tbody_39_tr_1_button_16_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_div_0_tbody_39_tr_1_button_16_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r19.getSingleFormData(item_r7, 2); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_0_tbody_39_tr_1_button_17_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_div_0_tbody_39_tr_1_button_17_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r22.onExportForm(item_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Export");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_0_tbody_39_tr_1_button_18_Template(rf, ctx) { if (rf & 1) {
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_div_0_tbody_39_tr_1_button_18_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r25.onManage(item_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Manage");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_0_tbody_39_tr_1_div_19_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_div_0_tbody_39_tr_1_div_19_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r30); const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r28.onExternalURL(item_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_0_tbody_39_tr_1_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbPopover", _r14);
} }
function FormsOverviewComponent_div_0_tbody_39_tr_1_ng_template_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "ngx-qrcode", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("elementType", "url")("value", ctx_r15.qrCodeUrl(item_r7.formUrl));
} }
function FormsOverviewComponent_div_0_tbody_39_tr_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, FormsOverviewComponent_div_0_tbody_39_tr_1_button_15_Template, 2, 0, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, FormsOverviewComponent_div_0_tbody_39_tr_1_button_16_Template, 2, 0, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, FormsOverviewComponent_div_0_tbody_39_tr_1_button_17_Template, 2, 0, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, FormsOverviewComponent_div_0_tbody_39_tr_1_button_18_Template, 2, 0, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, FormsOverviewComponent_div_0_tbody_39_tr_1_div_19_Template, 2, 0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, FormsOverviewComponent_div_0_tbody_39_tr_1_div_20_Template, 2, 1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, FormsOverviewComponent_div_0_tbody_39_tr_1_ng_template_21_Template, 2, 2, "ng-template", null, 34, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = ctx.$implicit;
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](3, 12, item_r7.createdAt, "medium"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r7.title);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r7.isDeployed === 1 ? "Mobile and Webapp " : "External");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r7.authorName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r7.status == 1 ? "badge-success" : "badge-danger");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r7.status === 1 ? "Published" : "In Active", "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.privilegeFlags.setUpForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.privilegeFlags.setUpForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.privilegeFlags.manageForm && item_r7.hasWorkflow);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.privilegeFlags.manageForm || ctx_r6.privilegeFlags.formSupervisor || ctx_r6.privilegeFlags.exportManageFormOnly);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r7.formUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r7.formUrl);
} }
function FormsOverviewComponent_div_0_tbody_39_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, FormsOverviewComponent_div_0_tbody_39_tr_1_Template, 23, 15, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r5.usersPTable.data);
} }
function FormsOverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "FORMS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function FormsOverviewComponent_div_0_Template_select_change_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r32.onLimitChangeUsers(); })("ngModelChange", function FormsOverviewComponent_div_0_Template_select_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r34.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, FormsOverviewComponent_div_0_span_21_Template, 2, 0, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function FormsOverviewComponent_div_0_Template_input_search_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r35.userssearchInput.next($event); })("keyup", function FormsOverviewComponent_div_0_Template_input_keyup_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r36.userssearchInput.next($event); })("ngModelChange", function FormsOverviewComponent_div_0_Template_input_ngModelChange_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r37.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function FormsOverviewComponent_div_0_Template_th_sort_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r38.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, " Date ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function FormsOverviewComponent_div_0_Template_th_sort_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r39.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, " FORM TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, " DEPLOYED ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function FormsOverviewComponent_div_0_Template_th_sort_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r40.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, " AUTHOR ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function FormsOverviewComponent_div_0_Template_th_sort_35_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r41.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, " STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](39, FormsOverviewComponent_div_0_tbody_39_Template, 2, 1, "tbody", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](40, "app-skliton-loading-table", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "ngb-pagination", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function FormsOverviewComponent_div_0_Template_ngb_pagination_pageChange_45_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r42.usersPTable.page = $event; })("pageChange", function FormsOverviewComponent_div_0_Template_ngb_pagination_pageChange_45_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r43.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 6)("isTableLoading", ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r0.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r0.usersPTable.total)("page", ctx_r0.usersPTable.page)("maxSize", 5)("pageSize", ctx_r0.usersPTable.limit);
} }
function FormsOverviewComponent_div_1_div_8_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r64 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r64.value);
} }
function FormsOverviewComponent_div_1_div_8_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, FormsOverviewComponent_div_1_div_8_div_7_div_2_Template, 4, 1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r45.options);
} }
function FormsOverviewComponent_div_1_div_8_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r67 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r67.value);
} }
function FormsOverviewComponent_div_1_div_8_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, FormsOverviewComponent_div_1_div_8_div_8_div_2_Template, 4, 1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r45.options);
} }
function FormsOverviewComponent_div_1_div_8_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r70 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r70.value, "");
} }
function FormsOverviewComponent_div_1_div_8_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, FormsOverviewComponent_div_1_div_8_div_9_div_2_Template, 4, 1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r45.options);
} }
function FormsOverviewComponent_div_1_div_8_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " True");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " False");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_1_div_8_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "textarea", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_1_div_8_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r73 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r73.questionName);
} }
function FormsOverviewComponent_div_1_div_8_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, FormsOverviewComponent_div_1_div_8_div_12_div_2_Template, 4, 1, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r45.profile);
} }
function FormsOverviewComponent_div_1_div_8_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "textarea", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_1_div_8_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "textarea", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_1_div_8_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_1_div_8_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "input", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Seconds");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_1_div_8_div_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function FormsOverviewComponent_div_1_div_8_div_18_span_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span");
} }
function FormsOverviewComponent_div_1_div_8_div_18_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, FormsOverviewComponent_div_1_div_8_div_18_span_4_span_2_Template, 1, 0, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r76 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r76.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r76.length != 0);
} }
function FormsOverviewComponent_div_1_div_8_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "input", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, FormsOverviewComponent_div_1_div_8_div_18_span_4_Template, 3, 2, "span", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r45 == null ? null : item_r45.options);
} }
function FormsOverviewComponent_div_1_div_8_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ngb-rating", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("max", item_r45.value)("rate", 0);
} }
function FormsOverviewComponent_div_1_div_8_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function FormsOverviewComponent_div_1_div_8_div_21_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r81 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r81.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r81.value);
} }
function FormsOverviewComponent_div_1_div_8_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, FormsOverviewComponent_div_1_div_8_div_21_div_2_Template, 6, 2, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r45.options);
} }
function FormsOverviewComponent_div_1_div_8_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FormsOverviewComponent_div_1_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "strong", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "p", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, FormsOverviewComponent_div_1_div_8_div_7_Template, 3, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, FormsOverviewComponent_div_1_div_8_div_8_Template, 3, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, FormsOverviewComponent_div_1_div_8_div_9_Template, 3, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, FormsOverviewComponent_div_1_div_8_div_10_Template, 10, 0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, FormsOverviewComponent_div_1_div_8_div_11_Template, 4, 0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, FormsOverviewComponent_div_1_div_8_div_12_Template, 3, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, FormsOverviewComponent_div_1_div_8_div_13_Template, 4, 0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, FormsOverviewComponent_div_1_div_8_div_14_Template, 4, 0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, FormsOverviewComponent_div_1_div_8_div_15_Template, 4, 0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, FormsOverviewComponent_div_1_div_8_div_16_Template, 19, 0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, FormsOverviewComponent_div_1_div_8_div_17_Template, 2, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, FormsOverviewComponent_div_1_div_8_div_18_Template, 5, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, FormsOverviewComponent_div_1_div_8_div_19_Template, 3, 2, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, FormsOverviewComponent_div_1_div_8_div_20_Template, 2, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, FormsOverviewComponent_div_1_div_8_div_21_Template, 3, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, FormsOverviewComponent_div_1_div_8_div_22_Template, 2, 0, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = ctx.$implicit;
const i_r46 = ctx.index;
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r46 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 18, item_r45 == null ? null : item_r45.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r45.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r44.selectedModule == null ? null : ctx_r44.selectedModule.questions.length) == 0);
} }
function FormsOverviewComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r84 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r84); const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r83.isModuleView = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, FormsOverviewComponent_div_1_div_8_Template, 23, 20, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 2, ctx_r1.selectedModule == null ? null : ctx_r1.selectedModule.moduleName), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.selectedModule == null ? null : ctx_r1.selectedModule.questions);
} }
function FormsOverviewComponent_ng_template_2_div_35_ng_option_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r90 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r90.field, " ");
} }
function FormsOverviewComponent_ng_template_2_div_35_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function FormsOverviewComponent_ng_template_2_div_35_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r92); const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r91.addWorkFlowStatus($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "pre");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](7, "json");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, FormsOverviewComponent_ng_template_2_div_35_ng_option_8_Template, 2, 2, "ng-option", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r88 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 7, item_r88.title));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("placeholder", item_r88.title)("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](7, 9, item_r88));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r88.workflowStatus);
} }
function FormsOverviewComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r94 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "EXPORT FORM");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_ng_template_2_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r93.modalClose(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Select date From");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "input", 100, 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "button", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_ng_template_2_Template_button_click_21_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](19); return _r85.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "i", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, "Select date To");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "input", 105, 106);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "button", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_ng_template_2_Template_button_click_31_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const _r86 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](29); return _r86.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](32, "i", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](35, FormsOverviewComponent_ng_template_2_div_35_Template, 9, 11, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "button", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FormsOverviewComponent_ng_template_2_Template_button_click_38_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r94); const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r97.onSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "Export");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r3.FormExport);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.workFlow);
} }
class FormsOverviewComponent {
constructor(customFormService, toastService, modelService, formBuilder, centralBuilderService, tableService, datepipe) {
this.customFormService = customFormService;
this.toastService = toastService;
this.modelService = modelService;
this.formBuilder = formBuilder;
this.centralBuilderService = centralBuilderService;
this.tableService = tableService;
this.datepipe = datepipe;
this.isTableLoading = false;
this.isModuleView = false;
this.hoveredDate = null;
this.columns = ['name', 'email', 'company'];
this.isManage = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.workFlow = [];
this.EditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.ViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.hasOnlyExportData = false;
this.csvData = [];
this.formTableColumn = ['createdAt', 'title', 'isDeployed', 'createdBy.name', 'status', 'status'];
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.parentBUUnit = null;
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: '_id',
total: 0,
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
const data = localStorage.getItem("privilegeFlags");
this.privilegeFlags = JSON.parse(data);
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.usersPTable.search = input;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortBy = direction;
this.usersPTable.sortWith = column;
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.usersPTable.page = 1;
this.loadUsers();
}
ngOnInit() {
this.loadUsers(true);
}
initiExportForm() {
this.FormExport = this.formBuilder.group({
customFormId: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
fromDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
toDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
workflow: this.formBuilder.array([]),
formStatus: []
});
}
getQuestions(moduleId) {
this.centralBuilderService.getSingleQuestions(moduleId).subscribe((res) => {
this.isModuleView = true;
this.selectedModule = res.data.moduleData;
});
}
loadUsers(isDefault = false) {
this.isTableLoading = true;
isDefault = isDefault ? isDefault : this.usersPTable.page == 1 && this.usersPTable.limit == 10 && this.usersPTable.sortWith == '_id' && this.usersPTable.sortBy == 'desc' && this.usersPTable.search == '';
const subscribe = this.customFormService
.getAllForms({ isDefault, page: this.usersPTable.page, limit: this.usersPTable.limit, sortWith: this.usersPTable.sortWith, sortBy: this.usersPTable.sortBy, search: this.usersPTable.search })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.usersPTable.data = (response === null || response === void 0 ? void 0 : response.data) || [];
this.usersPTable.total = (response === null || response === void 0 ? void 0 : response.recordsTotal) || 0;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.isTableLoading = false;
this.toastService.error('No list found');
});
}
onEditForm(data) {
this.EditEvent.emit(data);
}
onViewForm(data) {
this.ViewEvent.emit(data);
}
getSingleFormData(data, to) {
const subscribe = this.customFormService
.singleFormData(data._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const data = (response === null || response === void 0 ? void 0 : response.data) || {};
if (to === 1) {
this.onViewForm(data);
}
else if (to === 2) {
this.onEditForm(data);
}
}, (error) => {
this.toastService.error('No Form found');
});
}
onExternalURL(data) {
const URL = data.formUrl.replace('#', '');
window.open(`/${URL}`);
}
qrCodeUrl(item) {
// const url = location.protocol + '//' + window.location.hostname + '/' + item;
const baseUrl = item.replace('#', '');
const url = window.location.origin + '/' + baseUrl;
return url;
}
get workFlowStatusControl() {
return this.FormExport.get('workflow');
}
addParentBussinentUnit(value) {
this.parentBUUnit = [];
}
getParentElementWithValue(parentArray, selectedValue) {
let parentElement = null;
parentArray.find((parent) => {
if (parent.workflowStatus.some((nested) => nested === selectedValue)) {
parentElement = parent;
}
});
return parentElement;
}
addWorkFlowStatus(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const workFlowDetails = this.getParentElementWithValue(this.workFlow, value);
if (value) {
const Control = this.workFlowStatusControl;
const index = yield Control.value.findIndex((x) => x.workflowId === value.workflowId);
if (index > -1) {
Control.removeAt(index);
let field = this.formBuilder.group({
workflowId: [workFlowDetails._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
workflowStatusId: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
}
else {
let field = this.formBuilder.group({
workflowId: [workFlowDetails._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
workflowStatusId: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
}
}
});
}
onExportForm(item) {
item && this.initiExportForm();
this.workFlow = item.workflow;
this.FormExport.patchValue({
customFormId: item._id,
formStatus: item.formStatus
});
this.modelService.open(this.exportForm, {
windowClass: 'modal-ui-fix right-align',
});
}
modalClose() {
this.modelService.dismissAll();
}
onManage(data) {
this.isManage.emit(data);
}
formatDateString(data) {
const day = data.day + "-" + data.month + "-" + data.year;
return day;
}
onSubmit() {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
const data = {
customFormId: (_a = this.FormExport.value) === null || _a === void 0 ? void 0 : _a.customFormId,
fromDate: moment__WEBPACK_IMPORTED_MODULE_6__()
.set({
y: (_c = (_b = this.FormExport.value) === null || _b === void 0 ? void 0 : _b.fromDate) === null || _c === void 0 ? void 0 : _c.year,
M: ((_e = (_d = this.FormExport.value) === null || _d === void 0 ? void 0 : _d.fromDate) === null || _e === void 0 ? void 0 : _e.month) - 1,
D: (_g = (_f = this.FormExport.value) === null || _f === void 0 ? void 0 : _f.fromDate) === null || _g === void 0 ? void 0 : _g.day,
}).toISOString(),
toDate: moment__WEBPACK_IMPORTED_MODULE_6__()
.set({
y: (_j = (_h = this.FormExport.value) === null || _h === void 0 ? void 0 : _h.toDate) === null || _j === void 0 ? void 0 : _j.year,
M: ((_l = (_k = this.FormExport.value) === null || _k === void 0 ? void 0 : _k.toDate) === null || _l === void 0 ? void 0 : _l.month) - 1,
D: (_o = (_m = this.FormExport.value) === null || _m === void 0 ? void 0 : _m.toDate) === null || _o === void 0 ? void 0 : _o.day,
}).toISOString(),
workflow: (_p = this.FormExport.value) === null || _p === void 0 ? void 0 : _p.workflow
};
const sub = this.customFormService
.exportForm(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
var _a;
if ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.csvLink) {
this.downloadCSV(res.data.csvLink);
this.FormExport.reset();
this.modelService.dismissAll();
}
else {
this.toastService.error(res.message);
}
}, (error) => {
this.toastService.error('Something went wrong. Please try again later.');
});
}
downloadCSV(data) {
const sub = this.customFormService.getExportCSV(data)
.subscribe((response) => {
const list = data.split('\n');
list.forEach(e => {
this.csvData.push(e);
});
const a = document.createElement("a");
a.href = "data:text/csv," + response;
let filename = "users_workflowStatus_data" + this.datepipe.transform(new Date(), 'dd-MMM-yyyy HH:mm:ss');
a.setAttribute("download", filename + ".csv");
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}, (error) => {
console.log(error);
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
FormsOverviewComponent.ɵfac = function FormsOverviewComponent_Factory(t) { return new (t || FormsOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_10__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_11__["TableService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_12__["DatePipe"])); };
FormsOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: FormsOverviewComponent, selectors: [["app-forms-overview"]], viewQuery: function FormsOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.exportForm = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { hasOnlyExportData: "hasOnlyExportData" }, outputs: { isManage: "isManage", EditEvent: "EditEvent", ViewEvent: "ViewEvent" }, decls: 4, vars: 2, consts: [["class", "card mb-3", 4, "ngIf"], ["class", "card", 4, "ngIf"], ["exportForm", ""], [1, "card", "mb-3"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "_id", 3, "sort"], ["scope", "col", "sortable", "title", 3, "sort"], ["scope", "col"], ["scope", "col", "sortable", "authorName", 3, "sort"], ["scope", "col", "sortable", "status", 3, "sort"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [4, "ngFor", "ngForOf"], [1, "badge", 3, "ngClass"], ["class", "btn btn-submit p-2 m-1 btn-block", 3, "click", 4, "ngIf"], ["class", "btn btn-add p-2 m-1 btn-block", 3, "click", 4, "ngIf"], ["class", "btn btn-primary p-2 m-1 btn-block", 3, "click", 4, "ngIf"], ["class", "btn btn-warning p-2 m-1 btn-block", 3, "click", 4, "ngIf"], ["class", "url", 3, "click", 4, "ngIf"], ["aria-hidden", "true", "placement", "left", "popoverTitle", "Scan QR Code", "class", "qr-code ml-2", 3, "ngbPopover", 4, "ngIf"], ["customPopoverContent", ""], [1, "btn", "btn-submit", "p-2", "m-1", "btn-block", 3, "click"], [1, "btn", "btn-add", "p-2", "m-1", "btn-block", 3, "click"], [1, "btn", "btn-primary", "p-2", "m-1", "btn-block", 3, "click"], [1, "btn", "btn-warning", "p-2", "m-1", "btn-block", 3, "click"], [1, "url", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-link"], ["aria-hidden", "true", "placement", "left", "popoverTitle", "Scan QR Code", 1, "qr-code", "ml-2", 3, "ngbPopover"], [1, "fa", "fa-qrcode"], ["cssClass", "aclass", "errorCorrectionLevel", "M", 3, "elementType", "value"], [1, "card"], [1, "card-header", "flexi-header", "pt-4"], [2, "display", "inline"], [1, "btn", "pull-right", 2, "color", "ivory", 3, "click"], [1, "card-body", 2, "word-break", "break-word", "padding", "10px"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [1, "box", "d-flex", "flex-column"], [1, "d-flex"], [1, "mr-1"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "box-body"], [1, "d-flex", "flex-column", "answers-options"], ["class", "radio radio-danger radio-inline", 4, "ngFor", "ngForOf"], [1, "radio", "radio-danger", "radio-inline"], ["type", "radio", 1, "disabled"], ["for", "consolidated"], ["class", "checkbox checkbox-danger checkbox-inline", 4, "ngFor", "ngForOf"], [1, "checkbox", "checkbox-danger", "checkbox-inline"], ["type", "checkbox", 1, "disabled"], [1, "d-flex", "flex-row", "answers-options"], ["cols", "30", "rows", "5", 1, "disabled", "form-control", "flex-fill"], [1, "flex-fill", 2, "width", "100%"], [1, "d-flex", "flex-wrap", "answers-options"], ["class", "form-group flex-fill", "style", "margin: 1rem 1rem; width: 44%", 4, "ngFor", "ngForOf"], [1, "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["for", "my-input"], ["id", "my-input", "type", "text", 1, "form-control"], ["rows", "3", 1, "form-control"], ["rows", "5", 1, "form-control"], ["type", "number", 1, "form-control"], [1, "form-group"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["id", "my-input", "type", "date", 1, "form-control"], ["name", "", "id", "", 1, "form-control"], [1, "form-control"], ["id", "my-input", "type", "file", 1, "form-control-file"], [3, "max", "rate"], ["ng-model", "item.options", 1, "row"], [1, "thumbnail"], ["ng-if", "option.imageSrc", "crossorigin", "anonymous", 2, "height", "150px", 3, "src"], [1, "caption"], [2, "text-align", "center"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], ["type", "button", "aria-label", "Close", 1, "btn", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [3, "formGroup"], [1, "row"], [1, "col-md-6"], ["for", "startdate"], [1, "input-group"], ["placeholder", "yyyy-mm-dd", "name", "dp", "formControlName", "fromDate", "ngbDatepicker", "", 1, "form-control", 2, "max-width", "240px"], ["d", "ngbDatepicker"], [1, "input-group-append"], ["type", "button", 1, "btn", "btn-outline-secondary", "calendar", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-calendar"], ["placeholder", "yyyy-mm-dd", "name", "dp", "formControlName", "toDate", "ngbDatepicker", "", 1, "form-control", 2, "max-width", "240px"], ["c", "ngbDatepicker"], [1, "row", "mt-5"], ["class", "col-md-6", 4, "ngFor", "ngForOf"], [1, "col-md-12", "d-flex", "justify-content-center"], [1, "btn", "btn-submit", "d-block", 3, "click"], [1, "font-weight-bold"], ["bindLabel", "name", "appendTo", "body", 1, "custom", 3, "placeholder", "multiple", "searchable", "clearable", "change"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function FormsOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, FormsOverviewComponent_div_0_Template, 46, 16, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, FormsOverviewComponent_div_1_Template, 9, 4, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, FormsOverviewComponent_ng_template_2_Template, 41, 2, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isModuleView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isModuleView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_14__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbPagination"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbPopover"], _techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_15__["QrcodeComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbRating"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbInputDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__["ɵr"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["UpperCasePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_17__["SafeHtmlPipe"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["JsonPipe"]], styles: ["a.list-group-item[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n border: 1px dotted #cccccc;\n cursor: pointer;\n color: #555;\n}\n\na[_ngcontent-%COMP%] {\n text-decoration: none;\n}\n\na.list-group-item[_ngcontent-%COMP%]:hover {\n background-color: #e2e2e2;\n}\n\n.card-header-flexi[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n padding: 1rem;\n color: #a42138;\n text-transform: uppercase;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n margin: 1rem;\n box-shadow: 0px 0px 8px #ccc;\n padding: 1.2rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n padding: 1rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] {\n padding-bottom: 1rem;\n word-wrap: break-word;\n font-weight: 600;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 1rem;\n}\n\n.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n\n.btn-primary[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #5bc0de;\n border-color: #46b8da;\n}\n\n.url[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #c2e0fb;\n border-radius: 6px;\n margin: 3px 0px;\n cursor: pointer;\n color: #3e3ed3e0;\n}\n\n.url[_ngcontent-%COMP%]:hover {\n opacity: 0.6;\n color: blue;\n}\n\n.qr-code[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: #c2e0fb;\n border-radius: 6px;\n margin: 3px 0px;\n cursor: pointer;\n color: #3e3ed3e0;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm1zLW92ZXJ2aWV3L2Zvcm1zLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsbUJBQUE7RUFDQSwwQkFBQTtFQUNBLGVBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxxQkFBQTtBQUVGOztBQUFBO0VBQ0UseUJBQUE7QUFHRjs7QUFBQTtFQUNFLDZCQUFBO0VBQ0EsYUFBQTtFQUNBLGNBQUE7RUFDQSx5QkFBQTtBQUdGOztBQURBO0VBQ0UsWUFBQTtFQUNBLDRCQUFBO0VBQ0EsZUFBQTtBQUlGOztBQUhFO0VBQ0UsYUFBQTtBQUtKOztBQUhFO0VBQ0Usb0JBQUE7RUFDQSxxQkFBQTtFQUNBLGdCQUFBO0FBS0o7O0FBSkk7RUFDRSxlQUFBO0FBTU47O0FBREE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtBQUlGOztBQURBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7QUFJRjs7QUFEQTtFQUNFLFdBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLHlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxlQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0FBSUY7O0FBRkU7RUFDRSxZQUFBO0VBQ0EsV0FBQTtBQUlKOztBQURBO0VBQ0UsV0FBQTtFQUNBLGFBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7QUFJRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9mb3Jtcy9mb3Jtcy1vdmVydmlldy9mb3Jtcy1vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImEubGlzdC1ncm91cC1pdGVtIHtcbiAgbWFyZ2luLWJvdHRvbTogMXJlbTtcbiAgYm9yZGVyOiAxcHggZG90dGVkIHJnYigyMDQsIDIwNCwgMjA0KTtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBjb2xvcjogIzU1NTtcbn1cbmEge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG59XG5hLmxpc3QtZ3JvdXAtaXRlbTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYigyMjYsIDIyNiwgMjI2KTtcbn1cblxuLmNhcmQtaGVhZGVyLWZsZXhpIHtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDFyZW07XG4gIGNvbG9yOiAjYTQyMTM4O1xuICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xufVxuLmNhcmQtYm9keSAuYm94IHtcbiAgbWFyZ2luOiAxcmVtO1xuICBib3gtc2hhZG93OiAwcHggMHB4IDhweCAjY2NjO1xuICBwYWRkaW5nOiAxLjJyZW07XG4gIC5ib3gtYm9keSB7XG4gICAgcGFkZGluZzogMXJlbTtcbiAgfVxuICAuYm94LWhlYWRpbmcge1xuICAgIHBhZGRpbmctYm90dG9tOiAxcmVtO1xuICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDtcbiAgICBmb250LXdlaWdodDogNjAwO1xuICAgIHNwYW4ge1xuICAgICAgcGFkZGluZzogMCAxcmVtO1xuICAgIH1cbiAgfVxufVxuXG4uYnRuLXN1Ym1pdCB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzM3YWI3O1xuICBib3JkZXItY29sb3I6ICMyZTZkYTQ7XG59XG5cbi5idG4tcHJpbWFyeSB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNWJjMGRlO1xuICBib3JkZXItY29sb3I6ICM0NmI4ZGE7XG59XG5cbi51cmwge1xuICB3aWR0aDogMTAwJTtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjMmUwZmI7XG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgbWFyZ2luOiAzcHggMHB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGNvbG9yOiAjM2UzZWQzZTA7XG5cbiAgJjpob3ZlciB7XG4gICAgb3BhY2l0eTogMC42O1xuICAgIGNvbG9yOiBibHVlO1xuICB9XG59XG4ucXItY29kZSB7XG4gIHdpZHRoOiAxMDAlO1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2MyZTBmYjtcbiAgYm9yZGVyLXJhZGl1czogNnB4O1xuICBtYXJnaW46IDNweCAwcHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgY29sb3I6ICMzZTNlZDNlMDtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FormsOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-forms-overview',
templateUrl: './forms-overview.component.html',
styleUrls: ['./forms-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__["CustomFormService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_10__["CentralBuilderService"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_11__["TableService"] }, { type: _angular_common__WEBPACK_IMPORTED_MODULE_12__["DatePipe"] }]; }, { isManage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], EditEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], ViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], hasOnlyExportData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}], exportForm: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['exportForm', { static: true }]
}] }); })();
/***/ }),
/***/ "Hp/k":
/*!*******************************************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/notification/manage-notification/create-edit-notification/create-edit-notification.component.ts ***!
\*******************************************************************************************************************************************/
/*! exports provided: CreateEditNotificationComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEditNotificationComponent", function() { return CreateEditNotificationComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_8__);
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var src_app_users_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! src/app/users/service/companyservice/company.service */ "xdkg");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../../shared/assign-users/assign-users.component */ "9Zea");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../../../shared/angular-date-time-picker/date-time-picker.html/date-time-picker.html.component */ "d4JE");
const _c0 = ["AddCategory"];
const _c1 = ["AddSubCategory"];
const _c2 = ["myInputVariable"];
function CreateEditNotificationComponent_div_0_div_5_ng_option_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r18.name, " ");
} }
function CreateEditNotificationComponent_div_0_div_5_div_56_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "i", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_5_div_56_Template_i_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r19.deleteMainCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r11.notificationCreateForm.get("CategoryId.string").value, " ");
} }
function CreateEditNotificationComponent_div_0_div_5_ng_option_65_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r21 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r21.name, " ");
} }
function CreateEditNotificationComponent_div_0_div_5_div_66_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "i", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_5_div_66_Template_i_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r23); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r22.deleteSelectedSubCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r13.notificationCreateForm.get("subCategoryId.string").value, "");
} }
function CreateEditNotificationComponent_div_0_div_5_div_106_img_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 71);
} if (rf & 2) {
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("src", ctx_r24.notificationCreateForm.value.notificationAttachment, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function CreateEditNotificationComponent_div_0_div_5_div_106_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_5_div_106_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r25.onDeleteIcon(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, CreateEditNotificationComponent_div_0_div_5_div_106_img_3_Template, 1, 1, "img", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.showImageTag(ctx_r15.notificationCreateForm.value.notificationAttachment));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r15.attachmentFilePath);
} }
function CreateEditNotificationComponent_div_0_div_5_ng_option_111_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r27.moduleName, " ");
} }
function CreateEditNotificationComponent_div_0_div_5_ul_112_Template(rf, ctx) { if (rf & 1) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "img", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_5_ul_112_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r29); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r28.deleteSelectedModule(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r17.notificationCreateForm.get("moduleId.string").value, " ");
} }
const _c3 = function () { return { standalone: true }; };
function CreateEditNotificationComponent_div_0_div_5_Template(rf, ctx) { if (rf & 1) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "Sub Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](24, "textarea", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Effective from");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "input", 23, 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("dateSelect", function CreateEditNotificationComponent_div_0_div_5_Template_input_dateSelect_31_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r30.onDateSelect($event, "Effective from"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_5_Template_button_click_34_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](32); return _r8.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "i", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "Effective to");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "input", 28, 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("dateSelect", function CreateEditNotificationComponent_div_0_div_5_Template_input_dateSelect_41_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r33.onDateSelect($event, "Effective to"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_5_Template_button_click_44_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](42); return _r9.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](45, "i", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](49, " Main category ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](51, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_5_Template_button_click_52_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r35.addCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](53, "i", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "ng-select", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_change_54_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r36.addSeletedCategory($event); })("ngModelChange", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_ngModelChange_54_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r37.mainCategory = $event; })("search", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_search_54_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r38.onSeachCategory($event); })("scrollToEnd", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_scrollToEnd_54_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r39.loadMoreCategoryItems($event); })("clear", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_clear_54_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r40.onClearCategoryDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](55, CreateEditNotificationComponent_div_0_div_5_ng_option_55_Template, 2, 2, "ng-option", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](56, CreateEditNotificationComponent_div_0_div_5_div_56_Template, 6, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, " Sub category ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_5_Template_button_click_62_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r41.addSubCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](63, "i", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "ng-select", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_change_64_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r42.addSeletedSubCategory($event); })("ngModelChange", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_ngModelChange_64_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r43.subCategory = $event; })("search", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_search_64_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r44.onSortSubCategory($event); })("scrollToEnd", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_scrollToEnd_64_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r45.loadMoreSubCategoryItems($event); })("clear", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_clear_64_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r46.onClearSubCategoryDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](65, CreateEditNotificationComponent_div_0_div_5_ng_option_65_Template, 2, 2, "ng-option", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](66, CreateEditNotificationComponent_div_0_div_5_div_66_Template, 6, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](71, "Active from");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](73, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "app-date-time-picker", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sendDate", function CreateEditNotificationComponent_div_0_div_5_Template_app_date_time_picker_sendDate_74_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r47.getDate($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](78, "Active to");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](80, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](81, "app-date-time-picker", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "label", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](84, "Method");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](85, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](86, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](87, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](89, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](90, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](91, "Static");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](93, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](94, "label", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](95, "Dynamic");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](98, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](99, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](100, "input", 51, 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditNotificationComponent_div_0_div_5_Template_input_change_100_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r48.iconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](102, "label", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](103, " Choose file to upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](104, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](105, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](106, CreateEditNotificationComponent_div_0_div_5_div_106_Template, 6, 2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](107, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](108, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](109, " Module ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](110, "ng-select", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_change_110_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r49.addSeletedModule($event); })("ngModelChange", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_ngModelChange_110_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r50.moduleList = $event; })("search", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_search_110_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r51.onSeachModule($event); })("scrollToEnd", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_scrollToEnd_110_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r52.loadMoreModuleItems($event); })("clear", function CreateEditNotificationComponent_div_0_div_5_Template_ng_select_clear_110_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r31); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r53.onClearModuleDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](111, CreateEditNotificationComponent_div_0_div_5_ng_option_111_Template, 2, 2, "ng-option", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](112, CreateEditNotificationComponent_div_0_div_5_ul_112_Template, 5, 1, "ul", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](113, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](114, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](115, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](116, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](117, "input", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](118, "label", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](119, "Document view only permission");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r5.notificationCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r5.mainCategory)("loading", ctx_r5.categoryDropDownLoading)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](29, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r5.categoryDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.notificationCreateForm.get("CategoryId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r5.subCategory)("multiple", false)("searchable", true)("clearable", true)("loading", ctx_r5.subCategoryDropDownLoading)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](30, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r5.subCategoryDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.notificationCreateForm.get("subCategoryId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("minDate", ctx_r5.efectiveMinDate);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", "0");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", "1");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.notificationCreateForm.get("notificationAttachment").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r5.moduleList)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](31, _c3))("loading", ctx_r5.moduleDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r5.moduleDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.notificationCreateForm.get("moduleId.string").value);
} }
function CreateEditNotificationComponent_div_0_div_6_div_52_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r56.notificationCreateForm.get("CategoryId.string").value, "");
} }
function CreateEditNotificationComponent_div_0_div_6_div_58_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r57.notificationCreateForm.get("subCategoryId.string").value, "");
} }
function CreateEditNotificationComponent_div_0_div_6_div_98_img_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 71);
} if (rf & 2) {
const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r61.notificationCreateForm.get("notificationAttachment").value, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function CreateEditNotificationComponent_div_0_div_6_div_98_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, CreateEditNotificationComponent_div_0_div_6_div_98_img_2_Template, 1, 1, "img", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r59.showImageTag(ctx_r59.notificationCreateForm.get("notificationAttachment").value));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r59.attachmentFilePath);
} }
function CreateEditNotificationComponent_div_0_div_6_ul_102_Template(rf, ctx) { if (rf & 1) {
const _r63 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "img", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_6_ul_102_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r63); const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r62.deleteSelectedModule(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r60.notificationCreateForm.get("moduleId.string").value, " ");
} }
function CreateEditNotificationComponent_div_0_div_6_Template(rf, ctx) { if (rf & 1) {
const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "Sub Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](24, "textarea", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Effective from");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "input", 79, 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("dateSelect", function CreateEditNotificationComponent_div_0_div_6_Template_input_dateSelect_31_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r65); const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r64.onDateSelect($event, "Effective from"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_6_Template_button_click_34_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r65); const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](32); return _r54.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "i", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "Effective to");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "input", 80, 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("dateSelect", function CreateEditNotificationComponent_div_0_div_6_Template_input_dateSelect_41_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r65); const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r67.onDateSelect($event, "Effective to"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_div_6_Template_button_click_44_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r65); const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](42); return _r55.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](45, "i", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](49, " Main category ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](51, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](52, CreateEditNotificationComponent_div_0_div_6_div_52_Template, 5, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](55, " Sub category");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](57, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](58, CreateEditNotificationComponent_div_0_div_6_div_58_Template, 5, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](63, "Active from");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](65, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "app-date-time-picker", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sendDate", function CreateEditNotificationComponent_div_0_div_6_Template_app_date_time_picker_sendDate_66_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r65); const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r69.getDate($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](70, "Active to");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](72, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](73, "app-date-time-picker", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "label", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](76, "Method");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](78, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](81, "input", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](83, "Static");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](85, "input", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "label", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](87, "Dynamic");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](90, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](91, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "input", 84, 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditNotificationComponent_div_0_div_6_Template_input_change_92_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r65); const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r70.iconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](94, "label", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](95, " Choose file to upload");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](97, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](98, CreateEditNotificationComponent_div_0_div_6_div_98_Template, 5, 2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](99, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](100, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](101, " Module ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](102, CreateEditNotificationComponent_div_0_div_6_ul_102_Template, 5, 1, "ul", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](103, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](104, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](105, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](106, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](107, "input", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](108, "label", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](109, "Document view only permission");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r6.notificationCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("pattern", ctx_r6.noSpacesRegex);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("pattern", ctx_r6.noSpacesRegex);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("pattern", ctx_r6.noSpacesRegex);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.notificationCreateForm.get("CategoryId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.notificationCreateForm.get("subCategoryId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("minDate", ctx_r6.efectiveMinDate);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.notificationCreateForm.get("notificationAttachment").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.notificationCreateForm.get("moduleId.string").value);
} }
const _c4 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function CreateEditNotificationComponent_div_0_button_10_Template(rf, ctx) { if (rf & 1) {
const _r72 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_div_0_button_10_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r72); const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r71.onCreateNotification(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](2, _c4, ctx_r7.isLoading, !ctx_r7.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r7.isNotificationEdited ? "Update" : "Create");
} }
function CreateEditNotificationComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "h3", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, CreateEditNotificationComponent_div_0_div_5_Template, 120, 32, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, CreateEditNotificationComponent_div_0_div_6_Template, 110, 13, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "assign-users", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("showCreateButton", function CreateEditNotificationComponent_div_0_Template_assign_users_showCreateButton_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r74); const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r73.showCreateButton(); })("hideCreateButton", function CreateEditNotificationComponent_div_0_Template_assign_users_hideCreateButton_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r74); const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r75.hideCreateButton(); })("onSubmitAssignUsers", function CreateEditNotificationComponent_div_0_Template_assign_users_onSubmitAssignUsers_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r74); const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r76.updateUserDetails($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, CreateEditNotificationComponent_div_0_button_10_Template, 3, 5, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r0.notificationEditedId ? "EDIT" : "CREATE", " NOTIFICATION ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r0.isNotificationEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.isNotificationEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("isAdminView", false)("userDetails", ctx_r0.userDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r0.isAddButtonActive);
} }
function CreateEditNotificationComponent_ng_template_1_button_18_Template(rf, ctx) { if (rf & 1) {
const _r84 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_1_button_18_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r84); const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r83.createCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx_r79.createCategoryForm.valid);
} }
function CreateEditNotificationComponent_ng_template_1_button_19_Template(rf, ctx) { if (rf & 1) {
const _r86 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_1_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r86); const ctx_r85 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r85.UpdateCatagory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " UPDATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx_r80.createCategoryForm.valid);
} }
function CreateEditNotificationComponent_ng_template_1_span_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditNotificationComponent_ng_template_1_tr_54_Template(rf, ctx) { if (rf & 1) {
const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "button", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_1_tr_54_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r90); const item_r87 = ctx.$implicit; const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r89.oneditCategory(item_r87); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "button", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_1_tr_54_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r90); const item_r87 = ctx.$implicit; const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r91.onDeleteCategory(item_r87._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r87 = ctx.$implicit;
const index_r88 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](index_r88 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r87.name);
} }
function CreateEditNotificationComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
const _r94 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "ADD CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "button", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_1_Template_button_click_8_listener() { const c_r77 = ctx.close; return c_r77("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "i", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](17, "input", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, CreateEditNotificationComponent_ng_template_1_button_18_Template, 2, 1, "button", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, CreateEditNotificationComponent_ng_template_1_button_19_Template, 2, 1, "button", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "CATEGORY LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "select", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditNotificationComponent_ng_template_1_Template_select_change_29_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r93.onLimitChangeCategory(); })("ngModelChange", function CreateEditNotificationComponent_ng_template_1_Template_select_ngModelChange_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r95.categoryPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](31, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](33, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](41, CreateEditNotificationComponent_ng_template_1_span_41_Template, 2, 0, "span", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "input", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("keyup", function CreateEditNotificationComponent_ng_template_1_Template_input_keyup_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r96.categorySearchInput.next($event); })("ngModelChange", function CreateEditNotificationComponent_ng_template_1_Template_input_ngModelChange_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r97.categoryPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "table", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "th", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sort", function CreateEditNotificationComponent_ng_template_1_Template_th_sort_47_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r98.onSortCategory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](48, " S.NO ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "th", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sort", function CreateEditNotificationComponent_ng_template_1_Template_th_sort_49_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r99.onSortCategory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, " CATEGORY ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](54, CreateEditNotificationComponent_ng_template_1_tr_54_Template, 10, 2, "tr", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "div", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "ngb-pagination", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("pageChange", function CreateEditNotificationComponent_ng_template_1_Template_ngb_pagination_pageChange_59_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r100.categoryPTable.page = $event; })("pageChange", function CreateEditNotificationComponent_ng_template_1_Template_ngb_pagination_pageChange_59_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r101.onPageChangeCtegory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r2.createCategoryForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r2.isCategoryEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.isCategoryEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r2.categoryPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r2.categoryPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r2.categoryPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r2.categoryPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Total Records ", ctx_r2.categoryPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("collectionSize", ctx_r2.categoryPTable.total)("page", ctx_r2.categoryPTable.page)("maxSize", 5)("pageSize", ctx_r2.categoryPTable.limit);
} }
function CreateEditNotificationComponent_ng_template_3_ng_option_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r110 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r110.name, " ");
} }
function CreateEditNotificationComponent_ng_template_3_div_18_Template(rf, ctx) { if (rf & 1) {
const _r112 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "i", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_3_div_18_Template_i_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r112); const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r111.deleteSeletedCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r105 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r105.notificationCreateForm.get("CategoryId.string").value, "");
} }
function CreateEditNotificationComponent_ng_template_3_button_25_Template(rf, ctx) { if (rf & 1) {
const _r114 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_3_button_25_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r114); const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r113.createSubCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx_r106.createSubCategoryForm.valid);
} }
function CreateEditNotificationComponent_ng_template_3_button_26_Template(rf, ctx) { if (rf & 1) {
const _r116 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_3_button_26_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r116); const ctx_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r115.UpdateSubCatagory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " UPDATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx_r107.createSubCategoryForm.valid);
} }
function CreateEditNotificationComponent_ng_template_3_span_48_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditNotificationComponent_ng_template_3_tr_61_Template(rf, ctx) { if (rf & 1) {
const _r120 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "button", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_3_tr_61_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r120); const item_r117 = ctx.$implicit; const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r119.oneditSubCategory(item_r117); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "button", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_3_tr_61_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r120); const item_r117 = ctx.$implicit; const ctx_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r121.onDeleteSubCategory(item_r117._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r117 = ctx.$implicit;
const index_r118 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](index_r118 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r117.name);
} }
function CreateEditNotificationComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
const _r123 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "ADD SUB CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "button", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditNotificationComponent_ng_template_3_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r122 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r122.closeModal(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "i", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, " Main Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "ng-select", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditNotificationComponent_ng_template_3_Template_ng_select_change_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r124.addSeletedCategory($event); })("ngModelChange", function CreateEditNotificationComponent_ng_template_3_Template_ng_select_ngModelChange_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r125 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r125.mainCategory = $event; })("search", function CreateEditNotificationComponent_ng_template_3_Template_ng_select_search_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r126.onSeachCategory($event); })("scrollToEnd", function CreateEditNotificationComponent_ng_template_3_Template_ng_select_scrollToEnd_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r127 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r127.loadMoreCategoryItems($event); })("clear", function CreateEditNotificationComponent_ng_template_3_Template_ng_select_clear_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r128 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r128.onClearCategoryDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, CreateEditNotificationComponent_ng_template_3_ng_option_17_Template, 2, 2, "ng-option", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, CreateEditNotificationComponent_ng_template_3_div_18_Template, 6, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "Sub Category");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](24, "input", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](25, CreateEditNotificationComponent_ng_template_3_button_25_Template, 2, 1, "button", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](26, CreateEditNotificationComponent_ng_template_3_button_26_Template, 2, 1, "button", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "CATEGORY LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "select", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditNotificationComponent_ng_template_3_Template_select_change_36_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r129 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r129.onLimitChangeSubCategory(); })("ngModelChange", function CreateEditNotificationComponent_ng_template_3_Template_select_ngModelChange_36_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r130 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r130.categoryPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "option", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](48, CreateEditNotificationComponent_ng_template_3_span_48_Template, 2, 0, "span", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "input", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("keyup", function CreateEditNotificationComponent_ng_template_3_Template_input_keyup_49_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r131 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r131.subcategorySearchInput.next($event); })("ngModelChange", function CreateEditNotificationComponent_ng_template_3_Template_input_ngModelChange_49_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r132 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r132.categoryPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "table", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "th", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sort", function CreateEditNotificationComponent_ng_template_3_Template_th_sort_54_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r133 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r133.onSortSubCategory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](55, " S.NO ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "th", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sort", function CreateEditNotificationComponent_ng_template_3_Template_th_sort_56_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r134 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r134.onSortSubCategory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](57, " CATEGORY ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "th", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](61, CreateEditNotificationComponent_ng_template_3_tr_61_Template, 10, 2, "tr", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "ngb-pagination", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("pageChange", function CreateEditNotificationComponent_ng_template_3_Template_ngb_pagination_pageChange_66_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r135 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r135.subCategoryPTable.page = $event; })("pageChange", function CreateEditNotificationComponent_ng_template_3_Template_ngb_pagination_pageChange_66_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r123); const ctx_r136 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r136.onPageChangeSubCtegory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r4.notificationCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("searchable", true)("ngModel", ctx_r4.mainCategory)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](26, _c3))("clearable", true)("loading", ctx_r4.categoryDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r4.categoryDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.notificationCreateForm.get("CategoryId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r4.createSubCategoryForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r4.isSubCategoryEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.isSubCategoryEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r4.categoryPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.categoryPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r4.categoryPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r4.subCategoryPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Total Records ", ctx_r4.subCategoryPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("collectionSize", ctx_r4.subCategoryPTable.total)("page", ctx_r4.subCategoryPTable.page)("maxSize", 5)("pageSize", ctx_r4.subCategoryPTable.limit);
} }
class CreateEditNotificationComponent {
constructor(modalService, toastService, userService, formBuilder, buUnit, customFieldService, centralBuilderService, notificationService, companyService) {
this.modalService = modalService;
this.toastService = toastService;
this.userService = userService;
this.formBuilder = formBuilder;
this.buUnit = buUnit;
this.customFieldService = customFieldService;
this.centralBuilderService = centralBuilderService;
this.notificationService = notificationService;
this.companyService = companyService;
this.categoryDropDownLoading = false;
this.subCategoryDropDownLoading = false;
this.moduleDropDownLoading = false;
this.planBuUnitDropDownLoading = false;
this.apppoinmentDropDownLoading = false;
this.CustomFieldDropDownLoading = false;
this.isAddButtonActive = true;
this.activeId = 1;
this.buDropDownToClear = null;
this.apoinemntDropDownToClear = null;
this.customFeildDropDownToClear = null;
this.adminDropDownToClear = null;
this.authorDropDownToClear = null;
this.moduleList = null;
this.noSpacesRegex = /.*\S.*/;
this.isUserDetailsEdited = false;
this.isNotificationEdited = false;
this.notificationEditedId = null;
this.notificationData = null;
this.timeElapsed = Date.now();
this.today = new Date(this.timeElapsed);
this.config = {
format: 'MMM, YYYY',
returnedValueType: 3,
max: new Date(Date.now()).toUTCString(),
};
this.userDetails = [];
this.userDropDown = [];
this.moduleDropDown = [];
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
this.editEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
this.notificatioNid = null;
this.defaultImage = "";
this.categorySearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
this.subcategorySearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
this.isCategoryEdited = false;
this.isSubCategoryEdited = false;
this.UpdateduserDetails = [];
this.categoryPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.modulePTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.subCategoryPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
};
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.bussinesUnitplanPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
filter: {
type: 'plan',
},
};
this.appoinmentPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.CustomFieldPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.categorySearchSubscription = this.categorySearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["delay"])(500))))
.subscribe((input) => {
this.categoryPTable.page = 1;
this.loadCategory();
});
this.subcategorySearchSubscription = this.subcategorySearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["delay"])(500))))
.subscribe((input) => {
this.categoryPTable.page = 1;
this.loadSubCategory();
});
}
onSortCategory({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.categoryPTable.sort = { key: column, order: direction };
this.loadCategory();
}
onPageChangeCtegory(page) {
this.categoryPTable.page = page;
this.loadCategory();
}
onLimitChangeCategory() {
this.loadCategory();
}
onSortSubCategory({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.subCategoryPTable.sort = { key: column, order: direction };
this.loadSubCategory();
}
onPageChangeSubCtegory(page) {
this.subCategoryPTable.page = page;
this.loadSubCategory();
}
onLimitChangeSubCategory() {
this.loadSubCategory();
}
getDate(value) {
this.efectiveMinDate = value;
// let date = new Date(+value);
// let year = date.getFullYear();
// let month = date.getMonth()+1;
// let day = date.getDate();
// return {year,month,day}
}
spaceValidator(control) {
if (control && control.value && !control.value.replace(/\s/g, '').length) {
control.setValue('');
return { required: true };
}
else {
return null;
}
}
initForm() {
this.notificationCreateForm = this.formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required,],
notificationId: [''],
subTitle: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required,],
description: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required,],
effectiveFrom: [],
effectiveTo: [],
activeFrom: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
activeTo: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
mainCategory: this.formBuilder.group({
string: [''],
_id: [''],
}),
businessUnitId: [this.notificatioNid, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
CategoryId: this.formBuilder.group({
string: [''],
_id: [''],
}),
subCategoryId: this.formBuilder.group({
string: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
_id: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
}),
notificationAttachment: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
isDynamic: ['0', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
viewOnly: [false],
moduleIncluded: [false],
moduleId: this.formBuilder.group({
string: [''],
_id: [''],
}),
status: 1,
});
}
categoryForm() {
this.createCategoryForm = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].pattern('[a-zA-Z0-9_]+.*$')]],
status: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
});
}
SubcategoryForm() {
this.createSubCategoryForm = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].pattern('[a-zA-Z0-9_]+.*$')]],
status: 1,
});
}
onDateSelect(event, value) {
let year = event.year;
let month = event.month <= 9 ? '0' + event.month : event.month;
let day = event.day <= 9 ? '0' + event.day : event.day;
let finalDate = year + '-' + month + '-' + day;
let date = moment__WEBPACK_IMPORTED_MODULE_8__(finalDate).utc().format();
if (value === 'Effective to') {
this.notificationCreateForm.patchValue({
effectiveTo: Object.assign(Object.assign({}, this.notificationCreateForm.get('effectiveTo').value), { date }),
});
}
if (value === 'Effective from') {
this.notificationCreateForm.patchValue({
effectiveFrom: Object.assign(Object.assign({}, this.notificationCreateForm.get('effectiveFrom').value), { date }),
});
}
}
ngOnInit() {
this.initForm();
this.getActiveDate();
this.maxDate = {
year: new Date().getFullYear(),
month: new Date().getMonth() + 1,
day: new Date().getDate(),
};
this.categoryForm();
this.SubcategoryForm();
this.loadModule();
this.getSubCategory();
this.notificationData = this.notificationEditedId;
this.notificationEditedId = this.notificationData
? this.notificationData._id
: null;
this.loadCategory();
this.notificationEditedId && this.getNotificationDetails(this.notificationData);
}
getActiveDate() {
this.notificationCreateForm
.get('activeFrom')
.valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["pairwise"])())
.subscribe(([prev, next]) => {
if (next != null) {
}
});
}
getNotificationDetails(data) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
this.isNotificationEdited = true;
this.userDetails = data === null || data === void 0 ? void 0 : data.assignUsers;
this.UpdateduserDetails = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__["getAssignedUsers"])(data === null || data === void 0 ? void 0 : data.assignUsers);
this.notificationCreateForm.patchValue({
title: data === null || data === void 0 ? void 0 : data.title,
subTitle: data === null || data === void 0 ? void 0 : data.subTitle,
description: data === null || data === void 0 ? void 0 : data.description,
effectiveFrom: Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__["editFormatDate"])(data === null || data === void 0 ? void 0 : data.effectiveFrom),
effectiveTo: Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__["editFormatDate"])(data === null || data === void 0 ? void 0 : data.effectiveTo),
activeFrom: data === null || data === void 0 ? void 0 : data.activeFrom,
activeTo: data === null || data === void 0 ? void 0 : data.activeTo,
isDynamic: data === null || data === void 0 ? void 0 : data.isDynamic,
businessUnitId: data === null || data === void 0 ? void 0 : data.businessUnitId,
CategoryId: {
string: (_b = (_a = data === null || data === void 0 ? void 0 : data.subCategoryId) === null || _a === void 0 ? void 0 : _a.categoryId) === null || _b === void 0 ? void 0 : _b.name,
_id: (_d = (_c = data === null || data === void 0 ? void 0 : data.subCategoryId) === null || _c === void 0 ? void 0 : _c.categoryId) === null || _d === void 0 ? void 0 : _d._id,
},
mainCategory: {
string: (_f = (_e = data === null || data === void 0 ? void 0 : data.subCategoryId) === null || _e === void 0 ? void 0 : _e.categoryId) === null || _f === void 0 ? void 0 : _f.name,
_id: (_h = (_g = data === null || data === void 0 ? void 0 : data.subCategoryId) === null || _g === void 0 ? void 0 : _g.categoryId) === null || _h === void 0 ? void 0 : _h._id,
},
subCategoryId: {
string: ((_j = data === null || data === void 0 ? void 0 : data.subCategoryId) === null || _j === void 0 ? void 0 : _j.name) || "",
_id: ((_k = data === null || data === void 0 ? void 0 : data.subCategoryId) === null || _k === void 0 ? void 0 : _k._id) || "",
},
notificationAttachment: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_7__["environment"].imageUrl}/${data === null || data === void 0 ? void 0 : data.notificationAttachment}`,
viewOnly: data.viewOnly,
moduleIncluded: (data === null || data === void 0 ? void 0 : data.moduleId) ? true : false,
moduleId: {
string: data.moduleId ? data === null || data === void 0 ? void 0 : data.moduleId.moduleName : '',
_id: data.moduleId ? data === null || data === void 0 ? void 0 : data.moduleId._id : '',
},
status: 1,
});
this.attachmentFilePath = data === null || data === void 0 ? void 0 : data.notificationAttachment;
}
onCancelEdit() {
this.initForm();
this.isNotificationEdited = false;
this.notificationEditedId = null;
this.userDetails.length = 0;
this.overViewEvent.next(null);
}
//add category
addSeletedSubCategory(value) {
this.notificationCreateForm.patchValue({
subCategoryId: {
string: value.name,
_id: value._id,
},
});
this.mainCategory = [];
this.subCategory = [];
}
addSeletedModule(value) {
this.notificationCreateForm.patchValue({
moduleId: {
string: value.moduleName,
_id: value._id,
},
});
this.moduleList = [];
}
deleteSeletedCategory() {
this.notificationCreateForm.patchValue({
CategoryId: {
string: null,
_id: null,
},
});
}
addMainCategory(value) {
this.notificationCreateForm.patchValue({
mainCategory: {
string: value.name,
_id: value._id,
},
});
this.mainCategory = [];
}
addSeletedCategory(value) {
this.notificationCreateForm.patchValue({
CategoryId: {
string: value.name,
_id: value._id,
},
});
this.mainCategory = [];
}
deleteMainCategory() {
this.notificationCreateForm.patchValue({
CategoryId: {
string: null,
_id: null,
},
});
}
deleteSelectedSubCategory() {
this.notificationCreateForm.patchValue({
subCategoryId: {
string: null,
_id: null,
},
});
}
deleteSelectedModule() {
this.notificationCreateForm.patchValue({
moduleId: {
string: null,
_id: null,
},
});
}
addCategory() {
this.categoryForm();
this.loadCategory();
this.modalService.open(this.AddCategory, {
windowClass: 'modal-ui-fix right-align',
});
}
addSubCategory() {
this.categoryForm();
this.loadCategory();
this.modalService.open(this.AddSubCategory, {
windowClass: 'modal-ui-fix right-align',
});
// this.loadAppoinment();
}
oneditCategory(category) {
this.editCategoryId = category._id;
this.isCategoryEdited = true;
this.createCategoryForm.patchValue({
name: category.name,
status: category.status,
});
}
oneditSubCategory(category) {
this.editSubCategoryId = category._id;
this.isSubCategoryEdited = true;
this.createSubCategoryForm.patchValue({
name: category.name,
status: category.status,
});
}
// deleteCategories(index) {
// const Control = this.CategorytControl;
// Control.removeAt(index);
// }
UpdateCatagory() {
const payload = {
name: this.createCategoryForm.value.name,
categoryId: this.editCategoryId,
status: "1",
};
const subscribe = this.notificationService
.updateCategory(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.isCategoryEdited = false;
this.categoryForm();
this.loadCategory();
this.toastService.success('Category Updated', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
UpdateSubCatagory() {
const payload = {
name: this.createSubCategoryForm.value.name,
categoryId: this.notificationCreateForm.value.CategoryId._id,
status: "1",
subCategoryId: this.editSubCategoryId
};
const subscribe = this.notificationService
.updateSubCategory(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.isSubCategoryEdited = false;
this.editSubCategoryId = null;
this.categoryForm();
this.loadSubCategory();
this.toastService.success('Subcategory Updated', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
createCategory() {
const subscribe = this.notificationService
.createCategory(this.createCategoryForm.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.loadCategory();
this.categoryForm();
this.toastService.success('Category Created', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
createSubCategory() {
const payload = {
name: this.createSubCategoryForm.value.name,
categoryId: this.notificationCreateForm.value.CategoryId._id,
status: "1"
};
const subscribe = this.notificationService
.createSubCategory(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.loadSubCategory();
this.SubcategoryForm();
this.toastService.success('Subcategory Created', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
onDeleteCategory(id) {
const subscribe = this.notificationService
.deleteCategory(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.loadCategory();
this.toastService.success('Category Deleted', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
onDeleteSubCategory(id) {
const payload = {
subCategoryId: id,
};
const subscribe = this.notificationService
.deleteSubCategory(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.loadCategory();
this.loadSubCategory();
this.toastService.success('Subcategory Deleted', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
onSeachCategory(value) {
this.categoryPTable.limit = 10;
this.categoryPTable.search = value.term;
this.loadCategory();
}
loadMoreCategoryItems(value) {
this.categoryPTable.limit = this.categoryPTable.limit + 10;
this.loadCategory();
}
showCreateButton() {
this.isAddButtonActive = true;
}
hideCreateButton() {
this.isAddButtonActive = false;
}
closeModal() {
this.modalService.dismissAll();
this.notificationCreateForm.patchValue({
CategoryId: {
string: '',
_id: '',
},
});
this.createSubCategoryForm.patchValue({
name: '',
});
}
onClearCategoryDropdown(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.categoryPTable.search = '';
this.loadCategory();
this.categoryDropDown = [];
this.categoryPTable.data = [];
}
}
loadCategory() {
this.categoryDropDownLoading = true;
const _a = this.categoryPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.notificationService
.getAllCategory(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
this.categoryDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.categoryPTable.data = data;
this.categoryDropDown = data;
this.categoryPTable.total = count;
}, (error) => {
this.categoryPTable.data = [];
this.categoryPTable.total = 0;
});
}
onSeachSubCategory(value) {
this.subCategoryPTable.limit = 10;
this.subCategoryPTable.search = value.term;
this.loadSubCategory();
}
loadMoreSubCategoryItems(value) {
this.subCategoryPTable.limit = this.subCategoryPTable.limit + 10;
this.loadSubCategory();
}
onClearSubCategoryDropdown(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.subCategoryPTable.search = '';
this.loadSubCategory();
this.subCategoryDropDown = [];
this.subCategoryPTable.data = [];
}
}
loadSubCategory() {
this.subCategoryDropDownLoading = true;
const _a = this.subCategoryPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.notificationService
.getAllSubCategory(rest, this.notificationCreateForm.get('CategoryId._id').value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
this.subCategoryDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.subCategoryPTable.data = data;
this.subCategoryDropDown = data;
this.subCategoryPTable.total = count;
}, (error) => {
this.subCategoryPTable.data = [];
this.subCategoryPTable.total = 0;
});
}
onSeachModule(value) {
this.subCategoryPTable.limit = 10;
this.subCategoryPTable.search = value.term;
this.loadSubCategory();
}
loadMoreModuleItems(value) {
this.subCategoryPTable.limit = this.subCategoryPTable.limit + 10;
this.loadSubCategory();
}
onClearModuleDropdown(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.subCategoryPTable.search = '';
this.loadSubCategory();
this.subCategoryDropDown = [];
this.subCategoryPTable.data = [];
}
}
loadModule() {
this.moduleDropDownLoading = true;
const _a = this.modulePTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.centralBuilderService
.getAllNonLinedModules(true)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
this.moduleDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
// const { count, data } = response.data;
this.modulePTable.data = response.data.moduleList;
this.moduleDropDown = response.data.moduleList;
// this.modulePTable.total = count;
}, (error) => {
this.modulePTable.data = [];
this.modulePTable.total = 0;
this.toastService.error('No list found');
});
}
getSubCategory() {
this.notificationCreateForm
.get('CategoryId._id')
.valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["startWith"])(null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["pairwise"])())
.subscribe(([prev, next]) => {
if (next != null) {
this.notificationCreateForm.patchValue({
subCategoryId: {
string: null,
_id: null,
},
});
//
const { _id } = next;
this.subCategoryDropDownLoading = true;
this.subCategoryDropDown = [];
// this.categoryId = _id;
this.loadSubCategory();
//
}
});
}
showImageTag(fileName) {
const formats = ['jpeg', 'gif', 'png', 'apng', 'svg', 'bmp', 'bmp ico', 'png ico'];
return formats.includes(fileName.split('.').pop());
}
/// file upload
iconUpload(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file) {
const fileUpload = this.companyService.uploadFile(file, true)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.notificationAttachmentFilePath = data.filePath;
this.attachmentFilePath = (data === null || data === void 0 ? void 0 : data.filePath.split("notificationAttachment")[1]) || "";
this.notificationCreateForm.patchValue({
notificationAttachment: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_7__["environment"].imageUrl}/${data.filePath}`,
});
}, (error) => {
this.toastService.error(error.error.message);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_1__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
onDeleteIcon() {
var _a;
this.notificationAttachmentFilePath = null;
this.attachmentFilePath = null;
this.notificationCreateForm.patchValue({
notificationAttachment: null,
});
((_a = this.myInputVariable) === null || _a === void 0 ? void 0 : _a.nativeElement) ? this.myInputVariable.nativeElement.value = '' : false;
}
updateUserDetails(userDetails) {
this.UpdateduserDetails = userDetails;
}
showFieldValidationAlerts(formGroup) {
// TODO for test purpose we need this console on server
Object.keys(formGroup.controls).forEach(field => {
const control = formGroup.get(field);
if (this.notificationCreateForm.value.title.trim() === "") {
this.toastService.error('Title is required');
}
else if (this.notificationCreateForm.value.subTitle.trim() === "") {
this.toastService.error('SubTitle is required');
}
else if (this.notificationCreateForm.value.description.trim() === "") {
this.toastService.error('Description is required');
}
else if (control.invalid) {
this.toastService.error(`Validation failed for field: ${field}`);
}
else if (control instanceof _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroup"]) {
this.showFieldValidationAlerts(control);
}
});
}
onCreateNotification() {
var _a;
if (!this.notificationCreateForm.valid) {
this.showFieldValidationAlerts(this.notificationCreateForm);
return;
}
this.isLoading = true;
const { effectiveFrom, effectiveTo, isDynamic, businessUnitId, notificationAttachment } = this.notificationCreateForm.value;
const data = Object.assign(Object.assign({}, this.notificationCreateForm.value), { effectiveFrom: effectiveFrom.date, effectiveTo: effectiveTo.date, moduleId: this.notificationCreateForm.get('moduleId._id').value
? this.notificationCreateForm.get('moduleId._id').value
: null, subCategoryId: this.notificationCreateForm.get('subCategoryId._id').value, CategoryId: this.notificationCreateForm.get('CategoryId._id').value, assignUsers: this.UpdateduserDetails, isDynamic: ((isDynamic === '0') || !isDynamic) ? false : true });
data.moduleIncluded = data.moduleId ? true : false;
data.notificationAttachment = this.notificationAttachmentFilePath || (notificationAttachment === null || notificationAttachment === void 0 ? void 0 : notificationAttachment.replace(/^.*\/\/[^\/]+/, ''));
data.effectiveFrom = `${moment__WEBPACK_IMPORTED_MODULE_8__(data.effectiveFrom).format('MM-DD-YYYY')} ${moment__WEBPACK_IMPORTED_MODULE_8__(data.effectiveFrom).format('HH:mm:ss')} GMT${moment__WEBPACK_IMPORTED_MODULE_8__().format('ZZ')}`;
data.effectiveTo = `${moment__WEBPACK_IMPORTED_MODULE_8__(data.effectiveTo).format('MM-DD-YYYY')} ${moment__WEBPACK_IMPORTED_MODULE_8__(data.effectiveTo).format('HH:mm:ss')} GMT${moment__WEBPACK_IMPORTED_MODULE_8__().format('ZZ')}`;
data.activeFrom = `${moment__WEBPACK_IMPORTED_MODULE_8__(data.activeFrom).format('MM-DD-YYYY')} ${moment__WEBPACK_IMPORTED_MODULE_8__(data.activeFrom).format('HH:mm:ss')} GMT${moment__WEBPACK_IMPORTED_MODULE_8__().format('ZZ')}`;
data.activeTo = `${moment__WEBPACK_IMPORTED_MODULE_8__(data.activeTo).format('MM-DD-YYYY')} ${moment__WEBPACK_IMPORTED_MODULE_8__(data.activeTo).format('HH:mm:ss')} GMT${moment__WEBPACK_IMPORTED_MODULE_8__().format('ZZ')}`;
let isInvalid = false;
if (!this.notificationEditedId &&
new Date().getTime() >
new Date(data.activeFrom).getTime()) {
this.toastService.error('Active From time should be from future');
isInvalid = true;
}
else if (new Date(data.activeTo).getTime() <
new Date(data.activeFrom).getTime()) {
this.toastService.error('Notification active to should be greater then active from');
isInvalid = true;
}
else if (data.assignUsers.length === 0) {
this.toastService.error('Add Assign user details');
isInvalid = true;
}
if (isInvalid) {
return;
}
if (this.isNotificationEdited) {
Object.assign(data, { notificationId: this.notificationEditedId });
data.businessUnitId = (_a = data === null || data === void 0 ? void 0 : data.businessUnitId) === null || _a === void 0 ? void 0 : _a._id;
}
const { CategoryId } = data, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(data, ["CategoryId"]);
delete rest.mainCategory;
const sub = this.notificationService
.createNotification(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
this.toastService.success(`${this.isNotificationEdited
? 'Notification Updated Successfully'
: 'Notification Created Successfully'}`);
this.overViewEvent.emit('true');
// this.onClearAllFrom();
this.isLoading = false;
}, (error) => {
var _a;
this.isLoading = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
saveToDraftNotification() {
if (!this.notificationCreateForm.valid) {
this.toastService.error('Please fill all fields');
return;
}
this.isLoading = true;
const { effectiveFrom, effectiveTo } = this.notificationCreateForm.value;
const data = Object.assign(Object.assign({}, this.notificationCreateForm.value), { effectiveFrom: effectiveFrom.finalDate, effectiveTo: effectiveTo.finalDate, moduleId: this.notificationCreateForm.get('moduleId._id').value
? this.notificationCreateForm.get('moduleId._id').value
: null, subCategoryId: this.notificationCreateForm.get('subCategoryId._id').value, CategoryId: this.notificationCreateForm.get('CategoryId._id').value, assignUsers: this.UpdateduserDetails });
if (this.isNotificationEdited) {
Object.assign(data, { notificationId: this.notificationEditedId });
}
const { CategoryId } = data, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(data, ["CategoryId"]);
const sub = this.notificationService
.createNotification(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
this.toastService.success(`${this.isNotificationEdited
? 'Notification Updated Successfully'
: 'Notification Created Successfully'}`);
this.overViewEvent.emit(null);
// this.onClearAllFrom();
this.isLoading = false;
}, (error) => {
this.isLoading = false;
});
}
}
CreateEditNotificationComponent.ɵfac = function CreateEditNotificationComponent_Factory(t) { return new (t || CreateEditNotificationComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_11__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__["CustomFieldService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_14__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_15__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_16__["CompanyService"])); };
CreateEditNotificationComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: CreateEditNotificationComponent, selectors: [["app-create-edit-notification"]], viewQuery: function CreateEditNotificationComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c2, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_6__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.AddCategory = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.AddSubCategory = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.myInputVariable = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { notificationEditedId: "notificationEditedId", notificatioNid: "notificatioNid" }, outputs: { overViewEvent: "overViewEvent", editEvent: "editEvent" }, decls: 5, vars: 1, consts: [["class", "d-flex flex-column", 4, "ngIf"], ["AddCategory", ""], ["AddSubCategory", ""], [1, "d-flex", "flex-column"], [1, "card", "mb-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [2, "display", "inline-block"], ["class", "card-body", 4, "ngIf"], [3, "isAdminView", "userDetails", "showCreateButton", "hideCreateButton", "onSubmitAssignUsers"], [1, "row"], [1, "col-md-4"], ["class", "btn btn-submit update-button", 3, "click", 4, "ngIf"], [1, "card-body"], [3, "formGroup"], [1, "col-md-6", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "font-weight-bold"], [1, "field-mandatory"], ["type", "text", "placeholder", "Title", "formControlName", "title", "required", "", "maxlength", "40", 1, "form-control"], ["type", "text", "placeholder", "Sub Title", "formControlName", "subTitle", "required", "", "maxlength", "40", 1, "form-control"], [1, "col-md-12", "mt-1"], ["name", "", "id", "", "cols", "5", "rows", "5", "maxlength", "100", "formControlName", "description", 1, "form-control"], [1, "input-group"], ["placeholder", "yyyy-mm-dd", "readonly", "", "name", "dp", "formControlName", "effectiveFrom", "ngbDatepicker", "", 1, "form-control", 3, "dateSelect"], ["d", "ngbDatepicker"], [1, "input-group-append"], ["type", "button", 1, "btn", "btn-outline-secondary", "calendar", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-calendar"], ["placeholder", "yyyy-mm-dd", "readonly", "", "name", "dp", "ngbDatepicker", "", "formControlName", "effectiveTo", 1, "form-control", 3, "dateSelect"], ["c", "ngbDatepicker"], [1, "col-md-6"], [1, "pb-2", "font-weight-bold"], [1, "btn", "p-1", "ml-1", 2, "color", "#9f1d39", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-plus-circle", "fa-lg"], ["bindLabel", "name", "placeholder", "Main category", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "loading", "ngModelOptions", "change", "ngModelChange", "search", "scrollToEnd", "clear"], [3, "value", 4, "ngFor", "ngForOf"], ["class", "display-flex", 4, "ngIf"], ["bindLabel", "name", "placeholder", " Sub Category", "appendTo", "body", 1, "custom", 3, "ngModel", "multiple", "searchable", "clearable", "loading", "ngModelOptions", "change", "ngModelChange", "search", "scrollToEnd", "clear"], [1, "row", "mt-2"], ["for", "activeEndDate", 1, "pb-2", "font-weight-bold"], ["formControlName", "activeFrom", 3, "sendDate"], ["formControlName", "activeTo", 3, "minDate"], [1, "font-weight-bold", "col-md-3"], [1, "form-group", "col-md-2", "pr-0"], ["type", "radio", "value", "static", "formControlName", "isDynamic", 3, "value"], ["for", "otp2", 1, "radio-inline", "ml-2"], ["type", "radio", "value", "dynamic", "formControlName", "isDynamic", 3, "value"], ["for", "otp1", 1, "radio-inline", "ml-2"], [1, "col-md-6", "mt-4"], [1, "col-md-12"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["type", "file", "id", "c", 1, "custom-file-input", 3, "change"], ["myInputVariable", ""], ["for", "i", 1, "custom-file-label"], ["class", "col-md-12", 4, "ngIf"], [1, "col-md-6", 2, "margin-top", "-5px"], [1, "font-weight-bold"], ["bindLabel", "name", "placeholder", "Select Section", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "loading", "change", "ngModelChange", "search", "scrollToEnd", "clear"], ["class", "mt-3", 4, "ngIf"], [1, "col-md-6", "p-4"], ["id", "view", "formControlName", "viewOnly", "type", "checkbox"], ["for", "view", 1, "ml-3"], [3, "value"], [1, "display-flex"], [1, "text-items", "list-ui"], [2, "margin-top", "10px"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x", 2, "color", "#9f1d39", 3, "click"], [1, "image-with-delete-icon", "width-180"], ["title", "Delete", 1, "fa", "fa-close", 3, "click"], ["alt", "Image Preview", 3, "src", 4, "ngIf"], [1, "w-100"], ["alt", "Image Preview", 3, "src"], [1, "mt-3"], [1, "red-container", "d-flex", "justify-content-between", 2, "width", "200px"], [1, "text-items"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-1", 3, "click"], ["type", "text", "placeholder", "Title", "formControlName", "title", "required", "", "disabled", "", "maxlength", "40", 1, "form-control", 3, "pattern"], ["type", "text", "placeholder", "Sub Title", "formControlName", "subTitle", "required", "", "disabled", "", "maxlength", "40", 1, "form-control", 3, "pattern"], ["name", "", "id", "", "cols", "5", "rows", "5", "maxlength", "100", "disabled", "", "formControlName", "description", 1, "form-control", 3, "pattern"], ["placeholder", "yyyy-mm-dd", "readonly", "", "name", "dp", "formControlName", "effectiveFrom", "ngbDatepicker", "", 1, "form-control", 3, "disabled", "dateSelect"], ["placeholder", "yyyy-mm-dd", "readonly", "", "name", "dp", "ngbDatepicker", "", "formControlName", "effectiveTo", 1, "form-control", 3, "disabled", "dateSelect"], ["type", "radio", "value", "static", "formControlName", "isDynamic", "disabled", "", 3, "value"], ["type", "radio", "value", "dynamic", "formControlName", "isDynamic", "disabled", "", 3, "value"], [1, "col-md-6", "mt-5"], ["type", "file", "disabled", "", "id", "c", 1, "custom-file-input", 3, "change"], [4, "ngIf"], ["id", "view", "disabled", "", "formControlName", "viewOnly", "type", "checkbox"], [1, "red-container", "col", "d-flex", "justify-content-between"], [1, "btn", "btn-submit", "update-button", 3, "click"], [1, "fa", 3, "ngClass"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], ["type", "button", "aria-label", "Close", 1, "btn", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], ["for", "exampleInputEmail1"], ["type", "text", "formControlName", "name", "placeholder", "Category", "maxlength", "40", 1, "form-control"], ["class", "btn btn-add pull-right", 3, "disabled", "click", 4, "ngIf"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "plan", "id", "plan", 1, "custom-select", 2, "width", "100px", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "btn", "btn-add", "pull-right", 3, "disabled", "click"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "btn", "btn-clear", "p", "-2", "m-1", 3, "click"], ["bindLabel", "name", "placeholder", "Select Section", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "ngModel", "ngModelOptions", "clearable", "loading", "change", "ngModelChange", "search", "scrollToEnd", "clear"], ["type", "text", "formControlName", "name", "maxlength", "40", "placeholder", "Category", 1, "form-control"], ["name", "pageSize", 1, "custom-select", 2, "width", "100px", 3, "ngModel", "change", "ngModelChange"]], template: function CreateEditNotificationComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](0, CreateEditNotificationComponent_div_0_Template, 11, 6, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, CreateEditNotificationComponent_ng_template_1_Template, 60, 17, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, CreateEditNotificationComponent_ng_template_3_Template, 67, 27, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.notificatioNid);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_17__["NgIf"], _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_18__["AssignUsersComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_19__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["MaxLengthValidator"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbInputDatepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgForOf"], _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_21__["DateTimePickerComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["CheckboxControlValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_20__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["PatternValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_17__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_x"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_6__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbPagination"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n margin-top: 5px;\n}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] {\n padding: 2px;\n}input[readonly][_ngcontent-%COMP%] {\n background-color: transparent;\n}.selected-box[_ngcontent-%COMP%] {\n margin-top: -17px;\n}.btn[_ngcontent-%COMP%]:focus {\n box-shadow: none !important;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbm90aWZpY2F0aW9uL21hbmFnZS1ub3RpZmljYXRpb24vY3JlYXRlLWVkaXQtbm90aWZpY2F0aW9uL2NyZWF0ZS1lZGl0LW5vdGlmaWNhdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxpREFBaUQsZUFBZSxDQUFDLGlDQUFpQyxDQUFDLHVEQUF1RCxlQUFlLENBQUMsMkRBQTJELFFBQVEsQ0FBQyx5Q0FBeUMsQ0FBQyxzQkFBc0IsQ0FBQyxpRUFBaUUseUNBQXlDLENBQUMsa0VBQWtFLDRCQUE0QixDQUFDLDJCQUEyQixDQUFDLCtEQUErRCx5QkFBeUIsQ0FBQyx3QkFBd0IsQ0FBQyx5RUFBeUUsb0JBQW9CLENBQUMsMEVBQTBFLENBQUMsbURBQW1ELHdCQUF3QixDQUFDLHlDQUF5QyxZQUFZLENBQUMsZ0NBQWdDLFVBQVUsQ0FBQyxxQkFBcUIsQ0FBQyxpQkFBaUIsQ0FBQyxxQkFBcUIsQ0FBQyxlQUFlLENBQUMsa0JBQWtCLENBQUMsc0NBQXNDLG1DQUFtQyxDQUFDLG9EQUFvRCxrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxnRUFBZ0Usa0JBQWtCLENBQUMsY0FBYyxDQUFDLG9FQUFvRSxVQUFVLENBQUMsaURBQWlELFdBQVcsQ0FBQywrRUFBK0UsT0FBTyxDQUFDLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxrQkFBa0IsQ0FBQywyRkFBMkYsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsb0dBQW9HLHdCQUF3QixDQUFDLHdCQUF3QixDQUFDLG9IQUFvSCxhQUFhLENBQUMsdUVBQXVFLGVBQWUsQ0FBQyxnQkFBZ0IsQ0FBQyxtRkFBbUYsaUJBQWlCLENBQUMsY0FBYyxDQUFDLGlGQUFpRixjQUFjLENBQUMsaUJBQWlCLENBQUMsd0JBQXdCLENBQUMsaUJBQWlCLENBQUMsZ0JBQWdCLENBQUMsNkZBQTZGLGNBQWMsQ0FBQyxlQUFlLENBQUMsbUdBQW1HLHdCQUF3QixDQUFDLG1IQUFtSCxnQkFBZ0IsQ0FBQywrSEFBK0gsY0FBYyxDQUFDLGlCQUFpQixDQUFDLGlHQUFpRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsZ0dBQWdHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxzR0FBc0csd0JBQXdCLENBQUMscUdBQXFHLDhCQUE4QixDQUFDLGlIQUFpSCw2QkFBNkIsQ0FBQyxpQkFBaUIsQ0FBQyxzR0FBc0csNkJBQTZCLENBQUMsa0hBQWtILGFBQWEsQ0FBQyw4QkFBOEIsQ0FBQyxpRkFBaUYsbUJBQW1CLENBQUMsNkZBQTZGLG1CQUFtQixDQUFDLHVGQUF1RixPQUFPLENBQUMsa0JBQWtCLENBQUMsZ0JBQWdCLENBQUMsbUdBQW1HLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLDZDQUE2QyxhQUFhLENBQUMsNEJBQTRCLG1CQUFtQixDQUFDLHdDQUF3QyxtQkFBbUIsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLGlCQUFpQixDQUFDLHlDQUF5QyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsNkNBQTZDLHFCQUFxQixDQUFDLHVDQUF1Qyx5Q0FBeUMsQ0FBQyxrQkFBa0IsQ0FBQywwQkFBMEIsQ0FBQyxtQkFBbUIscUJBQXFCLENBQUMscUJBQXFCLENBQUMsbUNBQW1DLENBQUMsTUFBTSxDQUFDLG9DQUFvQyxRQUFRLENBQUMsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsd0JBQXdCLENBQUMsZUFBZSxDQUFDLG1GQUFtRiw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyxpQ0FBaUMsV0FBVyxDQUFDLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLDJCQUEyQixDQUFDLGtCQUFrQixDQUFDLGlGQUFpRiwyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQyx1Q0FBdUMsNEJBQTRCLENBQUMsZUFBZSxDQUFDLHVDQUF1Qyx5QkFBeUIsQ0FBQyxlQUFlLENBQUMseURBQXlELHdCQUFnQixDQUFoQixnQkFBZ0IsQ0FBQyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsc0JBQXNCLENBQUMsY0FBYyxDQUFDLDRFQUE0RSxjQUFjLENBQUMsMEVBQTBFLHdCQUF3QixDQUFDLHlLQUF5Syx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsdURBQXVELHFCQUFxQixDQUFDLHNCQUFzQixDQUFDLGdCQUFnQixDQUFDLHFLQUFxSyxVQUFVLENBQUMsd0JBQXdCLENBQUMsdU1BQXVNLGVBQWUsQ0FBQyx3RUFBd0Usd0JBQXdCLENBQUMsVUFBVSxDQUFDLDBFQUEwRSxVQUFVLENBQUMsdUVBQXVFLGlCQUFpQixDQUFDLG1GQUFtRixrQkFBa0IsQ0FBQyxjQUFjLENBQUMscUVBQXFFLGFBQWEsQ0FBQyxlQUFlLENBQUMsaUJBQWlCLENBQUMsaUZBQWlGLGdCQUFnQixDQUFDLGVBQWUsQ0FBQywrQkFBK0IsYUFBYSxDQUFDLGdCQUFnQixDQ0UxNE87RUFDRSxxQkFBQTtFQUNBLFVBQUE7RUFDQSxlQUFBO0FBQUYsQ0FDRTtFQUNFLFlBQUE7QUFDSixDQUVBO0VBQ0UsNkJBQUE7QUFDRixDQUlBO0VBQ0UsaUJBQUE7QUFERixDQUlBO0VBQ0UsMkJBQUE7QUFERixDQUlBO0VBQ0Usb0NBQUE7RUFDQSx1QkFBQTtBQURGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ub3RpZmljYXRpb24vbWFuYWdlLW5vdGlmaWNhdGlvbi9jcmVhdGUtZWRpdC1ub3RpZmljYXRpb24vY3JlYXRlLWVkaXQtbm90aWZpY2F0aW9uLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQ6I2ZmZjtib3JkZXItY29sb3I6I2IzYjNiMyAjY2NjICNkOWQ5ZDl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyOmhvdmVye2JveC1zaGFkb3c6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLWFycm93e3RvcDotMnB4O2JvcmRlci1jb2xvcjp0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjOTk5O2JvcmRlci13aWR0aDowIDVweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvdzpob3Zlcntib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzMzM30ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LWJvdHRvbT4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czowO2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LXRvcD4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItdG9wLXJpZ2h0LXJhZGl1czowO2JvcmRlci10b3AtbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1mb2N1c2VkOm5vdCgubmctc2VsZWN0LW9wZW5lZCk+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWNvbG9yOiMwMDdlZmY7Ym94LXNoYWRvdzppbnNldCAwIDFweCAxcHggcmdiYSgwLDAsMCwwLjA3NSksMCAwIDAgM3B4IHJnYmEoMCwxMjYsMjU1LDAuMSl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXJ7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3QgLm5nLWhhcy12YWx1ZSAubmctcGxhY2Vob2xkZXJ7ZGlzcGxheTpub25lfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXJ7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Ym9yZGVyLXJhZGl1czo0cHg7Ym9yZGVyOjFweCBzb2xpZCAjY2NjO21pbi1oZWlnaHQ6MzZweDthbGlnbi1pdGVtczpjZW50ZXJ9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7YWxpZ24taXRlbXM6Y2VudGVyO3BhZGRpbmctbGVmdDoxMHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVye2hlaWdodDozNnB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHt0b3A6NXB4O2xlZnQ6MDtwYWRkaW5nLWxlZnQ6MTBweDtwYWRkaW5nLXJpZ2h0OjUwcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZy1yaWdodDoxMHB4O3BhZGRpbmctbGVmdDo1MHB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjk7Ym9yZGVyOjFweCBzb2xpZCAjZTZlNmU2fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtbGFiZWx7cGFkZGluZzowIDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctdG9wOjVweDtwYWRkaW5nLWxlZnQ6N3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjdweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtmb250LXNpemU6LjllbTttYXJnaW4tYm90dG9tOjVweDtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Ym9yZGVyLXJhZGl1czoycHg7bWFyZ2luLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle21hcmdpbi1yaWdodDowO21hcmdpbi1sZWZ0OjVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZCAubmctdmFsdWUtbGFiZWx7cGFkZGluZy1sZWZ0OjA7cGFkZGluZy1yaWdodDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse2Rpc3BsYXk6aW5saW5lLWJsb2NrO3BhZGRpbmc6MXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbntkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb246aG92ZXJ7YmFja2dyb3VuZC1jb2xvcjojZDFlOGZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ubGVmdHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZjtib3JkZXItcmlnaHQ6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLnJpZ2h0e2JvcmRlci1sZWZ0OjA7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmc6MCAwIDNweCAzcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgM3B4IDNweCAwfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye3RvcDo1cHg7cGFkZGluZy1ib3R0b206NXB4O3BhZGRpbmctbGVmdDozcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntwYWRkaW5nLXJpZ2h0OjNweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1jbGVhci13cmFwcGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcjpob3ZlciAubmctY2xlYXJ7Y29sb3I6I0QwMDIxQn0ubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggNXB4IDAgMH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNwaW5uZXItem9uZXtwYWRkaW5nOjVweCAwIDAgNXB4fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7d2lkdGg6MjVweDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcjpob3ZlciAubmctYXJyb3d7Ym9yZGVyLXRvcC1jb2xvcjojNjY2fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXIgLm5nLWFycm93e2JvcmRlci1jb2xvcjojOTk5IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O2JvcmRlci1zdHlsZTpzb2xpZDtib3JkZXItd2lkdGg6NXB4IDVweCAyLjVweH0ubmctZHJvcGRvd24tcGFuZWx7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlcjoxcHggc29saWQgI2NjYztib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KTtsZWZ0OjB9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b217dG9wOjEwMCU7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4O2JvcmRlci10b3AtY29sb3I6I2U2ZTZlNjttYXJnaW4tdG9wOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b20gLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246bGFzdC1jaGlsZHtib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czo0cHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3B7Ym90dG9tOjEwMCU7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tY29sb3I6I2U2ZTZlNjttYXJnaW4tYm90dG9tOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3AgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246Zmlyc3QtY2hpbGR7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24taGVhZGVye2JvcmRlci1ib3R0b206MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tZm9vdGVye2JvcmRlci10b3A6MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3Vwe3VzZXItc2VsZWN0Om5vbmU7cGFkZGluZzo4cHggMTBweDtmb250LXdlaWdodDo1MDA7Y29sb3I6cmdiYSgwLDAsMCwwLjU0KTtjdXJzb3I6cG9pbnRlcn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tZGlzYWJsZWR7Y3Vyc29yOmRlZmF1bHR9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLXNlbGVjdGVkLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2ViZjVmZjtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9ue2JhY2tncm91bmQtY29sb3I6I2ZmZjtjb2xvcjpyZ2JhKDAsMCwwLDAuODcpO3BhZGRpbmc6OHB4IDEwcHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWR7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCAubmctb3B0aW9uLWxhYmVsLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZCAubmctb3B0aW9uLWxhYmVse2ZvbnQtd2VpZ2h0OjYwMH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmY7Y29sb3I6IzMzM30ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWRpc2FibGVke2NvbG9yOiNjY2N9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1jaGlsZHtwYWRkaW5nLWxlZnQ6MjJweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1yaWdodDoyMnB4O3BhZGRpbmctbGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse2ZvbnQtc2l6ZTo4MCU7Zm9udC13ZWlnaHQ6NDAwO3BhZGRpbmctcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uIC5uZy10YWctbGFiZWx7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWx7ZGlyZWN0aW9uOnJ0bDt0ZXh0LWFsaWduOnJpZ2h0fVxuIiwiQGltcG9ydCBcIn5Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3NcIjtcblxudWx7XG4gIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbiAgcGFkZGluZzogMDtcbiAgbWFyZ2luLXRvcDogNXB4O1xuICBsaXtcbiAgICBwYWRkaW5nOjJweCA7XG4gIH1cbn1cbmlucHV0W3JlYWRvbmx5XXtcbiAgYmFja2dyb3VuZC1jb2xvcjp0cmFuc3BhcmVudDtcblxufVxuXG5cbi5zZWxlY3RlZC1ib3h7XG4gIG1hcmdpbi10b3A6IC0xN3B4O1xufVxuXG4uYnRuOmZvY3VzIHtcbiAgYm94LXNoYWRvdzogbm9uZSAhaW1wb3J0YW50O1xufVxuXG46Om5nLWRlZXAgLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjE5NmYzICFpbXBvcnRhbnQ7XG4gIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](CreateEditNotificationComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
args: [{
selector: 'app-create-edit-notification',
templateUrl: './create-edit-notification.component.html',
styleUrls: ['./create-edit-notification.component.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_11__["UsersService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__["BussinessUnitService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__["CustomFieldService"] }, { type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_14__["CentralBuilderService"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_15__["NotificationService"] }, { type: src_app_users_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_16__["CompanyService"] }]; }, { notificationEditedId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
}], editEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
}], notificatioNid: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_6__["SortableHeader"]]
}], AddCategory: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['AddCategory', { static: true }]
}], AddSubCategory: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['AddSubCategory', { static: true }]
}], myInputVariable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['myInputVariable']
}] }); })();
/***/ }),
/***/ "I0Qq":
/*!********************************************************!*\
!*** ./src/app/shared/directive/sortable.directive.ts ***!
\********************************************************/
/*! exports provided: SortableHeader */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SortableHeader", function() { return SortableHeader; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
const rotate = { 'asc': 'desc', 'desc': '', '': 'asc' };
class SortableHeader {
constructor() {
this.sortable = '';
this.direction = '';
this.sort = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
}
rotate() {
this.direction = rotate[this.direction];
this.sort.emit({ column: this.sortable, direction: this.direction });
}
}
SortableHeader.ɵfac = function SortableHeader_Factory(t) { return new (t || SortableHeader)(); };
SortableHeader.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: SortableHeader, selectors: [["th", "sortable", ""]], hostVars: 4, hostBindings: function SortableHeader_HostBindings(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SortableHeader_click_HostBindingHandler() { return ctx.rotate(); });
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("asc", ctx.direction === "asc")("desc", ctx.direction === "desc");
} }, inputs: { sortable: "sortable", direction: "direction" }, outputs: { sort: "sort" } });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SortableHeader, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
args: [{
selector: 'th[sortable]',
host: {
'[class.asc]': 'direction === "asc"',
'[class.desc]': 'direction === "desc"',
'(click)': 'rotate()'
}
}]
}], null, { sortable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], direction: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], sort: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "I7Pl":
/*!*************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/shift-scheme/shift-scheme.component.ts ***!
\*************************************************************************************/
/*! exports provided: ShiftSchemeComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShiftSchemeComponent", function() { return ShiftSchemeComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shift_scheme_overview_shift_scheme_overview_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shift-scheme-overview/shift-scheme-overview.component */ "Xf2D");
/* harmony import */ var _shift_scheme_edit_shift_scheme_edit_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./shift-scheme-edit/shift-scheme-edit.component */ "4AOM");
/* harmony import */ var _shift_scheme_logs_shift_scheme_logs_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./shift-scheme-logs/shift-scheme-logs.component */ "sICd");
const _c0 = ["sidemenu"];
function ShiftSchemeComponent_div_0_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-shift-scheme-overview", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("changeActiveScheme", function ShiftSchemeComponent_div_0_ng_template_6_Template_app_shift_scheme_overview_changeActiveScheme_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r5.activeViewTab($event); })("changeActiveViewScheme", function ShiftSchemeComponent_div_0_ng_template_6_Template_app_shift_scheme_overview_changeActiveViewScheme_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r7.viewOrEdit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("buShiftID", ctx_r2.buShiftSelectedID)("schemeShiftID", ctx_r2.schemeSingleID);
} }
function ShiftSchemeComponent_div_0_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-shift-scheme-edit", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ChangeTabId", function ShiftSchemeComponent_div_0_ng_template_10_Template_app_shift_scheme_edit_ChangeTabId_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r8.changeActiveTab($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("buShiftID", ctx_r3.buShiftSelectedID)("schemeRecieveData", ctx_r3.schemeRecieveData)("isView", ctx_r3.schemeView)("resetTab", ctx_r3.changeCreateForm);
} }
function ShiftSchemeComponent_div_0_ng_template_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-shift-scheme-logs", 12);
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("BusinessUnit", ctx_r4.buShiftSelectedID);
} }
function ShiftSchemeComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("navChange", function ShiftSchemeComponent_div_0_Template_ul_navChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r10.onNavChange($event); })("activeIdChange", function ShiftSchemeComponent_div_0_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ShiftSchemeComponent_div_0_ng_template_6_Template, 1, 2, "ng-template", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ShiftSchemeComponent_div_0_ng_template_10_Template, 1, 4, "ng-template", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ShiftSchemeComponent_div_0_ng_template_14_Template, 1, 1, "ng-template", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx_r0.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r0.schemeView === "view" ? "VIEW" : ctx_r0.schemeView === "edit" ? "EDIT" : "CREATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r1);
} }
class ShiftSchemeComponent {
constructor(buService, renderer) {
this.buService = buService;
this.renderer = renderer;
this.BuShiftId = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.buLoader = true;
this.activeId = 1;
this.isCreate = true;
this.buParameters = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
}
ngOnInit() {
this.viewClicked();
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
changeActiveTab($event) {
this.activeId = $event;
this.schemeView = null;
this.schemeRecieveData = null;
}
activeViewTab($event) {
this.activeId = 2;
this.isCreate = false;
this.schemeRecieveData = $event;
}
onNavChange(changeEvent) {
if (changeEvent.nextId === 1) {
this.schemeView = null;
this.schemeRecieveData = null;
}
}
viewOrEdit($event) {
console.log('opertion', $event);
if ($event == 'view') {
this.schemeView = 'view';
}
else {
this.schemeView = 'edit';
}
}
viewClicked() {
//this.BuShiftId.emit(i);
//this.buShiftSelectedID = i;
//console.log('View Bu', i);
this.isView = true;
}
}
ShiftSchemeComponent.ɵfac = function ShiftSchemeComponent_Factory(t) { return new (t || ShiftSchemeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_1__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"])); };
ShiftSchemeComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ShiftSchemeComponent, selectors: [["app-shift-scheme"]], viewQuery: function ShiftSchemeComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
} }, outputs: { BuShiftId: "BuShiftId" }, decls: 1, vars: 1, consts: [["class", "d-flex flex-column", 4, "ngIf"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "navChange", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [1, "not-allowed", 3, "ngbNavItem"], ["ngbNavLink", "", 1, "no-click"], [3, "ngbNavOutlet"], [3, "buShiftID", "schemeShiftID", "changeActiveScheme", "changeActiveViewScheme"], [3, "buShiftID", "schemeRecieveData", "isView", "resetTab", "ChangeTabId"], [3, "BusinessUnit"]], template: function ShiftSchemeComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ShiftSchemeComponent_div_0_Template, 16, 6, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavOutlet"], _shift_scheme_overview_shift_scheme_overview_component__WEBPACK_IMPORTED_MODULE_4__["ShiftSchemeOverviewComponent"], _shift_scheme_edit_shift_scheme_edit_component__WEBPACK_IMPORTED_MODULE_5__["ShiftSchemeEditComponent"], _shift_scheme_logs_shift_scheme_logs_component__WEBPACK_IMPORTED_MODULE_6__["ShiftSchemeLogsComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2V0dXAvc2hpZnQtc2NoZW1lL3NoaWZ0LXNjaGVtZS5jb21wb25lbnQuc2NzcyJ9 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ShiftSchemeComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-shift-scheme',
templateUrl: './shift-scheme.component.html',
styleUrls: ['./shift-scheme.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_1__["SetupService"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }]; }, { BuShiftId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sidemenu']
}] }); })();
/***/ }),
/***/ "IIps":
/*!***********************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/view-booking/view-booking.component.ts ***!
\***********************************************************************************************/
/*! exports provided: ViewBookingComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewBookingComponent", function() { return ViewBookingComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _view_booking_overview_view_booking_overview_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./view-booking-overview/view-booking-overview.component */ "hwqe");
/* harmony import */ var _booking_booking_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./booking/booking.component */ "Q/FD");
const _c0 = ["sidemenu"];
function ViewBookingComponent_div_0_ng_container_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ng-option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r4.label);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.label);
} }
function ViewBookingComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ViewBookingComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.buId = $event; })("change", function ViewBookingComponent_div_0_Template_ng_select_change_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.onBuChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "WORK WEEK");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "ng-select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ViewBookingComponent_div_0_Template_ng_select_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.selectedWeek = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ViewBookingComponent_div_0_ng_container_11_Template, 3, 2, "ng-container", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewBookingComponent_div_0_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.viewClicked(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.buForShift)("loading", ctx_r0.buLoader)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.buId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", true)("loading", ctx_r0.weeksLoader)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.selectedWeek);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.weeksArr);
} }
function ViewBookingComponent_div_1_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Please wait, data is loading.... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewBookingComponent_div_1_ng_template_7_app_view_booking_overview_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-view-booking-overview", 32);
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("bu", ctx_r14.buId)("startDate", ctx_r14.startDateLocal)("graphData", ctx_r14.shiftReadRes);
} }
function ViewBookingComponent_div_1_ng_template_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Planned Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Planned Flexi Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Booked Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Booked Flexi staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ViewBookingComponent_div_1_ng_template_7_app_view_booking_overview_25_Template, 1, 3, "app-view-booking-overview", 31);
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r12.headerData.one == 0 ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 5, ctx_r12.headerData.one, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r12.headerData.two == 0 ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 8, ctx_r12.headerData.two, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r12.headerData.three == 0 ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 11, ctx_r12.headerData.three, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r12.headerData.four == 0 ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](24, 14, ctx_r12.headerData.four, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r12.shiftReadRes);
} }
function ViewBookingComponent_div_1_ng_template_11_app_booking_25_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-booking", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("headerData", function ViewBookingComponent_div_1_ng_template_11_app_booking_25_Template_app_booking_headerData_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r16.getheaderData($event); })("day", function ViewBookingComponent_div_1_ng_template_11_app_booking_25_Template_app_booking_day_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r17); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r18.headerHrsStaff($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("shift", ctx_r15.receivedPlanShift)("week", ctx_r15.planShift.startDate)("buId", ctx_r15.buId);
} }
function ViewBookingComponent_div_1_ng_template_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Planned Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Planned Flexi Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Booked Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Booked Flexi staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ViewBookingComponent_div_1_ng_template_11_app_booking_25_Template, 1, 3, "app-booking", 33);
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 5, ctx_r13.topData.totalHours.need, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 8, ctx_r13.topData.numberOfShifts.need, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 11, ctx_r13.topData.totalHours.booked, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](24, 14, ctx_r13.topData.numberOfShifts.booked, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r13.receivedPlanShift);
} }
function ViewBookingComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 16, 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ViewBookingComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r19.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewBookingComponent_div_1_Template_a_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r20); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r21.refreshHeader(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ViewBookingComponent_div_1_div_6_Template, 5, 0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ViewBookingComponent_div_1_ng_template_7_Template, 26, 17, "ng-template", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "li", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewBookingComponent_div_1_Template_a_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r20); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r22.switchToBooking(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "BOOKING");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ViewBookingComponent_div_1_ng_template_11_Template, 26, 17, "ng-template", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.isLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2)("disabled", !ctx_r1.shiftReadRes);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r10);
} }
class ViewBookingComponent {
constructor(route, router, renderer, planShiftService, setupService) {
this.route = route;
this.router = router;
this.renderer = renderer;
this.planShiftService = planShiftService;
this.setupService = setupService;
this.bu = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.startDate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.activeId = 1;
this.weeksArr = [];
this.buLoader = true;
this.isLoader = true;
this.getWeekStartEndDate = function (date, count) {
let datesToReturn = {};
let label = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MMM DD YYYY") + ' to ' + moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count + 6, 'days').format("MMM DD YYYY");
let value = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MM-DD-YYYY");
datesToReturn = { label: label, value: value, key: count };
/* if (count == 0 && $scope.workWeeksDate == undefined) {
$scope.workWeeksDate = value;
}*/
return datesToReturn;
};
this.router.routeReuseStrategy.shouldReuseRoute = function () {
return false;
};
this.router.onSameUrlNavigation = 'reload';
this.routeSub = route.data.subscribe((val) => {
this.isView = val.isView;
});
}
ngOnInit() {
this.getAllBuForShift();
}
getAllBuForShift() {
this.buLoader = true;
const buSubscribe = this.setupService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}))
.subscribe((res) => {
//if (res.success) {
this.buForShift = res.data.businessUnitList;
/*} else {
this.buForShift = [];
}*/
}, (error) => {
this.buForShift = [];
});
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
onBuChange() {
this.weeksLoader = true;
const buWeeks = this.planShiftService
.getWeeks(this.buId._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.weeksLoader = false;
buWeeks.unsubscribe();
}))
.subscribe((res) => {
var _a;
//this.weeksArr = res['data']['data'];
console.log(this.weeksArr[res['data'].noOfWeek]);
this.selectedWeek = this.weeksArr[res['data'].noOfWeek];
let getDate = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').format("MM-DD-YYYY");
const count = res['data'].noOfWeek;
//this.currentWeekCount = count;
if (count > 0) {
for (var i = -count; i <= count; i++) {
let dummyData = this.getWeekStartEndDate(getDate, 7 * (i));
this.weeksArr.push(dummyData);
//localStorageService.set("WorkWeekList", $scope.myWeekRange);
}
this.selectedWeek = (_a = this.weeksArr[count]) === null || _a === void 0 ? void 0 : _a.label;
}
});
}
changeToDate(d, n) {
var months = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
var sd = d === null || d === void 0 ? void 0 : d.slice(4, 6).toString();
var dd = parseInt(sd);
var smm = d === null || d === void 0 ? void 0 : d.slice(0, 3);
var mm = months.indexOf(smm);
var yy = parseInt(d.slice(7, 11));
this.startDateLocal = new Date(yy, mm, dd);
if (n == 0) {
var startDate = new Date(yy, mm, dd);
return startDate;
}
else if (n == 1) {
var endDate = new Date(startDate.setDate(startDate.getDate() + 6));
return endDate;
}
}
dateFormat2(d) {
var dd = d.getDate().toString();
var mm = (d.getMonth() + 1).toString();
var yy = d.getFullYear().toString();
var date = mm.padStart(2, '0') +
'-' +
dd.padStart(2, '0') +
'-' +
yy +
' 00:00:00 GMT+0530';
return date;
}
viewClicked() {
this.startDate.emit(this.startDateLocal);
this.bu.emit(this.buId);
this.headerData = {
one: 0,
two: 0,
three: 0,
four: 0,
};
this.isView = true;
this.planShiftpara = {
businessUnitId: this.buId._id,
startDate: this.dateFormat2(this.changeToDate(this.selectedWeek, 0)),
from: 'plan',
};
this.planShiftService.getShiftGraph(this.planShiftpara).subscribe((res) => {
this.shiftReadRes = res['data'];
this.headerData = {
one: res['data']['dashboardGraphData'].plannedFlexiHours,
two: res['data']['dashboardGraphData'].plannedFlexiShifts,
three: res['data']['dashboardGraphData'].bookedFlexiHours,
four: res['data']['dashboardGraphData'].bookedFlexiShifts,
};
this.headerHrsStaff({ count: 0, day: 'M' });
this.isLoader = false;
});
}
refreshHeader() {
this.isLoader = true;
this.headerData = {
one: 0,
two: 0,
three: 0,
four: 0,
};
const startDate = this.dateFormat2(this.changeToDate(this.selectedWeek, 0));
this.planShiftpara = {
businessUnitId: this.buId._id,
startDate: startDate,
from: 'plan'
};
this.planShiftService.getShiftGraph(this.planShiftpara).subscribe((res) => {
const { plannedFlexiHours, plannedFlexiShifts, bookedFlexiHours, bookedFlexiShifts } = res['data']['dashboardGraphData'];
this.headerData = {
one: plannedFlexiHours,
two: plannedFlexiShifts,
three: bookedFlexiHours,
four: bookedFlexiShifts,
};
this.headerHrsStaff({ count: 0, day: 'M' });
this.isLoader = false;
}, (error) => {
console.error(error);
this.isLoader = false;
});
}
getheaderData(e) {
this.headerData = {
one: e.plannedHr,
two: e.plannedStaff,
};
}
headerHrsStaff(e) {
const [start, end] = this.selectedWeek.split(' to ');
const weekStart = moment__WEBPACK_IMPORTED_MODULE_1__(start, 'MMM DD YYYY');
const weekEnd = moment__WEBPACK_IMPORTED_MODULE_1__(end, 'MMM DD YYYY');
const weekdays = [];
moment__WEBPACK_IMPORTED_MODULE_1__["updateLocale"]('en', {
week: {
dow: 1,
},
});
for (let day = weekStart.clone(); day.isSameOrBefore(weekEnd); day.add(1, 'day')) {
weekdays.push(day.format('DD-MM-YYYY'));
}
this.topData = this.shiftReadRes['graphDataWeb'][weekdays[e.count]];
}
switchToBooking() {
this.isLoader = true;
const startDate = this.dateFormat2(this.changeToDate(this.selectedWeek, 0));
this.planShift = {
businessUnitId: this.buId._id,
cancelledShifts: true,
startDate: startDate,
};
this.planShiftService.getViewBooking(this.planShift).subscribe((res) => {
this.receivedPlanShift = res;
this.isLoader = false;
}, (error) => {
console.error(error);
this.isLoader = false;
});
}
}
ViewBookingComponent.ɵfac = function ViewBookingComponent_Factory(t) { return new (t || ViewBookingComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"])); };
ViewBookingComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewBookingComponent, selectors: [["app-view-booking"]], viewQuery: function ViewBookingComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
} }, outputs: { bu: "bu", startDate: "startDate" }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "form-group"], [1, "d-block", "text-center"], ["loadingText", "Please wait data is loading...", "bindLabel", "orgName", "placeholder", "Select/Search Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange", "change"], ["placeholder", "Select Week", "appendTo", "body", 1, "custom", 3, "virtualScroll", "loading", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [3, "value"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["class", "loader", 4, "ngIf"], ["ngbNavContent", ""], [3, "ngbNavItem", "disabled"], [3, "ngbNavOutlet"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "top-header", "rounded", "bg-white", "mb-3"], [1, "hrs-text", "red-text"], [1, "red-text"], [3, "bu", "startDate", "graphData", 4, "ngIf"], [3, "bu", "startDate", "graphData"], [3, "shift", "week", "buId", "headerData", "day", 4, "ngIf"], [3, "shift", "week", "buId", "headerData", "day"]], template: function ViewBookingComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ViewBookingComponent_div_0_Template, 19, 14, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewBookingComponent_div_1_Template, 13, 6, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavOutlet"], _view_booking_overview_view_booking_overview_component__WEBPACK_IMPORTED_MODULE_11__["ViewBookingOverviewComponent"], _booking_booking_component__WEBPACK_IMPORTED_MODULE_12__["BookingComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DecimalPipe"]], styles: [".top-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding: 1rem;\n}\n\n.red-text[_ngcontent-%COMP%] {\n color: #a42138 !important;\n}\n\n.hrs-text[_ngcontent-%COMP%] {\n text-align: center;\n font-size: 25px;\n line-height: 1.5;\n margin-top: 0.25rem;\n}\n\n.loader[_ngcontent-%COMP%] {\n background-color: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-repeat: no-repeat;\n background-position: center;\n z-index: 1050;\n opacity: 0.8;\n}\n\n.loader[_ngcontent-%COMP%] .pageLoading[_ngcontent-%COMP%] {\n text-align: center;\n color: white;\n font-size: 40px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvdmlldy1ib29raW5nL3ZpZXctYm9va2luZy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGFBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBQ0Y7O0FBRUE7RUFDRSxvQ0FBQTtFQUNDLGVBQUE7RUFDRCxNQUFBO0VBQ0EsUUFBQTtFQUNBLE9BQUE7RUFDQSxTQUFBO0VBQ0EsNEJBQUE7RUFDQSwyQkFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0FBQ0Y7O0FBQUU7RUFDRSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0VBQ0EsZUFBQTtFQUNBLFFBQUE7RUFDQSxTQUFBO0VBQ0EsZ0NBQUE7QUFFSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3ZpZXctYm9va2luZy92aWV3LWJvb2tpbmcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudG9wLWhlYWRlciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgcGFkZGluZzogMXJlbTtcbn1cblxuLnJlZC10ZXh0IHtcbiAgY29sb3I6ICNhNDIxMzggIWltcG9ydGFudDtcbn1cblxuLmhycy10ZXh0IHtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBmb250LXNpemU6IDI1cHg7XG4gIGxpbmUtaGVpZ2h0OiAxLjU7XG4gIG1hcmdpbi10b3A6IDAuMjVyZW07XG59XG5cbi5sb2FkZXJ7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgdG9wOiAwO1xuICByaWdodDowO1xuICBsZWZ0OjA7XG4gIGJvdHRvbTowO1xuICBiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG4gIHotaW5kZXg6IDEwNTA7XG4gIG9wYWNpdHk6IDAuODtcbiAgLnBhZ2VMb2FkaW5nIHtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgY29sb3I6IHdoaXRlO1xuICAgIGZvbnQtc2l6ZTogNDBweDtcbiAgICBwb3NpdGlvbjogZml4ZWQ7XG4gICAgdG9wOiA1MCU7XG4gICAgbGVmdDogNTAlO1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlKC01MCUsIC01MCUpO1xuICB9XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewBookingComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-view-booking',
templateUrl: './view-booking.component.html',
styleUrls: ['./view-booking.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], startDate: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sidemenu']
}] }); })();
/***/ }),
/***/ "ITC6":
/*!*******************************************!*\
!*** ./src/app/shared/pipes/safe.pipe.ts ***!
\*******************************************/
/*! exports provided: SafeHtmlPipe */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SafeHtmlPipe", function() { return SafeHtmlPipe; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
class SafeHtmlPipe {
constructor(sanitized) {
this.sanitized = sanitized;
}
transform(value) {
return this.sanitized.bypassSecurityTrustHtml(value);
}
}
SafeHtmlPipe.ɵfac = function SafeHtmlPipe_Factory(t) { return new (t || SafeHtmlPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"])); };
SafeHtmlPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "safeHtml", type: SafeHtmlPipe, pure: true });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SafeHtmlPipe, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
args: [{ name: 'safeHtml' }]
}], function () { return [{ type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] }]; }, null); })();
/***/ }),
/***/ "Ia8d":
/*!********************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/home-page/home-page.component.ts ***!
\********************************************************************************************/
/*! exports provided: HomePageComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomePageComponent", function() { return HomePageComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function HomePageComponent_div_15_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "i", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HomePageComponent_div_15_Template_i_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const index_r4 = ctx.index; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r5.onDeleteBannerImage(index_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "img", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const photo_r3 = ctx.$implicit;
const index_r4 = ctx.index;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r0.validateURLImage(photo_r3.get("link").value), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function HomePageComponent_ng_option_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r7.fieldName, " ");
} }
function HomePageComponent_div_30_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HomePageComponent_div_30_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const index_r9 = ctx.index; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.deleteSelectedFields(index_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r8 = ctx.$implicit;
const index_r9 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r8.get("string").value, " ");
} }
const _c0 = function (a0, a1) { return { "fa-spin fa-spinner fa-2x": a0, " fa-plus-circle fa-2x": a1 }; };
const _c1 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
class HomePageComponent {
constructor(companyService, formBuilder, tostService, gamificationService, customFieldService) {
this.companyService = companyService;
this.formBuilder = formBuilder;
this.tostService = tostService;
this.gamificationService = gamificationService;
this.customFieldService = customFieldService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl;
this.isLoading = false;
this.isIconLoading = false;
this.isUpdateLoading = false;
this.usefullinkEdit = false;
this.fieldNeedsToUpdate = [];
this.formEmpty = true;
this.CustomFieldDropDownLoading = false;
this.userLinksubmitted = false;
}
ngOnInit() {
// this.config.notFoundText = 'Custom not found';
this.CustomFieldPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
statusFilter: 'active'
};
this.initForm();
this.getCompanySettings();
this.loadCustomField();
}
onSeachCustomField(value) {
this.CustomFieldPTable.limit = 10;
this.CustomFieldPTable.search = value.term;
this.loadCustomField();
}
loadMoreCustomFieldItems(value) {
this.CustomFieldPTable.limit = this.CustomFieldPTable.limit + 10;
this.loadCustomField();
}
onClearCustomFieldDropdown(value) {
if (value === undefined) {
this.setupForm.patchValue({
loginFields: [],
});
this.CustomFieldPTable.search = '';
this.loadCustomField();
this.fieldNeedsToUpdate = [];
this.CustomFieldPTable.data = [];
}
}
loadCustomField() {
const _a = this.CustomFieldPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.customFieldService
.getCustomField(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
console.log(response.data.data);
const { count, data } = response.data;
this.CustomFieldPTable.data = data;
this.fieldNeedsToUpdate = data;
this.CustomFieldPTable.total = count;
}, (error) => {
this.CustomFieldPTable.data = [];
this.CustomFieldPTable.total = 0;
this.tostService.error('No list found');
});
}
getCompanySettings() {
this.companyService.getcompanySetting().subscribe((res) => {
this.companySettingsId = res.data._id;
// this.useFullLinkOrders.push(res.data.externalLinks.length + 1)
this.setupForm.patchValue({
isTaskViewIncluded: res.data.isTaskViewIncluded,
isChallengeIncluded: res.data.isChallengeIncluded,
isFormsIncluded: res.data.isFormsIncluded,
isBoardsIncluded: res.data.isBoardsIncluded,
});
res.data.bannerImages.forEach((element) => {
this.setupForm.patchValue({
rotating_banners: element.rotating_banners
});
let previlege = this.formBuilder.group({
rotating_banners: [
element.rotating_banners,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
link: [element.link, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
this.BannersControl.push(previlege);
});
res.data.loginFields.forEach((element) => {
let field = this.formBuilder.group({
string: [
element.fieldName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
this.LoginFieldsControl.push(field);
});
}, (error) => {
});
}
initForm() {
this.setupForm = this.formBuilder.group({
bannerImages: this.formBuilder.array([]),
loginFields: this.formBuilder.array([]),
rotating_banners: [0, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
isTaskViewIncluded: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
isChallengeIncluded: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
isFormsIncluded: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
isBoardsIncluded: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
}
intiBannerArray() {
return this.formBuilder.group({
rotating_banners: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
link: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
}
/**
*
* @param event to get the file through the event
* @description file upload is done here for the main element
*/
BannerUpload(event) {
this.isLoading = true;
if (event.target.files && event.target.files.length) {
if (event.target.files.length) {
this.formEmpty = false;
}
let file = event.target.files[0];
this.iconFileName = file.name;
if (file && file.type.startsWith('image/')) {
const fileUpload = this.gamificationService.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
var _a;
this.addBannerImages(`${(_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.exactPath}`);
this.isLoading = false;
this.tostService.success('Banner Image Uploaded Successfully');
}, (error) => {
var _a;
this.isLoading = false;
this.tostService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message, error === null || error === void 0 ? void 0 : error.statusText);
});
}
else {
this.tostService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
this.iconFileName = '';
this.isLoading = false;
}
}
}
get BannersControl() {
return this.setupForm.get('bannerImages');
}
get LoginFieldsControl() {
return this.setupForm.get('loginFields');
}
get externalLinksControl() {
return this.setupForm.get('externalLinks');
}
addLoginFields(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
this.formEmpty = false;
}
else if (value === undefined) {
this.formEmpty = true;
}
const Control = this.LoginFieldsControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.ngSelectComponent.clearModel();
this.tostService.error(`${value.fieldName} is already added`);
}
else {
let field = this.formBuilder.group({
string: [value.fieldName, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
this.ngSelectComponent.clearModel();
}
});
}
deleteSelectedFields(index) {
const Control = this.LoginFieldsControl;
Control.removeAt(index);
}
addBannerImages(link, count) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.BannersControl;
console.log(link);
let previlege = this.formBuilder.group({
rotating_banners: [
count ? count : 1,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
link: [link, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(previlege);
console.log(Control);
});
}
/**
*
* @description update main element with the respective element id
*/
onDeleteBannerImage(index) {
const Control = this.BannersControl;
Control.removeAt(index);
}
onSubmitSetupForm() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.isUpdateLoading = true;
const Control = this.LoginFieldsControl;
const BannerControl = this.BannersControl;
let fields = yield Control.value.map((item) => item._id);
let banners = yield BannerControl.value.map((item) => {
return Object.assign(Object.assign({}, item), { rotating_banners: this.setupForm.get('rotating_banners').value });
});
// const keys = []
// Control.value.forEach(element => {
// keys.push( ...Object.values(element))
// });
//
const _a = this.setupForm.value, { rotating_banners } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["rotating_banners"]);
if (rotating_banners < 0) {
this.tostService.error('Rotating Banner should not be less than 0');
this.isUpdateLoading = false;
}
else {
const data = Object.assign(Object.assign({}, rest), { bannerImages: banners, pageId: this.companySettingsId, loginFields: [...fields] });
console.log("inside home page", data, this.companySettingsId);
const sub = this.companyService
.updateCompanySettings(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.tostService.success('Updated SuccessFully');
this.isUpdateLoading = false;
this.ngOnInit();
}, (error) => {
this.isUpdateLoading = false;
});
}
});
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
HomePageComponent.ɵfac = function HomePageComponent_Factory(t) { return new (t || HomePageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_7__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_9__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__["CustomFieldService"])); };
HomePageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: HomePageComponent, selectors: [["app-home-page"]], viewQuery: function HomePageComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_3__["NgSelectComponent"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.ngSelectComponent = _t.first);
} }, decls: 62, vars: 19, consts: [[3, "formGroup"], [1, "card", "mb-3"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body", "p-5"], [1, "row"], [1, "col-md-4"], [1, "custom-file", "mt-0", "pt-4", "pb-4", "mt-2"], ["type", "file", "required", "", "id", "b", 1, "custom-file-input", 3, "disabled", "change"], ["for", "b", 1, "custom-file-label"], ["aria-hidden", "true", 1, "fa", 3, "ngClass"], ["class", "p-3", "formArrayName", "bannerImages", 4, "ngFor", "ngForOf"], [1, "row", "mt-2"], [1, "col-md-4", "mb-2", "mt-3"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "form-bg"], ["placeholder", "Rotation", "min", "0", "type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "formControlName", "rotating_banners", "oninput", "this.value = Math.abs(this.value)", "onKeyPress", "if(this.value.length==3) return false;", 1, "form-control", "w-100"], [1, "col-md-4", "mb-2"], [1, "font-weight-bold"], ["bindLabel", "name", "placeholder", "Custom Fields", "appendTo", "body", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "clearable", "loading", "change", "search", "scrollToEnd", "clear"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-md-6"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap", "margin-top", "22px"], ["formArrayName", "loginFields", 4, "ngFor", "ngForOf"], ["type", "checkbox", "id", "otp2", "formControlName", "isTaskViewIncluded"], ["for", "otp2", 1, "radio-inline", "ml-2"], ["type", "checkbox", "id", "otp3", "formControlName", "isChallengeIncluded"], ["for", "otp3", 1, "radio-inline", "ml-2"], ["type", "checkbox", "id", "12", "formControlName", "isFormsIncluded"], ["for", "12", 1, "radio-inline", "ml-2"], ["type", "checkbox", "id", "54", "formControlName", "isBoardsIncluded"], ["for", "54", 1, "radio-inline", "ml-2"], [1, "btn", "btn-submit", "update-button", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], ["formArrayName", "bannerImages", 1, "p-3"], [3, "formGroupName"], [1, "image-with-delete-icon"], ["title", "Delete", 1, "fa", "fa-close", "fa-lg", "delete-icon", 3, "click"], ["crossorigin", "anonymous", "alt", "Image Preview", 1, "banner-image", 3, "src"], [3, "value"], ["formArrayName", "loginFields"], [1, "text-items", "list-ui", 3, "formGroupName"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", 3, "click"]], template: function HomePageComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "BANNER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Upload banner");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "input", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function HomePageComponent_Template_input_change_11_listener($event) { return ctx.BannerUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "i", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, HomePageComponent_div_15_Template, 5, 2, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Rotation");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Fields need to be update on login ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "ng-select", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function HomePageComponent_Template_ng_select_change_26_listener($event) { return ctx.addLoginFields($event); })("search", function HomePageComponent_Template_ng_select_search_26_listener($event) { return ctx.onSeachCustomField($event); })("scrollToEnd", function HomePageComponent_Template_ng_select_scrollToEnd_26_listener($event) { return ctx.loadMoreCustomFieldItems($event); })("clear", function HomePageComponent_Template_ng_select_clear_26_listener($event) { return ctx.onClearCustomFieldDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, HomePageComponent_ng_option_27_Template, 2, 2, "ng-option", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, HomePageComponent_div_30_Template, 4, 2, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, "MOBILE HOME PAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](39, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, " Show tasks view in mobile home page");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](44, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46, " Show challenges in mobile home page");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](49, "input", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "label", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, " Show forms in mobile home page");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](54, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56, " Show boards challenges in mobile home page");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HomePageComponent_Template_button_click_59_listener() { return ctx.onSubmitSetupForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](60, "i", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](61, "Update");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.setupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](13, _c0, ctx.isLoading, !ctx.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.BannersControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("loading", ctx.CustomFieldDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.fieldNeedsToUpdate);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.LoginFieldsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isUpdateLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](16, _c1, ctx.isUpdateLoading, !ctx.isUpdateLoading));
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["PatternValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_3__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_3__["ɵr"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.text-items[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n}ul[_ngcontent-%COMP%] {\n list-style-type: none;\n}.parent[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-column-gap: 10px;\n grid-row-gap: 10px;\n}.child[_ngcontent-%COMP%] {\n height: 20px;\n}.update-button[_ngcontent-%COMP%] {\n width: 100px;\n}.card-body-inline[_ngcontent-%COMP%] {\n padding: 10px;\n display: inline-flex;\n align-items: center;\n}.justify-content-SB[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n}.notif-reminder[_ngcontent-%COMP%] {\n color: #a51f38;\n font-weight: 500;\n text-align: left;\n margin-top: 20px;\n margin-bottom: 20px;\n margin-left: 15px;\n}.banner-image[_ngcontent-%COMP%] {\n height: 140px;\n width: 200px;\n}.ng-select.custom[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%] .ng-clear[_ngcontent-%COMP%] {\n font-size: 0;\n}.ng-select.custom[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%] .ng-clear[_ngcontent-%COMP%]::before {\n content: \"\";\n display: inline-block;\n width: 15px;\n height: 15px;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button {\n opacity: 1;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL3N5c3RlbS1zZXR0aW5ncy9jb21wYW55LXNldHVwL2hvbWUtcGFnZS9ob21lLXBhZ2UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsaURBQWlELGVBQWUsQ0FBQyxpQ0FBaUMsQ0FBQyx1REFBdUQsZUFBZSxDQUFDLDJEQUEyRCxRQUFRLENBQUMseUNBQXlDLENBQUMsc0JBQXNCLENBQUMsaUVBQWlFLHlDQUF5QyxDQUFDLGtFQUFrRSw0QkFBNEIsQ0FBQywyQkFBMkIsQ0FBQywrREFBK0QseUJBQXlCLENBQUMsd0JBQXdCLENBQUMseUVBQXlFLG9CQUFvQixDQUFDLDBFQUEwRSxDQUFDLG1EQUFtRCx3QkFBd0IsQ0FBQyx5Q0FBeUMsWUFBWSxDQUFDLGdDQUFnQyxVQUFVLENBQUMscUJBQXFCLENBQUMsaUJBQWlCLENBQUMscUJBQXFCLENBQUMsZUFBZSxDQUFDLGtCQUFrQixDQUFDLHNDQUFzQyxtQ0FBbUMsQ0FBQyxvREFBb0Qsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsZ0VBQWdFLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxvRUFBb0UsVUFBVSxDQUFDLGlEQUFpRCxXQUFXLENBQUMsK0VBQStFLE9BQU8sQ0FBQyxNQUFNLENBQUMsaUJBQWlCLENBQUMsa0JBQWtCLENBQUMsMkZBQTJGLGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLG9HQUFvRyx3QkFBd0IsQ0FBQyx3QkFBd0IsQ0FBQyxvSEFBb0gsYUFBYSxDQUFDLHVFQUF1RSxlQUFlLENBQUMsZ0JBQWdCLENBQUMsbUZBQW1GLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyxpRkFBaUYsY0FBYyxDQUFDLGlCQUFpQixDQUFDLHdCQUF3QixDQUFDLGlCQUFpQixDQUFDLGdCQUFnQixDQUFDLDZGQUE2RixjQUFjLENBQUMsZUFBZSxDQUFDLG1HQUFtRyx3QkFBd0IsQ0FBQyxtSEFBbUgsZ0JBQWdCLENBQUMsK0hBQStILGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyxpR0FBaUcsb0JBQW9CLENBQUMsZUFBZSxDQUFDLGdHQUFnRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsc0dBQXNHLHdCQUF3QixDQUFDLHFHQUFxRyw4QkFBOEIsQ0FBQyxpSEFBaUgsNkJBQTZCLENBQUMsaUJBQWlCLENBQUMsc0dBQXNHLDZCQUE2QixDQUFDLGtIQUFrSCxhQUFhLENBQUMsOEJBQThCLENBQUMsaUZBQWlGLG1CQUFtQixDQUFDLDZGQUE2RixtQkFBbUIsQ0FBQyx1RkFBdUYsT0FBTyxDQUFDLGtCQUFrQixDQUFDLGdCQUFnQixDQUFDLG1HQUFtRyxpQkFBaUIsQ0FBQyxjQUFjLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyw2Q0FBNkMsYUFBYSxDQUFDLDRCQUE0QixtQkFBbUIsQ0FBQyx3Q0FBd0MsbUJBQW1CLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyxpQkFBaUIsQ0FBQyx5Q0FBeUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLDZDQUE2QyxxQkFBcUIsQ0FBQyx1Q0FBdUMseUNBQXlDLENBQUMsa0JBQWtCLENBQUMsMEJBQTBCLENBQUMsbUJBQW1CLHFCQUFxQixDQUFDLHFCQUFxQixDQUFDLG1DQUFtQyxDQUFDLE1BQU0sQ0FBQyxvQ0FBb0MsUUFBUSxDQUFDLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyxtRkFBbUYsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsaUNBQWlDLFdBQVcsQ0FBQywyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQywyQkFBMkIsQ0FBQyxrQkFBa0IsQ0FBQyxpRkFBaUYsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsdUNBQXVDLDRCQUE0QixDQUFDLGVBQWUsQ0FBQyx1Q0FBdUMseUJBQXlCLENBQUMsZUFBZSxDQUFDLHlEQUF5RCx3QkFBZ0IsQ0FBaEIsZ0JBQWdCLENBQUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLHNCQUFzQixDQUFDLGNBQWMsQ0FBQyw0RUFBNEUsY0FBYyxDQUFDLDBFQUEwRSx3QkFBd0IsQ0FBQyx5S0FBeUssd0JBQXdCLENBQUMsZUFBZSxDQUFDLHVEQUF1RCxxQkFBcUIsQ0FBQyxzQkFBc0IsQ0FBQyxnQkFBZ0IsQ0FBQyxxS0FBcUssVUFBVSxDQUFDLHdCQUF3QixDQUFDLHVNQUF1TSxlQUFlLENBQUMsd0VBQXdFLHdCQUF3QixDQUFDLFVBQVUsQ0FBQywwRUFBMEUsVUFBVSxDQUFDLHVFQUF1RSxpQkFBaUIsQ0FBQyxtRkFBbUYsa0JBQWtCLENBQUMsY0FBYyxDQUFDLHFFQUFxRSxhQUFhLENBQUMsZUFBZSxDQUFDLGlCQUFpQixDQUFDLGlGQUFpRixnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsK0JBQStCLGFBQWEsQ0FBQyxnQkFBZ0IsQ0NFMTRPO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0EsdUJBQUE7RUFDQSxZQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTtFQUNBLHdCQUFBO0VBQ0EscUJBQUE7RUFDQSwwQkFBQTtFQUNBLGVBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBQUYsQ0FFQTtFQUNFLHFCQUFBO0FBQ0YsQ0FDQTtFQUNFLGFBQUE7RUFDQSxxQ0FBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7QUFFRixDQUFBO0VBQ0UsWUFBQTtBQUdGLENBQUE7RUFDRSxZQUFBO0FBR0YsQ0FBQTtFQUNFLGFBQUE7RUFDQSxvQkFBQTtFQUNBLG1CQUFBO0FBR0YsQ0FBQTtFQUNFLFdBQUE7RUFDQSxhQUFBO0FBR0YsQ0FBQTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxtQkFBQTtFQUNBLGlCQUFBO0FBR0YsQ0FBQTtFQUNFLGFBQUE7RUFDQSxZQUFBO0FBR0YsQ0FBQSx1QkFBQSxDQUNBO0VBQ0UsWUFBQTtBQUdGLENBQUEsc0JBQUEsQ0FDQTtFQUNFLFdBQUE7RUFDQSxxQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0FBR0YsQ0FBQTtFQUNFLG9DQUFBO0VBQ0EsdUJBQUE7QUFHRixDQUFBOztFQUdHLFVBQUE7QUFFSCIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3N5c3RlbS1zZXR0aW5ncy9jb21wYW55LXNldHVwL2hvbWUtcGFnZS9ob21lLXBhZ2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXJ7YmFja2dyb3VuZDojZmZmO2JvcmRlci1jb2xvcjojYjNiM2IzICNjY2MgI2Q5ZDlkOX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzpub25lfS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3d7dG9wOi0ycHg7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICM5OTk7Ym9yZGVyLXdpZHRoOjAgNXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLWFycm93OmhvdmVye2JvcmRlci1jb2xvcjp0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjMzMzfS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZC5uZy1zZWxlY3QtYm90dG9tPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjA7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czowfS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZC5uZy1zZWxlY3QtdG9wPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjA7Ym9yZGVyLXRvcC1sZWZ0LXJhZGl1czowfS5uZy1zZWxlY3Qubmctc2VsZWN0LWZvY3VzZWQ6bm90KC5uZy1zZWxlY3Qtb3BlbmVkKT4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItY29sb3I6IzAwN2VmZjtib3gtc2hhZG93Omluc2V0IDAgMXB4IDFweCByZ2JhKDAsMCwwLDAuMDc1KSwwIDAgMCAzcHggcmdiYSgwLDEyNiwyNTUsMC4xKX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjl9Lm5nLXNlbGVjdCAubmctaGFzLXZhbHVlIC5uZy1wbGFjZWhvbGRlcntkaXNwbGF5Om5vbmV9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lcntjb2xvcjojMzMzO2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXItcmFkaXVzOjRweDtib3JkZXI6MXB4IHNvbGlkICNjY2M7bWluLWhlaWdodDozNnB4O2FsaWduLWl0ZW1zOmNlbnRlcn0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyOmhvdmVye2JveC1zaGFkb3c6MCAxcHggMCByZ2JhKDAsMCwwLDAuMDYpfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcnthbGlnbi1pdGVtczpjZW50ZXI7cGFkZGluZy1sZWZ0OjEwcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDoxMHB4O3BhZGRpbmctbGVmdDowfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7Y29sb3I6Izk5OX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXJ7aGVpZ2h0OjM2cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3RvcDo1cHg7bGVmdDowO3BhZGRpbmctbGVmdDoxMHB4O3BhZGRpbmctcmlnaHQ6NTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjUwcHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOTtib3JkZXI6MXB4IHNvbGlkICNlNmU2ZTZ9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nOjAgNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy10b3A6NXB4O3BhZGRpbmctbGVmdDo3cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctcmlnaHQ6N3B4O3BhZGRpbmctbGVmdDowfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle2ZvbnQtc2l6ZTouOWVtO21hcmdpbi1ib3R0b206NXB4O2JhY2tncm91bmQtY29sb3I6I2ViZjVmZjtib3JkZXItcmFkaXVzOjJweDttYXJnaW4tcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7bWFyZ2luLXJpZ2h0OjA7bWFyZ2luLWxlZnQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVke2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZCAubmctdmFsdWUtbGFiZWx7cGFkZGluZy1sZWZ0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6MDtwYWRkaW5nLXJpZ2h0OjVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtbGFiZWx7ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29ue2Rpc3BsYXk6aW5saW5lLWJsb2NrO3BhZGRpbmc6MXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbjpob3ZlcntiYWNrZ3JvdW5kLWNvbG9yOiNkMWU4ZmZ9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ubGVmdHtib3JkZXItcmlnaHQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1sZWZ0OjFweCBzb2xpZCAjYjhkYmZmO2JvcmRlci1yaWdodDpub25lfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLnJpZ2h0e2JvcmRlci1sZWZ0OjFweCBzb2xpZCAjYjhkYmZmfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MDtib3JkZXItcmlnaHQ6MXB4IHNvbGlkICNiOGRiZmZ9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDAgM3B4IDNweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmc6MCAzcHggM3B4IDB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7dG9wOjVweDtwYWRkaW5nLWJvdHRvbTo1cHg7cGFkZGluZy1sZWZ0OjNweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye3BhZGRpbmctcmlnaHQ6M3B4O3BhZGRpbmctbGVmdDowfS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXJ7Y29sb3I6Izk5OX0ubmctc2VsZWN0IC5uZy1jbGVhci13cmFwcGVyOmhvdmVyIC5uZy1jbGVhcntjb2xvcjojRDAwMjFCfS5uZy1zZWxlY3QgLm5nLXNwaW5uZXItem9uZXtwYWRkaW5nOjVweCA1cHggMCAwfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDAgMCA1cHh9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcnt3aWR0aDoyNXB4O3BhZGRpbmctcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcntwYWRkaW5nLWxlZnQ6NXB4O3BhZGRpbmctcmlnaHQ6MH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyOmhvdmVyIC5uZy1hcnJvd3tib3JkZXItdG9wLWNvbG9yOiM2NjZ9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlciAubmctYXJyb3d7Ym9yZGVyLWNvbG9yOiM5OTkgdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQ7Ym9yZGVyLXN0eWxlOnNvbGlkO2JvcmRlci13aWR0aDo1cHggNXB4IDIuNXB4fS5uZy1kcm9wZG93bi1wYW5lbHtiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Ym9yZGVyOjFweCBzb2xpZCAjY2NjO2JveC1zaGFkb3c6MCAxcHggMCByZ2JhKDAsMCwwLDAuMDYpO2xlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwubmctc2VsZWN0LWJvdHRvbXt0b3A6MTAwJTtib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czo0cHg7Ym9yZGVyLXRvcC1jb2xvcjojZTZlNmU2O21hcmdpbi10b3A6LTFweH0ubmctZHJvcGRvd24tcGFuZWwubmctc2VsZWN0LWJvdHRvbSAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbjpsYXN0LWNoaWxke2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwubmctc2VsZWN0LXRvcHtib3R0b206MTAwJTtib3JkZXItdG9wLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLXRvcC1sZWZ0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1jb2xvcjojZTZlNmU2O21hcmdpbi1ib3R0b206LTFweH0ubmctZHJvcGRvd24tcGFuZWwubmctc2VsZWN0LXRvcCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbjpmaXJzdC1jaGlsZHtib3JkZXItdG9wLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLXRvcC1sZWZ0LXJhZGl1czo0cHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1oZWFkZXJ7Ym9yZGVyLWJvdHRvbToxcHggc29saWQgI2NjYztwYWRkaW5nOjVweCA3cHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1mb290ZXJ7Ym9yZGVyLXRvcDoxcHggc29saWQgI2NjYztwYWRkaW5nOjVweCA3cHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXB7dXNlci1zZWxlY3Q6bm9uZTtwYWRkaW5nOjhweCAxMHB4O2ZvbnQtd2VpZ2h0OjUwMDtjb2xvcjpyZ2JhKDAsMCwwLDAuNTQpO2N1cnNvcjpwb2ludGVyfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1kaXNhYmxlZHtjdXJzb3I6ZGVmYXVsdH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2Y1ZmFmZn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2ZvbnQtd2VpZ2h0OjYwMH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb257YmFja2dyb3VuZC1jb2xvcjojZmZmO2NvbG9yOnJnYmEoMCwwLDAsMC44Nyk7cGFkZGluZzo4cHggMTBweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtjb2xvcjojMzMzO2JhY2tncm91bmQtY29sb3I6I2ViZjVmZn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkIC5uZy1vcHRpb24tbGFiZWwsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2VkIC5uZy1vcHRpb24tbGFiZWx7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2Y1ZmFmZjtjb2xvcjojMzMzfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tZGlzYWJsZWR7Y29sb3I6I2NjY30ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctbGVmdDoyMnB4fVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1jaGlsZHtwYWRkaW5nLXJpZ2h0OjIycHg7cGFkZGluZy1sZWZ0OjB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uIC5uZy10YWctbGFiZWx7Zm9udC1zaXplOjgwJTtmb250LXdlaWdodDo0MDA7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4O3BhZGRpbmctcmlnaHQ6MH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbHtkaXJlY3Rpb246cnRsO3RleHQtYWxpZ246cmlnaHR9XG4iLCJAaW1wb3J0IFwifkBuZy1zZWxlY3Qvbmctc2VsZWN0L3RoZW1lcy9kZWZhdWx0LnRoZW1lLmNzc1wiO1xuXG4udGV4dC1pdGVtcyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGZvbnQtc2l6ZTogMTNweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgbGluZS1oZWlnaHQ6IDI7XG4gIC8qIG1hcmdpbi1yaWdodDogMnB4OyAqL1xuICBjb2xvcjogd2hpdGU7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmU7XG4gIGJvcmRlci1yYWRpdXM6IDAuMjVlbTtcbiAgcGFkZGluZzogMC4yZW0gMC42ZW0gMC4zZW07XG4gIG1hcmdpbjogNXB4IDVweDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBwYWRkaW5nLXJpZ2h0OiAzM3B4O1xufVxudWwge1xuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG59XG4ucGFyZW50IHtcbiAgZGlzcGxheTogZ3JpZDtcbiAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiByZXBlYXQoNCwgMWZyKTtcbiAgZ3JpZC1jb2x1bW4tZ2FwOiAxMHB4O1xuICBncmlkLXJvdy1nYXA6IDEwcHg7XG59XG4uY2hpbGQge1xuICBoZWlnaHQ6IDIwcHg7XG59XG5cbi51cGRhdGUtYnV0dG9uIHtcbiAgd2lkdGg6IDEwMHB4O1xufVxuXG4uY2FyZC1ib2R5LWlubGluZSB7XG4gIHBhZGRpbmc6IDEwcHg7XG4gIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xufVxuXG4uanVzdGlmeS1jb250ZW50LVNCIHtcbiAgd2lkdGg6IDEwMCU7XG4gIGRpc3BsYXk6IGZsZXg7XG59XG5cbi5ub3RpZi1yZW1pbmRlciB7XG4gIGNvbG9yOiAjYTUxZjM4O1xuICBmb250LXdlaWdodDogNTAwO1xuICB0ZXh0LWFsaWduOiBsZWZ0O1xuICBtYXJnaW4tdG9wOiAyMHB4O1xuICBtYXJnaW4tYm90dG9tOiAyMHB4O1xuICBtYXJnaW4tbGVmdDogMTVweDtcbn1cblxuLmJhbm5lci1pbWFnZSB7XG4gIGhlaWdodDogMTQwcHg7XG4gIHdpZHRoOiAyMDBweDtcbn1cblxuLyogSGlkZSBkZWZhdWx0IGNyb3NzICovXG4ubmctc2VsZWN0LmN1c3RvbSAubmctY2xlYXItd3JhcHBlciAubmctY2xlYXIge1xuICBmb250LXNpemU6IDA7XG59XG5cbi8qIERpc3BsYXkgb3VyIGltYWdlICovXG4ubmctc2VsZWN0LmN1c3RvbSAubmctY2xlYXItd3JhcHBlciAubmctY2xlYXI6OmJlZm9yZSB7XG4gIGNvbnRlbnQ6IFwiXCI7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgd2lkdGg6IDE1cHg7XG4gIGhlaWdodDogMTVweDtcbn1cblxuOjpuZy1kZWVwIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tbWFya2VkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzIxOTZmMyAhaW1wb3J0YW50O1xuICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cblxuaW5wdXRbdHlwZT1udW1iZXJdOjotd2Via2l0LWlubmVyLXNwaW4tYnV0dG9uLCBcbmlucHV0W3R5cGU9bnVtYmVyXTo6LXdlYmtpdC1vdXRlci1zcGluLWJ1dHRvbiB7ICBcblxuICAgb3BhY2l0eTogMTtcblxufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HomePageComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-home-page',
templateUrl: './home-page.component.html',
styleUrls: ['./home-page.component.scss']
}]
}], function () { return [{ type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_7__["CompanySetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_9__["GamificationService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__["CustomFieldService"] }]; }, { ngSelectComponent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: [_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_3__["NgSelectComponent"]]
}] }); })();
/***/ }),
/***/ "IrbV":
/*!******************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/manage-shift/manage-overview/manage-overview.component.ts ***!
\******************************************************************************************************************/
/*! exports provided: ManageOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageOverviewComponent", function() { return ManageOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ng2-charts */ "LPYB");
const _c0 = function () { return { "border-radius": "6px", height: "300px", width: "45px", margin: "10px", display: "block" }; };
const _c1 = function () { return { "border-radius": "6px", height: "500px", width: "45px", margin: "10px", display: "block" }; };
const _c2 = function () { return { "border-radius": "6px", height: "400px", width: "45px", margin: "10px", display: "block" }; };
const _c3 = function () { return { "border-radius": "6px", height: "450px", width: "45px", margin: "10px", display: "block" }; };
const _c4 = function () { return { "border-radius": "6px", height: "330px", width: "45px", margin: "10px", display: "block" }; };
const _c5 = function () { return { "border-radius": "6px", height: "280px", width: "45px", margin: "10px", display: "block" }; };
function ManageOverviewComponent_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](7, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](8, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](9, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](10, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](11, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](12, _c4));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](13, _c5));
} }
function ManageOverviewComponent_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("chartType", "bar")("datasets", ctx_r1.hrAndShiftChartData)("labels", ctx_r1.hrAndShiftChartLabels)("options", ctx_r1.hrAndShiftChartoptions)("legend", false)("colors", ctx_r1.hrAndShiftChartColors);
} }
function ManageOverviewComponent_button_23_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageOverviewComponent_button_23_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const i_r5 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.dayViewGraph(i_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r5 = ctx.$implicit;
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("bg-theme", i_r5 === ctx_r2.selectedDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r5.d, " ");
} }
const _c6 = function () { return { "border-radius": "6px", height: "2px", margin: "100px 0", display: "block" }; };
function ManageOverviewComponent_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ngx-skeleton-loader", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c6));
} }
function ManageOverviewComponent_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("chartType", "line")("datasets", ctx_r4.dayChartData)("labels", ctx_r4.yAxesLabel)("options", ctx_r4.dayChartOptions)("colors", ctx_r4.dayChartColorOption)("legend", true);
} }
class ManageOverviewComponent {
constructor(planShift) {
this.planShift = planShift;
this.isHour = true;
this.weekCount = 0;
this.rawGraph = [];
this.graphNeed = [];
this.graphNeedAssign = [];
this.graphBooked = [];
this.graphHrNeedAssign = [];
this.graphHrNeed = [];
this.graphHrBooked = [];
this.graphLoader = true;
this.time = [];
this.bookShiftArr = [];
this.openShiftArr = [];
this.assignShiftArr = [];
this.index = 2;
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__["getGmtOffSet"])();
this.dayArr = [
{ count: 0, d: 'M', day: 'monday' },
{ count: 1, d: 'T', day: 'tuesday' },
{ count: 2, d: 'W', day: 'wednesday' },
{ count: 3, d: 'T', day: 'thursday' },
{ count: 4, d: 'F', day: 'friday' },
{ count: 5, d: 'S', day: 'saturday' },
{ count: 6, d: 'S', day: 'sunday' },
];
this.hrAndShiftChartoptions = {
responsive: true,
scales: {
xAxes: [
{
maxBarThickness: 40,
gridLines: {
display: false,
},
},
],
},
};
this.hrAndShiftChartLabels = [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday',
];
// CHART COLOR.
this.hrAndShiftChartColors = [
{ backgroundColor: '#0000FF' },
{ backgroundColor: '#a42138' },
{ backgroundColor: '#6BB11E' },
];
this.dayChartData = [
{
label: 'Booked Open Shift',
data: this.bookShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'star',
},
{
label: 'Planned Open Shift',
data: this.openShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'rect',
},
{
label: 'Assign Shift',
data: this.assignShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'circle',
},
];
this.dayChartOptions = {
responsive: true,
borderColor: 'blue',
scales: {
xAxes: [
{
ticks: {
callback: function (value, index, values) {
return index % 4 == 0 ? value : '';
},
color: 'red',
maxRotation: 0,
},
gridLines: {
display: false,
},
},
],
yAxes: [
{
gridLines: {
borderDash: [4, 4],
},
},
],
},
};
this.dayChartColorOption = [
{ borderColor: '#6BB11E', backgroundColor: '#6BB11E' },
{ borderColor: '#a42138', backgroundColor: '#a42138' },
{ borderColor: '#0000FF', backgroundColor: '#0000FF' },
];
}
ngOnInit() {
}
ngOnChanges() {
// if (this.refresh != 0) {
// this.getShiftRead();
// this.selectTime();
// }
this.shiftRead = this.shiftGraph;
this.getGraphData();
this.dayViewGraph(this.dayArr[0]);
this.selectTime();
this.graphLoader = false;
}
getGraphData() {
this.graphNeed = [];
this.graphNeedAssign = [];
this.graphBooked = [];
this.graphHrNeed = [];
this.graphHrNeedAssign = [];
this.graphHrBooked = [];
this.rawGraph = this.shiftRead['graphDataWeb'];
const weekdays = [];
moment__WEBPACK_IMPORTED_MODULE_1__["updateLocale"]('en', {
week: {
dow: 1,
},
});
for (var i = 0; i < 7; i++) {
weekdays.push(moment__WEBPACK_IMPORTED_MODULE_1__(this.startDate).weekday(i).format('DD-MM-YYYY'));
}
const graphRawData = Object.keys(this.rawGraph).reverse();
for (let prop in weekdays) {
if (graphRawData.includes(weekdays[prop])) {
this.graphNeed.push(this.rawGraph[weekdays[prop]]['numberOfShifts'].need);
this.graphNeedAssign.push(this.rawGraph[weekdays[prop]]['numberOfShifts'].needAssign);
this.graphBooked.push(this.rawGraph[weekdays[prop]]['numberOfShifts'].booked);
this.graphHrNeed.push(this.rawGraph[weekdays[prop]]['totalHours'].need);
this.graphHrNeedAssign.push(this.rawGraph[weekdays[prop]]['totalHours'].needAssign);
this.graphHrBooked.push(this.rawGraph[weekdays[prop]]['totalHours'].booked);
}
else {
this.graphNeed.push(0);
this.graphNeedAssign.push(0);
this.graphBooked.push(0);
this.graphHrNeed.push(0);
this.graphHrNeedAssign.push(0);
this.graphHrBooked.push(0);
}
}
this.changeHrAndNumber(true);
}
changeHrAndNumber(value) {
this.isHour = value;
if (value === true) {
this.hrAndShiftChartData = [
{
data: this.graphHrNeedAssign,
},
{
data: this.graphHrNeed,
},
{
data: this.graphHrBooked,
},
];
this.index = 2;
}
else {
this.hrAndShiftChartData = [
{
data: this.graphNeedAssign,
},
{
data: this.graphNeed,
},
{
data: this.graphBooked,
},
];
this.index = 1;
}
this.dayViewGraph(this.dayArr[0]);
}
selectTime() {
this.time = [];
for (let hour = 0; hour < 24; hour++) {
this.time.push(moment__WEBPACK_IMPORTED_MODULE_1__({ hour }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_1__({ hour, minute: 30 }).format('HH:mm'));
}
}
// Day View Chart
dayViewGraph(i) {
this.bookShiftArr = [];
this.openShiftArr = [];
this.assignShiftArr = [];
this.yAxesLabel = [];
this.selectedDay = i;
const weeklyStaffGraphData = this.shiftRead['weeklyStaffGraphData'];
const bookShift = weeklyStaffGraphData.staffAppliedData[i.day];
for (let i in bookShift) {
this.bookShiftArr.push(bookShift[i][this.index]);
this.yAxesLabel.push(moment__WEBPACK_IMPORTED_MODULE_1__(bookShift[i][0]).format('HH:mm'));
}
const openShift = weeklyStaffGraphData.staffNeedData[i.day];
for (let i in openShift) {
this.openShiftArr.push(openShift[i][this.index]);
}
const assignShift = weeklyStaffGraphData.staffNeedDataAssing[i.day];
for (let i in assignShift) {
this.assignShiftArr.push(assignShift[i][this.index]);
}
this.dayChartData = [
{
label: 'Booked Open Shift',
data: this.bookShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'star',
},
{
label: 'Planned Open Shift',
data: this.openShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'rect',
},
{
label: 'Assign Shift',
data: this.assignShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'circle',
},
];
}
}
ManageOverviewComponent.ɵfac = function ManageOverviewComponent_Factory(t) { return new (t || ManageOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_3__["ShiftSchedulerService"])); };
ManageOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageOverviewComponent, selectors: [["app-manage-overview"]], inputs: { bu: "bu", startDate: "startDate", shiftGraph: "shiftGraph", refresh: "refresh" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 26, vars: 9, consts: [[1, "card", "mb-3"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body"], [1, "col-md-12", "flexDisplay"], [1, "red", "font-weight-500"], [1, "floatButtons"], ["type", "button", 1, "btn", 3, "ngClass", "click"], ["type", "button", 1, "btn", "ml-2", 3, "ngClass", "click"], ["class", "d-flex align-items-baseline justify-content-between", 4, "ngIf"], ["class", "hrAndShiftChart", 4, "ngIf"], [1, "card"], [1, "card-header", "flexi-header", "header"], [1, "col-md-12", "mb-2", "p-0"], ["class", "dayButton", 3, "bg-theme", "click", 4, "ngFor", "ngForOf"], ["class", "dayChart", 4, "ngIf"], [1, "d-flex", "align-items-baseline", "justify-content-between"], ["count", "1", 3, "theme"], [1, "hrAndShiftChart"], ["baseChart", "", 3, "chartType", "datasets", "labels", "options", "legend", "colors"], [1, "dayButton", 3, "click"], [1, "dayChart"], ["count", "5", 3, "theme"], ["baseChart", "", 3, "chartType", "datasets", "labels", "options", "colors", "legend"]], template: function ManageOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "PLANNED SHIFTS OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageOverviewComponent_Template_button_click_11_listener() { return ctx.changeHrAndNumber(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Total Shift Hrs ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageOverviewComponent_Template_button_click_13_listener() { return ctx.changeHrAndNumber(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, " Total Number of Shifts ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ManageOverviewComponent_div_15_Template, 8, 14, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ManageOverviewComponent_div_16_Template, 2, 6, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "CHOOSE FOR DAY VIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, ManageOverviewComponent_button_23_Template, 2, 3, "button", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, ManageOverviewComponent_div_24_Template, 2, 2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ManageOverviewComponent_div_25_Template, 2, 6, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.bu == null ? null : ctx.bu.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.isHour ? "Hours" : "Shifts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isHour ? "bg-theme" : "btn-outline-info");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isHour ? "btn-outline-info" : "bg-theme");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.hrAndShiftChartData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hrAndShiftChartData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.dayArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.graphLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.dayChartData);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_5__["NgxSkeletonLoaderComponent"], ng2_charts__WEBPACK_IMPORTED_MODULE_6__["BaseChartDirective"]], styles: [".btn-default[_ngcontent-%COMP%] {\n border-color: #adadad;\n border-radius: 4px;\n margin-left: 0.25rem;\n}\n\n.floatButtons[_ngcontent-%COMP%] {\n float: right;\n}\n\n.red[_ngcontent-%COMP%] {\n border-color: #a42138;\n color: #a42138;\n}\n\n.flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-left: 10px;\n font-weight: 500;\n color: #a42138;\n border: 1px solid #ccc;\n background-color: white;\n transition: all 0.2s;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover, .dayButton[_ngcontent-%COMP%]:focus {\n outline: none;\n background-color: #a42138;\n color: white !important;\n}\n\n.dayButton.bg-theme[_ngcontent-%COMP%] {\n border: 1px solid #a42138;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.weekbtn[_ngcontent-%COMP%] {\n width: 36px;\n border: 1px solid #ccc;\n border-radius: 4px;\n height: 36px;\n text-align: center;\n float: left;\n background: #faacac;\n padding: 5px;\n color: #a42138;\n cursor: pointer;\n transition: all 0.3s;\n}\n\n.weekbtn[_ngcontent-%COMP%]:hover {\n border: 1px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNoaWZ0L21hbmFnZS1vdmVydmlldy9tYW5hZ2Utb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0Esb0JBQUE7QUFDRjs7QUFFQTtFQUNFLFlBQUE7QUFDRjs7QUFFQTtFQUNFLHFCQUFBO0VBQ0EsY0FBQTtBQUNGOztBQUVBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxjQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHVCQUFBO0VBQ0Esb0JBQUE7QUFDRjs7QUFDRTtFQUVFLGFBQUE7RUFDQSx5QkFBQTtFQUNBLHVCQUFBO0FBQUo7O0FBR0U7RUFDRSx5QkFBQTtBQURKOztBQUtBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0FBRkY7O0FBS0E7RUFDRSxXQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0FBRkY7O0FBSUU7RUFDRSx5QkFBQTtBQUZKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNoaWZ0L21hbmFnZS1vdmVydmlldy9tYW5hZ2Utb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYnRuLWRlZmF1bHQge1xuICBib3JkZXItY29sb3I6ICNhZGFkYWQ7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgbWFyZ2luLWxlZnQ6IDAuMjVyZW07XG59XG5cbi5mbG9hdEJ1dHRvbnMge1xuICBmbG9hdDogcmlnaHQ7XG59XG5cbi5yZWQge1xuICBib3JkZXItY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjYTQyMTM4O1xufVxuXG4uZmxleERpc3BsYXkge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5kYXlCdXR0b24ge1xuICBoZWlnaHQ6IDIuNXJlbTtcbiAgd2lkdGg6IDIuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBtYXJnaW4tbGVmdDogMTBweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICB0cmFuc2l0aW9uOiBhbGwgMC4ycztcblxuICAmOmhvdmVyLFxuICAmOmZvY3VzIHtcbiAgICBvdXRsaW5lOiBub25lO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gICAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG4gIH1cblxuICAmLmJnLXRoZW1lIHtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjYTQyMTM4O1xuICB9XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuXG4ud2Vla2J0biB7XG4gIHdpZHRoOiAzNnB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGhlaWdodDogMzZweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBmbG9hdDogbGVmdDtcbiAgYmFja2dyb3VuZDogI2ZhYWNhYztcbiAgcGFkZGluZzogNXB4O1xuICBjb2xvcjogI2E0MjEzODtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICB0cmFuc2l0aW9uOiBhbGwgMC4zcztcblxuICAmOmhvdmVyIHtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjYTQyMTM4O1xuICB9XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-manage-overview',
templateUrl: './manage-overview.component.html',
styleUrls: ['./manage-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_3__["ShiftSchedulerService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], startDate: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], shiftGraph: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], refresh: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "JedV":
/*!********************************************************************************!*\
!*** ./src/app/users/pages/communication/board-setup/board-setup.component.ts ***!
\********************************************************************************/
/*! exports provided: BoardSetupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BoardSetupComponent", function() { return BoardSetupComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _boards_overview_boards_overview_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./boards-overview/boards-overview.component */ "ht3V");
/* harmony import */ var _boards_overview_view_board_view_board_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./boards-overview/view-board/view-board.component */ "UOI9");
/* harmony import */ var _create_edit_boards_create_edit_boards_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./create-edit-boards/create-edit-boards.component */ "w62q");
/* harmony import */ var _emoji_component_emoji_component_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./emoji-component/emoji-component.component */ "iGbY");
/* harmony import */ var _reported_posts_reported_posts_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./reported-posts/reported-posts.component */ "Fc54");
/* harmony import */ var _reported_comments_reported_comments_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./reported-comments/reported-comments.component */ "+TV4");
/* harmony import */ var _questionnaire_questionnaire_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./questionnaire/questionnaire.component */ "+VIy");
function BoardSetupComponent_ng_template_6_boards_overview_0_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "boards-overview", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ViewEvent", function BoardSetupComponent_ng_template_6_boards_overview_0_Template_boards_overview_ViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.boardView($event); })("EditEvent", function BoardSetupComponent_ng_template_6_boards_overview_0_Template_boards_overview_EditEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r12.boardEdit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BoardSetupComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, BoardSetupComponent_ng_template_6_boards_overview_0_Template, 1, 0, "boards-overview", 9);
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r1.isBoardView);
} }
function BoardSetupComponent_a_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "VIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BoardSetupComponent_ng_template_9_boards_overview_0_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "boards-overview", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ViewEvent", function BoardSetupComponent_ng_template_9_boards_overview_0_Template_boards_overview_ViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r15.boardView($event); })("EditEvent", function BoardSetupComponent_ng_template_9_boards_overview_0_Template_boards_overview_EditEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r17.boardEdit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BoardSetupComponent_ng_template_9_view_board_1_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "view-board", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function BoardSetupComponent_ng_template_9_view_board_1_Template_view_board_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r18.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("boardId", ctx_r14.boardViewId);
} }
function BoardSetupComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, BoardSetupComponent_ng_template_9_boards_overview_0_Template, 1, 0, "boards-overview", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, BoardSetupComponent_ng_template_9_view_board_1_Template, 1, 1, "view-board", 11);
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r3.isBoardView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.isBoardView);
} }
function BoardSetupComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-create-edit-boards", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function BoardSetupComponent_ng_template_13_Template_app_create_edit_boards_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("boardId", ctx_r4.boardId);
} }
function BoardSetupComponent_ng_template_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-emoji-component");
} }
function BoardSetupComponent_ng_template_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-reported-posts");
} }
function BoardSetupComponent_ng_template_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-reported-comments");
} }
function BoardSetupComponent_ng_template_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-questionnaire");
} }
class BoardSetupComponent {
constructor() {
this.isBoardEdited = false;
this.isBoardView = false;
this.activeId = 1;
}
ngOnInit() {
}
overViewEvent(value) {
this.isBoardEdited = false;
this.isBoardView = false;
this.boardId = null;
this.activeId = 1;
}
hideViewTab() {
this.isBoardView = false;
}
boardEdit(id) {
this.activeId = 3;
this.isBoardEdited = true;
this.boardId = id;
}
boardView(id) {
this.activeId = 2;
this.isBoardView = true;
this.boardViewId = id;
}
}
BoardSetupComponent.ɵfac = function BoardSetupComponent_Factory(t) { return new (t || BoardSetupComponent)(); };
BoardSetupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: BoardSetupComponent, selectors: [["app-board-setup"]], decls: 31, vars: 11, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], ["ngbNavLink", "", 4, "ngIf"], ["ngbNavLink", ""], [3, "ngbNavOutlet"], [3, "ViewEvent", "EditEvent", 4, "ngIf"], [3, "ViewEvent", "EditEvent"], [3, "boardId", "overViewEvent", 4, "ngIf"], [3, "boardId", "overViewEvent"]], template: function BoardSetupComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function BoardSetupComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BoardSetupComponent_Template_a_click_4_listener($event) { return ctx.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, BoardSetupComponent_ng_template_6_Template, 1, 1, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, BoardSetupComponent_a_8_Template, 2, 0, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, BoardSetupComponent_ng_template_9_Template, 2, 2, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "a", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, BoardSetupComponent_ng_template_13_Template, 1, 1, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BoardSetupComponent_Template_a_click_15_listener() { return ctx.hideViewTab(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "EMOJI'S");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, BoardSetupComponent_ng_template_17_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BoardSetupComponent_Template_a_click_19_listener() { return ctx.hideViewTab(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "REPORTED POSTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, BoardSetupComponent_ng_template_21_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BoardSetupComponent_Template_a_click_23_listener() { return ctx.hideViewTab(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "REPORTED COMMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, BoardSetupComponent_ng_template_25_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BoardSetupComponent_Template_a_click_27_listener() { return ctx.hideViewTab(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "QUESTIONNAIRE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, BoardSetupComponent_ng_template_29_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isBoardView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.isBoardEdited ? "EDIT" : "CREATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _boards_overview_boards_overview_component__WEBPACK_IMPORTED_MODULE_3__["BoardsOverviewComponent"], _boards_overview_view_board_view_board_component__WEBPACK_IMPORTED_MODULE_4__["ViewBoardComponent"], _create_edit_boards_create_edit_boards_component__WEBPACK_IMPORTED_MODULE_5__["CreateEditBoardsComponent"], _emoji_component_emoji_component_component__WEBPACK_IMPORTED_MODULE_6__["EmojiComponentComponent"], _reported_posts_reported_posts_component__WEBPACK_IMPORTED_MODULE_7__["ReportedPostsComponent"], _reported_comments_reported_comments_component__WEBPACK_IMPORTED_MODULE_8__["ReportedCommentsComponent"], _questionnaire_questionnaire_component__WEBPACK_IMPORTED_MODULE_9__["QuestionnaireComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ib2FyZC1zZXR1cC9ib2FyZC1zZXR1cC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHNCQUFBO0FBQ0Y7QUFBRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUVKO0FBQUk7RUFDRSxjQUFBO0FBRU47QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vYm9hcmQtc2V0dXAvYm9hcmQtc2V0dXAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2LXRhYnMge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAubmF2LWxpbmsge1xuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIHBhZGRpbmc6IDEycHggMjBweDtcbiAgICB0cmFuc2l0aW9uOiBjb2xvciAwLjJzO1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIH1cblxuICAgICYuYWN0aXZlIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgI2E0MjEzODtcbiAgICAgIGJvcmRlci1ib3R0b206IDNweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BoardSetupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-board-setup',
templateUrl: './board-setup.component.html',
styleUrls: ['./board-setup.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "Jev5":
/*!**********************************************************************************!*\
!*** ./src/app/users/pages/admin/users/ops-group/ops-edit/ops-edit.component.ts ***!
\**********************************************************************************/
/*! exports provided: OpsEditComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpsEditComponent", function() { return OpsEditComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/ops-group/ops-group.service */ "NV6M");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! angular2-multiselect-dropdown */ "e/mZ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
function OpsEditComponent_ng_template_5_ng_template_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r4.selectedBuShift == null ? null : ctx_r4.selectedBuShift.length, " selected ");
} }
function OpsEditComponent_ng_template_5_div_17_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_5_div_17_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const field_r10 = ctx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r12.deleteSourceBU(field_r10._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r10 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", field_r10.orgName, " ");
} }
function OpsEditComponent_ng_template_5_ng_template_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r6.selectedAdmin == null ? null : ctx_r6.selectedAdmin.length, " selected ");
} }
function OpsEditComponent_ng_template_5_div_24_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_5_div_24_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const field_r15 = ctx.$implicit; const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r17.deleteAdmin(field_r15._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r15 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", field_r15.name, " ");
} }
function OpsEditComponent_ng_template_5_div_34_div_1_button_7_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_5_div_34_div_1_button_7_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const i_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r24.enableInput(i_r21); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Edit Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OpsEditComponent_ng_template_5_div_34_div_1_button_8_Template(rf, ctx) { if (rf & 1) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_5_div_34_div_1_button_8_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r29); const i_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r27.addTeambutton(i_r21); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Update Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OpsEditComponent_ng_template_5_div_34_div_1_Template(rf, ctx) { if (rf & 1) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Team name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_5_div_34_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const team_r20 = ctx.$implicit; const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r30.removeTeambutton(team_r20); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Remove Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, OpsEditComponent_ng_template_5_div_34_div_1_button_7_Template, 2, 0, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, OpsEditComponent_ng_template_5_div_34_div_1_button_8_Template, 2, 0, "button", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r20 = ctx.$implicit;
const i_r21 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", "teamIdName" + i_r21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("value", team_r20.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", team_r20.isInputDisabled);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", i_r21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", team_r20.isInputDisabled);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !team_r20.isInputDisabled);
} }
function OpsEditComponent_ng_template_5_div_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OpsEditComponent_ng_template_5_div_34_div_1_Template, 9, 6, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r8.teamNameArray);
} }
const _c0 = function () { return { standalone: true }; };
function OpsEditComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "EDIT OPS GROUP DATA");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Ops Group name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Source Bu's ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "angular2-multiselect", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsEditComponent_ng_template_5_Template_angular2_multiselect_ngModelChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r32.selectedBuShift = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "c-badge");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, OpsEditComponent_ng_template_5_ng_template_15_Template, 1, 1, "ng-template");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, OpsEditComponent_ng_template_5_div_17_Template, 5, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Adminstration ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "angular2-multiselect", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsEditComponent_ng_template_5_Template_angular2_multiselect_ngModelChange_21_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r34.selectedAdmin = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "c-badge");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, OpsEditComponent_ng_template_5_ng_template_23_Template, 1, 1, "ng-template");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, OpsEditComponent_ng_template_5_div_24_Template, 5, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "Number of Teams ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ng-select", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsEditComponent_ng_template_5_Template_ng_select_ngModelChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r35.teamCountInt = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_5_Template_button_click_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r36.addAnotherTeam(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, " Add Another Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](34, OpsEditComponent_ng_template_5_div_34_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](35, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "Swap Setting");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](40, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42, "No swap");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](44, "input", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46, "Swap at Ops Group level");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](48, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, "Swap at Ops Team level");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_5_Template_button_click_52_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r37.changeTabId(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](54, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56, " arrow_forward ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.opsGroupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("data", ctx_r1.buOption)("ngModel", ctx_r1.selectedBuShift)("settings", ctx_r1.dropdownSettingsSourceBU)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](18, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.selectedBuShift);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("data", ctx_r1.shiftSchemeAdmin)("ngModel", ctx_r1.selectedAdmin)("settings", ctx_r1.dropdownSettingsAdmin)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](19, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.selectedAdmin);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r1.teamNo)("multiple", false)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r1.teamCountInt)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](20, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.ifNoTeam);
} }
function OpsEditComponent_ng_template_9_div_10_div_5_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsEditComponent_ng_template_9_div_10_div_5_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r45.selectedTeamIndex = $event; })("change", function OpsEditComponent_ng_template_9_div_10_div_5_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const i_r44 = ctx.index; const team_r43 = ctx.$implicit; const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r47.selectedteam(i_r44, "o", team_r43._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r43 = ctx.$implicit;
const i_r44 = ctx.index;
const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", i_r44)("ngModel", ctx_r42.selectedTeamIndex)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](4, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", team_r43.name, " ");
} }
function OpsEditComponent_ng_template_9_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Ops Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, OpsEditComponent_ng_template_9_div_10_div_5_Template, 4, 5, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r38.teamNameArray);
} }
function OpsEditComponent_ng_template_9_div_26_ng_container_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Selected Source BU's ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} }
function OpsEditComponent_ng_template_9_div_26_ng_container_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Transfer to ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} }
function OpsEditComponent_ng_template_9_div_26_ng_container_5_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const buShift_r53 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", buShift_r53.orgName, " ");
} }
function OpsEditComponent_ng_template_9_div_26_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OpsEditComponent_ng_template_9_div_26_ng_container_5_div_1_Template, 3, 1, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r50.groupBuShift);
} }
function OpsEditComponent_ng_template_9_div_26_ng_container_6_div_1_Template(rf, ctx) { if (rf & 1) {
const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function OpsEditComponent_ng_template_9_div_26_ng_container_6_div_1_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r59); const i_r57 = ctx.index; const team_r56 = ctx.$implicit; const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r58.selectedteam(i_r57, "t", team_r56._id); })("ngModelChange", function OpsEditComponent_ng_template_9_div_26_ng_container_6_div_1_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r59); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r60.selectedTransferTeamIndex = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r56 = ctx.$implicit;
const i_r57 = ctx.index;
const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", i_r57)("ngModel", ctx_r55.selectedTransferTeamIndex)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](4, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", team_r56.name, " ");
} }
function OpsEditComponent_ng_template_9_div_26_ng_container_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OpsEditComponent_ng_template_9_div_26_ng_container_6_div_1_Template, 4, 5, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r51.transferTeamArr);
} }
function OpsEditComponent_ng_template_9_div_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OpsEditComponent_ng_template_9_div_26_ng_container_2_Template, 2, 0, "ng-container", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, OpsEditComponent_ng_template_9_div_26_ng_container_3_Template, 2, 0, "ng-container", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, OpsEditComponent_ng_template_9_div_26_ng_container_5_Template, 2, 1, "ng-container", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, OpsEditComponent_ng_template_9_div_26_ng_container_6_Template, 2, 1, "ng-container", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r39.addFromBu && !ctx_r39.transferFromBu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r39.transferFromBu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r39.transferFromBu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r39.transferFromBu);
} }
function OpsEditComponent_ng_template_9_div_27_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r62 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"]("", item_r62 == null ? null : item_r62.name, " (", item_r62 == null ? null : item_r62.staffId, ")");
} }
function OpsEditComponent_ng_template_9_div_27_Template(rf, ctx) { if (rf & 1) {
const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Add Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsEditComponent_ng_template_9_div_27_Template_ng_select_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r63.staffDetail = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, OpsEditComponent_ng_template_9_div_27_ng_option_5_Template, 2, 3, "ng-option", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_9_div_27_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r65.addStaffUser(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Add Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r40.staffDetail)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](5, _c0))("closeOnSelect", true)("clearable", ctx_r40.staffDetail ? true : false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r40.staffUser);
} }
function OpsEditComponent_ng_template_9_tr_51_button_13_Template(rf, ctx) { if (rf & 1) {
const _r72 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_9_tr_51_button_13_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r72); const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); const staffData_r66 = ctx_r71.$implicit; const i_r67 = ctx_r71.index; const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r70.removeStaffbutton(staffData_r66, i_r67); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const staffData_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("btn-danger", !staffData_r66.removed);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", staffData_r66.removed);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", staffData_r66.removed ? "Removed" : "Remove Staff", " ");
} }
function OpsEditComponent_ng_template_9_tr_51_button_14_Template(rf, ctx) { if (rf & 1) {
const _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_9_tr_51_button_14_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r76); const staffData_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r74.transferUsers(staffData_r66); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Transfer Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OpsEditComponent_ng_template_9_tr_51_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, OpsEditComponent_ng_template_9_tr_51_button_13_Template, 2, 4, "button", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, OpsEditComponent_ng_template_9_tr_51_button_14_Template, 2, 0, "button", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const staffData_r66 = ctx.$implicit;
const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r66.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r66.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r66.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r66.appointmentId == null ? null : staffData_r66.appointmentId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", (staffData_r66.parentBussinessUnitId == null ? null : staffData_r66.parentBussinessUnitId.orgName) ? staffData_r66.parentBussinessUnitId == null ? null : staffData_r66.parentBussinessUnitId.orgName : (staffData_r66 == null ? null : staffData_r66.parentBussinessUnitId == null ? null : staffData_r66.parentBussinessUnitId.sectionId == null ? null : staffData_r66.parentBussinessUnitId.sectionId.departmentId == null ? null : staffData_r66.parentBussinessUnitId.sectionId.departmentId.companyId == null ? null : staffData_r66.parentBussinessUnitId.sectionId.departmentId.companyId.name) + ">" + (staffData_r66 == null ? null : staffData_r66.parentBussinessUnitId == null ? null : staffData_r66.parentBussinessUnitId.sectionId == null ? null : staffData_r66.parentBussinessUnitId.sectionId.departmentId == null ? null : staffData_r66.parentBussinessUnitId.sectionId.departmentId.name) + ">" + (staffData_r66 == null ? null : staffData_r66.parentBussinessUnitId == null ? null : staffData_r66.parentBussinessUnitId.sectionId == null ? null : staffData_r66.parentBussinessUnitId.sectionId.name) + ">" + (staffData_r66 == null ? null : staffData_r66.parentBussinessUnitId == null ? null : staffData_r66.parentBussinessUnitId.name), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r41.removeFromBu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r41.transferFromBu);
} }
function OpsEditComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
const _r78 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "ADD/REMOVE STAFF");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Ops Group ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, OpsEditComponent_ng_template_9_div_10_Template, 6, 1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function OpsEditComponent_ng_template_9_Template_input_change_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r78); const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r77.handleApprove(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, " Add Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function OpsEditComponent_ng_template_9_Template_input_change_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r78); const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r79.handleApprove(2); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, " Remove Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "input", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function OpsEditComponent_ng_template_9_Template_input_change_23_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r78); const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r80.handleApprove(3); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, " Transfer within this ops group ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, OpsEditComponent_ng_template_9_div_26_Template, 7, 4, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, OpsEditComponent_ng_template_9_div_27_Template, 9, 6, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Staff Table");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "table", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, "USER NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "DATE OF JOINNING");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "CONTACT NUMBER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, "APPOINMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](49, "ACTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](51, OpsEditComponent_ng_template_9_tr_51_Template, 15, 7, "tr", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_9_Template_button_click_54_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r78); const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r81.changeTabIdPrevious(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "span", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](58, "Previous");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "button", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_9_Template_button_click_59_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r78); const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r82.changeTabIdNextBTn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](61, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](63, " arrow_forward ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.opsGroupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.ifNoTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.addFromBu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.addFromBu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.staffUserDet);
} }
function OpsEditComponent_ng_template_13_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const buShiftView_r90 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](buShiftView_r90.orgName);
} }
function OpsEditComponent_ng_template_13_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const adminView_r91 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](adminView_r91.name);
} }
function OpsEditComponent_ng_template_13_div_27_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Team name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r93 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("value", team_r93.name);
} }
function OpsEditComponent_ng_template_13_div_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OpsEditComponent_ng_template_13_div_27_div_2_Template, 5, 1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r85 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r85.teamNameArray);
} }
function OpsEditComponent_ng_template_13_div_51_div_5_Template(rf, ctx) { if (rf & 1) {
const _r98 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsEditComponent_ng_template_13_div_51_div_5_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r98); const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r97.selectedTeamIndex = $event; })("change", function OpsEditComponent_ng_template_13_div_51_div_5_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r98); const i_r96 = ctx.index; const team_r95 = ctx.$implicit; const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r99.selectedteam(i_r96, "o", team_r95._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r95 = ctx.$implicit;
const i_r96 = ctx.index;
const ctx_r94 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", i_r96)("ngModel", ctx_r94.selectedTeamIndex)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](4, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](team_r95.name);
} }
function OpsEditComponent_ng_template_13_div_51_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Ops Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, OpsEditComponent_ng_template_13_div_51_div_5_Template, 4, 5, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r86.teamNameArray);
} }
function OpsEditComponent_ng_template_13_tr_74_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const staffData_r100 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r100.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r100.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r100.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r100.appointmentId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", (staffData_r100.parentBussinessUnitId == null ? null : staffData_r100.parentBussinessUnitId.orgName) ? staffData_r100.parentBussinessUnitId == null ? null : staffData_r100.parentBussinessUnitId.orgName : (staffData_r100 == null ? null : staffData_r100.parentBussinessUnitId == null ? null : staffData_r100.parentBussinessUnitId.sectionId == null ? null : staffData_r100.parentBussinessUnitId.sectionId.departmentId == null ? null : staffData_r100.parentBussinessUnitId.sectionId.departmentId.companyId == null ? null : staffData_r100.parentBussinessUnitId.sectionId.departmentId.companyId.name) + ">" + (staffData_r100 == null ? null : staffData_r100.parentBussinessUnitId == null ? null : staffData_r100.parentBussinessUnitId.sectionId == null ? null : staffData_r100.parentBussinessUnitId.sectionId.departmentId == null ? null : staffData_r100.parentBussinessUnitId.sectionId.departmentId.name) + ">" + (staffData_r100 == null ? null : staffData_r100.parentBussinessUnitId == null ? null : staffData_r100.parentBussinessUnitId.sectionId == null ? null : staffData_r100.parentBussinessUnitId.sectionId.name) + ">" + (staffData_r100 == null ? null : staffData_r100.parentBussinessUnitId == null ? null : staffData_r100.parentBussinessUnitId.name), " ");
} }
function OpsEditComponent_ng_template_13_span_85_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " arrow_upward ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OpsEditComponent_ng_template_13_span_86_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span", 103);
} }
function OpsEditComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
const _r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "VIEW DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Ops group name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "input", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Source BU's ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, OpsEditComponent_ng_template_13_div_14_Template, 3, 1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Adminstration ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, OpsEditComponent_ng_template_13_div_19_Template, 3, 1, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](20, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Number of Teams ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "ng-select", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsEditComponent_ng_template_13_Template_ng_select_ngModelChange_26_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r102); const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r101.teamCountInt = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, OpsEditComponent_ng_template_13_div_27_Template, 3, 1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "Swap Setting");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](33, "input", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, "No swap");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](37, "input", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "Swap at Ops Group level");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](41, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "Swap at Ops Team level");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](44, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](49, "Ops Group ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](50, "input", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](51, OpsEditComponent_ng_template_13_div_51_Template, 6, 1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](52, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56, "Staff Table");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "table", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](62, "USER NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](64, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](66, "DATE OF JOINNING");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](68, "CONTACT NUMBER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](70, "APPOINMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](72, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](74, OpsEditComponent_ng_template_13_tr_74_Template, 12, 5, "tr", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_13_Template_button_click_77_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r102); const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r103.changeTabIdPreviouBtn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "span", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](79, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](81, "Previous");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "button", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsEditComponent_ng_template_13_Template_button_click_82_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r102); const ctx_r104 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r104.onEditForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](83, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](84, "Update OPS Group");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](85, OpsEditComponent_ng_template_13_span_85_Template, 2, 0, "span", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](86, OpsEditComponent_ng_template_13_span_86_Template, 1, 0, "span", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r3.opsGroupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.selectedBuShift);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.selectedAdmin);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r3.teamNo)("multiple", false)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r3.teamCountInt)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](16, _c0))("readonly", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r3.ifNoTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r3.ifNoTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.staffUserDet);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r3.updateOpsGrpLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r3.updateOpsGrpLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.updateOpsGrpLoader);
} }
class OpsEditComponent {
constructor(fb, buService, opsGroupService, toastService) {
this.fb = fb;
this.buService = buService;
this.opsGroupService = opsGroupService;
this.toastService = toastService;
this.ChangeTabId = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.activeId = 1;
this.buOption = [];
this.buLoader = false;
this.administrationLoader = false;
this.teamNo = [];
this.selectedAdmin = [];
this.selectedBuShift = [];
this.groupBuShiftId = [];
this.groupAdmintId = [];
this.teamNameArray = [];
this.allUserList = [];
this.shiftSchemeAdmin = [];
this.showRow = false;
this.forUserBuId = [];
this.staffUserId = [];
this.teamOpsobjArr = [];
this.opsNewArray = [];
this.userIdOld = [];
this.addFromBu = false;
this.removeFromBu = false;
this.transferFromBu = false;
this.updateBtn = false;
this.removeTeamUser = [];
this.removeStaffUser = [];
this.userIdForBuRemove = [];
this.disableInput = true;
this.selectedTeamIndex = 0;
this.ifNoTeam = true;
this.renShow = true;
this.removedStaff = [];
this.dropdownSettingsSourceBU = {};
this.dropdownSettingsAdmin = {};
this.staffUserArray = [];
this.dropdownSettingsSourceBU = {
singleSelection: false,
text: 'Enter/Search Business Unit',
selectAllText: 'Select All',
unSelectAllText: 'UnSelect All',
enableSearchFilter: true,
classes: 'myclass custom-class',
labelKey: 'orgName',
primaryKey: '_id',
badgeShowLimit: 1,
// showCheckbox:true,
lazyLoading: true,
noDataLabel: 'No Data Available',
maxHeight: 250
};
this.dropdownSettingsAdmin = {
singleSelection: false,
text: 'Search Administration',
selectAllText: 'Select All',
unSelectAllText: 'UnSelect All',
enableSearchFilter: true,
classes: 'myclass custom-class',
labelKey: 'name',
primaryKey: '_id',
badgeShowLimit: 1,
// showCheckbox:true,
lazyLoading: true,
noDataLabel: 'No Data Available',
maxHeight: 250
};
}
ngOnInit() {
this.opsGroupForm = this.fb.group({
groupname: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
teamName: [[], [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
opsTeamName: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
opsTeamTransfer: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
numberteam: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
swap: ['0', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
opsAction: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
editable: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.getSourceBuList();
this.getAdministrationList();
this.editData();
for (let i = 0; i <= 40; i++) {
this.teamNo.push(i.toString());
}
}
getAdministrationList() {
this.administrationLoader = true;
this.opsGroupService.getOpsGroupAdminList().subscribe((res) => {
this.administrationLoader = false;
this.shiftSchemeAdmin = res['data'];
}, (err) => {
this.administrationLoader = false;
});
}
getSourceBuList() {
this.buLoader = true;
// const { data, ...rest } = this.buParameters;
const buSubscribe = this.buService
.getBusinessUnitBUShift().subscribe((res) => {
var _a;
// if (res.success) {
this.buLoader = false;
this.buOption = ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.planBussinessUnitId) || [];
// } else {
// this.buParameters.data = [];
// }
}, (error) => {
this.buLoader = false;
this.buOption = [];
});
}
editData() {
this.opsGroupService.allPassedData.subscribe((allPassedData) => {
this.selectProducts = allPassedData;
this.selectProducts.forEach((element) => {
this.opsGroupForm.patchValue({
groupname: element.opsGroupName,
swap: element.swopSetup,
numberteam: element.noOfTeam,
});
this.teamCountInt = element === null || element === void 0 ? void 0 : element.noOfTeam;
const transformedBu = element.buId.map((item) => {
return {
_id: item._id,
orgName: (item === null || item === void 0 ? void 0 : item.sectionId.departmentId.companyId.name) + ' > ' + (item === null || item === void 0 ? void 0 : item.sectionId.departmentId.name) +
' > ' + (item === null || item === void 0 ? void 0 : item.sectionId.name) +
'> ' + (item === null || item === void 0 ? void 0 : item.name),
};
});
this.selectedBuShift = transformedBu;
this.selectedOpsId = element === null || element === void 0 ? void 0 : element._id;
this.selectedAdmin = element === null || element === void 0 ? void 0 : element.adminId;
this.teamNameArray = [];
if ((element === null || element === void 0 ? void 0 : element.noOfTeam) > 0) {
this.allUserList = [];
this.ifNoTeam = false;
this.teamNameArray = element === null || element === void 0 ? void 0 : element.opsTeamId.map((item) => {
return Object.assign(Object.assign({}, item), { isInputDisabled: true });
});
}
else {
this.ifNoTeam = true;
this.allUserList = element === null || element === void 0 ? void 0 : element.userId;
this.teamNameArray = element === null || element === void 0 ? void 0 : element.userId.map((item) => {
return {
userId: [Object.assign({}, item)],
isInputDisabled: true,
};
});
}
this.selectedteam(this.selectedTeamIndex, 'o', null);
});
});
}
removeBuId(buitem) {
this.opsGroupdata = this.selectProducts;
this.selectedBuShift = this.selectedBuShift.filter((item) => item._id !== buitem._id);
this.selectProducts.forEach((item) => {
this.opsGroupId = item._id;
item.userId.forEach((element) => {
if (element.parentBussinessUnitId._id === buitem._id) {
this.userIdForBuRemove.push(element._id);
}
});
});
this.removeBuObj = {
buId: buitem._id,
opsGroupId: this.opsGroupId,
userId: this.userIdForBuRemove,
};
this.opsGroupService.removeBu(this.removeBuObj).subscribe((res) => { });
}
removeAdminId(AdminId) {
this.selectedAdmin = this.selectedAdmin.filter((adminitem) => adminitem._id !== AdminId._id);
}
changeTabIdNextBTn() {
this.activeId = 3;
this.checkedBu = this.checkedBuShift;
this.tempstaffUserDet = this.staffUserDet;
const temStaf = this.staffUserDet.filter((val) => {
if (!val.removed) {
return true;
}
});
this.staffUserDet = [...temStaf];
}
changeTabId() {
this.activeId = 2;
this.groupName = this.opsGroupForm.get('groupname').value;
this.groupAdmin = this.selectedAdmin;
this.groupBuShift = this.selectedBuShift;
this.teamName = this.opsGroupForm.get('teamName').value;
this.selectedBuShift.forEach((element) => {
this.groupBuShiftId.push(element._id);
});
this.selectedAdmin.forEach((element) => {
this.groupAdmintId.push(element._id);
});
this.opsGroupForm.patchValue({
opsAction: 1,
});
this.handleApprove(1);
}
changeTabIdPrevious() {
this.activeId = 1;
this.groupBuShiftId = [];
this.groupAdmintId = [];
this.staffUser = this.staffUserArray;
}
changeTabIdPreviouBtn() {
this.activeId = 2;
}
intializeTeamArr(i) {
const defaultObj = {
name: '',
admin: [],
userId: [],
isInputDisabled: false,
};
for (let j = 0; j < i; j++) {
this.teamNameArray.push(defaultObj);
}
}
enableInput(i) {
this.teamNameArray[i].isInputDisabled = false;
}
addAnotherTeam() {
this.ifNoTeam = false;
this.intializeTeamArr(1);
this.teamCountInt = this.teamNameArray.length;
}
selectedteam(i, type, id) {
var _a;
this.staffUserDet = this.teamCountInt === 0 ? this.allUserList : (_a = this.teamNameArray[this.selectedTeamIndex]) === null || _a === void 0 ? void 0 : _a.userId;
if (type === 'o') {
this.sourceTeamId = id;
this.selectedTeamIndex = i;
}
if (type === 't') {
this.destinationTeamId = id;
this.selectedTransferTeamIndex = i;
}
this.transferTeamList();
}
getBuShift(obj) {
this.forUserBuId.push(obj._id);
this.staffObj = {
buId: this.forUserBuId,
};
this.opsGroupService.staffList(this.staffObj).subscribe((res) => {
this.staffUser = res.data;
});
}
handleApprove(i) {
if (i == 1) {
this.addFromBu = true;
this.removeFromBu = false;
this.transferFromBu = false;
const bu = [];
this.groupBuShift.forEach((val) => {
bu.push(val._id);
});
this.staffObj = {
buId: bu,
};
this.staffUserArray = this.staffUser;
this.opsGroupService.staffList(this.staffObj).subscribe((res) => {
var _a;
this.staffUser = res.data;
if (((_a = this.staffUserArray) === null || _a === void 0 ? void 0 : _a.length) > 0) {
this.staffUser = this.staffUserArray;
}
});
}
else if (i == 2) {
this.addFromBu = false;
this.removeFromBu = true;
this.transferFromBu = false;
}
else if (i == 3) {
this.addFromBu = true;
this.removeFromBu = false;
this.transferFromBu = true;
this.transferTeamList();
}
}
transferTeamList() {
this.transferTeamArr = this.teamNameArray.filter((team) => {
if (team.name !== this.teamNameArray[this.selectedTeamIndex].name) {
return team;
}
});
}
transferUsers(user) {
let userIndex;
const userList = this.teamNameArray[this.selectedTeamIndex].userId;
userList.forEach((ele, i) => {
if (ele._id === user._id) {
userIndex = i;
}
});
userList.splice(userIndex, 1);
this.teamNameArray.forEach((team, i) => {
if (team._id === this.destinationTeamId) {
this.teamNameArray[i].userId.push(user);
}
});
}
addStaffUser() {
if (!this.staffDetail || this.staffDetail === '') {
return;
}
this.staffUserId = [];
this.staffUserDet.forEach((element) => {
this.staffUserId.push(element._id);
});
this.teamOpsObj = {
admin: [],
name: this.opsGroupForm.get('opsTeamName').value,
userId: this.staffUserId,
};
this.opsNewArray.push(this.teamOpsObj);
if (this.teamCountInt == 0) {
let lastTeamObjIndex = this.teamNameArray.length - 1;
this.teamNameArray.push({
userId: [this.staffDetail],
isInputDisabled: true,
});
this.staffUserDet.push(this.staffDetail);
}
else {
this.teamNameArray[this.selectedTeamIndex].userId.push(this.staffDetail);
}
const index = this.staffUser.findIndex(id => id._id === this.staffDetail['_id']);
if (index > -1) {
this.staffUser.splice(index, 1);
this.staffDetail = '';
this.staffUserArray = this.staffUser;
}
}
addTeambutton(i) {
const teamName = (document.getElementById('teamIdName' + i)).value;
this.teamNameArray[i].name = teamName;
this.teamNameArray[i].isInputDisabled = true;
}
removeTeambutton(team) {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: 'Are you sure?',
text: 'You want to remove this team?',
icon: 'question',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
var _a;
if (result.isConfirmed) {
this.teamNameArray.forEach((t, i) => {
if (t._id === team._id) {
this.teamNameArray.splice(i, 1);
}
});
this.deletedTeam = team;
(_a = this.deletedTeam) === null || _a === void 0 ? void 0 : _a.userId.forEach((item) => {
this.removeTeamUser.push(item._id);
});
this.removeTeamObj = {
userId: this.removeTeamUser,
teamId: this.deletedTeam._id,
};
this.opsGroupService.removeTeam(this.removeTeamObj).subscribe((res) => {
console.log('Removed Team', res);
});
this.teamCountInt = this.teamNameArray.length;
this.opsGroupForm.controls.opsTeamName.setValue(0);
this.selectedTeamIndex = 0;
team.userId.forEach(ele => this.staffUser.push(ele));
this.selectedteam(this.selectedTeamIndex, 'o', this.teamNameArray[0]._id);
}
});
}
removeStaffbutton(item, index) {
this.deletedStaff = item;
this.removeStaffObj = {
userId: [this.deletedStaff._id],
};
this.opsGroupService.removeTeam(this.removeStaffObj).subscribe((res) => {
this.staffUser.push(item);
this.staffUserDet[index]['removed'] = true;
const teRem = this.staffUserDet[index];
this.staffUserDet.splice(index, 1, this.staffUserDet[index]);
this.staffUserDet = [...this.staffUserDet];
this.removedStaff.push(item._id);
});
}
clearLocationLabel() {
this.teamName = '';
}
onEditForm() {
this.userIdOld = [];
this.opsNewArray = this.teamNameArray.map((team) => {
return Object.assign(Object.assign({}, team), { userId: [...team.userId.map((user) => user._id)] });
});
this.teamNameArray.forEach((team) => {
team.userId.forEach((user) => {
this.userIdOld.push(user._id);
});
});
this.createGroupObj = {
adminId: this.groupAdmintId,
buId: this.groupBuShiftId,
isDraft: false,
noOfTeam: this.teamCountInt,
opsGroupName: this.groupName,
opsTeam: this.opsNewArray,
swopSetup: this.opsGroupForm.get('swap').value,
userId: this.userIdOld,
_id: this.selectedOpsId,
};
if (this.removedStaff.length) {
let userArr = this.createGroupObj.userId;
this.removedStaff.forEach((val) => {
const ind = userArr.indexOf(val);
if (ind != -1) {
userArr.splice(ind, 1);
}
this.createGroupObj.opsTeam.forEach((tv) => {
var _a;
const uvIn = (_a = tv.userId) === null || _a === void 0 ? void 0 : _a.indexOf(val);
if (uvIn != -1) {
tv.userId.splice(uvIn, 1);
}
});
});
this.createGroupObj['userId'] = userArr;
let teamArr = this.createGroupObj.opsTeam;
}
this.updateOpsGrpLoader = true;
const updateOpsGrp = this.opsGroupService
.updateOpsGroup(this.createGroupObj)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
updateOpsGrp.unsubscribe();
this.updateOpsGrpLoader = false;
}))
.subscribe((res) => {
if (res['success']) {
this.toastService.success(res['message'], 'Successful');
this.ChangeTabId.emit(1);
}
else {
this.toastService.error(res['message']);
}
});
}
deleteSourceBU(id) {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const buUnitIndex = yield ((_a = this.selectedBuShift) === null || _a === void 0 ? void 0 : _a.findIndex((x) => x._id === id));
(_b = this.selectedBuShift) === null || _b === void 0 ? void 0 : _b.splice(buUnitIndex, 1);
});
}
deleteAdmin(id) {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const adminIndex = yield ((_a = this.selectedAdmin) === null || _a === void 0 ? void 0 : _a.findIndex((x) => x._id === id));
(_b = this.selectedAdmin) === null || _b === void 0 ? void 0 : _b.splice(adminIndex, 1);
});
}
}
OpsEditComponent.ɵfac = function OpsEditComponent_Factory(t) { return new (t || OpsEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_6__["OpsGroupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"])); };
OpsEditComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: OpsEditComponent, selectors: [["app-ops-edit"]], inputs: { editValue: "editValue" }, outputs: { ChangeTabId: "ChangeTabId" }, decls: 15, vars: 8, consts: [["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["nav", "ngbNav"], [3, "ngbNavItem", "disabled"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [3, "formGroup"], [1, "row"], [1, "col-md-3"], [1, "font-weight-500"], ["type", "text", "formControlName", "groupname", 1, "form-control"], [1, "col-md-6", "angular2-multiselect-dropdown"], [3, "data", "ngModel", "settings", "ngModelOptions", "ngModelChange"], ["class", "row red-container mt-3 col-md-5 ml-4", 4, "ngFor", "ngForOf"], [1, "col-md-3", "angular2-multiselect-dropdown"], ["class", "row red-container mt-3 ml-0", 4, "ngFor", "ngForOf"], ["appendTo", "body", "formControlName", "numberteam", 1, "custom", 3, "items", "multiple", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "ngModelChange"], [1, "col-md-3", "align-self-end"], [1, "btn", "btn-success", 3, "click"], ["class", "my-3", 4, "ngIf"], [1, "form-inline"], [1, "font-weight-500", "mr-2"], [1, "form-check", "form-check-inline"], ["type", "radio", "formControlName", "swap", "id", "swapNo", "value", "0", 1, "form-check-input"], ["for", "swapNo", 1, "form-check-label"], ["type", "radio", "formControlName", "swap", "id", "swapGroup1", "value", "1", 1, "form-check-input"], ["for", "swapGroup1", 1, "form-check-label"], ["type", "radio", "formControlName", "swap", "id", "swapTeam2", "value", "2", 1, "form-check-input"], ["for", "swapTeam2", 1, "form-check-label"], [1, "card-footer"], ["type", "button", 1, "bg-theme", "border-0", "btn", "d-flex", "align-items-center", 3, "click"], [1, "material-icons", "ml-1"], [1, "row", "red-container", "mt-3", "col-md-5", "ml-4"], [1, "col-10", "selected-text"], [1, "col-2", "cancel-btn-container"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 3, "click"], [1, "row", "red-container", "mt-3", "ml-0"], [1, "my-3"], ["class", "border d-inline-flex mb-3 p-2 rounded mr-2", 4, "ngFor", "ngForOf"], [1, "border", "d-inline-flex", "mb-3", "p-2", "rounded", "mr-2"], ["type", "text", 1, "form-control", "mx-2", 3, "id", "value", "disabled"], [1, "btn", "btn-danger", 3, "id", "click"], ["class", "btn btn-warning ml-2", 3, "click", 4, "ngIf"], ["class", "btn btn-success ml-2", 3, "click", 4, "ngIf"], [1, "btn", "btn-warning", "ml-2", 3, "click"], [1, "btn", "btn-success", "ml-2", 3, "click"], [1, "mb-3", 3, "formGroup"], ["class", "col-md-9", 4, "ngIf"], [1, "row", "mb-3"], [1, "form-check"], ["type", "radio", "formControlName", "opsAction", "id", "opsAction1", 1, "form-check-input", 3, "value", "change"], ["for", "opsAction1", 1, "form-check-label", "font-weight-500"], ["type", "radio", "formControlName", "opsAction", "id", "opsAction2", 1, "form-check-input", 3, "value", "change"], ["for", "opsAction2", 1, "form-check-label", "font-weight-500"], ["type", "radio", "formControlName", "opsAction", "id", "opsAction3", 1, "form-check-input", 3, "value", "change"], ["for", "opsAction3", 1, "form-check-label", "font-weight-500"], ["class", "row", 4, "ngIf"], [1, "col-md-12"], [1, "table-responsive", "border-theme", "rounded"], [1, "table", "m-0"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "d-flex"], ["type", "button", 1, "align-items-center", "btn", "btn-outline-dark", "d-flex", 3, "click"], [1, "material-icons", "mr-1"], [1, "bg-theme", "border-0", "btn", "d-flex", "align-items-center", "ml-2", 3, "click"], [1, "col-md-9"], [1, "form-group"], ["class", "form-check form-check-inline", 4, "ngFor", "ngForOf"], ["type", "radio", "name", "opsTeamName", "formControlName", "opsTeamName", 1, "form-check-input", 3, "value", "ngModel", "ngModelOptions", "ngModelChange", "change"], [1, "form-check-label"], [4, "ngIf"], ["class", "labels label-light mr-1 mb-1", 4, "ngFor", "ngForOf"], [1, "labels", "label-light", "mr-1", "mb-1"], ["type", "radio", "formControlName", "opsTeamTransfer", 1, "form-check-input", 3, "value", "ngModel", "ngModelOptions", "change", "ngModelChange"], [1, "custom", 3, "ngModel", "ngModelOptions", "closeOnSelect", "clearable", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-md-2", "d-flex", "justify-content-start", "align-items-end"], [1, "btn", "btn-add", 3, "click"], [3, "value"], ["class", "btn", 3, "disabled", "btn-danger", "click", 4, "ngIf"], ["class", "btn btn-danger", 3, "click", 4, "ngIf"], [1, "btn", 3, "disabled", "click"], [1, "btn", "btn-danger", 3, "click"], ["type", "text", "formControlName", "groupname", "readonly", "", 1, "form-control"], [1, "col-md-6"], ["class", "labels mb-1 mr-1", 4, "ngFor", "ngForOf"], ["class", "labels mr-1 mb-1", 4, "ngFor", "ngForOf"], ["appendTo", "body", "formControlName", "numberteam", 3, "items", "multiple", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "readonly", "ngModelChange"], ["type", "radio", "formControlName", "swap", "id", "swapNo", "value", "0", "disabled", "", 1, "form-check-input"], ["type", "radio", "formControlName", "swap", "id", "swapGroup1", "value", "1", "disabled", "", 1, "form-check-input"], ["type", "radio", "formControlName", "swap", "id", "swapTeam2", "value", "2", "disabled", "", 1, "form-check-input"], [1, "btn", "border-0", "d-flex", "align-items-center", "ml-2", "btn-success", 3, "disabled", "click"], ["class", "material-icons mr-1", 4, "ngIf"], ["class", "spinner-border spinner-border-sm ml-2", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "labels", "mb-1", "mr-1"], [1, "text"], [1, "labels", "mr-1", "mb-1"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], ["type", "radio", "formControlName", "opsTeamName", "readonly", "", 1, "form-check-input", 3, "value", "ngModel", "ngModelOptions", "ngModelChange", "change"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-2"]], template: function OpsEditComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function OpsEditComponent_Template_ul_activeIdChange_0_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "ENTER OPS GROUP DATA");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, OpsEditComponent_ng_template_5_Template, 57, 21, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "ADD STAFF");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, OpsEditComponent_ng_template_9_Template, 64, 8, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "UPDATE OPS GROUP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, OpsEditComponent_ng_template_13_Template, 87, 17, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "div", 5);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1)("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2)("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 3)("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavOutlet"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_10__["AngularMultiSelect"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_10__["ɵf"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__["NgSelectComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__["ɵr"]], styles: [".labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n.labels.label-light[_ngcontent-%COMP%] {\n background: #eee;\n color: #212529;\n}\n .ng-select-multiple .ng-value-container .ng-value {\n background: #a42138 !important;\n color: #fff;\n font-size: 1.2rem !important;\n}\n.bg-theme[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #a42138;\n}\n.card-footer[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] {\n font-size: 1.8rem;\n}\n.btn.bg-theme[_ngcontent-%COMP%]:hover {\n background-color: #7d1a2b;\n}\n.btn.bg-theme[_ngcontent-%COMP%]:hover .material-icons[_ngcontent-%COMP%] {\n transition: all 0.2s;\n}\n .ng-select.ng-select-single .ng-select-container {\n height: 30px;\n}\n .ng-select .ng-select-container {\n min-height: 30px;\n}\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYWRtaW4vdXNlcnMvb3BzLWdyb3VwL29wcy1lZGl0L29wcy1lZGl0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsZ0JBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0VBQ0Esb0JBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFDRjtBQUNFO0VBQ0UsZ0JBQUE7RUFDQSxjQUFBO0FBQ0o7QUFHQTtFQUNFLDhCQUFBO0VBQ0EsV0FBQTtFQUNBLDRCQUFBO0FBQUY7QUFHQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtBQUFGO0FBR0E7RUFDRSxpQkFBQTtBQUFGO0FBR0E7RUFDRSx5QkFBQTtBQUFGO0FBRUU7RUFDRSxvQkFBQTtBQUFKO0FBTUk7RUFDRSxZQUFBO0FBSE47QUFNRTtFQUNFLGdCQUFBO0FBSko7QUFRQTtFQUNFLHNCQUFBO0FBTEY7QUFNRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUpKO0FBTUk7RUFDRSxjQUFBO0FBSk47QUFPSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFMTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2FkbWluL3VzZXJzL29wcy1ncm91cC9vcHMtZWRpdC9vcHMtZWRpdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5sYWJlbHMge1xuICBwYWRkaW5nOiA2cHggOHB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgJi5sYWJlbC1saWdodCB7XG4gICAgYmFja2dyb3VuZDogI2VlZTtcbiAgICBjb2xvcjogIzIxMjUyOTtcbiAgfVxufVxuXG46Om5nLWRlZXAgLm5nLXNlbGVjdC1tdWx0aXBsZSAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzggIWltcG9ydGFudDtcbiAgY29sb3I6ICNmZmY7XG4gIGZvbnQtc2l6ZTogMS4ycmVtICFpbXBvcnRhbnQ7XG59XG5cbi5iZy10aGVtZSB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xufVxuXG4uY2FyZC1mb290ZXIgLm1hdGVyaWFsLWljb25zIHtcbiAgZm9udC1zaXplOiAxLjhyZW07XG59XG5cbi5idG4uYmctdGhlbWU6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjN2QxYTJiO1xuXG4gIC5tYXRlcmlhbC1pY29ucyB7XG4gICAgdHJhbnNpdGlvbjogYWxsIDAuMnM7XG4gIH1cbn1cblxuOjpuZy1kZWVwIC5uZy1zZWxlY3Qge1xuICAmLm5nLXNlbGVjdC1zaW5nbGUge1xuICAgIC5uZy1zZWxlY3QtY29udGFpbmVyIHtcbiAgICAgIGhlaWdodDogMzBweDtcbiAgICB9XG4gIH1cbiAgLm5nLXNlbGVjdC1jb250YWluZXIge1xuICAgIG1pbi1oZWlnaHQ6IDMwcHg7XG4gIH1cbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OpsEditComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-ops-edit',
templateUrl: './ops-edit.component.html',
styleUrls: ['./ops-edit.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"] }, { type: src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_6__["OpsGroupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }]; }, { ChangeTabId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], editValue: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}] }); })();
/***/ }),
/***/ "KF6l":
/*!******************************************************************************************!*\
!*** ./src/app/users/pages/admin/users/ops-group/ops-overview/ops-overview.component.ts ***!
\******************************************************************************************/
/*! exports provided: OpsOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpsOverviewComponent", function() { return OpsOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/ops-group/ops-group.service */ "NV6M");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function OpsOverviewComponent_ngx_skeleton_loader_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 11);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function OpsOverviewComponent_table_8_tr_22_span_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 22);
} }
function OpsOverviewComponent_table_8_tr_22_span_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 22);
} }
function OpsOverviewComponent_table_8_tr_22_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](11, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "button", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsOverviewComponent_table_8_tr_22_Template_button_click_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const opsData_r3 = ctx.$implicit; const i_r4 = ctx.index; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r7.getOpsDetail(opsData_r3, i_r4, "view"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, OpsOverviewComponent_table_8_tr_22_span_24_Template, 1, 0, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsOverviewComponent_table_8_tr_22_Template_button_click_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const opsData_r3 = ctx.$implicit; const i_r4 = ctx.index; const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r9.getOpsDetail(opsData_r3, i_r4, "edit"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, OpsOverviewComponent_table_8_tr_22_span_27_Template, 1, 0, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsOverviewComponent_table_8_tr_22_Template_button_click_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const opsData_r3 = ctx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.onDeleteOpsGroup(opsData_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsOverviewComponent_table_8_tr_22_Template_button_click_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const opsData_r3 = ctx.$implicit; const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r11.exportOps(opsData_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " Export ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const opsData_r3 = ctx.$implicit;
const i_r4 = ctx.index;
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](opsData_r3.opsGroupName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 10, opsData_r3.createdAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](opsData_r3.createdBy == null ? null : opsData_r3.createdBy.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](11, 13, opsData_r3.updatedAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](opsData_r3.userId == null ? null : opsData_r3.userId.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](opsData_r3.buId == null ? null : opsData_r3.buId.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](opsData_r3.noOfTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](opsData_r3.isDraft ? "Draft" : "Active");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.actionLoader && ctx_r2.actionBtnIndex == i_r4 && ctx_r2.actionText == "view");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.actionLoader && ctx_r2.actionBtnIndex == i_r4 && ctx_r2.actionText == "edit");
} }
function OpsOverviewComponent_table_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "OPS GROUP NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "CREATION DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "CREATED BY");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "LAST MODIFIED DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "USERS COUNT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "BU'S Count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "No OF OPS TEAMS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "ACTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, OpsOverviewComponent_table_8_tr_22_Template, 32, 16, "tr", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](23, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind3"](23, 1, ctx_r1.opsGroupDataTable == null ? null : ctx_r1.opsGroupDataTable.data, (ctx_r1.opsGroupDataTable.page - 1) * ctx_r1.opsGroupDataTable.limit, ctx_r1.opsGroupDataTable.page * ctx_r1.opsGroupDataTable.limit));
} }
class OpsOverviewComponent {
constructor(opsGroupService, toastService) {
this.opsGroupService = opsGroupService;
this.toastService = toastService;
this.action = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.opsGroupLoader = true;
this.overviewSearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.opsGroupDataTable = {
data: [],
page: 1,
total: 0,
limit: 10,
search: ''
};
this.OverviewSearchSubscription = this.overviewSearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.opsGroupDataTable.page = 1;
this.getOpsGroup();
});
}
ngOnInit() {
this.getOpsGroup();
}
exportOps(ops) {
this.opsGroupService.viewOpsGruop(ops._id).subscribe((res) => {
const opsExportPayload = res.data[0];
this.opsGroupService
.getExportOpsCSV(opsExportPayload)
.subscribe((response) => {
// console.log(csv);
let csvElement = document.createElement('a');
csvElement.href = 'data:attachment/csv,' + encodeURI(response.csv);
csvElement.target = '_blank';
csvElement.download = "grpExport.csv";
document.body.appendChild(csvElement);
csvElement.click();
this.toastService.success("success", "Ops group data exported succesfully");
});
});
}
getOpsGroup() {
this.OpsList = {
privilage: true,
search: this.opsGroupDataTable.search
};
const opsGroup = this.opsGroupService
.getOpsGruop(this.OpsList)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.opsGroupLoader = false;
opsGroup.unsubscribe();
}))
.subscribe((res) => {
var _a, _b;
this.opsGroupDataTable.data = res.data || [];
this.opsGroupDataTable.data = (_a = this.opsGroupDataTable.data) === null || _a === void 0 ? void 0 : _a.sort((a, b) => (a.opsGroupName < b.opsGroupName ? -1 : 1));
this.opsGroupDataTable.total = ((_b = this.opsGroupDataTable.data) === null || _b === void 0 ? void 0 : _b.length) || 0;
});
}
getOpsDetail(item, index, action) {
this.actionBtnIndex = index;
this.actionLoader = true;
this.actionText = action;
const opsDetail = this.opsGroupService
.viewOpsGruop(item._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.actionLoader = false;
opsDetail.unsubscribe();
}))
.subscribe((res) => {
if (res.success) {
this.opsGroupViewData = res.data;
this.opsGroupService.allPassedData.next(this.opsGroupViewData);
action == 'edit'
? this.action.emit('EDIT')
: this.action.emit('VIEW');
}
});
}
onDeleteOpsGroup(item) {
this.opsGroupId = item._id;
sweetalert2__WEBPACK_IMPORTED_MODULE_1___default.a.fire({
title: 'Are you sure, you want to delete this OpsGroup?',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.opsGroupService
.deleteOpsGruop(this.opsGroupId)
.subscribe((res) => {
var _a;
this.opsGroupDataTable.data = res;
this.opsGroupDataTable.data = (_a = this.opsGroupDataTable.data) === null || _a === void 0 ? void 0 : _a.sort((a, b) => (a.opsGroupName < b.opsGroupName ? -1 : 1));
this.getOpsGroup();
this.toastService.success(res['message']);
});
}
});
}
onPageChangeOpsGroupData(page) {
this.opsGroupDataTable.page = page;
}
}
OpsOverviewComponent.ɵfac = function OpsOverviewComponent_Factory(t) { return new (t || OpsOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_4__["OpsGroupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
OpsOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: OpsOverviewComponent, selectors: [["ops-overview"]], outputs: { action: "action" }, decls: 14, vars: 7, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body", "table-responsive", "p-0"], ["title", "Please wait...", "count", "6", 3, "theme", 4, "ngIf"], [1, "d-flex", "justify-content-between", "m-2"], [1, "form-group", "form-inline", "mb-0", "ml-auto"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], ["class", "table table-hover m-0", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "pageSize", "pageChange"], ["title", "Please wait...", "count", "6", 3, "theme"], [1, "table", "table-hover", "m-0"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "font-weight-500"], [1, "d-flex"], [1, "btn", "bg-primary", "text-white", "btn-sm", 3, "click"], ["class", "spinner-border spinner-border-sm ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "btn", "btn-warning", "btn-sm", "noWrap", "ml-1", 3, "click"], [1, "btn", "btn-danger", "btn-sm", "ml-1", 3, "click"], [1, "btn", "btn-success", "btn-sm", "ml-1", 3, "click"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-1"]], template: function OpsOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "OPS GROUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, OpsOverviewComponent_ngx_skeleton_loader_4_Template, 1, 2, "ngx-skeleton-loader", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "input", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function OpsOverviewComponent_Template_input_search_7_listener($event) { return ctx.overviewSearchInput.next($event); })("keyup", function OpsOverviewComponent_Template_input_keyup_7_listener($event) { return ctx.overviewSearchInput.next($event); })("ngModelChange", function OpsOverviewComponent_Template_input_ngModelChange_7_listener($event) { return ctx.opsGroupDataTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, OpsOverviewComponent_table_8_Template, 24, 5, "table", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "ngb-pagination", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function OpsOverviewComponent_Template_ngb_pagination_pageChange_13_listener($event) { return ctx.opsGroupDataTable.page = $event; })("pageChange", function OpsOverviewComponent_Template_ngb_pagination_pageChange_13_listener($event) { return ctx.onPageChangeOpsGroupData($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.opsGroupLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.opsGroupDataTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.opsGroupLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total records ", ctx.opsGroupDataTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx.opsGroupDataTable.total)("page", ctx.opsGroupDataTable.page)("pageSize", ctx.opsGroupDataTable.limit);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__["NativeElementInjectorDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbPagination"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_10__["NgxSkeletonLoaderComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["SlicePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["DatePipe"]], styles: [".bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYWRtaW4vdXNlcnMvb3BzLWdyb3VwL29wcy1vdmVydmlldy9vcHMtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2FkbWluL3VzZXJzL29wcy1ncm91cC9vcHMtb3ZlcnZpZXcvb3BzLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJnLXRoZW1lIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](OpsOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'ops-overview',
templateUrl: './ops-overview.component.html',
styleUrls: ['./ops-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_4__["OpsGroupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { action: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "KUSf":
/*!**************************************************************!*\
!*** ./src/app/shared/dynamic-questions/fields/text-boxs.ts ***!
\**************************************************************/
/*! exports provided: TextBoxsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextBoxsComponent", function() { return TextBoxsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _dynamic_fields_fields_text_area__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../dynamic-fields/fields/text-area */ "jrlu");
function TextBoxsComponent_input_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 2);
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx_r0.field.name)("name", ctx_r0.field.name)("formControl", ctx_r0.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("type", ctx_r0.field.type)("disabled", ctx_r0.field.disabled ? ctx_r0.field.disabled : null);
} }
function TextBoxsComponent_textarea_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "textarea", 3);
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("is-invalid", ctx_r1.isDirty && !ctx_r1.isValid);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControl", ctx_r1.form)("id", ctx_r1.field.name)("placeholder", ctx_r1.field.placeholder);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r1.field.disabled ? ctx_r1.field.disabled : null);
} }
// text,email,tel,textarea,password,
class TextBoxsComponent {
constructor() {
this.field = {};
}
get isValid() { return this.form.valid; }
get isDirty() { return this.form.dirty; }
}
TextBoxsComponent.ɵfac = function TextBoxsComponent_Factory(t) { return new (t || TextBoxsComponent)(); };
TextBoxsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TextBoxsComponent, selectors: [["textboxs"]], inputs: { field: "field", form: "form" }, decls: 2, vars: 2, consts: [["class", "form-control", 3, "id", "name", "formControl", 4, "ngIf"], ["rows", "9", "class", "form-control", 3, "is-invalid", "formControl", "id", "placeholder", 4, "ngIf"], [1, "form-control", 3, "id", "name", "formControl"], ["rows", "9", 1, "form-control", 3, "formControl", "id", "placeholder"]], template: function TextBoxsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, TextBoxsComponent_input_0_Template, 1, 5, "input", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TextBoxsComponent_textarea_1_Template, 1, 6, "textarea", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.field.multiline);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.field.multiline);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlDirective"], _dynamic_fields_fields_text_area__WEBPACK_IMPORTED_MODULE_3__["TextAreaComponent"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TextBoxsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'textboxs',
template: `
`
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "KVXD":
/*!********************************************************************************!*\
!*** ./src/app/users/pages/operations/report/list-user/list-user.component.ts ***!
\********************************************************************************/
/*! exports provided: ListUserComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListUserComponent", function() { return ListUserComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! file-saver */ "Iab2");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/constants */ "l207");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/operations/report.service */ "Ecij");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function ListUserComponent_ng_template_6_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please wait data is loading... ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ListUserComponent_ng_template_6_div_22_div_1_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListUserComponent_ng_template_6_div_22_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const i_r12 = ctx.index; const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r13.clearLabel(i_r12); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r11 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r11);
} }
function ListUserComponent_ng_template_6_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ListUserComponent_ng_template_6_div_22_div_1_Template, 5, 1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.buLabelArr);
} }
function ListUserComponent_ng_template_6_ng_option_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r15 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", i_r15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", i_r15.name, " ");
} }
function ListUserComponent_ng_template_6_ng_option_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r16 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r16.name);
} }
function ListUserComponent_ng_template_6_div_45_div_1_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListUserComponent_ng_template_6_div_45_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const i_r19 = ctx.index; const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r20.clearSkillLabel(i_r19); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"]("", item_r18[0], " > ", item_r18[1], "");
} }
function ListUserComponent_ng_template_6_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ListUserComponent_ng_template_6_div_45_div_1_Template, 5, 2, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r7.skillLabels);
} }
function ListUserComponent_ng_template_6_div_64_div_1_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListUserComponent_ng_template_6_div_64_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const i_r24 = ctx.index; const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r25.clearappointLabel(i_r24); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r23);
} }
function ListUserComponent_ng_template_6_div_64_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ListUserComponent_ng_template_6_div_64_div_1_Template, 5, 1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r8.userappointlabels);
} }
function ListUserComponent_ng_template_6_span_79_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span", 42);
} }
function ListUserComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h6", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "SELECT BUSINESS UNIT AND DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "ng-select", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ListUserComponent_ng_template_6_Template_ng_select_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r27.bu = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, ListUserComponent_ng_template_6_div_12_Template, 2, 0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListUserComponent_ng_template_6_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r29.clearAllBu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListUserComponent_ng_template_6_Template_button_click_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r30.addBu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, ListUserComponent_ng_template_6_div_22_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, "Select Skillsets");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "ng-select", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ListUserComponent_ng_template_6_Template_ng_select_change_28_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r31.onSkillSetChange($event); })("ngModelChange", function ListUserComponent_ng_template_6_Template_ng_select_ngModelChange_28_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r32.skill = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, ListUserComponent_ng_template_6_ng_option_29_Template, 2, 2, "ng-option", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, "Select speciality");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "ng-select", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ListUserComponent_ng_template_6_Template_ng_select_ngModelChange_34_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r33.speciality = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](35, ListUserComponent_ng_template_6_ng_option_35_Template, 2, 2, "ng-option", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](39, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListUserComponent_ng_template_6_Template_button_click_42_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r34.addSkillbutton(ctx_r34.skill, ctx_r34.speciality); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](45, ListUserComponent_ng_template_6_div_45_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, "Appointment ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "ng-select", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ListUserComponent_ng_template_6_Template_ng_select_search_51_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r35.onSeachAppoinment($event); })("scrollToEnd", function ListUserComponent_ng_template_6_Template_ng_select_scrollToEnd_51_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r36.loadMoreAppoinmentItems($event); })("ngModelChange", function ListUserComponent_ng_template_6_Template_ng_select_ngModelChange_51_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r37.appoint = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](54, "\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](55, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListUserComponent_ng_template_6_Template_button_click_58_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r38.addAppoint(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](59, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](62, "\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](63, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](64, ListUserComponent_ng_template_6_div_64_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](69, "User Status");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "ng-select", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ListUserComponent_ng_template_6_Template_ng_select_ngModelChange_70_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r39.statusId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](74, "Role");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "ng-select", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ListUserComponent_ng_template_6_Template_ng_select_search_75_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r40.onSeachRole($event); })("scrollToEnd", function ListUserComponent_ng_template_6_Template_ng_select_scrollToEnd_75_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r41.loadMoreRoleItems($event); })("clear", function ListUserComponent_ng_template_6_Template_ng_select_clear_75_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r42.onClearRoleDropdown($event); })("ngModelChange", function ListUserComponent_ng_template_6_Template_ng_select_ngModelChange_75_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r43.rolelabel = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "button", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ListUserComponent_ng_template_6_Template_button_click_77_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r44.downloadCsv(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](78, " Click to download File ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](79, ListUserComponent_ng_template_6_span_79_Template, 1, 0, "span", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r1.allBuShift)("loading", ctx_r1.buLoader)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r1.bu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.buLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.buLabelArr);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r1.skill);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.buSkillSet);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r1.speciality);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.buSkillspeciality);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.skillsSet != null);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r1.appoinmentPTable.data)("searchable", true)("closeOnSelect", true)("clearable", true)("multiple", false)("loading", ctx_r1.apppoinmentDropDownLoading)("ngModel", ctx_r1.appoint);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.userappointlabels != null);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r1.status)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r1.statusId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r1.roleDropDown)("multiple", false)("searchable", true)("clearable", true)("loading", ctx_r1.roleDropDownLoading)("ngModel", ctx_r1.rolelabel);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r1.downloadFileLoader)("disabled", !(ctx_r1.buArr.length > 0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.downloadFileLoader);
} }
function ListUserComponent_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.loadingMessage, " ");
} }
class ListUserComponent {
constructor(fb, setupService, userService, roleService, reportService, toastService) {
this.fb = fb;
this.setupService = setupService;
this.userService = userService;
this.roleService = roleService;
this.reportService = reportService;
this.toastService = toastService;
this.buArr = [];
this.buLabelArr = [];
this.bu = null;
this.skill = null;
this.speciality = null;
this.appoint = null;
this.role = null;
this.allBusinessUnitSelected = false;
this.roleDropDown = [];
this.skillsSet = [];
this.skillLabels = [];
this.appointlabel = [];
this.userappointlabels = [];
this.appointArr = [];
this.apppoinmentDropDownLoading = false;
this.roleDropDownLoading = false;
this.loadingMessage = src_app_constants__WEBPACK_IMPORTED_MODULE_6__["LOADING_MESSAGE"];
this.apoinmentSearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_5__["Subject"]();
this.status = [
{ id: 'active', status: 'active' },
{ id: '2', status: 'inactive' },
{ id: '3', status: 'both' },
];
this.buLoader = true;
this.activeId = 1;
this.appoinmentPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.rolePTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
}
ngOnInit() {
this.displaySkilltable();
this.loadAppoinment();
this.loadRole();
this.getAllBu();
}
getAllBu() {
this.buLoader = true;
const buSubscribe = this.setupService
.getBusinessUnitBUShift()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((val) => {
// Adding 'all' option to Select All Bu
val['data']['planBussinessUnitId'].unshift({
_id: 'all',
orgName: 'Select All Business Units',
});
return val;
}))
.subscribe((res) => {
if (res['data']) {
this.allBuShift = res['data']['planBussinessUnitId'];
}
else {
this.allBuShift = [];
}
}, (error) => {
this.allBuShift = [];
});
}
addBu() {
if (this.bu._id === 'all') {
//removing selected bu before selection of All bu
this.buArr = [];
this.buLabelArr = [];
//Adding all bu except 1st Select All option
this.allBuShift.forEach((el, i) => {
if (i > 0) {
this.buArr.push(el._id);
}
});
this.buLabelArr.push('All Business Units Selected');
}
else if (this.buArr.includes(this.bu._id)) {
this.toastService.info('Business unit already selected', 'Already Selected');
}
else {
this.buArr.push(this.bu._id);
this.buLabelArr.push(this.bu.orgName);
this.bu = null;
}
}
clearLabel(i) {
if (this.buLabelArr.includes('All Business Units Selected')) {
this.buArr = [];
this.buLabelArr = [];
}
else {
this.buArr.splice(i, 1);
this.buLabelArr.splice(i, 1);
}
}
displaySkilltable() {
this.setupService.getSkillSet().subscribe((res) => {
this.buSkillSet = res['data'].skillsets;
});
}
onSkillSetChange($event) {
this.buSkillspeciality = $event.subSkillSets;
}
addSkillbutton(e, d) {
this.subSkillLabel = this.speciality._id;
if (this.skillsSet.indexOf(this.speciality._id) > -1) {
this.toastService.warning('Already Exists');
}
else {
this.skillLabels.push([this.skill.name, this.speciality.name]);
this.skillsSet.push(this.subSkillLabel);
}
this.skill = null;
this.speciality = null;
}
clearSkillLabel(i) {
this.skillsSet.splice(i, 1);
this.skillLabels.splice(i, 1);
}
loadAppoinment() {
this.apppoinmentDropDownLoading = true;
const _a = this.appoinmentPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.setupService
.getAppointment()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.apppoinmentDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
// const { count, data } = response.data;
const res = response.data.appointments;
this.appoinmentPTable.data = res;
this.appoinmentPTable.total = res.length;
}, (error) => {
this.appoinmentPTable.data = [];
this.appoinmentPTable.total = 0;
this.toastService.error('No list found');
});
}
onSeachAppoinment(value) {
this.appoinmentPTable.limit = 10;
this.appoinmentPTable.search = value.term;
this.loadAppoinment();
}
loadMoreAppoinmentItems(value) {
this.appoinmentPTable.limit = this.appoinmentPTable.limit + 10;
this.loadAppoinment();
}
onClearAppoinmentDropdown(value) {
if (value === undefined) {
this.appoinmentPTable.search = '';
this.loadAppoinment();
this.appoinmentPTable.data = [];
}
}
addAppoint() {
if (this.appointArr.indexOf(this.appoint._id) > -1) {
this.toastService.warning('This Appointment already exists', 'Already Exist');
}
else {
this.userappointlabels.push(this.appoint.name);
this.appointArr.push(this.appoint._id);
}
this.appoint = null;
}
clearappointLabel(i) {
this.appointArr.splice(i, 1);
this.userappointlabels.splice(i, 1);
}
loadRole() {
this.roleDropDownLoading = true;
const _a = this.rolePTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.roleService
.getUserRoles()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.roleDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const res = response.data;
this.rolePTable.data = res.roles;
this.roleDropDown = res.roles;
this.rolePTable.total = res.length;
}, (error) => {
this.rolePTable.data = [];
this.rolePTable.total = 0;
this.toastService.error('No list found');
});
}
onSeachRole(value) {
this.rolePTable.limit = 10;
this.rolePTable.search = value.term;
this.loadRole();
}
loadMoreRoleItems(value) {
this.rolePTable.limit = this.rolePTable.limit + 10;
this.loadRole();
}
onClearRoleDropdown(value) {
if (value === undefined) {
this.rolePTable.search = '';
this.loadRole();
this.roleDropDown = [];
this.rolePTable.data = [];
}
}
downloadCsv() {
var _a, _b, _c, _d;
this.currentDate = new Date();
const filePayload = {
date: moment__WEBPACK_IMPORTED_MODULE_4__().format('MM-DD-YYYY') + ' 00:00:00 GMT+0530',
status: !((_a = this.statusId) === null || _a === void 0 ? void 0 : _a.id) ? 1 : ((_b = this.statusId) === null || _b === void 0 ? void 0 : _b.id) == "active" ? 1 : ((_c = this.statusId) === null || _c === void 0 ? void 0 : _c.id) == "2" ? 2 : 3,
appointmentId: this.appointArr,
skillsets: this.skillsSet,
businessUnitId: this.buArr,
role: (_d = this.rolelabel) === null || _d === void 0 ? void 0 : _d._id,
doj: {},
airportPassExpiryDate: {},
};
this.downloadFileLoader = true;
this.reportService.listOfUserCsv(filePayload).subscribe((res) => {
const filename = res['data']['csvLink']
.split('\\')
.pop()
.split('/')
.pop();
this.downloadFile(filename);
}, () => {
this.downloadFileLoader = false;
}, () => {
this.downloadFileLoader = false;
});
}
downloadFile(n) {
this.reportService.downloadFile(n).subscribe((res) => {
if (res) {
file_saver__WEBPACK_IMPORTED_MODULE_3__["saveAs"](new Blob([res], { type: 'text/csv' }), n);
}
this.reset();
});
}
reset() {
this.bu = null;
this.skill = null;
this.speciality = null;
this.statusId = null;
this.rolelabel = null;
this.appoint = null;
this.buArr = [];
this.buLabelArr = [];
this.userappointlabels = [];
this.skillsSet = [];
this.skillLabels = [];
}
clearAllBu() {
this.buArr = [];
this.buLabelArr = [];
}
}
ListUserComponent.ɵfac = function ListUserComponent_Factory(t) { return new (t || ListUserComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_8__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_10__["RoleService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_11__["ReportService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_12__["ToastrService"])); };
ListUserComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ListUserComponent, selectors: [["app-list-user"]], decls: 10, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["listNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["class", "loader", 4, "ngIf"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "row"], [1, "col-md-8"], [1, "form-group"], [1, "font-weight-500"], [1, "field-mandatory"], ["bindLabel", "orgName", "placeholder", "Select Business unit", "appendTo", "body", 1, "custom", "large-dropdown", 3, "items", "loading", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], ["class", "text-danger", 4, "ngIf"], [1, "col", "flex-grow-0", "noWrap"], [1, "btn", "btn-danger", 3, "click"], [1, "btn", "btn-success", "ml-2", 3, "click"], [1, "col-md-12"], [4, "ngIf"], [1, "col-md-3"], ["bindLabel", "name", "placeholder", "Select Skill Sets", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["bindLabel", "name", "placeholder", "Select Speciality", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelChange"], [1, "btn", "btn-danger"], [1, "col-md-6"], [1, "col-md-4"], ["bindLabel", "name", "placeholder", "Select appoinment", 3, "items", "searchable", "closeOnSelect", "clearable", "multiple", "loading", "ngModel", "search", "scrollToEnd", "ngModelChange"], ["bindLabel", "status", "placeholder", "Select role", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "ngModel", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select role", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "loading", "ngModel", "search", "scrollToEnd", "clear", "ngModelChange"], [1, "card-footer"], [1, "btn", "btn-warning", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm ml-2", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "text-danger"], ["class", "labels", 4, "ngFor", "ngForOf"], [1, "labels"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], [3, "value"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-2"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"]], template: function ListUserComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function ListUserComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "LIST OF USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ListUserComponent_ng_template_6_Template, 80, 42, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, ListUserComponent_div_9_Template, 5, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.downloadFileLoader);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNavOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_14__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_14__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["ɵr"]], styles: [".btn-download[_ngcontent-%COMP%] {\n background-color: #f2c94d;\n padding: 8px 50px;\n}\n\n.btn-download[_ngcontent-%COMP%] {\n background-color: #f2c94d;\n padding: 8px 50px;\n}\n\n.form-control[_ngcontent-%COMP%] {\n height: 36px;\n}\n\n.spinner-border[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\n.large-dropdown[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n margin: 0 4px 4px 0;\n display: inline-block;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n margin-left: 6px;\n vertical-align: middle;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9yZXBvcnQvbGlzdC11c2VyL2xpc3QtdXNlci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDRTtFQUNFLHlCQUFBO0VBQ0EsaUJBQUE7QUFBSjs7QUFHRTtFQUNFLHlCQUFBO0VBQ0EsaUJBQUE7QUFBSjs7QUFHRTtFQUNFLFlBQUE7QUFBSjs7QUFHRTtFQUNFLHNCQUFBO0FBQUo7O0FBR0U7RUFDRSxXQUFBO0FBQUo7O0FBR0U7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxtQkFBQTtFQUNBLHFCQUFBO0VBQ0EsOEJBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBQUo7O0FBRUk7RUFDRSxrQkFBQTtBQUFOOztBQUdJO0VBQ0UsZUFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxzQkFBQTtBQUROIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9yZXBvcnQvbGlzdC11c2VyL2xpc3QtdXNlci5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIiAgXG4gIC5idG4tZG93bmxvYWQge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmMmM5NGQ7XG4gICAgcGFkZGluZzogOHB4IDUwcHg7XG4gIH1cbiAgXG4gIC5idG4tZG93bmxvYWQge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmMmM5NGQ7XG4gICAgcGFkZGluZzogOHB4IDUwcHg7XG4gIH1cblxuICAuZm9ybS1jb250cm9sIHtcbiAgICBoZWlnaHQ6IDM2cHg7XG4gIH1cblxuICAuc3Bpbm5lci1ib3JkZXIge1xuICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG4gIH1cbiAgXG4gIC5sYXJnZS1kcm9wZG93biAubmctc2VsZWN0IHtcbiAgICB3aWR0aDogMTAwJTtcbiAgfVxuXG4gIC5sYWJlbHMge1xuICAgIHBhZGRpbmc6IDZweCA4cHg7XG4gICAgYmFja2dyb3VuZDogI2E0MjEzODtcbiAgICBjb2xvcjogI2ZmZjtcbiAgICBmb250LXNpemU6IDE0cHg7XG4gICAgbWFyZ2luOiAwIDRweCA0cHggMDtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgLnRleHQge1xuICAgICAgbWFyZ2luLWJvdHRvbTogMnB4O1xuICAgIH1cblxuICAgIC5idG4tY2xvc2Uge1xuICAgICAgZm9udC1zaXplOiAxNnB4O1xuICAgICAgcGFkZGluZzogMnB4O1xuICAgICAgY3Vyc29yOiBwb2ludGVyO1xuICAgICAgbWFyZ2luLWxlZnQ6IDZweDtcbiAgICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG4gICAgfVxuICB9Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ListUserComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-list-user',
templateUrl: './list-user.component.html',
styleUrls: ['./list-user.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_7__["FormBuilder"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_8__["SetupService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__["UsersService"] }, { type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_10__["RoleService"] }, { type: src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_11__["ReportService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_12__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "KWUy":
/*!******************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-shift/open-shift/open-shift.component.ts ***!
\******************************************************************************************************/
/*! exports provided: OpenShiftComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpenShiftComponent", function() { return OpenShiftComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
const _c0 = ["btn1"];
const _c1 = ["btn2"];
const _c2 = ["btn3"];
const _c3 = ["btn4"];
const _c4 = ["btn5"];
const _c5 = ["btn6"];
const _c6 = ["btn7"];
function OpenShiftComponent_ng_container_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ng-option", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const i_r16 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", i_r16.label);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r16.label, " ");
} }
function OpenShiftComponent_div_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Standby");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_66_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Start Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "ng-select", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "End Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "ng-select", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r2.time)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r2.time)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
} }
function OpenShiftComponent_div_119_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Proximity Enabled");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "input", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_div_119_Template_input_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.changeProximityEnable(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "input", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_div_119_Template_input_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r19.changeProximityEnable(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_div_120_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r21 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", item_r21.name, " ");
} }
function OpenShiftComponent_div_120_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Proximity");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ng-select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpenShiftComponent_div_120_Template_ng_select_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r22.changeReportingLocationRadius($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, OpenShiftComponent_div_120_ng_option_5_Template, 2, 2, "ng-option", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r11.reportingLocationRadius);
} }
function OpenShiftComponent_div_128_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Select Speciality ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "ng-select", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r12.buSkillspeciality)("multiple", false)("searchable", true)("closeOnSelect", true)("clearable", true);
} }
function OpenShiftComponent_ng_container_135_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r25[1], "");
} }
function OpenShiftComponent_ng_container_135_div_1_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, OpenShiftComponent_ng_container_135_div_1_ng_container_3_Template, 2, 1, "ng-container", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_ng_container_135_div_1_Template_span_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const i_r26 = ctx.index; const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r29.clearLabel(i_r26); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r25 = ctx.$implicit;
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", item_r25[0], " > ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r24.tier == 2);
} }
function OpenShiftComponent_ng_container_135_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, OpenShiftComponent_ng_container_135_div_1_Template, 6, 2, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r13.skillLabels);
} }
function OpenShiftComponent_ng_container_170_tr_1_p_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const k_r46 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, k_r46[0], "HH:mm"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, k_r46[1], "HH:mm"), " ");
} }
function OpenShiftComponent_ng_container_170_tr_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const i_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" / ", i_r32.backUpStaffNeedCount, " Standby ");
} }
function OpenShiftComponent_ng_container_170_tr_1_p_7_ng_container_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const j_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", j_r48[1], " ");
} }
function OpenShiftComponent_ng_container_170_tr_1_p_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpenShiftComponent_ng_container_170_tr_1_p_7_ng_container_2_Template, 2, 1, "ng-container", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r48 = ctx.$implicit;
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", j_r48[0], " > ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r36.tier == 2);
} }
function OpenShiftComponent_ng_container_170_tr_1_i_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_i_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_i_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_i_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_i_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_i_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_i_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_td_22_Template(rf, ctx) { if (rf & 1) {
const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_ng_container_170_tr_1_td_22_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r53); const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const i_r32 = ctx_r52.$implicit; const index_r33 = ctx_r52.index; const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r51.deleteShiftInTemplateModal(i_r32, index_r33); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_td_23_Template(rf, ctx) { if (rf & 1) {
const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_ng_container_170_tr_1_td_23_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r56); const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const i_r32 = ctx_r55.$implicit; const index_r33 = ctx_r55.index; const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r54.removeShiftInTemplate(i_r32, index_r33); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Remove ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpenShiftComponent_ng_container_170_tr_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, OpenShiftComponent_ng_container_170_tr_1_p_2_Template, 4, 8, "p", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, OpenShiftComponent_ng_container_170_tr_1_ng_container_5_Template, 2, 1, "ng-container", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, OpenShiftComponent_ng_container_170_tr_1_p_7_Template, 3, 2, "p", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, OpenShiftComponent_ng_container_170_tr_1_i_9_Template, 2, 0, "i", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, OpenShiftComponent_ng_container_170_tr_1_i_11_Template, 2, 0, "i", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, OpenShiftComponent_ng_container_170_tr_1_i_13_Template, 2, 0, "i", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, OpenShiftComponent_ng_container_170_tr_1_i_15_Template, 2, 0, "i", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, OpenShiftComponent_ng_container_170_tr_1_i_17_Template, 2, 0, "i", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, OpenShiftComponent_ng_container_170_tr_1_i_19_Template, 2, 0, "i", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, OpenShiftComponent_ng_container_170_tr_1_i_21_Template, 2, 0, "i", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, OpenShiftComponent_ng_container_170_tr_1_td_22_Template, 3, 0, "td", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, OpenShiftComponent_ng_container_170_tr_1_td_23_Template, 3, 0, "td", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r32 = ctx.$implicit;
const index_r33 = ctx.index;
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r31.timeSlot[index_r33]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r32.staffNeedCount, " Confirmed ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r32.backUpStaffNeedCount);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r31.skillTableLabels[index_r33]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r31.shiftDay[index_r33].includes("Monday"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r31.shiftDay[index_r33].includes("Tuesday"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r31.shiftDay[index_r33].includes("Wednesday"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r31.shiftDay[index_r33].includes("Thursday"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r31.shiftDay[index_r33].includes("Friday"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r31.shiftDay[index_r33].includes("Saturday"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r31.shiftDay[index_r33].includes("Sunday"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r32.uniqueId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !i_r32.uniqueId);
} }
function OpenShiftComponent_ng_container_170_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, OpenShiftComponent_ng_container_170_tr_1_Template, 24, 13, "tr", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r14.openPlanshift == null ? null : ctx_r14.openPlanshift.shifts);
} }
function OpenShiftComponent_span_174_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 93);
} }
class OpenShiftComponent {
constructor(buService, planService, formBuilder, el, toastr) {
this.buService = buService;
this.planService = planService;
this.formBuilder = formBuilder;
this.el = el;
this.toastr = toastr;
this.isSplitShift = false;
this.changeTab = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.weekStart = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.time = [];
this.buSkillSet = [];
this.skillsSet = [];
this.skillLabels = [];
this.skillSetArry = [];
this.skillTableLabels = [];
this.skillTableArry = [];
this.timeSlotTable = [];
this.weekArr = [];
this.myWeekRange = [];
this.dayDate = [];
this.mockDayDate = [];
this.shiftsArr = [];
this.shiftDay = [];
this.delete = false;
this.deleteShiftTemplate = false;
this.shiftTemplateArr = [];
this.shiftTempArr = [];
this.skillSetArry2 = [];
this.skillLabels2 = [];
this.weekArr1 = [];
this.isSplit = false;
this.timeSlot = [];
this.disableDayArr = [];
this.reportingLocationRadius = [
{ name: 50, id: 50 },
{ name: 100, id: 100 },
{ name: 150, id: 150 },
{ name: 200, id: 200 },
{ name: 250, id: 250 },
{ name: 300, id: 300 },
{ name: 350, id: 350 },
{ name: 400, id: 400 },
{ name: 450, id: 450 },
{ name: 500, id: 500 },
];
this.loaderShiftCreate = false;
this.deleteShiftIndex = null;
this.getWeekStartEndDate = function (date, count) {
let datesToReturn = {};
let label = moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').add(count, 'days').format("MMM DD YYYY") + ' to ' + moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').add(count + 6, 'days').format("MMM DD YYYY");
let value = moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').add(count, 'days').format("MM-DD-YYYY");
datesToReturn = { label: label, value: value, key: count, lastDate: moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').add(count + 6, 'days').format("MM-DD-YYYY") };
/* if (count == 0 && $scope.workWeeksDate == undefined) {
$scope.workWeeksDate = value;
}*/
return datesToReturn;
};
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["getGmtOffSet"])();
this.deleteShiftIndex = null;
this.planService.getPageSettingSkill().subscribe((res) => {
this.tier = res['tierType'];
});
this.getBuShift(this.bu);
this.initForm();
this.planService.getWeeks(this.bu._id).subscribe((res) => {
var _a, _b;
this.weekArr2 = res['data'];
let getDate = moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').format("MM-DD-YYYY");
if (this.weekArr2.noOfWeek > 0) {
for (var i = -this.weekArr2.noOfWeek; i <= this.weekArr2.noOfWeek; i++) {
let dummyData = this.getWeekStartEndDate(getDate, 7 * (i));
const res = moment__WEBPACK_IMPORTED_MODULE_2__().diff(dummyData.lastDate, 'days');
if (res === 0 || res < 0) {
this.weekArr1.push(dummyData);
}
}
this.planOpenshiftForm.patchValue({
selectWeek: (_a = this.weekArr1[0]) === null || _a === void 0 ? void 0 : _a.label,
});
this.selectedWeek = (_b = this.weekArr1[0]) === null || _b === void 0 ? void 0 : _b.label;
}
this.getStartEndDate();
this.templateDisplay();
});
this.emptyDayArr();
this.selectTime();
}
getBuShift(bu) {
this.buService.getBuShiftEdit(bu._id).subscribe((res) => {
this.buShiftDetails = res['data']['businessUnitList'];
});
}
getStartEndDate() {
const d = this.planOpenshiftForm.controls.selectWeek.value;
this.selectedWeek = d;
this.weekStartDate = moment__WEBPACK_IMPORTED_MODULE_2__(d === null || d === void 0 ? void 0 : d.slice(0, 11), "MMM DD YYYY").startOf('day');
this.weekEndDate = moment__WEBPACK_IMPORTED_MODULE_2__(this.weekStartDate).isoWeekday(7);
this.disableDayArr = [];
for (var i = 1; i < 7; i++) {
const days = this.weekStartDate.isoWeekday(i);
if (moment__WEBPACK_IMPORTED_MODULE_2__().isAfter(days)) {
this.disableDayArr.push(this.weekStartDate.format('ddd'));
}
}
this.disableDayArr.pop();
if (this.showTemplate) {
this.prefillShiftTemplate();
}
}
selectTime() {
this.time = [];
for (let hour = 0; hour < 24; hour++) {
this.time.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 15 }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 30 }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 45 }).format('HH:mm'));
}
}
getSelectedWeek1() {
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
if (this.btn1.nativeElement.classList.contains('selected')) {
this.dayDate.push({
date: this.dateFormat(date),
day: 'Monday',
startTime: '',
endTime: '',
splitStartTime: '',
splitEndTime: '',
isSplitShift: false,
});
}
else {
var index = this.dayDate.findIndex((x) => x.day === 'Monday');
for (var i = 0; i < this.dayDate.length; i++) {
if (this.dayDate[i].day.indexOf('Monday') != -1) {
this.dayDate = this.removeDay(this.dayDate, index);
}
}
}
}
getSelectedWeek2() {
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
if (this.btn2.nativeElement.classList.contains('selected')) {
this.dayDate.push({
date: this.dateFormat(new Date(date.setDate(date.getDate() + 1))),
day: 'Tuesday',
startTime: '',
endTime: '',
splitStartTime: '',
splitEndTime: '',
isSplitShift: false,
});
}
else {
var index = this.dayDate.findIndex((x) => x.day === 'Tuesday');
for (var i = 0; i < this.dayDate.length; i++) {
if (this.dayDate[i].day.indexOf('Tuesday') != -1) {
this.dayDate = this.removeDay(this.dayDate, index);
}
}
}
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
}
getSelectedWeek3() {
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
if (this.btn3.nativeElement.classList.contains('selected')) {
this.dayDate.push({
date: this.dateFormat(new Date(date.setDate(date.getDate() + 2))),
day: 'Wednesday',
startTime: '',
endTime: '',
splitStartTime: '',
splitEndTime: '',
isSplitShift: false,
});
}
else {
var index = this.dayDate.findIndex((x) => x.day === 'Wednesday');
for (var i = 0; i < this.dayDate.length; i++) {
if (this.dayDate[i].day.indexOf('Wednesday') != -1) {
this.dayDate = this.removeDay(this.dayDate, index);
}
}
}
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
}
getSelectedWeek4() {
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
if (this.btn4.nativeElement.classList.contains('selected')) {
this.dayDate.push({
date: this.dateFormat(new Date(date.setDate(date.getDate() + 3))),
day: 'Thursday',
startTime: '',
endTime: '',
splitStartTime: '',
splitEndTime: '',
isSplitShift: false,
});
}
else {
var index = this.dayDate.findIndex((x) => x.day === 'Thursday');
for (var i = 0; i < this.dayDate.length; i++) {
if (this.dayDate[i].day.indexOf('Thursday') != -1) {
this.dayDate = this.removeDay(this.dayDate, index);
}
}
}
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
}
getSelectedWeek5() {
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
if (this.btn5.nativeElement.classList.contains('selected')) {
this.dayDate.push({
date: this.dateFormat(new Date(date.setDate(date.getDate() + 4))),
day: 'Friday',
startTime: '',
endTime: '',
splitStartTime: '',
splitEndTime: '',
isSplitShift: false,
});
}
else {
var index = this.dayDate.findIndex((x) => x.day === 'Friday');
for (var i = 0; i < this.dayDate.length; i++) {
if (this.dayDate[i].day.indexOf('Friday') != -1) {
this.dayDate = this.removeDay(this.dayDate, index);
}
}
}
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
}
getSelectedWeek6() {
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
if (this.btn6.nativeElement.classList.contains('selected')) {
this.dayDate.push({
date: this.dateFormat(new Date(date.setDate(date.getDate() + 5))),
day: 'Saturday',
startTime: '',
endTime: '',
splitStartTime: '',
splitEndTime: '',
isSplitShift: false,
});
}
else {
var index = this.dayDate.findIndex((x) => x.day === 'Saturday');
for (var i = 0; i < this.dayDate.length; i++) {
if (this.dayDate[i].day.indexOf('Saturday') != -1) {
this.dayDate = this.removeDay(this.dayDate, index);
}
}
}
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
}
getSelectedWeek7() {
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
if (this.btn7.nativeElement.classList.contains('selected')) {
this.dayDate.push({
date: this.dateFormat(new Date(date.setDate(date.getDate() + 6))),
day: 'Sunday',
startTime: '',
endTime: '',
splitStartTime: '',
splitEndTime: '',
isSplitShift: false,
});
}
else {
var index = this.dayDate.findIndex((x) => x.day === 'Sunday');
for (var i = 0; i < this.dayDate.length; i++) {
if (this.dayDate[i].day.indexOf('Sunday') != -1) {
this.dayDate = this.removeDay(this.dayDate, index);
}
}
}
var date = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
}
removeDay(a, index) {
let newDayDate = [...a];
newDayDate.splice(index, 1);
return newDayDate;
}
dateFormat(d) {
var dd = d.getDate().toString();
var mm = (d.getMonth() + 1).toString();
var yy = d.getFullYear().toString();
var date = mm.padStart(2, 0) +
'-' +
dd.padStart(2, 0) +
'-' +
yy +
` 00:00:00 ${this.gmtOffset}`;
return date;
}
addStartTime() {
for (var i = 0; i < this.dayDate.length; i++) {
var d = this.dayDate[i].date.toString();
var t = this.planOpenshiftForm.controls.setTimingStart.value + ':00';
var tstr = t.toString();
d = d.replace('00:00:00', tstr);
var tz = moment__WEBPACK_IMPORTED_MODULE_2__().format('[GMT]ZZ');
d = d.replace(this.gmtOffset, tz);
this.dayDate[i].startTime = d;
}
}
areTimingsOnOtherDay(startTime, endTime) {
const startDateTime = startTime.split(':');
const endDateTime = endTime.split(':');
const startHour = parseInt(startDateTime[0]);
const endHour = parseInt(endDateTime[0]);
return startHour > endHour;
}
addEndTime() {
for (var i = 0; i < this.dayDate.length; i++) {
const nextDay = moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].date).add(1, 'days').format('MM-DD-YYYY');
var d = this.dayDate[i].date.toString();
var t = this.planOpenshiftForm.controls.setTimingEnd.value + ':00';
var tstr = t.toString();
d = d.replace('00:00:00', tstr);
var tz = moment__WEBPACK_IMPORTED_MODULE_2__().format('[GMT]Z');
d = d.replace(this.gmtOffset, tz);
this.dayDate[i].endTime = d;
if (this.areTimingsOnOtherDay(moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].startTime).format("HH:mm"), moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].endTime).format("HH:mm"))) {
this.dayDate[i].endTime = `${nextDay} ${tstr} ${tz}`;
}
}
}
addSplitStartTime() {
for (var i = 0; i < this.dayDate.length; i++) {
const nextDay = moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].date).add(1, 'days').format('MM-DD-YYYY');
var d = this.dayDate[i].date.toString();
var t = this.planOpenshiftForm.controls.splitShiftStart.value + ':00';
var tstr = t.toString();
d = d.replace('00:00:00', tstr);
var tz = moment__WEBPACK_IMPORTED_MODULE_2__().format('[GMT]ZZ');
d = d.replace(this.gmtOffset, tz);
this.dayDate[i].splitStartTime = d;
this.dayDate[i].isSplitShift = true;
if (this.areTimingsOnOtherDay(moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].startTime).format("HH:mm"), moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].splitStartTime).format("HH:mm"))) {
this.dayDate[i].splitStartTime = `${nextDay} ${tstr} ${tz}`;
}
}
}
addSplitEndTime() {
for (var i = 0; i < this.dayDate.length; i++) {
const nextDay = moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].date).add(1, 'days').format('MM-DD-YYYY');
var d = this.dayDate[i].date.toString();
var t = this.planOpenshiftForm.controls.splitShiftEnd.value + ':00';
var tstr = t.toString();
d = d.replace('00:00:00', tstr);
var tz = moment__WEBPACK_IMPORTED_MODULE_2__().format('[GMT]Z');
d = d.replace(this.gmtOffset, tz);
this.dayDate[i].splitEndTime = d;
if (this.areTimingsOnOtherDay(moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].startTime).format("HH:mm"), moment__WEBPACK_IMPORTED_MODULE_2__(this.dayDate[i].splitEndTime).format("HH:mm"))) {
this.dayDate[i].splitEndTime = `${nextDay} ${tstr} ${tz}`;
}
}
}
addSplitTime() {
this.splitArr = [];
const splitst = this.planOpenshiftForm.controls.splitShiftStart.value;
const splitet = this.planOpenshiftForm.controls.splitShiftEnd.value;
for (var s = 0; s < this.dayDate.length; s++) {
const sdstr = this.dayDate[s].startTime.slice(11, 16);
const edstr = this.dayDate[s].endTime.slice(11, 16);
var splitArrSt = this.dayDate[s].startTime
.toString()
.replace(sdstr, splitst);
var splitArrEt = this.dayDate[s].endTime
.toString()
.replace(edstr, splitet);
this.splitArr.push({
date: this.dayDate[s].date,
day: this.dayDate[s].day,
startTime: splitArrSt,
endTime: splitArrEt,
});
}
}
emptyDayArr() {
this.dayDate = [];
this.btn1.nativeElement.classList.remove('selected');
this.btn2.nativeElement.classList.remove('selected');
this.btn3.nativeElement.classList.remove('selected');
this.btn4.nativeElement.classList.remove('selected');
this.btn5.nativeElement.classList.remove('selected');
this.btn6.nativeElement.classList.remove('selected');
this.btn7.nativeElement.classList.remove('selected');
}
initForm() {
this.planOpenshiftForm = this.formBuilder.group({
businessUnitId: [null],
selectWeek: [null],
confirmStaffNeed: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
standByStaffNeed: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
setTimingStart: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
setTimingEnd: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
splitShift: [null],
splitShiftStart: [null],
splitShiftEnd: [null],
mainSkillSets: [null],
subSkillSets: [null],
reportingLocation: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
selectDay: [null],
shiftTemplate: [null],
proximity: [null],
isCheckInEnabled: [null],
isProximityEnabled: [null],
});
this.displaySkilltable();
this.buService.getRepoLocations(this.bu._id).subscribe((res) => {
this.buRepoLocation = res['data'].reportingLocation;
this.buService.getGeoRepoLocations(this.bu._id).subscribe((res) => {
this.locations = res['result'].geoReportingLocation;
this.buRepoLocation = this.buRepoLocation.concat(this.locations);
});
});
this.buService.getBuShiftGeoLocation(this.bu._id).subscribe((res) => {
const data = res['result'];
this.radius = data.proximity;
this.isCheckInEnabled = data.isCheckInEnabled;
this.isProximityEnabled = data.isProximityEnabled;
this.planOpenshiftForm.patchValue({
proximity: this.radius,
isCheckInEnabled: this.isCheckInEnabled.toString(),
isProximityEnabled: this.isProximityEnabled.toString(),
});
});
}
templateDisplay() {
var d = new Date();
var dISO = d.toISOString();
this.template = {
businessUnitId: this.bu._id,
weekRangeStartsAt: this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0),
date: dISO,
};
this.planService.getTemplate(this.template).subscribe((res) => {
this.selectShiftTemp = res['data']['templates'];
});
}
deleteTemplateModal() {
this.delete = true;
}
setTemplateDelete() {
var _a;
this.delete = false;
const payload = {
"templateId": (_a = this.ShiftTemplateTable) === null || _a === void 0 ? void 0 : _a._id
};
let success = false;
this.planService.deleteTemplate(payload).subscribe((res) => {
const result = res['data'];
this.ShiftTemplateTable = {};
this.openPlanshift = {};
this.selectShiftTemp = this.selectShiftTemp.filter(t => t._id != payload.templateId);
this.planOpenshiftForm.controls.shiftTemplate.setValue(null);
this.toastr.success(result, 'Successfully');
success = true;
}, error => {
var _a;
this.toastr.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
success = false;
});
}
deleteShiftInTemplateModal(id, index) {
this.shiftUniqueID = id.uniqueId;
this.deleteShiftTemplate = true;
this.deleteShiftIndex = index;
}
removeShiftInTemplate(id, index) {
var _a, _b, _c, _d, _e;
(_b = (_a = this.openPlanshift) === null || _a === void 0 ? void 0 : _a['shifts']) === null || _b === void 0 ? void 0 : _b.splice(index, 1);
(_c = this.timeSlot) === null || _c === void 0 ? void 0 : _c.splice(index, 1);
(_d = this.skillTableLabels) === null || _d === void 0 ? void 0 : _d.splice(index, 1);
(_e = this.shiftDay) === null || _e === void 0 ? void 0 : _e.splice(index, 1);
}
deleteShiftInTemplate() {
this.deleteShiftTemplate = false;
const payload = {
"templateId": this.ShiftTemplateTable._id,
"planShiftToDelete": this.shiftUniqueID
};
this.planService.deleteShiftTemplate(payload).subscribe((res) => {
var _a, _b, _c;
const result = res['data'];
this.openPlanshift['shifts'] = this.openPlanshift['shifts'].filter((val) => {
return val.uniqueId != this.shiftUniqueID;
});
this.toastr.success(result, 'Successfully');
(_a = this.timeSlot) === null || _a === void 0 ? void 0 : _a.splice(this.deleteShiftIndex, 1);
(_b = this.skillTableLabels) === null || _b === void 0 ? void 0 : _b.splice(this.deleteShiftIndex, 1);
(_c = this.shiftDay) === null || _c === void 0 ? void 0 : _c.splice(this.deleteShiftIndex, 1);
}, error => {
this.toastr.error(error);
});
}
changeToDate(d, n) {
if (!!d) {
var months = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
var sd = d.slice(4, 6).toString();
var dd = parseInt(sd);
var smm = d.slice(0, 3);
var mm = months.indexOf(smm);
var yy = parseInt(d.slice(7, 11));
var startDate = new Date(yy, mm, dd);
if (n == 0) {
var startDate = new Date(yy, mm, dd);
return startDate;
}
else if (n == 1) {
var endDate = new Date(startDate.setDate(startDate.getDate() + 6));
return endDate;
}
}
}
prefillShiftTemplate() {
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
this.showShift = true;
this.showTemplate = true;
this.ShiftTemplateTable =
this.planOpenshiftForm.controls.shiftTemplate.value;
this.dayDate = [];
this.shiftTempArr = [];
this.skillSetArry2 = [];
this.skillLabels2 = [];
this.skillTableArry = [];
this.skillTableLabels = [];
this.timeSlot = [];
/*for (var i = 1; i < 8; i++) {
const days = this.weekStartDate.isoWeekday(i);
this.disableDayArr.push(this.weekStartDate.format('ddd'));
}*/
this.disableDayArr = [];
for (var i = 1; i < 7; i++) {
const days = this.weekStartDate.isoWeekday(i);
if (moment__WEBPACK_IMPORTED_MODULE_2__().isAfter(days)) {
this.disableDayArr.push(this.weekStartDate.format('ddd'));
}
}
this.disableDayArr.pop();
this.ShiftTempSt = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0);
this.ShiftTempEt = this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 1);
const ids = (_b = (_a = this.ShiftTemplateTable) === null || _a === void 0 ? void 0 : _a.shifts) === null || _b === void 0 ? void 0 : _b.map(item => item === null || item === void 0 ? void 0 : item.uniqueId);
const uniqueIds = [...new Set(ids)];
const shiftArray = uniqueIds === null || uniqueIds === void 0 ? void 0 : uniqueIds.map(data => {
var _a, _b;
const sameShiftArray = (_b = (_a = this.ShiftTemplateTable) === null || _a === void 0 ? void 0 : _a.shifts) === null || _b === void 0 ? void 0 : _b.filter(item => item.uniqueId === data);
return sameShiftArray;
});
shiftArray.map((item) => {
let shifts = {};
item === null || item === void 0 ? void 0 : item.forEach((val) => {
var _a;
const startTime = moment__WEBPACK_IMPORTED_MODULE_2__(val.startTime).format("HH:mm");
const endTime = moment__WEBPACK_IMPORTED_MODULE_2__(val.endTime).format("HH:mm");
const selectedDate = moment__WEBPACK_IMPORTED_MODULE_2__(this.ShiftTempSt, 'MM-DD-YYYY').isoWeekday(val.day).format('MM-DD-YYYY');
const otherDayFlag = this.areTimingsOnOtherDay(startTime, endTime);
const nextDay = moment__WEBPACK_IMPORTED_MODULE_2__(selectedDate).add(1, 'days').format('MM-DD-YYYY');
let shiftEndDateTime = this.calculateDateTimeString(selectedDate, val.endTime);
let splitStartTime = val.isSplitShift ? (val.splitStartTime ? this.calculateDateTimeString(selectedDate, val.splitStartTime) : "") : "";
let splitEndTime = val.isSplitShift ? (val.splitEndTime ? this.calculateDateTimeString(selectedDate, val.splitEndTime) : "") : "";
let isSplitStartOtherDay = false;
let isSplitEndOtherDay = false;
if (otherDayFlag) {
shiftEndDateTime = nextDay + " " + endTime + ":00 GMT" + moment__WEBPACK_IMPORTED_MODULE_2__().format('ZZ');
}
if (val.isSplitShift) {
isSplitStartOtherDay = this.areTimingsOnOtherDay(startTime, moment__WEBPACK_IMPORTED_MODULE_2__(val.splitStartTime).format("HH:mm"));
isSplitEndOtherDay = this.areTimingsOnOtherDay(startTime, moment__WEBPACK_IMPORTED_MODULE_2__(val.splitEndTime).format("HH:mm"));
if (isSplitStartOtherDay) {
splitStartTime = this.calculateDateTimeString(nextDay, val.splitStartTime);
}
if (isSplitEndOtherDay) {
splitEndTime = this.calculateDateTimeString(nextDay, val.splitEndTime);
}
}
this.skillSetArry2 = [];
this.skillLabels2 = [];
if (this.tier == 2) {
val.subSkillSets.forEach((el) => {
this.skillSetArry2.push(el._id);
this.skillLabels2.push([el.skillSetId.name, el.name]);
});
}
else {
val.mainSkillSets.forEach((el) => {
this.skillSetArry2.push(el._id);
this.skillLabels2.push([el.name, '_']);
});
}
let dayObj = {
date: moment__WEBPACK_IMPORTED_MODULE_2__(this.ShiftTempSt, 'MM-DD-YYYY')
.isoWeekday(val.day)
.format('MM-DD-YYYY 00:00:00 [GMT]ZZ'),
day: val.day,
isSplitShift: val === null || val === void 0 ? void 0 : val.isSplitShift,
uniqueId: val.uniqueId,
startTime: this.calculateDateTimeString(selectedDate, val.startTime),
endTime: shiftEndDateTime,
splitStartTime: splitStartTime,
splitEndTime: splitEndTime,
};
this.dayDate.push(dayObj);
shifts = {
staffNeedCount: val.staffNeedCount,
backUpStaffNeedCount: val.backUpStaffNeedCount,
dayDate: this.dayDate,
reportLocationId: (_a = val.reportLocationId) === null || _a === void 0 ? void 0 : _a._id,
status: '1',
isSplitShift: val === null || val === void 0 ? void 0 : val.isSplitShift,
uniqueId: val.uniqueId,
};
if (this.tier == 2) {
shifts['subSkillSets'] = this.skillSetArry2;
}
else {
shifts['mainSkillSets'] = this.skillSetArry2;
shifts['skillSetTierType'] = this.tier;
shifts['subSkillSets'] = [];
}
});
this.skillTableArry.push(this.skillSetArry2);
this.skillTableLabels.push(this.skillLabels2);
this.shiftTempArr.push(shifts);
this.chkday = [];
this.dayDate.forEach((val) => {
this.chkday.push(val.day);
});
this.shiftDay.push([...new Set(this.chkday)]);
this.dayDate = [];
});
this.chkday = [];
this.dayDate.forEach((val) => {
this.chkday.push(val.day);
});
this.chkday = [...this.chkday];
this.openPlanshift = {
businessUnitId: this.bu._id,
businessUnitName: '',
weekRangeStartsAt: this.dateFormat(this.changeToDate((_e = (_d = (_c = this.planOpenshiftForm) === null || _c === void 0 ? void 0 : _c.controls) === null || _d === void 0 ? void 0 : _d.selectWeek) === null || _e === void 0 ? void 0 : _e.value, 0)),
weekRangeEndsAt: this.dateFormat(this.changeToDate((_h = (_g = (_f = this.planOpenshiftForm) === null || _f === void 0 ? void 0 : _f.controls) === null || _g === void 0 ? void 0 : _g.selectWeek) === null || _h === void 0 ? void 0 : _h.value, 1)),
shifts: this.shiftTempArr,
status: '1',
isTemplate: 1,
templateId: (_j = this.ShiftTemplateTable) === null || _j === void 0 ? void 0 : _j._id,
platform: 'web',
skillSetTierType: this.tier,
};
this.shiftTempArr.forEach((val, index, arr) => {
if (arr[index].isSplitShift) {
this.timeSlot.push([
[arr[index].dayDate[0].startTime, arr[index].dayDate[0].endTime],
[arr[index].dayDate[0].splitStartTime, arr[index].dayDate[0].splitEndTime],
]);
}
else {
this.timeSlot.push([
[arr[index].dayDate[0].startTime, arr[index].dayDate[0].endTime],
]);
}
});
this.dayDate = [];
}
// Define a function to calculate the date and time string
calculateDateTimeString(date, time) {
return date + " " + moment__WEBPACK_IMPORTED_MODULE_2__(time).format("HH:mm") + ":00 GMT" + moment__WEBPACK_IMPORTED_MODULE_2__().format('ZZ');
}
displaySkilltable() {
this.buService.getSkillset(this.bu._id).subscribe((res) => {
this.buSkillSet = res['data'].skillSets;
if (res['data'].mainSkillSets.length > 0) {
this.buSkillSet = res['data'].mainSkillSets;
}
});
}
onPlanSkillSetChange($event) {
const index = this.buSkillSet.findIndex((val, index) => val._id === $event._id);
this.buSkillspeciality = this.buSkillSet[index].subSkillSets;
this.planOpenshiftForm.patchValue({
subSkillSets: null,
});
}
addUserSkillbutton() {
var _a, _b, _c, _d;
if (this.tier == 2) {
if (this.skillSetArry.indexOf((_a = this.planOpenshiftForm.get('subSkillSets').value) === null || _a === void 0 ? void 0 : _a._id) > -1) {
this.toastr.warning('Already Exists', 'Warning');
}
else {
this.skillSetArry.push((_b = this.planOpenshiftForm.get('subSkillSets').value) === null || _b === void 0 ? void 0 : _b._id);
this.skillLabels.push([
(_c = this.planOpenshiftForm.get('mainSkillSets').value) === null || _c === void 0 ? void 0 : _c.name,
(_d = this.planOpenshiftForm.get('subSkillSets').value) === null || _d === void 0 ? void 0 : _d.name,
]);
}
}
else {
if (this.skillSetArry.indexOf(this.planOpenshiftForm.get('mainSkillSets').value._id) > -1) {
this.toastr.warning('Already Exists', 'Warning');
}
else {
this.skillSetArry.push(this.planOpenshiftForm.get('mainSkillSets').value._id);
this.skillLabels.push([
this.planOpenshiftForm.get('mainSkillSets').value.name,
'_',
]);
}
}
this.planOpenshiftForm.get('mainSkillSets').setValue(null);
this.planOpenshiftForm.get('subSkillSets').setValue(null);
}
clearLabel(i) {
this.skillSetArry.splice(i, 1);
this.skillLabels.splice(i, 1);
}
addShiftTemplate() {
var _a, _b, _c, _d, _e;
if (this.planOpenshiftForm.invalid || this.skillLabels.length == 0) {
return;
}
this.addStartTime();
this.addEndTime();
if (this.isSplit) {
const firstSplitEndTime = this.planOpenshiftForm.controls.setTimingEnd.value;
const secondSplitStartTime = this.planOpenshiftForm.controls.splitShiftStart.value;
var startTime = moment__WEBPACK_IMPORTED_MODULE_2__(firstSplitEndTime, 'HH:mm');
var endTime = moment__WEBPACK_IMPORTED_MODULE_2__(secondSplitStartTime, 'HH:mm');
var duration = endTime.diff(startTime);
if (duration < 0) {
this.toastr.error('Second split timing is overlapping with the first split timing', 'Failed', { timeOut: 3000 });
return;
}
this.timeSlotTable.push([
[
this.planOpenshiftForm.controls.setTimingStart.value,
firstSplitEndTime,
],
[
secondSplitStartTime,
this.planOpenshiftForm.controls.splitShiftEnd.value,
],
]);
this.addSplitTime();
this.addSplitStartTime();
this.addSplitEndTime();
this.mockDayDate = this.dayDate;
const concatSplitArr = this.mockDayDate.concat(this.splitArr);
this.mockDayDate = concatSplitArr;
}
else {
this.timeSlotTable.push([
[
this.planOpenshiftForm.controls.setTimingStart.value,
this.planOpenshiftForm.controls.setTimingEnd.value,
],
]);
}
this.showShift = true;
this.chkday = [];
this.dayDate.forEach((val) => {
this.chkday.push(val.day);
});
this.shiftDay.push([...new Set(this.chkday)]);
this.skillTableArry = [...this.skillSetArry];
this.skillTableLabels.push([...this.skillLabels]);
const shifts = {
staffNeedCount: parseInt(this.planOpenshiftForm.controls.confirmStaffNeed.value),
dayDate: this.dayDate,
reportLocationId: this.planOpenshiftForm.controls.reportingLocation.value._id,
status: '1',
isSplitShift: this.isSplit,
};
const index = this.locations.find((data) => {
return data._id == this.planOpenshiftForm.controls.reportingLocation.value._id;
});
// Add/Show Standby staff if bushift standby has it true
if ((_a = this.buShiftDetails) === null || _a === void 0 ? void 0 : _a.standByShiftPermission) {
shifts['backUpStaffNeedCount'] = parseInt(this.planOpenshiftForm.controls.standByStaffNeed.value);
}
// 'createdAt' property is not in geoloaction obj and used to identify location is geo or text.
if (!index) {
shifts['geoReportingLocation'] = null;
shifts['reportLocationId'] =
this.planOpenshiftForm.controls.reportingLocation.value._id;
}
else {
shifts['reportLocationId'] = null;
shifts['geoReportingLocation'] =
this.planOpenshiftForm.controls.reportingLocation.value._id;
}
if (this.tier == 2) {
shifts['subSkillSets'] = this.skillTableArry;
}
else {
shifts['mainSkillSets'] = this.skillTableArry;
shifts['subSkillSets'] = [];
shifts['skillSetTierType'] = this.tier;
}
this.shiftsArr.push(shifts);
if (this.showTemplate) {
const tempVar = [];
tempVar.push(shifts);
const previousShift = (_b = this.openPlanshift) === null || _b === void 0 ? void 0 : _b['shifts'];
const finalShift = [...previousShift, ...tempVar];
this.openPlanshift = {
businessUnitId: this.bu._id,
businessUnitName: '',
weekRangeStartsAt: this.dateFormat(this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0)),
weekRangeEndsAt: this.dateFormat(this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 1)),
shifts: finalShift,
status: '1',
isTemplate: 1,
templateId: this.ShiftTemplateTable._id,
platform: 'web',
skillSetTierType: this.tier,
proximity: this.radius,
isCheckInEnabled: this.isCheckInEnabled,
isProximityEnabled: this.isProximityEnabled,
};
}
else {
this.openPlanshift = {
businessUnitId: this.bu._id,
businessUnitName: '',
weekRangeStartsAt: this.dateFormat(this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 0)),
weekRangeEndsAt: this.dateFormat(this.changeToDate(this.planOpenshiftForm.controls.selectWeek.value, 1)),
shifts: this.shiftsArr,
status: '1',
isTemplate: 0,
platform: 'web',
skillSetTierType: this.tier,
proximity: this.radius,
isCheckInEnabled: this.isCheckInEnabled,
isProximityEnabled: this.isProximityEnabled,
};
}
if (this.isSplit) {
this.mockDayDate.forEach((val, indx) => {
if (val.day == this.mockDayDate[0].day && indx != 0) {
this.timeSlot.push([
[this.mockDayDate[0].startTime, this.mockDayDate[0].endTime],
[val.startTime, val.endTime],
]);
}
});
}
else {
this.timeSlot.push([
[(_c = this.dayDate[0]) === null || _c === void 0 ? void 0 : _c.startTime, (_d = this.dayDate[0]) === null || _d === void 0 ? void 0 : _d.endTime],
]);
}
this.resetForm();
(_e = this.planOpenshiftForm.get('selectWeek')) === null || _e === void 0 ? void 0 : _e.disable();
this.toastr.info('Shift added below', 'Added below');
}
clearShifts() {
this.dayDate = [];
this.shiftTempArr = [];
this.shiftsArr = [];
this.skillSetArry2 = [];
this.skillLabels2 = [];
this.skillTableArry = [];
this.skillTableLabels = [];
this.timeSlot = [];
this.chkday = [];
this.shiftDay = [];
this.showShift = false;
this.openPlanshift = {};
}
resetForm() {
var _a;
this.planOpenshiftForm.reset();
this.planOpenshiftForm.patchValue({
selectWeek: this.selectedWeek,
shiftTemplate: this.ShiftTemplateTable,
isCheckInEnabled: (_a = this.isCheckInEnabled) === null || _a === void 0 ? void 0 : _a.toString()
});
this.skillSetArry = [];
this.skillLabels = [];
this.isSplit = false;
this.isSplitShift = false;
this.dayDate = [];
this.btn1.nativeElement.classList.remove('selected');
this.btn2.nativeElement.classList.remove('selected');
this.btn3.nativeElement.classList.remove('selected');
this.btn4.nativeElement.classList.remove('selected');
this.btn5.nativeElement.classList.remove('selected');
this.btn6.nativeElement.classList.remove('selected');
this.btn7.nativeElement.classList.remove('selected');
}
clearSkills() {
this.skillSetArry = [];
this.skillLabels = [];
this.planOpenshiftForm.patchValue({
mainSkillSets: null,
});
this.tier == 2 &&
this.planOpenshiftForm.patchValue({
subSkillSets: null,
});
}
onShiftSubmit() {
if (this.openPlanshift) {
this.loaderShiftCreate = true;
const openShiftCreate = this.planService
.createShift(this.openPlanshift)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.loaderShiftCreate = false;
openShiftCreate.unsubscribe();
}))
.subscribe((res) => {
if ((res === null || res === void 0 ? void 0 : res.data) == 'Shift created successfully')
this.toastr.success('Shift Created Successfully', 'Success');
else
this.toastr.warning(res === null || res === void 0 ? void 0 : res.data, 'Warning');
this.changeTab.emit(5);
this.weekStart.emit(this.openPlanshift);
});
}
else {
this.toastr.warning('Please add shift first by filling the above form', 'Warning');
}
}
clearshift() {
this.openPlanshift = '';
this.shiftsArr = [];
}
savePlanTemplate() {
const saveShiftTemp = this.planService
.savePlanShift(this.openPlanshift)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
saveShiftTemp.unsubscribe();
}))
.subscribe((res) => {
this.toastr.success('Saved Shift Template', 'Successfully');
this.changeTab.emit(5);
});
}
setSplitShift(e) {
if (e.target.checked) {
this.isSplit = true;
this.isSplitShift = true;
}
else {
this.isSplit = false;
this.isSplitShift = false;
}
}
changeReportingLocationRadius(reportingLoc) {
this.radius = reportingLoc.id;
}
changeCheckinEnable(value) {
this.isCheckInEnabled = value;
if (value == 'false') {
this.planOpenshiftForm.patchValue({
isProximityEnabled: 'false',
});
this.isProximityEnabled = 'false';
}
}
changeProximityEnable(value) {
this.isProximityEnabled = value;
if (value == 'false') {
this.planOpenshiftForm.patchValue({
isProximityEnabled: 'false',
proximity: null,
});
}
}
}
OpenShiftComponent.ɵfac = function OpenShiftComponent_Factory(t) { return new (t || OpenShiftComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_6__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"])); };
OpenShiftComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: OpenShiftComponent, selectors: [["app-open-shift"]], viewQuery: function OpenShiftComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c2, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c3, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c4, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c5, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c6, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.btn1 = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.btn2 = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.btn3 = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.btn4 = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.btn5 = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.btn6 = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.btn7 = _t.first);
} }, inputs: { bu: "bu", tier: "tier" }, outputs: { changeTab: "changeTab", weekStart: "weekStart" }, decls: 205, vars: 54, consts: [[1, "card", "mb-3"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body"], [3, "formGroup"], [1, "row"], [1, "col"], [1, "form-group"], [1, "font-weight-500"], [1, "field-mandatory", "mandatory_Star"], ["formControlName", "selectWeek", "placeholder", "Select Week", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect", "change"], [4, "ngFor", "ngForOf"], [1, "form-group", "row"], [1, "align-self-end", "col-sm-4", "font-weight-500"], [1, "col-sm-4"], [1, ""], ["type", "text", "formControlName", "confirmStaffNeed", 1, "form-control"], ["class", "col-sm-4", 4, "ngIf"], ["bindLabel", "name", "formControlName", "shiftTemplate", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "change"], [1, "border", "rounded", "p-3"], ["bindLabel", "name", "formControlName", "setTimingStart", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "change"], ["bindLabel", "name", "formControlName", "setTimingEnd", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "change"], [1, "col-md-4"], [1, "form-check"], ["type", "checkbox", "formControlName", "splitShift", "id", "splitShift", "name", "splitShift", 1, "form-check-input", 3, "change"], [1, "form-check-label"], [4, "ngIf"], [1, "row", "mt-3"], [1, "form-group", "border", "rounded", "p-3"], [1, "mb-2", "mt-1"], [1, "dayButton", "m-0", 3, "disabled", "click"], ["btn1", ""], [1, "dayButton", 3, "disabled", "click"], ["btn2", ""], ["btn3", ""], ["btn4", ""], ["btn5", ""], ["btn6", ""], ["btn7", ""], [1, "col-sm-8"], ["bindLabel", "name", "formControlName", "reportingLocation", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "form-check", "form-check-inline"], ["type", "radio", "value", "true", "id", "yesCheckin", "formControlName", "isCheckInEnabled", "name", "isCheckInEnabled", 1, "form-check-input", 3, "click"], ["type", "radio", "value", "false", "id", "noCheckin", "formControlName", "isCheckInEnabled", "name", "isCheckInEnabled", 1, "form-check-input", 3, "click"], ["class", "form-group row", 4, "ngIf"], [1, "col-md-3", "align-self-end"], ["bindLabel", "name", "formControlName", "mainSkillSets", "placeholder", "Skillsets", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "change"], ["class", "col-md-3 align-self-end", 4, "ngIf"], [1, "col-md-2", "align-self-end"], [1, "btn", "btn-danger", "btn-sm", 3, "click"], [1, "btn", "btn-success", "btn-sm", "ml-1", 3, "disabled", "click"], [1, "col-md-4", "align-self-end"], [1, "card-footer", "d-flex", "justify-content-center"], [1, "btn", "btn-success", 3, "disabled", "click"], [1, "btn", "btn-danger", "ml-1", 3, "click"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body", "p-0"], [1, "table-responsive"], [1, "table", "table-striped"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col"], ["class", "spinner-border spinner-border-sm ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "btn", "btn-info", "ml-1", 3, "click"], [1, "btn", "btn-danger", "ml-1", 2, "background-color", "#a42138", 3, "disabled", "click"], ["id", "mmmModal", 1, "modal", 3, "ngClass"], [1, "modal-dialog", 2, "margin-top", "80px", "width", "311px", "height", "200px"], [1, "modal-content", "modalContentBoxGrey"], [1, "modal-body"], [2, "font-size", "17px"], [1, "modal-footer"], [1, "btn", "footer-button", "btn-warning", 3, "click"], [1, "btn", "footer-button", "btn-primary", 2, "margin-right", "80px", 3, "click"], [3, "value"], ["type", "text", "formControlName", "standByStaffNeed", 1, "form-control"], ["bindLabel", "name", "formControlName", "splitShiftStart", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "name", "formControlName", "splitShiftEnd", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["type", "radio", "value", "true", "id", "yesProx", "formControlName", "isProximityEnabled", "name", "isProximityEnabled", 1, "form-check-input", 3, "click"], ["type", "radio", "value", "false", "id", "noProx", "formControlName", "isProximityEnabled", "name", "isProximityEnabled", 1, "form-check-input", 3, "click"], ["bindLabel", "name", "formControlName", "proximity", "name", "proximity", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect", "change"], [3, "value", 4, "ngFor", "ngForOf"], [1, "field-mandatory", "mandatory_Star", "mandatory_Star"], ["bindLabel", "name", "formControlName", "subSkillSets", "placeholder", "Speciality", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "closeOnSelect", "clearable"], ["class", "labels mr-1 mb-1", 4, "ngFor", "ngForOf"], [1, "labels", "mr-1", "mb-1"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], ["class", "m-0", 4, "ngFor", "ngForOf"], ["class", "material-icons", 4, "ngIf"], [1, "material-icons"], [1, "btn", "btn-danger", "ml-1", 2, "background-color", "#a42138", "width", "6rem", 3, "click"], [1, "btn", "btn-warning", "ml-1", 2, "background-color", "#f5ca3c", "width", "6rem", 3, "click"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-1"]], template: function OpenShiftComponent_Template(rf, ctx) { if (rf & 1) {
const _r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "CREATE SHIFT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Select Week");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "ng-select", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpenShiftComponent_Template_ng_select_change_16_listener() { ctx.emptyDayArr(); return ctx.getStartEndDate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, OpenShiftComponent_ng_container_17_Template, 3, 2, "ng-container", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Number of Shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Confirmed");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](31, OpenShiftComponent_div_31_Template, 7, 0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Shift Template");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "ng-select", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpenShiftComponent_Template_ng_select_change_38_listener() { return ctx.prefillShiftTemplate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Set Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "Start Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](51, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "ng-select", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpenShiftComponent_Template_ng_select_change_52_listener() { return ctx.addStartTime(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, "End Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](58, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "ng-select", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpenShiftComponent_Template_ng_select_change_59_listener() { return ctx.addEndTime(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "input", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpenShiftComponent_Template_input_change_63_listener($event) { return ctx.setSplitShift($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "Split Shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](66, OpenShiftComponent_ng_container_66_Template, 15, 10, "ng-container", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71, "Select Day");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](73, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "button", 30, 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_75_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](76); _r3.classList.toggle("selected"); return ctx.getSelectedWeek1(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, " M ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "button", 32, 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_78_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](79); _r4.classList.toggle("selected"); return ctx.getSelectedWeek2(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, " T ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "button", 32, 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_81_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](82); _r5.classList.toggle("selected"); return ctx.getSelectedWeek3(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, " W ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "button", 32, 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_84_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](85); _r6.classList.toggle("selected"); return ctx.getSelectedWeek4(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](86, " T ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](87, "button", 32, 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_87_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](88); _r7.classList.toggle("selected"); return ctx.getSelectedWeek5(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](89, " F ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "button", 32, 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_90_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](91); _r8.classList.toggle("selected"); return ctx.getSelectedWeek6(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](92, " S ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](93, "button", 32, 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_93_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](94); _r9.classList.toggle("selected"); return ctx.getSelectedWeek7(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](95, " S ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](97, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](98, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](99, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](100, "Report to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](101, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](102, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](104, "ng-select", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](105, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](106, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](107, "Enable Check-in");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](108, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](109, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](110, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](111, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](112, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_input_click_112_listener() { return ctx.changeCheckinEnable(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](113, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](114, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](115, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](116, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_input_click_116_listener() { return ctx.changeCheckinEnable(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](117, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](118, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](119, OpenShiftComponent_div_119_Template, 12, 0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](120, OpenShiftComponent_div_120_Template, 6, 5, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](121, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](122, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](123, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](124, "Select Skillsets ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](125, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](126, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](127, "ng-select", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpenShiftComponent_Template_ng_select_change_127_listener($event) { return ctx.onPlanSkillSetChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](128, OpenShiftComponent_div_128_Template, 6, 5, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](129, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](130, "button", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_130_listener() { return ctx.clearSkills(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](131, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](132, "button", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_132_listener() { return ctx.addUserSkillbutton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](133, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](134, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](135, OpenShiftComponent_ng_container_135_Template, 2, 1, "ng-container", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](136, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](137, "button", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_137_listener() { return ctx.addShiftTemplate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](138, " Add Shifts As Draft ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](139, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_139_listener() { return ctx.resetForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](140, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](141, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](142, "h5", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](143, "PLAN SHIFT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](144, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](145, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](146, "table", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](147, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](148, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](149, "th", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](150, "Timing/Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](151, "th", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](152, "Skillsets");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](153, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](154, "Mon");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](155, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](156, "Tue");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](157, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](158, "Wed");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](159, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](160, "Thu");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](161, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](162, "Fri");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](163, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](164, "Sat");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](165, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](166, "Sun");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](167, "th", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](168, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](169, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](170, OpenShiftComponent_ng_container_170_Template, 2, 1, "ng-container", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](171, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](172, "button", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_172_listener() { return ctx.onShiftSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](173, " Publish Shifts ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](174, OpenShiftComponent_span_174_Template, 1, 0, "span", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](175, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_175_listener() { return ctx.clearShifts(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](176, " Clear Plan ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](177, "button", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_177_listener() { return ctx.savePlanTemplate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](178, " Save Template ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](179, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_179_listener() { return ctx.deleteTemplateModal(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](180, " Delete Template ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](181, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](182, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](183, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](184, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](185, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](186, "h4", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](187, " Are you sure you want to delete this Template? ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](188, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](189, "button", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_189_listener() { return ctx.setTemplateDelete(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](190, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](191, "button", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_191_listener() { return ctx.delete = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](192, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](193, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](194, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](195, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](196, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](197, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](198, "h4", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](199, " Are you sure you want to delete this shift from this template? ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](200, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](201, "button", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_201_listener() { return ctx.deleteShiftInTemplate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](202, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](203, "button", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpenShiftComponent_Template_button_click_203_listener() { return ctx.deleteShiftTemplate = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](204, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.bu.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.planOpenshiftForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.weekArr1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.buShiftDetails == null ? null : ctx.buShiftDetails.standByShiftPermission);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.selectShiftTemp)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.time)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.time)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disableDayArr.includes("Mon"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disableDayArr.includes("Tue"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disableDayArr.includes("Wed"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disableDayArr.includes("Thu"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disableDayArr.includes("Fri"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disableDayArr.includes("Sat"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disableDayArr.includes("Sun"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.buRepoLocation)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.planOpenshiftForm.get("isCheckInEnabled").value == "true");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.planOpenshiftForm.get("isProximityEnabled").value == "true" && ctx.planOpenshiftForm.get("isCheckInEnabled").value == "true");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.buSkillSet)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.tier == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.tier == 2 ? !((ctx.planOpenshiftForm.get("mainSkillSets").value == null ? null : ctx.planOpenshiftForm.get("mainSkillSets").value.name) && (ctx.planOpenshiftForm.get("subSkillSets").value == null ? null : ctx.planOpenshiftForm.get("subSkillSets").value.name)) : !(ctx.planOpenshiftForm.get("mainSkillSets").value == null ? null : ctx.planOpenshiftForm.get("mainSkillSets").value.name));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.skillLabels != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.planOpenshiftForm.invalid || !(!!ctx.skillLabels && (ctx.skillLabels == null ? null : ctx.skillLabels.length)) || !(!!ctx.dayDate && (ctx.dayDate == null ? null : ctx.dayDate.length)));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.loaderShiftCreate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loaderShiftCreate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !(ctx.ShiftTemplateTable == null ? null : ctx.ShiftTemplateTable._id));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.delete ? "show-modal" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.deleteShiftTemplate ? "show-modal" : "");
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_11__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["ɵr"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: [".flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.show-modal[_ngcontent-%COMP%] {\n display: block;\n}\n\n.margin-horizontal[_ngcontent-%COMP%] {\n margin: 0 1rem;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.padding-left[_ngcontent-%COMP%] {\n padding-left: 0.5rem;\n}\n\n.checkbox[_ngcontent-%COMP%] {\n height: 20px;\n width: 20px;\n top: 0;\n left: 0;\n}\n\n.dayHeader[_ngcontent-%COMP%] {\n margin: 0.5rem;\n}\n\n.dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-left: 10px;\n font-weight: 500;\n color: #a42138;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover {\n outline: none;\n background-color: #a42138;\n color: #fff;\n}\n\n.dayButton[_ngcontent-%COMP%]:disabled {\n color: #a42138;\n background-color: white;\n cursor: not-allowed;\n opacity: 0.8;\n}\n\n.selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #a42138;\n color: white;\n opacity: 1;\n}\n\n.dayDiv[_ngcontent-%COMP%] {\n border: 1px solid #dfdfdf;\n border-radius: 4px;\n}\n\n.title[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n\n.ph-2[_ngcontent-%COMP%] {\n padding: 0 0.25rem;\n}\n\n.hide[_ngcontent-%COMP%] {\n display: none;\n}\n\n.center-placed[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.btn-clear[_ngcontent-%COMP%] {\n background-color: #ec3636;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n margin-left: 6px;\n cursor: pointer;\n}\n\n.chckhide[_ngcontent-%COMP%] {\n color: #ec3636;\n}\n\n.chckhide[_ngcontent-%COMP%]:first-child {\n display: none;\n}\n\n.btn[_ngcontent-%COMP%]:disabled {\n cursor: not-allowed;\n}\n\n.spinner-border[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\n.mandatory_Star[_ngcontent-%COMP%] {\n font-size: 20px;\n margin-left: 3px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9vcGVuLXNoaWZ0L29wZW4tc2hpZnQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxhQUFBO0VBQ0EsOEJBQUE7QUFDRjs7QUFDQTtFQUNFLGNBQUE7QUFFRjs7QUFBQTtFQUNFLGNBQUE7QUFHRjs7QUFBQTtFQUNFLFVBQUE7QUFHRjs7QUFBQTtFQUNFLG9CQUFBO0FBR0Y7O0FBQUE7RUFDRSxZQUFBO0VBQ0EsV0FBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0FBR0Y7O0FBQUE7RUFDRSxjQUFBO0FBR0Y7O0FBQUE7RUFDRSxjQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSw2QkFBQTtFQUNBLGtCQUFBO0VBQ0EsdUJBQUE7QUFHRjs7QUFERTtFQUNFLGFBQUE7RUFDQSx5QkFBQTtFQUNBLFdBQUE7QUFHSjs7QUFBRTtFQUNFLGNBQUE7RUFDQSx1QkFBQTtFQUNBLG1CQUFBO0VBQ0EsWUFBQTtBQUVKOztBQUVBO0VBQ0UsYUFBQTtFQUNBLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLFVBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtBQUNGOztBQUVBO0VBQ0UsYUFBQTtBQUNGOztBQUVBO0VBQ0UsYUFBQTtFQUNBLG1CQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtBQUNGOztBQUVBO0VBQ0UsZ0JBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0VBQ0Esb0JBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUFBLGtCQUFBO0FBQ0Y7O0FBQ0U7RUFDRSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtBQUNKOztBQUdBO0VBQ0UsY0FBQTtBQUFGOztBQUVFO0VBQ0UsYUFBQTtBQUFKOztBQUlBO0VBQ0UsbUJBQUE7QUFERjs7QUFJQTtFQUNFLHNCQUFBO0FBREY7O0FBR0E7RUFDRSxlQUFBO0VBQ0EsZ0JBQUE7QUFBRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3BsYW4tc2hpZnQvb3Blbi1zaGlmdC9vcGVuLXNoaWZ0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZsZXhEaXNwbGF5IHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuLnNob3ctbW9kYWx7XG4gIGRpc3BsYXk6IGJsb2NrOztcbn1cbi5tYXJnaW4taG9yaXpvbnRhbCB7XG4gIG1hcmdpbjogMCAxcmVtO1xufVxuXG4ubm8tcGFkZGluZyB7XG4gIHBhZGRpbmc6IDA7XG59XG5cbi5wYWRkaW5nLWxlZnQge1xuICBwYWRkaW5nLWxlZnQ6IDAuNXJlbTtcbn1cblxuLmNoZWNrYm94IHtcbiAgaGVpZ2h0OiAyMHB4O1xuICB3aWR0aDogMjBweDtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xufVxuXG4uZGF5SGVhZGVyIHtcbiAgbWFyZ2luOiAwLjVyZW07XG59XG5cbi5kYXlCdXR0b24ge1xuICBoZWlnaHQ6IDIuNXJlbTtcbiAgd2lkdGg6IDIuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBtYXJnaW4tbGVmdDogMTBweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHRyYW5zcGFyZW50O1xuICBib3JkZXItY29sb3I6ICNjY2M7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuXG4gICY6aG92ZXIge1xuICAgIG91dGxpbmU6IG5vbmU7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgICBjb2xvcjogI2ZmZjtcbiAgfVxuXG4gICY6ZGlzYWJsZWQge1xuICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgb3BhY2l0eTogMC44O1xuICB9XG59XG5cbi5zZWxlY3RlZCB7XG4gIG91dGxpbmU6IG5vbmU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgb3BhY2l0eTogMTtcbn1cblxuLmRheURpdiB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNkZmRmZGY7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn1cblxuLnRpdGxlIHtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbn1cblxuLnBoLTIge1xuICBwYWRkaW5nOiAwIDAuMjVyZW07XG59XG5cbi5oaWRlIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNlbnRlci1wbGFjZWQge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xufVxuXG4uYnRuLWNsZWFyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2VjMzYzNjtcbn1cblxuLmxhYmVscyB7XG4gIHBhZGRpbmc6IDZweCA4cHg7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xuICBmb250LXNpemU6IDE0cHg7XG4gIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgd2lkdGg6IGZpdC1jb250ZW50O1xuXG4gIC5idG4tY2xvc2Uge1xuICAgIGZvbnQtc2l6ZTogMTZweDtcbiAgICBwYWRkaW5nOiAycHg7XG4gICAgbWFyZ2luLWxlZnQ6IDZweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbn1cblxuLmNoY2toaWRlIHtcbiAgY29sb3I6ICNlYzM2MzY7XG5cbiAgJjpmaXJzdC1jaGlsZCB7XG4gICAgZGlzcGxheTogbm9uZTtcbiAgfVxufVxuXG4uYnRuOmRpc2FibGVkIHtcbiAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbn1cblxuLnNwaW5uZXItYm9yZGVyIHtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbn1cbi5tYW5kYXRvcnlfU3RhcntcbiAgZm9udC1zaXplOiAyMHB4O1xuICBtYXJnaW4tbGVmdDogM3B4O1xuXG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](OpenShiftComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-open-shift',
templateUrl: './open-shift.component.html',
styleUrls: ['./open-shift.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_6__["ShiftSchedulerService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], tier: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], changeTab: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], weekStart: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], btn1: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['btn1', { static: true }]
}], btn2: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['btn2', { static: true }]
}], btn3: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['btn3', { static: true }]
}], btn4: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['btn4', { static: true }]
}], btn5: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['btn5', { static: true }]
}], btn6: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['btn6', { static: true }]
}], btn7: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['btn7', { static: true }]
}] }); })();
/***/ }),
/***/ "KjCo":
/*!******************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-events/events-overview/events-overview.component.ts ***!
\******************************************************************************************************/
/*! exports provided: EventsOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsOverviewComponent", function() { return EventsOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _events_view_events_view_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../events-view/events-view.component */ "+pZ6");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function EventsOverviewComponent_div_0_ng_container_1_span_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_div_10_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Pending Publication ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_div_10_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Expired ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Published ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_div_10_span_1_Template, 2, 0, "span", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_div_10_span_2_Template, 2, 0, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_div_10_span_3_Template, 2, 0, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r7.checkEventStatus(item_r6.publishing.startDate, item_r6.publishing.endDate, 1));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r7.checkEventStatus(item_r6.publishing.startDate, item_r6.publishing.endDate, 2));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r7.checkEventStatus(item_r6.publishing.startDate, item_r6.publishing.endDate, 3));
} }
function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_ng_template_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Draft ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_button_17_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_button_17_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const item_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r14.openManage(item_r6._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Manage ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "p", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_div_10_Template, 4, 3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_ng_template_11_Template, 2, 0, "ng-template", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const item_r6 = ctx.$implicit; const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r17.onViewWall(item_r6._id, item_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const item_r6 = ctx.$implicit; const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r19.onEditWall(item_r6._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_button_17_Template, 2, 0, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](3, 6, item_r6.createdAt, "medium"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHtml", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 9, item_r6 == null ? null : item_r6.teaser == null ? null : item_r6.teaser.title), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r6.authorId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r6.status != 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r6.status == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r6.eventDetails.isRSVPRequired === true);
} }
function EventsOverviewComponent_div_0_ng_container_1_table_26_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsOverviewComponent_div_0_ng_container_1_table_26_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r20.onSortUsers($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " DATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsOverviewComponent_div_0_ng_container_1_table_26_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r22.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " EVENTS TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "AUTHOR");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, EventsOverviewComponent_div_0_ng_container_1_table_26_tr_14_Template, 18, 11, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.usersPTable.data);
} }
function EventsOverviewComponent_div_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventsOverviewComponent_div_0_ng_container_1_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r23.loadUsers("refresh"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " REFRESH ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function EventsOverviewComponent_div_0_ng_container_1_Template_select_change_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r25.onLimitChangeUsers(); })("ngModelChange", function EventsOverviewComponent_div_0_ng_container_1_Template_select_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r26.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, EventsOverviewComponent_div_0_ng_container_1_span_23_Template, 2, 0, "span", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function EventsOverviewComponent_div_0_ng_container_1_Template_input_search_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r27.loadUsers(); })("keyup", function EventsOverviewComponent_div_0_ng_container_1_Template_input_keyup_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r28.userssearchInput.next($event); })("ngModelChange", function EventsOverviewComponent_div_0_ng_container_1_Template_input_ngModelChange_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r29.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, EventsOverviewComponent_div_0_ng_container_1_table_26_Template, 15, 1, "table", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "app-skliton-loading-table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "ngb-pagination", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function EventsOverviewComponent_div_0_ng_container_1_Template_ngb_pagination_pageChange_32_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r30.usersPTable.page = $event; })("pageChange", function EventsOverviewComponent_div_0_ng_container_1_Template_ngb_pagination_pageChange_32_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r31.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r2.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r2.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx_r2.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r2.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r2.usersPTable.total)("page", ctx_r2.usersPTable.page)("maxSize", 5)("pageSize", ctx_r2.usersPTable.limit);
} }
function EventsOverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, EventsOverviewComponent_div_0_ng_container_1_Template, 33, 16, "ng-container", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r0.isManageOpen);
} }
function EventsOverviewComponent_app_events_view_1_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-events-view", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ViewEvent", function EventsOverviewComponent_app_events_view_1_Template_app_events_view_ViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r32.ViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("eventId", ctx_r1.eventId)("eventData", ctx_r1.eventData);
} }
class EventsOverviewComponent {
constructor(newsService, toastService, storageService, formBuilder, modalService) {
this.newsService = newsService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.modalService = modalService;
this.closeResult = '';
this.isEventView = false;
this.isManageOpen = false;
this.isTableLoading = true;
this.eventId = null;
this.eventData = null;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.isManage = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.EditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.ManageEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
postType: 'event',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = !!direction ? field : 'createdAt';
this.usersPTable.sortBy = !!direction ? direction : 'desc';
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
open(content) {
this.modalService
.open(content, { ariaLabelledBy: 'modal-basic-title' })
.result.then((result) => {
this.closeResult = `Closed with: ${result}`;
}, (reason) => {
this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
});
}
getDismissReason(reason) {
if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["ModalDismissReasons"].ESC) {
return 'by pressing ESC';
}
else if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["ModalDismissReasons"].BACKDROP_CLICK) {
return 'by clicking on a backdrop';
}
else {
return `with: ${reason}`;
}
}
loadUsers(type) {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const companyId = localStorage.getItem('flexicompanyId');
const subscribe = this.newsService
.getAllNewsEventsOverview(companyId, rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { data, count } = response.data;
this.usersPTable.data = data;
this.usersPTable.total = count;
this.isTableLoading = false;
if (type === 'refresh') {
this.toastService.success('Data Refreshed Successfully');
}
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
onEditWall(id) {
this.EditEvent.emit(id);
}
onViewWall(id, eventObj) {
this.eventId = id;
this.eventData = eventObj;
this.isEventView = true;
}
ViewEvent() {
this.isEventView = false;
this.loadUsers();
}
openManage(id) {
this.ManageEvent.emit(id);
this.isManageOpen = true;
}
checkEventStatus(startDate, endDate, key) {
if (key == 1)
return moment__WEBPACK_IMPORTED_MODULE_6__() < moment__WEBPACK_IMPORTED_MODULE_6__(startDate);
if (key == 2)
return moment__WEBPACK_IMPORTED_MODULE_6__() > moment__WEBPACK_IMPORTED_MODULE_6__(endDate);
if (key == 3)
return (moment__WEBPACK_IMPORTED_MODULE_6__() > moment__WEBPACK_IMPORTED_MODULE_6__(startDate) && moment__WEBPACK_IMPORTED_MODULE_6__() < moment__WEBPACK_IMPORTED_MODULE_6__(endDate));
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
EventsOverviewComponent.ɵfac = function EventsOverviewComponent_Factory(t) { return new (t || EventsOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_7__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"])); };
EventsOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: EventsOverviewComponent, selectors: [["events-overview"]], viewQuery: function EventsOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { isManage: "isManage", EditEvent: "EditEvent", ManageEvent: "ManageEvent" }, decls: 2, vars: 2, consts: [["class", "card mb-3", 4, "ngIf"], [3, "eventId", "eventData", "ViewEvent", 4, "ngIf"], [1, "card", "mb-3"], [4, "ngIf"], [1, "align-items-center", "bg-theme", "card-header", "d-flex", "justify-content-between"], [1, "h5", "m-0"], [1, "btn", "btn-primary", 3, "click"], [1, "card-body", "p-0"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [3, "innerHtml"], [3, "ngIf"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "btn", "btn-success", "btn-sm", "ml-1", 3, "click"], ["class", "btn btn-warning btn-sm ml-1", 3, "click", 4, "ngIf"], ["class", "badge badge-info", 4, "ngIf"], ["class", "badge badge-danger", 4, "ngIf"], ["class", "badge badge-success", 4, "ngIf"], [1, "badge", "badge-info"], [1, "badge", "badge-danger"], [1, "badge", "badge-success"], [1, "badge", "badge-warning"], [1, "btn", "btn-warning", "btn-sm", "ml-1", 3, "click"], [3, "eventId", "eventData", "ViewEvent"]], template: function EventsOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, EventsOverviewComponent_div_0_Template, 2, 1, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, EventsOverviewComponent_app_events_view_1_Template, 1, 2, "app-events-view", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isEventView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isEventView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _events_view_events_view_component__WEBPACK_IMPORTED_MODULE_14__["EventsViewComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["DatePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_15__["SafeHtmlPipe"]], styles: [".bordered-card[_ngcontent-%COMP%] {\n border: 1px solid #e0e0e0;\n}\n\n.small-card[_ngcontent-%COMP%] {\n border: 1px solid #212121;\n width: 10%;\n height: 15%;\n}\n\n.card-heading[_ngcontent-%COMP%] {\n font-size: 13px;\n font-weight: 600;\n margin-left: 5px;\n color: #666666 !important;\n}\n\n.rsvp-text[_ngcontent-%COMP%] {\n color: #f44336;\n font-weight: 600;\n margin-left: 5px;\n}\n\n.sub-text[_ngcontent-%COMP%] {\n color: #a42138;\n font-size: 20px;\n margin-left: 5px;\n}\n\n.space-between[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.select-session[_ngcontent-%COMP%] {\n font-size: 16px;\n font-weight: 600;\n}\n\n.footer-buttons[_ngcontent-%COMP%] {\n float: right;\n}\n\n.session-header[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n\n.refresh-button[_ngcontent-%COMP%] {\n position: absolute;\n margin-top: -25px;\n right: 20px;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL2V2ZW50cy1vdmVydmlldy9ldmVudHMtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBQTtBQUNGOztBQUVBO0VBQ0UseUJBQUE7RUFDQSxVQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUVBO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSx5QkFBQTtBQUNGOztBQUVBO0VBQ0UsY0FBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLGNBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUNGOztBQUVBO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxZQUFBO0FBQ0Y7O0FBRUE7RUFDRSxnQkFBQTtBQUNGOztBQUVBO0VBQ0Usa0JBQUE7RUFDQSxpQkFBQTtFQUNBLFdBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtBQUNGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL2V2ZW50cy1vdmVydmlldy9ldmVudHMtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYm9yZGVyZWQtY2FyZCB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNlMGUwZTA7XG59XG5cbi5zbWFsbC1jYXJkIHtcbiAgYm9yZGVyOiAxcHggc29saWQgIzIxMjEyMTtcbiAgd2lkdGg6IDEwJTtcbiAgaGVpZ2h0OiAxNSU7XG59XG5cbi5jYXJkLWhlYWRpbmcge1xuICBmb250LXNpemU6IDEzcHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1sZWZ0OiA1cHg7XG4gIGNvbG9yOiAjNjY2NjY2ICFpbXBvcnRhbnQ7XG59XG5cbi5yc3ZwLXRleHQge1xuICBjb2xvcjogI2Y0NDMzNjtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgbWFyZ2luLWxlZnQ6IDVweDtcbn1cblxuLnN1Yi10ZXh0IHtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGZvbnQtc2l6ZTogMjBweDtcbiAgbWFyZ2luLWxlZnQ6IDVweDtcbn1cblxuLnNwYWNlLWJldHdlZW4ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5zZWxlY3Qtc2Vzc2lvbiB7XG4gIGZvbnQtc2l6ZTogMTZweDtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbn1cblxuLmZvb3Rlci1idXR0b25zIHtcbiAgZmxvYXQ6IHJpZ2h0O1xufVxuXG4uc2Vzc2lvbi1oZWFkZXIge1xuICBmb250LXdlaWdodDogNjAwO1xufVxuXG4ucmVmcmVzaC1idXR0b24ge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIG1hcmdpbi10b3A6IC0yNXB4O1xuICByaWdodDogMjBweDtcbn1cblxuLmJnLXRoZW1lIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](EventsOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'events-overview',
templateUrl: './events-overview.component.html',
styleUrls: ['./events-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_7__["NewsEventsService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_10__["FormBuilder"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"] }]; }, { isManage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}], EditEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], ManageEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "Ln+9":
/*!******************************************************!*\
!*** ./src/app/shared/dynamic-fields/fields/file.ts ***!
\******************************************************/
/*! exports provided: FileComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileComponent", function() { return FileComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
function FileComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("hovered", function FileComponent_div_1_Template_div_hovered_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r2.toggleHover($event); })("dropped", function FileComponent_div_1_Template_div_dropped_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r4.field.onUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Drag a file here or ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function FileComponent_div_1_Template_input_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.field.onUpload($event.target.files); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " browse ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " to upload. ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("hovering", ctx_r0.isHovering);
} }
function FileComponent_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r1.field.value, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
// text,email,tel,textarea,password,
class FileComponent {
constructor() {
this.field = {};
}
get isValid() { return this.form.controls[this.field.name].valid; }
get isDirty() { return this.form.controls[this.field.name].dirty; }
toggleHover() {
}
ngOnChange() {
// this.field.value.
}
}
FileComponent.ɵfac = function FileComponent_Factory(t) { return new (t || FileComponent)(); };
FileComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FileComponent, selectors: [["file"]], inputs: { field: "field", form: "form" }, decls: 3, vars: 3, consts: [[3, "formGroup"], ["class", "drop-container dropzone", "dropZone", "", 3, "hovering", "hovered", "dropped", 4, "ngIf"], [4, "ngIf"], ["dropZone", "", 1, "drop-container", "dropzone", 3, "hovered", "dropped"], [1, "m-0"], [1, "upload-button"], ["type", "file", "multiple", "", 3, "change"], [1, "card"], [1, "card-img-top", 3, "src"]], template: function FileComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FileComponent_div_1_Template, 7, 2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FileComponent_div_2_Template, 3, 1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.field.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.field.value);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"]], styles: [".drop-container[_ngcontent-%COMP%] {\n background: #fff;\n border-radius: 6px;\n height: 150px;\n width: 100%;\n box-shadow: 1px 2px 20px hsla(0,0%,4%,.1);\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px dashed #c0c4c7;\n }\n p[_ngcontent-%COMP%] {\n font-size: 16px;\n font-weight: 400;\n color: #c0c4c7;\n }\n .upload-button[_ngcontent-%COMP%] {\n display: inline-block;\n border: none;\n outline: none;\n cursor: pointer;\n color: #5754a3;\n }\n .upload-button[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n display: none;\n }\n .dropzone[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n border-radius: 5px;\n background: white;\n margin: 10px 0;\n }\n .dropzone.hovering[_ngcontent-%COMP%] {\n border: 2px solid #f16624;\n color: #dadada !important;\n }\n progress[_ngcontent-%COMP%]::-webkit-progress-value {\n transition: width 0.1s ease;\n }"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FileComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'file',
template: `
`,
styles: [
`
.drop-container {
background: #fff;
border-radius: 6px;
height: 150px;
width: 100%;
box-shadow: 1px 2px 20px hsla(0,0%,4%,.1);
display: flex;
align-items: center;
justify-content: center;
border: 2px dashed #c0c4c7;
}
p {
font-size: 16px;
font-weight: 400;
color: #c0c4c7;
}
.upload-button {
display: inline-block;
border: none;
outline: none;
cursor: pointer;
color: #5754a3;
}
.upload-button input {
display: none;
}
.dropzone {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
border-radius: 5px;
background: white;
margin: 10px 0;
}
.dropzone.hovering {
border: 2px solid #f16624;
color: #dadada !important;
}
progress::-webkit-progress-value {
transition: width 0.1s ease;
}
`
]
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "MAuU":
/*!****************************************************************************************!*\
!*** ./src/app/users/pages/admin/users/facial-id/facial-edit/facial-edit.component.ts ***!
\****************************************************************************************/
/*! exports provided: FacialEditComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FacialEditComponent", function() { return FacialEditComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var face_api_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! face-api.js */ "qzk7");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_webcam__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-webcam */ "QKVY");
const _c0 = ["snapCam"];
function FacialEditComponent_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Please wait, data is updating.... ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FacialEditComponent_webcam_29_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "webcam", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("imageCapture", function FacialEditComponent_webcam_29_Template_webcam_imageCapture_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r4.handleImage($event); })("initError", function FacialEditComponent_webcam_29_Template_webcam_initError_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r6.handleInitError($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("trigger", ctx_r1.triggerObservable)("allowCameraSwitch", ctx_r1.allowCameraSwitch)("imageQuality", 0.9)("width", 500)("height", 340);
} }
function FacialEditComponent_img_30_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 20, 21);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r2.capturedImg, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function FacialEditComponent_div_31_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialEditComponent_div_31_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.triggerSnapshot(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Capture ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialEditComponent_div_31_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.addPhotoId(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Add Photo ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialEditComponent_div_31_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.navigateToOverview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
class FacialEditComponent {
constructor(userService, toastrService) {
this.userService = userService;
this.toastrService = toastrService;
this.changeTab = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.showWebcam = false;
this.actionbtn = false;
this.trigger = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.errors = [];
this.addPhotoIdLoader = false;
}
ngOnInit() {
this.userFacialImgUrl = this.userFacial.facialInfo;
this.loadFaceModels();
}
navigateToOverview() {
this.changeTab.emit('1');
}
toggleCamera() {
this.capturedImg = null;
this.showWebcam = !this.showWebcam;
this.actionbtn = this.showWebcam;
}
triggerSnapshot() {
this.showWebcam = false;
this.trigger.next();
}
handleInitError(error) {
this.errors.push(error);
}
handleImage(webcamImage) {
this.capturedImg = webcamImage.imageAsDataUrl;
}
get triggerObservable() {
return this.trigger.asObservable();
}
loadFaceModels() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const MODEL_URL = '/assets/models';
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_2__["loadSsdMobilenetv1Model"])(MODEL_URL);
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_2__["loadFaceLandmarkModel"])(MODEL_URL);
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_2__["loadFaceRecognitionModel"])(MODEL_URL);
});
}
addPhotoId() {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const photoId = {
userId: (_a = this.userFacial) === null || _a === void 0 ? void 0 : _a.userId,
facialInfo: this.capturedImg,
};
this.addPhotoIdLoader = true;
let fullFaceDescriptions = yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_2__["detectAllFaces"])((_b = this.snapCam) === null || _b === void 0 ? void 0 : _b.nativeElement)
.withFaceLandmarks()
.withFaceDescriptors();
if (fullFaceDescriptions && fullFaceDescriptions.length > 0) {
photoId['descriptor'] = [...fullFaceDescriptions[0].descriptor];
this.userService.createFacialId(photoId).subscribe((res) => {
if (res.message) {
this.addPhotoIdLoader = false;
this.toastrService.success('Facial Id updated successfully', 'Done', {
timeOut: 3000,
});
// this.activeId = 1;
this.changeTab.emit('1');
}
else {
this.addPhotoIdLoader = false;
this.toastrService.error('Something went wrong', 'Failed', {
timeOut: 3000,
});
}
});
}
else {
this.addPhotoIdLoader = false;
this.toastrService.error('Please capture proper image', 'Failed');
}
});
}
}
FacialEditComponent.ɵfac = function FacialEditComponent_Factory(t) { return new (t || FacialEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
FacialEditComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: FacialEditComponent, selectors: [["app-facial-edit"]], viewQuery: function FacialEditComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.snapCam = _t.first);
} }, inputs: { userFacial: "userFacial" }, outputs: { changeTab: "changeTab" }, decls: 32, vars: 11, consts: [[1, "row"], ["style", "position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1050;background-color: rgba(0, 0, 0, 0.5);overflow: auto;", 4, "ngIf"], [1, "col-md-4"], [1, "form-group"], [1, "font-weight-500"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], [1, "font-weight-500", "m-0"], [1, "text-muted"], [1, "col-md-8"], [1, "btn", "btn-info", "btn-lg", 3, "click"], ["alt", "", 1, "img-fluid", "border", "rounded", "mb-2", "img-shot", 3, "src"], [1, "align-items-center", "d-flex", "flex-column", "border", "rounded", "p-3", "h-100"], [3, "trigger", "allowCameraSwitch", "imageQuality", "width", "height", "imageCapture", "initError", 4, "ngIf"], ["class", "img-fluid border rounded mb-2", "alt", "", "width", "500", "height", "320", 3, "src", 4, "ngIf"], ["class", "d-flex justify-content-center", 4, "ngIf"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "450%"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [3, "trigger", "allowCameraSwitch", "imageQuality", "width", "height", "imageCapture", "initError"], ["alt", "", "width", "500", "height", "320", 1, "img-fluid", "border", "rounded", "mb-2", 3, "src"], ["snapCam", ""], [1, "d-flex", "justify-content-center"], [1, "btn", "btn-info", 3, "click"], [1, "btn", "btn-success", "ml-2", 3, "click"], [1, "btn", "btn-danger", "ml-2", 3, "click"]], template: function FacialEditComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, FacialEditComponent_div_1_Template, 5, 0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Select Staff ID/Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "input", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "p", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "button", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialEditComponent_Template_button_click_15_listener() { return ctx.toggleCamera(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "img", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "input", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Phone no.");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](26, "input", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, FacialEditComponent_webcam_29_Template, 1, 5, "webcam", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](30, FacialEditComponent_img_30_Template, 2, 1, "img", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](31, FacialEditComponent_div_31_Template, 7, 0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.addPhotoIdLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx.userFacial.userInfo.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.userFacial.userInfo == null ? null : ctx.userFacial.userInfo.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.userFacial == null ? null : ctx.userFacial.userInfo == null ? null : ctx.userFacial.userInfo.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.showWebcam ? "Switch OFF Camera" : "Switch ON Camera", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx.userFacialImgUrl, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx.userFacial == null ? null : ctx.userFacial.userInfo == null ? null : ctx.userFacial.userInfo.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("value", (ctx.userFacial == null ? null : ctx.userFacial.userInfo == null ? null : ctx.userFacial.userInfo.contactNumber) ? ctx.userFacial.userInfo.contactNumber : "-");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showWebcam);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.showWebcam);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.actionbtn);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], ngx_webcam__WEBPACK_IMPORTED_MODULE_7__["WebcamComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2FkbWluL3VzZXJzL2ZhY2lhbC1pZC9mYWNpYWwtZWRpdC9mYWNpYWwtZWRpdC5jb21wb25lbnQuc2NzcyJ9 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FacialEditComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-facial-edit',
templateUrl: './facial-edit.component.html',
styleUrls: ['./facial-edit.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { userFacial: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], changeTab: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], snapCam: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['snapCam']
}] }); })();
/***/ }),
/***/ "MQkD":
/*!**********************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-service/plan-service-logs/plan-service-logs.component.ts ***!
\**********************************************************************************************************************/
/*! exports provided: PlanServiceLogsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanServiceLogsComponent", function() { return PlanServiceLogsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/constants */ "l207");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
function PlanServiceLogsComponent_div_0_ngx_skeleton_loader_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 14);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", ctx_r2.skeletonLoaderTheme);
} }
function PlanServiceLogsComponent_div_0_table_19_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanServiceLogsComponent_div_0_table_19_tr_14_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const log_r6 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r7.changeOverview(false, log_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const log_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 4, log_r6.createdAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 7, log_r6.createdAt, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](log_r6.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](log_r6.staffId);
} }
function PlanServiceLogsComponent_div_0_table_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "USER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, PlanServiceLogsComponent_div_0_table_19_tr_14_Template, 14, 10, "tr", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.logsData);
} }
function PlanServiceLogsComponent_div_0_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Data Available ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function PlanServiceLogsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Week");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanServiceLogsComponent_div_0_Template_div_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.changeWeek("Prev"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "i", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " chevron_left ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanServiceLogsComponent_div_0_Template_div_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.changeWeek("Nxt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "i", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " chevron_right ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "SERVICE LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, PlanServiceLogsComponent_div_0_ngx_skeleton_loader_18_Template, 1, 1, "ngx-skeleton-loader", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, PlanServiceLogsComponent_div_0_table_19_Template, 15, 1, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, PlanServiceLogsComponent_div_0_div_20_Template, 2, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.formattedWeekRange, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Service Type : ", ctx_r0.serviceType.serviceTypeName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.logsLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.logsLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.logsLoader && (ctx_r0.logsData == null ? null : ctx_r0.logsData.length) === 0);
} }
const _c0 = function (a0) { return { selected: a0 }; };
function PlanServiceLogsComponent_div_1_div_44_div_1_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanServiceLogsComponent_div_1_div_44_div_1_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r20); const day_r17 = ctx.$implicit; const j_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); ctx_r18.changeShiftDetailsView(true, j_r15, day_r17); return ctx_r18.selectedService = day_r17; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const day_r17 = ctx.$implicit;
const j_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](6, _c0, ctx_r16.selectedService === day_r17));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r16.logDetail == null ? null : ctx_r16.logDetail.serviceName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", j_r15.serviceStartTime, "-", j_r15.serviceEndTime, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", j_r15 == null ? null : j_r15.confirmSlot, "/", j_r15 == null ? null : j_r15.standBySlot, " ");
} }
function PlanServiceLogsComponent_div_1_div_44_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, PlanServiceLogsComponent_div_1_div_44_div_1_Template, 9, 8, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r15 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", j_r15 == null ? null : j_r15.days);
} }
function PlanServiceLogsComponent_div_1_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Details of Service");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Service Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Day");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Start Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "input", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "End Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "input", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Publish Message");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r14.logDetail == null ? null : ctx_r14.logDetail.serviceName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r14.serviceDetail == null ? null : ctx_r14.serviceDetail.day);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r14.serviceDetail.serviceStartTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r14.serviceDetail.serviceEndTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function PlanServiceLogsComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "LOG DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanServiceLogsComponent_div_1_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r22.changeOverview(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "General");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 33, 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](20, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](26, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "h5", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Service Listing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, PlanServiceLogsComponent_div_1_div_44_Template, 2, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, PlanServiceLogsComponent_div_1_div_45_Template, 32, 9, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](20, 10, ctx_r1.logDetail == null ? null : ctx_r1.logDetail.createdAt, "dd/MM/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](26, 13, ctx_r1.logDetail == null ? null : ctx_r1.logDetail.createdAt, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", ctx_r1.logDetail == null ? null : ctx_r1.logDetail.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true)("value", ctx_r1.logDetail == null ? null : ctx_r1.logDetail.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.logDetail == null ? null : ctx_r1.logDetail.services);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.showServiceDetails);
} }
class PlanServiceLogsComponent {
constructor(setupService, toastrService) {
this.setupService = setupService;
this.toastrService = toastrService;
this.logsLoader = false;
this.logsData = [];
this.isOverview = true;
this.showServiceDetails = false;
this.skeletonLoaderTheme = src_app_constants__WEBPACK_IMPORTED_MODULE_3__["SKELETON_LOADER_THEME"];
this.initializeWeekRange();
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["getGmtOffSet"])();
this.getLogs();
}
initializeWeekRange() {
this.currentWeekStart = moment__WEBPACK_IMPORTED_MODULE_1__().utc().startOf('isoWeek');
this.currentWeekEnd = moment__WEBPACK_IMPORTED_MODULE_1__().utc().endOf('isoWeek');
this.updateFormattedWeekRange();
}
updateFormattedWeekRange() {
this.formattedWeekRange = `${this.currentWeekStart.format('DD')} to ${this.currentWeekEnd.format('DD MMM YYYY')}`;
}
getLogs() {
this.logsLoader = true;
const payload = {
weekRangeStartAt: this.currentWeekStart.toISOString(),
weekRangeEndAt: this.currentWeekEnd.toISOString(),
status: [0],
};
this.setupService
.getServiceLogs(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.logsLoader = false;
}))
.subscribe((response) => {
var _a;
this.logsData = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.data) || [];
}, (error) => {
var _a, _b;
this.toastrService.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to load service logs');
});
}
changeOverview(value, item) {
var _a, _b, _c;
this.logDetail = item;
const service = (_b = (_a = this.logDetail) === null || _a === void 0 ? void 0 : _a.services) === null || _b === void 0 ? void 0 : _b[0];
const dayDetails = ((_c = service === null || service === void 0 ? void 0 : service.days) === null || _c === void 0 ? void 0 : _c[0]) || {};
this.serviceDetail = Object.assign(Object.assign({}, service), { day: (dayDetails === null || dayDetails === void 0 ? void 0 : dayDetails.day) || '' });
this.selectedService = dayDetails;
this.showServiceDetails = !value;
this.isOverview = value;
}
changeWeek(direction) {
const increment = direction === 'Prev' ? -1 : 1;
this.currentWeekStart.add(increment, 'week');
this.currentWeekEnd.add(increment, 'week');
this.updateFormattedWeekRange();
this.getLogs();
}
changeShiftDetailsView(value, item, day) {
var _a;
this.serviceDetail = Object.assign(Object.assign({}, item), { day: (_a = day === null || day === void 0 ? void 0 : day.day) !== null && _a !== void 0 ? _a : '' });
this.showServiceDetails = value;
}
}
PlanServiceLogsComponent.ɵfac = function PlanServiceLogsComponent_Factory(t) { return new (t || PlanServiceLogsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"])); };
PlanServiceLogsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: PlanServiceLogsComponent, selectors: [["app-plan-service-logs"]], inputs: { serviceType: "serviceType" }, decls: 2, vars: 2, consts: [["class", "card", 4, "ngIf"], [1, "card"], ["for", "", 1, "font-weight-500", "m-3"], [1, "d-flex", "ml-3", "mb-3"], ["title", "Previous Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-left", 3, "click"], [1, "material-icons"], [1, "weekInput", "d-flex", "align-items-center"], ["title", "Next Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-right", 3, "click"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body", "table-responsive", "p-0"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table m-0", 4, "ngIf"], ["class", "bg-white text-center p-3", 4, "ngIf"], ["count", "6", 3, "theme"], [1, "table", "m-0"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-success", 3, "click"], [1, "bg-white", "text-center", "p-3"], [1, "card-header", "d-flex", "align-items-center", "justify-content-between", "bg-theme"], [1, "btn", "btn-outline-light", "btn-sm", 3, "click"], [1, "card-body"], [1, "card", "mb-3"], [1, "card-header"], [1, "row"], [1, "col-md-4"], [1, "form-group"], ["for", ""], ["placeholder", "date", 1, "form-control", 3, "disabled", "value"], ["date", ""], ["placeholder", "time", 1, "form-control", 3, "disabled", "value"], ["placeholder", "user", 1, "form-control", 3, "disabled", "value"], [1, "col-md-6"], ["placeholder", "Description", 1, "form-control", 3, "disabled", "value"], ["class", "col-md-6", 4, "ngIf"], ["class", "shiftTab d-flex align-items-center mb-2", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "shiftTab", "d-flex", "align-items-center", "mb-2", 3, "ngClass", "click"], [1, "d-flex", "justify-content-between", "w-100"], [1, "d-flex", "justify-content-end", "mt-1"], [1, "badge", "badge-pill", "bg-theme"], [1, "col-md-12"], ["placeholder", "Service Name", 1, "form-control", 3, "disabled", "value"], [1, "form-control", "text-capitalize", 3, "disabled", "value"], [1, "form-group", "row"], ["placeholder", "Timing", 1, "form-control", 3, "disabled", "value"], ["value", "Service Created Successfully", 1, "form-control", 3, "disabled"]], template: function PlanServiceLogsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, PlanServiceLogsComponent_div_0_Template, 21, 5, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, PlanServiceLogsComponent_div_1_Template, 46, 16, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOverview);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isOverview);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_8__["NgxSkeletonLoaderComponent"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_9__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgForm"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgClass"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_7__["DatePipe"]], styles: [".bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.copyIcon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 15px;\n}\n\n.copyIcon[_ngcontent-%COMP%]:hover {\n cursor: pointer;\n color: #2dafe2;\n}\n\n.copyIcon[_ngcontent-%COMP%]:hover i[_ngcontent-%COMP%] {\n color: blue;\n}\n\n.shiftTab[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0.5rem 0.8rem;\n border-radius: 4px;\n min-height: 60px;\n cursor: pointer;\n}\n\n.shiftTab[_ngcontent-%COMP%]:hover {\n background-color: #eee;\n}\n\n.shiftTab.selected[_ngcontent-%COMP%] {\n background-color: #721c2414;\n border: 1px solid #a73535;\n border-radius: 4px;\n}\n\n.weekbtn[_ngcontent-%COMP%] {\n width: 36px;\n border: 1px solid #a42138;\n height: 36px;\n text-align: center;\n float: left;\n background: #faacac;\n color: #a42138;\n cursor: pointer;\n transition: all 0.3s;\n}\n\n.weekbtn[_ngcontent-%COMP%]:hover {\n background: #a42138;\n color: #fff;\n}\n\n.weekInput[_ngcontent-%COMP%] {\n height: 36px;\n border-top: 1px solid #a42138;\n border-bottom: 1px solid #a42138;\n text-align: center;\n float: left;\n padding: 5px;\n font-weight: bold;\n padding-left: 15px;\n padding-right: 15px;\n background: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zZXJ2aWNlL3BsYW4tc2VydmljZS1sb2dzL3BsYW4tc2VydmljZS1sb2dzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBR0U7RUFDRSxlQUFBO0FBQUo7O0FBR0U7RUFDRSxlQUFBO0VBQ0EsY0FBQTtBQURKOztBQUdJO0VBQ0UsV0FBQTtBQUROOztBQU1BO0VBQ0Usc0JBQUE7RUFDQSxzQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxlQUFBO0FBSEY7O0FBS0U7RUFDRSxzQkFBQTtBQUhKOztBQU1FO0VBQ0UsMkJBQUE7RUFDQSx5QkFBQTtFQUNBLGtCQUFBO0FBSko7O0FBUUE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsbUJBQUE7RUFDQSxjQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0FBTEY7O0FBT0U7RUFDRSxtQkFBQTtFQUNBLFdBQUE7QUFMSjs7QUFTQTtFQUNFLFlBQUE7RUFDQSw2QkFBQTtFQUNBLGdDQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0FBTkYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9vcGVyYXRpb25zL3NoaWZ0LXNjaGVkdWxlci9wbGFuLXNlcnZpY2UvcGxhbi1zZXJ2aWNlLWxvZ3MvcGxhbi1zZXJ2aWNlLWxvZ3MuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYmctdGhlbWUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbn1cblxuLmNvcHlJY29uIHtcbiAgaSB7XG4gICAgZm9udC1zaXplOiAxNXB4O1xuICB9XG5cbiAgJjpob3ZlciB7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIGNvbG9yOiByZ2IoNDUsIDE3NSwgMjI2KTtcblxuICAgIGkge1xuICAgICAgY29sb3I6IGJsdWU7XG4gICAgfVxuICB9XG59XG5cbi5zaGlmdFRhYiB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDAuNXJlbSAwLjhyZW07XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgbWluLWhlaWdodDogNjBweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuXG4gICY6aG92ZXIge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNlZWU7XG4gIH1cblxuICAmLnNlbGVjdGVkIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNzIxYzI0MTQ7XG4gICAgYm9yZGVyOiAxcHggc29saWQgI2E3MzUzNTtcbiAgICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIH1cbn1cblxuLndlZWtidG4ge1xuICB3aWR0aDogMzZweDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2E0MjEzODtcbiAgaGVpZ2h0OiAzNnB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGZsb2F0OiBsZWZ0O1xuICBiYWNrZ3JvdW5kOiAjZmFhY2FjO1xuICBjb2xvcjogI2E0MjEzODtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICB0cmFuc2l0aW9uOiBhbGwgMC4zcztcblxuICAmOmhvdmVyIHtcbiAgICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICAgIGNvbG9yOiAjZmZmO1xuICB9XG59XG5cbi53ZWVrSW5wdXQge1xuICBoZWlnaHQ6IDM2cHg7XG4gIGJvcmRlci10b3A6IDFweCBzb2xpZCAjYTQyMTM4O1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2E0MjEzODtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBmbG9hdDogbGVmdDtcbiAgcGFkZGluZzogNXB4O1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgcGFkZGluZy1sZWZ0OiAxNXB4O1xuICBwYWRkaW5nLXJpZ2h0OiAxNXB4O1xuICBiYWNrZ3JvdW5kOiAjZmZmO1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlanServiceLogsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-plan-service-logs',
templateUrl: './plan-service-logs.component.html',
styleUrls: ['./plan-service-logs.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }]; }, { serviceType: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "MZth":
/*!**************************************!*\
!*** ./src/app/core/utils/helper.ts ***!
\**************************************/
/*! exports provided: isEmail, COMMON_MESSAGES, createQueryString, formatDate, editFormatDate, getCleanObj, getAssignedUsers, queryParam, getGmtOffSet, URL_REGEX_PATTERN, generateImageUrl, generateHttpParams, generateHttpQueryParams, formatGMTOffset */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmail", function() { return isEmail; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMMON_MESSAGES", function() { return COMMON_MESSAGES; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createQueryString", function() { return createQueryString; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "editFormatDate", function() { return editFormatDate; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCleanObj", function() { return getCleanObj; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAssignedUsers", function() { return getAssignedUsers; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queryParam", function() { return queryParam; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getGmtOffSet", function() { return getGmtOffSet; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "URL_REGEX_PATTERN", function() { return URL_REGEX_PATTERN; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateImageUrl", function() { return generateImageUrl; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateHttpParams", function() { return generateHttpParams; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateHttpQueryParams", function() { return generateHttpQueryParams; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatGMTOffset", function() { return formatGMTOffset; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/environments/environment */ "AytR");
const imageURl = src_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].imageUrl;
const isEmail = email => /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(email);
// message constant
const COMMON_MESSAGES = {
UPLOAD_ONLY_IMAGE: 'Please upload only .png, .jpg and .jpeg files',
UPLOAD_ONLY_EXCEL: 'Please upload only .xlsx, .csv and .xls files',
UPLOAD_ONLY_CSV: 'Please upload only .csv files',
};
const createQueryString = (data) => {
return Object.keys(data).map(key => {
let val = data[key];
if (typeof val === 'object')
val = createQueryString(val);
return `${key}=${encodeURIComponent(`${val}`.replace(/\s/g, '_'))}`;
}).join('&');
};
// export const queryParam = (input, parentKey?, output = []) => {
// debugger
// const prepareQuery = (key, value) => {
// console.log(key,value);
// output.push(`${key}=${value}`);
// }
// const workOnArray = (arr=[], key=parentKey) => {
// // if(arr.length === 0){
// // prepareQuery(`${key}[]`, []);
// // }else {
// // arr.forEach(curr=> {
// // if (Array.isArray(curr)) {
// // workOnArray(curr, key);
// // } else if (typeof curr === 'object') {
// // workOnObject(curr, key);
// // } else {
// // prepareQuery(`${key}[]`, curr);
// // }
// // });
// // }
// arr.forEach((curr, idx)=> {
// if (Array.isArray(curr)) {
// workOnArray(curr, key);
// } else if (typeof curr === 'object') {
// workOnObject(curr, key, idx);
// } else {
// prepareQuery(`${key}[]`, curr);
// }
// });
// }
// const workOnObject = (input, parentKey?:any, index?:any) => {
// for (const key in input) {
// if (input.hasOwnProperty(key)) {
// const element = input[key];
// console.log(input);
// console.log(index);
// const consKey = parentKey ? index!=undefined ? `${parentKey}[${index}][${key}]` : `${parentKey}[${key}]`: key;
// if (Array.isArray(element)) {
// workOnArray(element, consKey);
// } else if (typeof element === 'object') {
// workOnObject(element, key, index);
// } else {
// prepareQuery(consKey, element);
// }
// }
// }
// }
// workOnObject(input);
// return output.join('&');
// }
const formatDate = (date) => {
// tslint:disable-next-line:one-variable-per-declaration
if (date == undefined || date == '') {
return '';
}
else {
// tslint:disable-next-line:one-variable-per-declaration
let d = new Date(date), month = '' + (d.getMonth() + 1), day = '' + d.getDate(), year = d.getFullYear();
if (month.length < 2) {
month = '0' + month;
}
if (day.length < 2) {
day = '0' + day;
}
// return { year: year, month: month, day: day }
return [year, month, day].join('-');
}
};
const editFormatDate = (date) => {
// tslint:disable-next-line:one-variable-per-declaration
if (date == undefined || date == '') {
return '';
}
else {
// tslint:disable-next-line:one-variable-per-declaration
let d = new Date(date), month = '' + (d.getMonth() + 1), day = '' + d.getDate(), year = d.getFullYear();
if (month.length < 2) {
month = '0' + month;
}
if (day.length < 2) {
day = '0' + day;
}
// return { year: year, month: month, day: day }
return { year: year, month: Number(month), day: Number(day)
};
}
};
const getCleanObj = (obj) => {
for (var propName in obj) {
if (obj[propName] === null || obj[propName] === '' || obj[propName] === []) {
delete obj[propName];
}
}
return obj;
};
const getAssignedUsers = (userDetails) => {
const Output = [];
userDetails.forEach((element) => {
const userAllBuIndex = element.businessUnits.findIndex((x) => x._id === '1' || x._id === 'All Business Unit');
let businessUnits = userAllBuIndex > -1
? []
: element.businessUnits.map((item) => item._id);
let buFilterType = element.buFilterType;
let appointments = element.appointments.map((item) => item._id);
let subSkillSets = element.subSkillSets.map((item) => item._id);
let user = element.user.map((item) => item._id);
let admin = !!element.admin ? element.admin.map((item) => item._id) : [];
let allBuToken = userAllBuIndex > -1 || element.allBuToken ? true : false;
let allBuTokenStaffId = userAllBuIndex > -1 ? localStorage.getItem('flexistaffId') : (element === null || element === void 0 ? void 0 : element.allBuTokenStaffId) ? element === null || element === void 0 ? void 0 : element.allBuTokenStaffId : '';
let customField = element.customField;
let obj = {
businessUnits,
buFilterType,
appointments,
subSkillSets,
user,
admin,
allBuToken,
allBuTokenStaffId,
customField,
};
Output.push(obj);
});
return Output;
};
const isObj = function (a) {
if ((!!a) && (a.constructor === Object)) {
return true;
}
return false;
};
const _st = function (z, g) {
return "" + (g != "" ? "[" : "") + z + (g != "" ? "]" : "");
};
const queryParam = function (params, skipobjects, prefix) {
if (skipobjects === void 0) {
skipobjects = false;
}
if (prefix === void 0) {
prefix = "";
}
var result = "";
if (typeof (params) != "object") {
return encodeURIComponent(prefix) + "=" + encodeURIComponent(params) + "&";
}
for (var param in params) {
var c = "" + prefix + _st(param, prefix);
if (isObj(params[param]) && !skipobjects) {
result += queryParam(params[param], false, "" + c);
}
else if (Array.isArray(params[param]) && !skipobjects) {
params[param].forEach(function (item, ind) {
result += queryParam(item, false, c + "[" + ind + "]");
});
}
else {
result += encodeURIComponent(c) + "=" + encodeURIComponent(params[param]) + "&";
}
}
return result;
};
const getGmtOffSet = () => {
const offsetInMinutes = -new Date().getTimezoneOffset();
const hours = Math.floor(offsetInMinutes / 60);
const minutes = offsetInMinutes % 60;
const sign = offsetInMinutes >= 0 ? '+' : '-';
return `GMT${sign}${Math.abs(hours)
.toString()
.padStart(2, '0')}${Math.abs(minutes).toString().padStart(2, '0')}`;
};
const URL_REGEX_PATTERN = '((http|https)://)([a-zA-Z0-9.-]+)\\.[a-z]{2,6}(/[-a-zA-Z0-9@:%._\\+~#?&//=]*)?';
const generateImageUrl = (url) => {
if (!url) {
return url;
}
if (url.startsWith('upload')) {
return `${imageURl}/${url}`;
}
if (url.startsWith('/upload')) {
return `${imageURl}${url}`;
}
if (url.startsWith(imageURl)) {
if (url.includes('//upload')) {
const tempUrl = url.replace('//upload', '/upload');
return tempUrl;
}
return url;
}
if (url.startsWith('http')) {
const tempUrls = url.split('/uploads');
if (tempUrls[1]) {
return `${imageURl}/uploads${tempUrls[1]}`;
}
}
return url;
};
const generateHttpParams = (query) => {
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]()
.set('page', query.page || '1')
.set('limit', query.limit || '10')
.set('sort', query.sort || '{"_id": -1}');
if (query.search) {
params = params.set('search', query.search);
}
return params;
};
const generateHttpQueryParams = (query) => {
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpParams"]()
.set('page', query.page || '1')
.set('limit', query.limit || '10')
.set('sortBy', query.sortBy || 'asc')
.set('sortWith', query.sortWith || 'title');
if (query.search) {
params = params.set('search', query.search);
}
if (query.isDefault) {
params = params.set('isDefault', query.isDefault);
}
return params;
};
const formatGMTOffset = (offset) => {
const pattern = /^GMT([+-]\d{2})(\d{2})$/;
const match = offset.match(pattern);
if (match) {
const hours = match[1];
const minutes = match[2];
return `GMT${hours}:${minutes}`;
}
return offset;
};
/***/ }),
/***/ "NV6M":
/*!**************************************************************!*\
!*** ./src/app/users/service/ops-group/ops-group.service.ts ***!
\**************************************************************/
/*! exports provided: OpsGroupService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpsGroupService", function() { return OpsGroupService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
class OpsGroupService {
constructor(http) {
this.http = http;
this.allPassedData = new rxjs__WEBPACK_IMPORTED_MODULE_3__["BehaviorSubject"]([]);
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
storePassedObject(passedData) {
this.allPassedData.next(passedData);
}
createOpsForm(data) {
return this.http.post(`${this.baseUrl}/opsGroup`, data, {
headers: this.Headers,
});
//.pipe(map((res) => res as any));
}
saveAsDraftOpsForm(data) {
return this.http.post(`${this.baseUrl}/opsgroup`, data, {
headers: this.Headers,
});
//.pipe(map((res) => res as any));
}
staffList(data) {
return this.http.post(`${this.baseUrl}/opsGroup/unassign/stafflist `, data, {
headers: this.Headers,
});
}
getOpsGruop(data) {
return this.http.post(`${this.baseUrl}/opsGroup/get`, data, {
headers: this.Headers,
});
}
viewOpsGruop(id) {
return this.http.get(`${this.baseUrl}/opsgroup/detail/${id}`, {
headers: this.Headers,
});
}
getExportOpsCSV(data) {
return this.http.post(`${this.baseUrl}/opsgroup/export`, data, {
headers: this.Headers,
});
}
getImportStaff(f) {
const formData = new FormData();
// formData.append('shift', JSON.stringify(d));
formData.append('file', f);
return this.http.post(`${this.baseUrl}/opsgroup/importstaff`, formData, {
headers: this.Headers,
});
}
getImportQuota(f) {
const formData = new FormData();
formData.append('ff', f);
return this.http.post(`${this.baseUrl}/ballot/sapdata`, formData);
}
deleteOpsGruop(id) {
return this.http.post(`${this.baseUrl}/opsGroup/${id}`, {
headers: this.Headers,
});
}
updateOpsGroup(data) {
return this.http.post(`${this.baseUrl}/opsgroup/update`, data, {
headers: this.Headers,
});
}
removeTeam(data) {
return this.http.post(`${this.baseUrl}/opsgroup/remove/staff`, data, {
headers: this.Headers,
});
}
removeBu(data) {
return this.http.post(`${this.baseUrl}/opsgroup/remove/bu`, data, {
headers: this.Headers,
});
}
getOpsGroupAdminList() {
return this.http.get(`${this.baseUrl}/opsgroup/bu/adminlist`, {
headers: this.Headers,
});
}
getStaffListBasedOnOpsGroup(data) {
return this.http.post(`${this.baseUrl}/opsgroup/team/stafflist`, data, {
headers: this.Headers,
});
}
}
OpsGroupService.ɵfac = function OpsGroupService_Factory(t) { return new (t || OpsGroupService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
OpsGroupService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: OpsGroupService, factory: OpsGroupService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OpsGroupService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "NXdl":
/*!***************************************************************!*\
!*** ./src/app/users/service/common/file-download.service.ts ***!
\***************************************************************/
/*! exports provided: FileDownloadService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FileDownloadService", function() { return FileDownloadService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! file-saver */ "Iab2");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class FileDownloadService {
constructor(http) {
this.http = http;
}
downloadFile(url, fileName) {
const headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]();
headers.append('Accept', 'application/octet-stream');
this.http.get(`${src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].imageUrl}${url}`, { responseType: 'blob', headers: headers }).subscribe((data) => {
Object(file_saver__WEBPACK_IMPORTED_MODULE_2__["saveAs"])(data, fileName);
}, error => {
console.error('Failed to download file:', error);
});
}
}
FileDownloadService.ɵfac = function FileDownloadService_Factory(t) { return new (t || FileDownloadService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"])); };
FileDownloadService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: FileDownloadService, factory: FileDownloadService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FileDownloadService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "NdTN":
/*!**************************************************************************************!*\
!*** ./src/app/users/pages/operations/report/list-booking/list-booking.component.ts ***!
\**************************************************************************************/
/*! exports provided: CustomDateParserFormatter, ListBookingComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDateParserFormatter", function() { return CustomDateParserFormatter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListBookingComponent", function() { return ListBookingComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! file-saver */ "Iab2");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/constants */ "l207");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/report.service */ "Ecij");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function ListBookingComponent_ng_template_6_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Please wait data is loading... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ListBookingComponent_ng_template_6_div_21_div_1_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListBookingComponent_ng_template_6_div_21_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const i_r9 = ctx.index; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r10.clearLabel(i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r8);
} }
function ListBookingComponent_ng_template_6_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ListBookingComponent_ng_template_6_div_21_div_1_Template, 5, 1, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r4.buLabelArr);
} }
function ListBookingComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h6", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "SELECT BUSINESS UNIT AND DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "ng-select", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ListBookingComponent_ng_template_6_Template_ng_select_ngModelChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.bu = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ListBookingComponent_ng_template_6_div_14_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListBookingComponent_ng_template_6_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.clearAllBu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListBookingComponent_ng_template_6_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.addBu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, ListBookingComponent_ng_template_6_div_21_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Start Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "input", 26, 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListBookingComponent_ng_template_6_Template_input_click_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](31); return _r5.toggle(); })("ngModelChange", function ListBookingComponent_ng_template_6_Template_input_ngModelChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.startdate = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "End Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "input", 26, 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListBookingComponent_ng_template_6_Template_input_click_39_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](40); return _r6.toggle(); })("ngModelChange", function ListBookingComponent_ng_template_6_Template_input_ngModelChange_39_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r19.enddate = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListBookingComponent_ng_template_6_Template_button_click_42_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.downloadCsv(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, " Click to download File ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r1.allBuShift)("loading", ctx_r1.buLoader)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r1.bu);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.buLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.buLabelArr != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.startdate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.enddate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !(ctx_r1.startdate && ctx_r1.enddate && ctx_r1.buArr.length > 0));
} }
function ListBookingComponent_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.loadingMessage, " ");
} }
class CustomDateParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"] {
constructor() {
super(...arguments);
this.DELIMITER = '-';
}
parse(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1].padStart(10, '0'), 10),
year: parseInt(date[2], 10),
};
}
return null;
}
format(date) {
return date
? date.day +
this.DELIMITER +
parseInt(date.month.toString().padStart(10, '0'), 10) +
this.DELIMITER +
date.year
: '';
}
}
CustomDateParserFormatter.ɵfac = function CustomDateParserFormatter_Factory(t) { return ɵCustomDateParserFormatter_BaseFactory(t || CustomDateParserFormatter); };
CustomDateParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: CustomDateParserFormatter, factory: CustomDateParserFormatter.ɵfac });
const ɵCustomDateParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CustomDateParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CustomDateParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
}], null, null); })();
class ListBookingComponent {
constructor(setupService, reportService, toastService) {
this.setupService = setupService;
this.reportService = reportService;
this.toastService = toastService;
this.buArr = [];
this.buLabelArr = [];
this.bu = null;
this.allBusinessUnitSelected = false;
this.buLoader = true;
this.activeId = 1;
this.isLoader = false;
this.loadingMessage = src_app_constants__WEBPACK_IMPORTED_MODULE_5__["LOADING_MESSAGE"];
}
ngOnInit() {
this.getAllBu();
}
getAllBu() {
this.buLoader = true;
const buSubscribe = this.setupService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((val) => {
// Adding 'all' option to Select All Bu
val['data']['businessUnitList'].unshift({
_id: 'all',
orgName: 'Select All Business Units',
});
return val;
}))
.subscribe((res) => {
if (res['data']['businessUnitList']) {
this.allBuShift = res['data']['businessUnitList'];
}
else {
this.allBuShift = [];
}
}, (error) => {
this.allBuShift = [];
});
}
addBu() {
if (this.bu._id === 'all') {
//removing selected bu before selection of All bu
this.buArr = [];
this.buLabelArr = [];
//Adding all bu except 1st Select All option
this.allBuShift.forEach((el, i) => {
if (i > 0) {
this.buArr.push(el._id);
}
});
this.buLabelArr.push('All Business Units Selected');
}
else if (this.buArr.includes(this.bu._id)) {
this.toastService.info('Business unit already selected', 'Already Selected');
}
else {
this.buArr.push(this.bu._id);
this.buLabelArr.push(this.bu.orgName);
this.bu = null;
}
}
clearLabel(i) {
if (this.buLabelArr.includes('All Business Units Selected')) {
this.buArr = [];
this.buLabelArr = [];
}
else {
this.buArr.splice(i, 1);
this.buLabelArr.splice(i, 1);
}
}
downloadCsv() {
this.isLoader = true;
const filePayload = {
date: moment__WEBPACK_IMPORTED_MODULE_2__().format('MM-DD-YYYY hh:MM:ss [GMT]ZZ'),
businessUnitId: this.buArr,
startDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
y: this.startdate.year,
M: this.startdate.month - 1,
D: this.startdate.day,
})
.format('MM-DD-YYYY 00:00:00 [GMT]ZZ'),
endDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
y: this.enddate.year,
M: this.enddate.month - 1,
D: this.enddate.day,
})
.format('MM-DD-YYYY 00:00:00 [GMT]ZZ'),
AllBuSelected: this.allBusinessUnitSelected,
};
this.reportService.reportBooking(filePayload).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.isLoader = false;
})).subscribe((res) => {
const csvLink = res.data.csvLink;
const filename = csvLink.split('\\').pop().split('/').pop();
this.downloadFile(filename);
}, (error) => {
this.toastService.error(`Something went wrong!`);
});
}
downloadFile(n) {
this.reportService
.downloadFile(n)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.bu = null;
this.buArr = [];
this.buLabelArr = [];
this.startdate = null;
this.enddate = null;
}))
.subscribe((res) => {
if (res) {
file_saver__WEBPACK_IMPORTED_MODULE_3__["saveAs"](new Blob([res], { type: 'text/csv' }), n);
}
});
}
clearAllBu() {
this.buArr = [];
this.buLabelArr = [];
}
}
ListBookingComponent.ɵfac = function ListBookingComponent_Factory(t) { return new (t || ListBookingComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__["ReportService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"])); };
ListBookingComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ListBookingComponent, selectors: [["app-list-booking"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
])], decls: 10, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["listNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["class", "loader", 4, "ngIf"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "row"], [1, "col-12"], [1, "col-md-10", "d-flex", "align-items-end"], [1, "form-group", "w-100"], [1, "font-weight-500"], [1, "field-mandatory"], ["bindLabel", "orgName", "placeholder", "Select Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], ["class", "text-danger", 4, "ngIf"], [1, "btn", "btn-danger", "ml-2", 3, "click"], [1, "btn", "btn-success", "ml-2", 3, "click"], [1, "row", "mt-3"], [4, "ngIf"], [1, "col-md-3"], [1, "form-group"], [1, "input-group"], ["placeholder", "Select date", "ngbDatepicker", "", 1, "form-control", 3, "ngModel", "click", "ngModelChange"], ["d1", "ngbDatepicker"], ["d2", "ngbDatepicker"], [1, "card-footer"], [1, "btn", "btn-warning", 3, "disabled", "click"], [1, "text-danger"], ["class", "labels", 4, "ngFor", "ngForOf"], [1, "labels"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"]], template: function ListBookingComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ListBookingComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "LIST OF BOOKING");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ListBookingComponent_ng_template_6_Template, 44, 12, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ListBookingComponent_div_9_Template, 5, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLoader);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbInputDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"]], styles: [".btn-download[_ngcontent-%COMP%] {\n background-color: #f2c94d;\n padding: 8px 50px;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n margin: 4px 4px 0 0;\n display: inline-block;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n margin-left: 6px;\n vertical-align: middle;\n}\n\n.form-control[_ngcontent-%COMP%] {\n height: 36px;\n}\n\n.form-group[_ngcontent-%COMP%] {\n margin-bottom: 0;\n}\n\n.ml-2[_ngcontent-%COMP%] {\n margin-left: 0.5rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9yZXBvcnQvbGlzdC1ib29raW5nL2xpc3QtYm9va2luZy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHlCQUFBO0VBQ0EsaUJBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLG1CQUFBO0VBQ0EscUJBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFDRTtFQUNFLGtCQUFBO0FBQ0o7O0FBRUU7RUFDRSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLHNCQUFBO0FBQUo7O0FBSUE7RUFDRSxZQUFBO0FBREY7O0FBSUE7RUFDRSxnQkFBQTtBQURGOztBQUlBO0VBQ0UsbUJBQUE7QUFERiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvcmVwb3J0L2xpc3QtYm9va2luZy9saXN0LWJvb2tpbmcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYnRuLWRvd25sb2FkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2YyYzk0ZDtcbiAgcGFkZGluZzogOHB4IDUwcHg7XG59XG5cbi5sYWJlbHMge1xuICBwYWRkaW5nOiA2cHggOHB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBtYXJnaW46IDRweCA0cHggMCAwO1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gIC50ZXh0IHtcbiAgICBtYXJnaW4tYm90dG9tOiAycHg7XG4gIH1cblxuICAuYnRuLWNsb3NlIHtcbiAgICBmb250LXNpemU6IDE2cHg7XG4gICAgcGFkZGluZzogMnB4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICBtYXJnaW4tbGVmdDogNnB4O1xuICAgIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG4gIH1cbn1cblxuLmZvcm0tY29udHJvbCB7XG4gIGhlaWdodDogMzZweDtcbn1cblxuLmZvcm0tZ3JvdXAge1xuICBtYXJnaW4tYm90dG9tOiAwO1xufVxuXG4ubWwtMiB7XG4gIG1hcmdpbi1sZWZ0OiAwLjVyZW07XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ListBookingComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-list-booking',
templateUrl: './list-booking.component.html',
styleUrls: ['./list-booking.component.scss'],
providers: [
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"] }, { type: src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__["ReportService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "Nnxu":
/*!************************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-events/events-reported-comments/events-reported-comments.component.ts ***!
\************************************************************************************************************************/
/*! exports provided: EventsReportedCommentsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsReportedCommentsComponent", function() { return EventsReportedCommentsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function EventsReportedCommentsComponent_span_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function EventsReportedCommentsComponent_table_23_tr_16_ul_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const user_r5 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](user_r5 == null ? null : user_r5.name);
} }
function EventsReportedCommentsComponent_table_23_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, EventsReportedCommentsComponent_table_23_tr_16_ul_11_Template, 3, 1, "ul", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventsReportedCommentsComponent_table_23_tr_16_Template_input_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const item_r3 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r6.changeCommentStatus(item_r3._id, item_r3.status); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3 == null ? null : item_r3.comment, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3 == null ? null : item_r3.postTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.channelName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](9, 6, item_r3 == null ? null : item_r3.reportList[0].reportedAt, "medium"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r3.reportList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r3.status === 1 ? "checked" : "");
} }
function EventsReportedCommentsComponent_table_23_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedCommentsComponent_table_23_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event, "comment"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Comments ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedCommentsComponent_table_23_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "postTitle"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Post Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedCommentsComponent_table_23_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.onSortUsers($event, "channelName"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Social wall/Channel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedCommentsComponent_table_23_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortUsers($event, "reportedAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Reported Date / Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedCommentsComponent_table_23_Template_th_sort_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " USER NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, EventsReportedCommentsComponent_table_23_tr_16_Template, 16, 9, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class EventsReportedCommentsComponent {
constructor(boardService, toastService, storageService, formBuilder) {
this.boardService = boardService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.isTableLoading = true;
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = !!direction ? field : 'createdAt';
this.usersPTable.sortBy = !!direction ? direction : 'desc';
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
changeCommentStatus(id, status) {
// check want needs to pass
const data = {
status: status === 1 ? 2 : 1,
postId: id,
};
const subscribe = this.boardService
.updateReportedComment(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success(response === null || response === void 0 ? void 0 : response.data);
this.loadUsers();
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.message) === null || _a === void 0 ? void 0 : _a.message);
});
}
loadUsers() {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.boardService
.getAllReportedComments(rest, 'event')
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.isTableLoading = false;
const { recordsFiltered, data } = response;
this.usersPTable.data = data;
this.usersPTable.total = recordsFiltered;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
EventsReportedCommentsComponent.ɵfac = function EventsReportedCommentsComponent_Factory(t) { return new (t || EventsReportedCommentsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"])); };
EventsReportedCommentsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: EventsReportedCommentsComponent, selectors: [["events-reported-comments"]], viewQuery: function EventsReportedCommentsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 30, vars: 16, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "switch"], ["type", "checkbox", 3, "checked", "click"], [1, "slider", "round"]], template: function EventsReportedCommentsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "COMMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function EventsReportedCommentsComponent_Template_select_change_8_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function EventsReportedCommentsComponent_Template_select_ngModelChange_8_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, EventsReportedCommentsComponent_span_20_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function EventsReportedCommentsComponent_Template_input_search_21_listener() { return ctx.loadUsers(); })("keyup", function EventsReportedCommentsComponent_Template_input_keyup_21_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function EventsReportedCommentsComponent_Template_input_ngModelChange_21_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, EventsReportedCommentsComponent_table_23_Template, 17, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function EventsReportedCommentsComponent_Template_ngb_pagination_pageChange_29_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function EventsReportedCommentsComponent_Template_ngb_pagination_pageChange_29_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 6)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\n\ninput[type=radio][_ngcontent-%COMP%] {\n margin-right: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL2V2ZW50cy1yZXBvcnRlZC1jb21tZW50cy9ldmVudHMtcmVwb3J0ZWQtY29tbWVudHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0E7RUFDRSxxQkFBQTtFQUNBLFVBQUE7QUFBRjs7QUFHQTtFQUNFLGtCQUFBO0FBQUYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jb21tdW5pY2F0aW9uL21hbmFnZS1ldmVudHMvZXZlbnRzLXJlcG9ydGVkLWNvbW1lbnRzL2V2ZW50cy1yZXBvcnRlZC1jb21tZW50cy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxudWx7XG4gIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbiAgcGFkZGluZzogMDtcbn1cblxuaW5wdXRbdHlwZT1cInJhZGlvXCJdIHtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xufVxuXG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](EventsReportedCommentsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'events-reported-comments',
templateUrl: './events-reported-comments.component.html',
styleUrls: ['./events-reported-comments.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "O31U":
/*!**************************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/usefull-link/usefull-link.component.ts ***!
\**************************************************************************************************/
/*! exports provided: UsefullLinkComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsefullLinkComponent", function() { return UsefullLinkComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
function UsefullLinkComponent_div_7_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "input", 11, 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function UsefullLinkComponent_div_7_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4); const check_r1 = ctx.$implicit; const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r3.onCheckBoxChanges(_r2, check_r1.title); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const check_r1 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", check_r1.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", check_r1.isChecked);
} }
const _c0 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
class UsefullLinkComponent {
constructor(companyService, formBuilder, tostService) {
this.companyService = companyService;
this.formBuilder = formBuilder;
this.tostService = tostService;
this.isUpdateLoading = false;
this.usefullinkEdit = false;
this.useFullLinksArray = [];
this.fieldNeedsToUpdate = [];
this.useFullLinkOrders = [];
}
ngOnInit() {
this.initForm();
this.getCompanySettings();
}
getCompanySettings() {
this.companyService.getcompanySetting().subscribe((res) => {
this.companySettingsId = res.data._id;
this.useFullLinksArray = res.data.quickLinks.map((link) => {
return Object.assign(Object.assign({}, link), { isChecked: (link === null || link === void 0 ? void 0 : link.status) === 'active' ? true : false });
});
}, (error) => {
this.tostService.error("Error" + error);
});
}
initForm() {
this.setupForm = this.formBuilder.group({
quickLinks: this.formBuilder.array([]),
});
}
get quickLinksControl() {
return this.setupForm.get('quickLinks');
}
onCheckBoxChanges(event, title) {
// get current position of the changes element by ID
const index = this.useFullLinksArray.findIndex(_ => _.title === title);
if (!(index > -1))
return;
// const isChecked = this.checkBoxes[index].isChecked;
this.useFullLinksArray[index].isChecked = event.checked;
}
onSubmitSetupForm() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.isUpdateLoading = true;
let fields = this.useFullLinksArray.map((_a) => {
var { isChecked } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["isChecked"]);
return Object.assign(Object.assign({}, rest), { status: isChecked ? 'active' : 'inactive' });
});
const data = {
quickLinks: fields,
pageId: this.companySettingsId
};
const sub = this.companyService
.updateCompanySettings(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.useFullLinkOrders = [];
this.tostService.success('Updated SuccessFully');
this.isUpdateLoading = false;
this.ngOnInit();
}, (error) => {
this.tostService.error("Error" + error);
this.isUpdateLoading = false;
});
});
}
}
UsefullLinkComponent.ɵfac = function UsefullLinkComponent_Factory(t) { return new (t || UsefullLinkComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
UsefullLinkComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: UsefullLinkComponent, selectors: [["app-usefull-link"]], decls: 13, vars: 7, consts: [[3, "formGroup"], [1, "card", "mb-3"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body", "p-5"], [1, "row"], ["class", "col-xs-12 col-sm-12 col-md-3 col-lg-3 ", 4, "ngFor", "ngForOf"], [1, "col-md-4"], [1, "btn", "btn-submit", "update-button", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "col-xs-12", "col-sm-12", "col-md-3", "col-lg-3"], [1, "container"], ["type", "checkbox", 3, "checked", "change"], ["el", ""], [1, "checkmark"]], template: function UsefullLinkComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "QUICK NAVIGATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, UsefullLinkComponent_div_7_Template, 6, 2, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UsefullLinkComponent_Template_button_click_10_listener() { return ctx.onSubmitSetupForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Update");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.setupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.useFullLinksArray);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isUpdateLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](4, _c0, ctx.isUpdateLoading, !ctx.isUpdateLoading));
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgClass"]], styles: [".text-items[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n}\n\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n\n.parent[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-column-gap: 10px;\n grid-row-gap: 10px;\n}\n\n.child[_ngcontent-%COMP%] {\n height: 20px;\n}\n\nselect[_ngcontent-%COMP%] {\n height: 30px;\n}\n\n.update-button[_ngcontent-%COMP%] {\n width: 100px;\n}\n\n.container[_ngcontent-%COMP%] {\n display: block;\n position: relative;\n padding-left: 35px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n -webkit-user-select: none;\n user-select: none;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n\n\n\n.checkmark[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n height: 20px;\n width: 20px;\n background-color: white;\n border: 2px solid #008000a3;\n border-radius: 5px;\n}\n\n\n\n.container[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%] {\n background-color: white;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%] {\n background-color: white;\n}\n\n\n\n.checkmark[_ngcontent-%COMP%]:after {\n content: \"\";\n position: absolute;\n display: none;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after {\n display: block;\n}\n\n\n\n.container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after {\n left: 7px;\n bottom: 2px;\n width: 10px;\n height: 20px;\n border: solid #008000a3;\n border-width: 0 4px 4px 0;\n transform: rotate(45deg);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvdXNlZnVsbC1saW5rL3VzZWZ1bGwtbGluay5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUFZLHlCQUFBO0VBQ1YsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLHVCQUFBO0VBQ0EsWUFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSx3QkFBQTtFQUNBLHFCQUFBO0VBQ0EsMEJBQUE7RUFDQSxlQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtBQUVGOztBQUFBO0VBQ0UscUJBQUE7QUFHRjs7QUFEQTtFQUNFLGFBQUE7RUFDQSxxQ0FBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7QUFJRjs7QUFGQTtFQUNFLFlBQUE7QUFLRjs7QUFEQTtFQUNFLFlBQUE7QUFJRjs7QUFEQTtFQUNFLFlBQUE7QUFJRjs7QUFEQTtFQUNFLGNBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxlQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EseUJBQUE7RUFHQSxpQkFBQTtBQUlGOztBQURBLHdDQUFBOztBQUNBO0VBQ0Usa0JBQUE7RUFDQSxVQUFBO0VBQ0EsZUFBQTtFQUNBLFNBQUE7RUFDQSxRQUFBO0FBSUY7O0FBREEsNkJBQUE7O0FBQ0E7RUFDRSxrQkFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7RUFDQSx1QkFBQTtFQUNBLDJCQUFBO0VBQ0Esa0JBQUE7QUFJRjs7QUFEQSwrQ0FBQTs7QUFDQTtFQUNFLHVCQUFBO0FBSUY7O0FBREEsd0RBQUE7O0FBQ0E7RUFDRSx1QkFBQTtBQUlGOztBQURBLDZEQUFBOztBQUNBO0VBQ0UsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsYUFBQTtBQUlGOztBQURBLG9DQUFBOztBQUNBO0VBQ0UsY0FBQTtBQUlGOztBQURBLGtDQUFBOztBQUNBO0VBQ0UsU0FBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLHVCQUFBO0VBQ0EseUJBQUE7RUFHQSx3QkFBQTtBQUlGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvdXNlZnVsbC1saW5rL3VzZWZ1bGwtbGluay5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50ZXh0LWl0ZW1ze2JhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGZvbnQtc2l6ZTogMTNweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgbGluZS1oZWlnaHQ6IDI7XG4gIC8qIG1hcmdpbi1yaWdodDogMnB4OyAqL1xuICBjb2xvcjogd2hpdGU7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmU7XG4gIGJvcmRlci1yYWRpdXM6IC4yNWVtO1xuICBwYWRkaW5nOiAuMmVtIC42ZW0gLjNlbTtcbiAgbWFyZ2luOiA1cHggNXB4O1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHBhZGRpbmctcmlnaHQ6IDMzcHg7XG59XG51bHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xufVxuLnBhcmVudCB7XG4gIGRpc3BsYXk6IGdyaWQ7XG4gIGdyaWQtdGVtcGxhdGUtY29sdW1uczogcmVwZWF0KDQsIDFmcik7XG4gIGdyaWQtY29sdW1uLWdhcDogMTBweDtcbiAgZ3JpZC1yb3ctZ2FwOiAxMHB4O1xufVxuLmNoaWxkIHtcbiAgaGVpZ2h0OiAyMHB4O1xuXG59XG5cbnNlbGVjdHtcbiAgaGVpZ2h0OiAzMHB4O1xufVxuXG4udXBkYXRlLWJ1dHRvbntcbiAgd2lkdGg6IDEwMHB4O1xufVxuXG4uY29udGFpbmVyIHtcbiAgZGlzcGxheTogYmxvY2s7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgcGFkZGluZy1sZWZ0OiAzNXB4O1xuICBtYXJnaW4tYm90dG9tOiAxMnB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgLXdlYmtpdC11c2VyLXNlbGVjdDogbm9uZTtcbiAgLW1vei11c2VyLXNlbGVjdDogbm9uZTtcbiAgLW1zLXVzZXItc2VsZWN0OiBub25lO1xuICB1c2VyLXNlbGVjdDogbm9uZTtcbn1cblxuLyogSGlkZSB0aGUgYnJvd3NlcidzIGRlZmF1bHQgY2hlY2tib3ggKi9cbi5jb250YWluZXIgaW5wdXQge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIG9wYWNpdHk6IDA7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgaGVpZ2h0OiAwO1xuICB3aWR0aDogMDtcbn1cblxuLyogQ3JlYXRlIGEgY3VzdG9tIGNoZWNrYm94ICovXG4uY2hlY2ttYXJrIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGhlaWdodDogMjBweDtcbiAgd2lkdGg6IDIwcHg7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICBib3JkZXI6IDJweCBzb2xpZCAjMDA4MDAwYTM7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbn1cblxuLyogT24gbW91c2Utb3ZlciwgYWRkIGEgZ3JleSBiYWNrZ3JvdW5kIGNvbG9yICovXG4uY29udGFpbmVyOmhvdmVyIGlucHV0IH4gLmNoZWNrbWFyayB7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xufVxuXG4vKiBXaGVuIHRoZSBjaGVja2JveCBpcyBjaGVja2VkLCBhZGQgYSBibHVlIGJhY2tncm91bmQgKi9cbi5jb250YWluZXIgaW5wdXQ6Y2hlY2tlZCB+IC5jaGVja21hcmsge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbn1cblxuLyogQ3JlYXRlIHRoZSBjaGVja21hcmsvaW5kaWNhdG9yIChoaWRkZW4gd2hlbiBub3QgY2hlY2tlZCkgKi9cbi5jaGVja21hcms6YWZ0ZXIge1xuICBjb250ZW50OiBcIlwiO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi8qIFNob3cgdGhlIGNoZWNrbWFyayB3aGVuIGNoZWNrZWQgKi9cbi5jb250YWluZXIgaW5wdXQ6Y2hlY2tlZCB+IC5jaGVja21hcms6YWZ0ZXIge1xuICBkaXNwbGF5OiBibG9jaztcbn1cblxuLyogU3R5bGUgdGhlIGNoZWNrbWFyay9pbmRpY2F0b3IgKi9cbi5jb250YWluZXIgLmNoZWNrbWFyazphZnRlciB7XG4gIGxlZnQ6IDdweDtcbiAgYm90dG9tOiAycHg7XG4gIHdpZHRoOiAxMHB4O1xuICBoZWlnaHQ6IDIwcHg7XG4gIGJvcmRlcjogc29saWQgIzAwODAwMGEzO1xuICBib3JkZXItd2lkdGg6IDAgNHB4IDRweCAwO1xuICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDQ1ZGVnKTtcbiAgLW1zLXRyYW5zZm9ybTogcm90YXRlKDQ1ZGVnKTtcbiAgdHJhbnNmb3JtOiByb3RhdGUoNDVkZWcpO1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UsefullLinkComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-usefull-link',
templateUrl: './usefull-link.component.html',
styleUrls: ['./usefull-link.component.scss']
}]
}], function () { return [{ type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__["CompanySetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "OWei":
/*!*******************************************************************************!*\
!*** ./src/app/users/pages/auth/forget-password/forget-password.component.ts ***!
\*******************************************************************************/
/*! exports provided: ForgetPasswordComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ForgetPasswordComponent", function() { return ForgetPasswordComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/custom-validator/custom-validator */ "TF/K");
/* harmony import */ var recheck__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recheck */ "0MsR");
/* harmony import */ var recheck__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(recheck__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../service/auth/auth.service */ "PxIJ");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
function ForgetPasswordComponent_p_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter your Staff ID and Mobile Number to receive OTP ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_p_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter a new password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_13_div_1_div_4_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Company Name is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_13_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ForgetPasswordComponent_form_13_div_1_div_4_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r9.f.companyId.errors.required);
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
function ForgetPasswordComponent_form_13_div_1_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Company Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("blur", function ForgetPasswordComponent_form_13_div_1_Template_input_blur_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.f.companyId.valid && ctx_r11.getCompanyId(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ForgetPasswordComponent_form_13_div_1_div_4_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](2, _c0, ctx_r5.submitted && ctx_r5.f.companyId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.submitted && ctx_r5.f.companyId.errors);
} }
function ForgetPasswordComponent_form_13_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Staff id is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_13_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ForgetPasswordComponent_form_13_div_6_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.f.staffId.errors.required);
} }
function ForgetPasswordComponent_form_13_div_7_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Enter a Valid Email");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_13_div_7_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Email is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_13_div_7_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ForgetPasswordComponent_form_13_div_7_div_6_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.f.email.errors.required);
} }
function ForgetPasswordComponent_form_13_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, ForgetPasswordComponent_form_13_div_7_span_5_Template, 2, 0, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ForgetPasswordComponent_form_13_div_7_div_6_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](3, _c0, ctx_r7.submitted1 && ctx_r7.f.email.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r7.email.invalid && ctx_r7.email.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r7.submitted1 && ctx_r7.f.email.errors);
} }
function ForgetPasswordComponent_form_13_div_8_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Enter a Valid Phone number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_13_div_8_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Mobile Number is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_13_div_8_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ForgetPasswordComponent_form_13_div_8_div_6_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r18.f.mobile.errors.required);
} }
const _c1 = function (a0, a1) { return [a0, a1]; };
function ForgetPasswordComponent_form_13_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Mobile number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "ngx-intl-tel-input", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, ForgetPasswordComponent_form_13_div_8_span_5_Template, 2, 0, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ForgetPasswordComponent_form_13_div_8_div_6_Template, 2, 1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("cssClass", "custom form-control")("preferredCountries", ctx_r8.preferredCountries)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c0, ctx_r8.submitted1 && ctx_r8.f.mobile.errors))("enableAutoCountrySelect", true)("enablePlaceholder", true)("searchCountryFlag", true)("searchCountryField", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](17, _c1, ctx_r8.SearchCountryField.Iso2, ctx_r8.SearchCountryField.Name))("selectFirstCountry", false)("selectedCountryISO", ctx_r8.CountryISO.Singapore)("maxLength", 15)("phoneValidation", true)("separateDialCode", ctx_r8.separateDialCode)("numberFormat", ctx_r8.PhoneNumberFormat.National);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.phone.invalid && ctx_r8.phone.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.submitted1 && ctx_r8.f.mobile.errors);
} }
const _c2 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function ForgetPasswordComponent_form_13_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function ForgetPasswordComponent_form_13_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.onRequestRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ForgetPasswordComponent_form_13_div_1_Template, 5, 4, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "input", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ForgetPasswordComponent_form_13_div_6_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, ForgetPasswordComponent_form_13_div_7_Template, 7, 5, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, ForgetPasswordComponent_form_13_div_8_Template, 7, 20, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ForgetPasswordComponent_form_13_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.submitForgotPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ForgetPasswordComponent_form_13_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.navigateToLogin(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.forgetPasswordForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.companyName == "xforce");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](8, _c0, ctx_r2.submitted1 && ctx_r2.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.submitted1 && ctx_r2.f.staffId.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.otpSentFor === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.otpSentFor === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r2.isLoadingOnRequestRestPassword);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](10, _c2, ctx_r2.isLoadingOnRequestRestPassword, !ctx_r2.isLoadingOnRequestRestPassword));
} }
function ForgetPasswordComponent_form_14_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " OTP is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_14_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ForgetPasswordComponent_form_14_div_5_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r24.otp.otp.errors.required);
} }
function ForgetPasswordComponent_form_14_Template(rf, ctx) { if (rf & 1) {
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Enter OTP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, ForgetPasswordComponent_form_14_div_5_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ForgetPasswordComponent_form_14_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r26.onSubmitOtp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ForgetPasswordComponent_form_14_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r28.goBack(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r3.otpVerifyForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](5, _c0, ctx_r3.submitted2 && ctx_r3.otp.otp.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.submitted2 && ctx_r3.otp.otp.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r3.isLoadingOtpSubmit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](7, _c2, ctx_r3.isLoadingOtpSubmit, !ctx_r3.isLoadingOtpSubmit));
} }
function ForgetPasswordComponent_form_15_div_5_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ForgetPasswordComponent_form_15_div_5_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r36); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r35.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_6_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ForgetPasswordComponent_form_15_div_6_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r37.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_7_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one numeric letter is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_7_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one special character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_7_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one Capital character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one Small character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_7_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" Minimum Length Should be ", ctx_r44.passwordRestForm.get("password").errors.length, " Characters ");
} }
function ForgetPasswordComponent_form_15_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ForgetPasswordComponent_form_15_div_7_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ForgetPasswordComponent_form_15_div_7_div_2_Template, 2, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, ForgetPasswordComponent_form_15_div_7_div_3_Template, 2, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ForgetPasswordComponent_form_15_div_7_div_4_Template, 2, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, ForgetPasswordComponent_form_15_div_7_div_5_Template, 2, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ForgetPasswordComponent_form_15_div_7_div_6_Template, 2, 1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.hasNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.hasSpecialCharacters);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.hasCapitalCase);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.hasSmallCase);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.minlength);
} }
function ForgetPasswordComponent_form_15_div_12_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ForgetPasswordComponent_form_15_div_12_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r45.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_13_Template(rf, ctx) { if (rf & 1) {
const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ForgetPasswordComponent_form_15_div_13_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r48); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r47.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_14_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Confirm Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_14_small_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password doesn't Match ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ForgetPasswordComponent_form_15_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ForgetPasswordComponent_form_15_div_14_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ForgetPasswordComponent_form_15_div_14_small_2_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r34.passwordRestForm.get("confirmPassword").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r34.passwordRestForm.get("confirmPassword").errors.mustMatch);
} }
function ForgetPasswordComponent_form_15_Template(rf, ctx) { if (rf & 1) {
const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function ForgetPasswordComponent_form_15_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r52); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r51.onRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, ForgetPasswordComponent_form_15_div_5_Template, 2, 0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ForgetPasswordComponent_form_15_div_6_Template, 2, 0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, ForgetPasswordComponent_form_15_div_7_Template, 7, 6, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Confirm Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, ForgetPasswordComponent_form_15_div_12_Template, 2, 0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, ForgetPasswordComponent_form_15_div_13_Template, 2, 0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ForgetPasswordComponent_form_15_div_14_Template, 3, 2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, " Reset Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r4.passwordRestForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx_r4.passwordvisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](13, _c0, ctx_r4.submitted3 && ctx_r4.passwordRestForm.get("password").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r4.passwordvisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.passwordvisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.passwordRestForm.get("password").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx_r4.passwordvisibleAlt ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c0, ctx_r4.submitted3 && ctx_r4.passwordRestForm.get("confirmPassword").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r4.passwordvisibleAlt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.passwordvisibleAlt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.passwordRestForm.get("confirmPassword").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r4.isLoadingResetPassword);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](17, _c2, ctx_r4.isLoading, !ctx_r4.isLoadingResetPassword));
} }
class ForgetPasswordComponent {
constructor(router, auth, toastService, companyService, formBuilder, route) {
this.router = router;
this.auth = auth;
this.toastService = toastService;
this.companyService = companyService;
this.formBuilder = formBuilder;
this.route = route;
this.submitted1 = false;
this.submitted2 = false;
this.submitted3 = false;
this.passwordvisible = false;
this.passwordvisibleAlt = false;
this.restPasswordState = 'initRest';
this.validators = [];
this.separateDialCode = true;
this.SearchCountryField = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["SearchCountryField"];
this.CountryISO = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["CountryISO"];
this.PhoneNumberFormat = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["PhoneNumberFormat"];
this.preferredCountries = [
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["CountryISO"].UnitedStates,
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["CountryISO"].UnitedKingdom,
];
this.isLoadingOnRequestRestPassword = false;
this.isLoadingOtpSubmit = false;
this.isLoadingResetPassword = false;
}
ngOnInit() {
this.initForm();
this.getPasswordSetting();
this.route.params
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["tap"])((value) => (this.companyName = value.name)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((v) => v.name), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["switchMap"])((name) => this.auth.fetchCompanyId(name)))
.subscribe((res) => {
this.forgetPasswordForm.patchValue({
companyId: res.data._id,
});
});
const urlParam = this.route.params
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((v) => v.name))
.subscribe((val) => {
this.companyName = val;
this.getCompanyId();
});
}
getCompanyId() {
if (this.companyName != 'xforce' && this.companyName != undefined) {
const urlCompanyName = this.auth
.fetchCompanyId(this.companyName)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
urlCompanyName.unsubscribe();
}))
.subscribe((res) => {
this.forgetPasswordForm.patchValue({
companyId: res.data._id,
});
}, (error) => { });
}
else {
if (this.f.companyId.value) {
const urlxforce = this.auth
.fetchCompanyId(this.forgetPasswordForm.controls.companyId.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
urlxforce.unsubscribe();
}))
.subscribe((res) => {
this.xforceCompanyId = res.data._id;
}, (error) => { });
}
}
}
passwordVisible() {
this.passwordvisible = !this.passwordvisible;
}
confirmPasswordVisible() {
this.passwordvisibleAlt = !this.passwordvisibleAlt;
}
initForm() {
this.forgetPasswordForm = this.formBuilder.group({
staffId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
companyId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
mobile: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.otpForm = this.formBuilder.group({
token: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
companyId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
staffId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
/* this.passwordRestForm = this.formBuilder.group({
password: ['', Validators.required],
confirmPassword: ['', Validators.required],
token: ['', Validators.required],
});*/
this.otpVerifyForm = this.formBuilder.group({
token: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
otp: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
}
getPasswordSetting() {
const sub = this.companyService
.getPasswordSetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b, _c, _d, _e;
this.getValidatorFnArray((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.pageSettingData) === null || _b === void 0 ? void 0 : _b.pwdSettings);
this.otpSentFor = (_e = (_d = (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.pageSettingData) === null || _d === void 0 ? void 0 : _d.pwdSettings) === null || _e === void 0 ? void 0 : _e.otpSentFor;
/* if (res.data.pwdSettings.otpSentFor === 2) {
this.f.mobile.setValidators([Validators.required]);
this.f.date.updateValueAndValidity();
} else {
this.f.email.setValidators([Validators.required]);
this.f.time.updateValueAndValidity();
}*/
}, (error) => {
console.log(error);
});
}
resetPasswordForm() {
this.passwordRestForm = this.formBuilder.group({
password: ['', [...this.validators, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
confirmPassword: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
token: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
}, {
validator: Object(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["MustMatch"])('password', 'confirmPassword'),
});
}
get phone() {
return this.forgetPasswordForm.get('mobile');
}
get email() {
return this.forgetPasswordForm.get('email');
}
get f() {
return this.forgetPasswordForm.controls;
}
get otp() {
return this.otpForm.controls;
}
get restPassword() {
return this.passwordRestForm.controls;
}
getValidatorFnArray(setting) {
var _a, _b, _c, _d;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const validators = [];
if ((_a = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _a === void 0 ? void 0 : _a.lowerCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/[a-z]/, {
hasSmallCase: true,
}));
}
if ((_b = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _b === void 0 ? void 0 : _b.specialChar) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/, {
hasSpecialCharacters: true,
}));
}
if ((_c = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _c === void 0 ? void 0 : _c.upperCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/[A-Z]/, {
hasCapitalCase: true,
}));
}
if ((_d = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _d === void 0 ? void 0 : _d.numbers) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/\d/, {
hasNumber: true,
}));
}
if (setting === null || setting === void 0 ? void 0 : setting.charLength) {
const len = setting.charLength;
let test = `^.{${len},22}`;
let recheckResp = yield recheck__WEBPACK_IMPORTED_MODULE_6__["check"](test, "");
if (recheckResp.status === 'safe') {
let regex = new RegExp(test);
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(regex, {
minlength: true,
length: setting.charLength,
}));
}
this.validators.push(...validators);
this.resetPasswordForm();
}
});
}
navigateToLogin() {
this.router.navigate(['/users/login/', this.companyName]);
}
submitForgotPassword() {
}
onRequestRestPassword() {
// if (!this.forgetPasswordForm.valid) {
// this.submitted1 = true;
// console.log('Hello')
// return;
// }
if (this.otpSentFor === 1) {
const data = {
// companyId: this.forgetPasswordForm.value.companyId,
staffId: this.forgetPasswordForm.value.staffId,
email: this.forgetPasswordForm.value.email,
countryCode: '',
// primaryMobileNumber: '',
pathName: "sats"
};
const sub = this.auth
.requestForgetPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b;
this.isLoadingOnRequestRestPassword = false;
this.toastService.success(res.data.message);
// this.forgetPasswordForm.reset();
this.otpVerifyForm.patchValue({
token: (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.token,
});
this.otpToken = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.token;
this.restPasswordState = 'otpRest';
}, (error) => {
console.log(error);
this.isLoadingOnRequestRestPassword = false;
});
}
else if (this.otpSentFor === 2) {
this.isLoadingOnRequestRestPassword = true;
const { number } = this.forgetPasswordForm.get('mobile').value;
const data = {
// companyId: this.forgetPasswordForm.value.companyId,
staffId: this.forgetPasswordForm.value.staffId,
// email: '',
countryCode: this.forgetPasswordForm.value.mobile.dialCode,
primaryMobileNumber: parseInt(number.replace(/[^0-9]/g, ''), 10).toString(),
pathName: "sats"
};
const sub = this.auth
.requestForgetPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b;
this.isLoadingOnRequestRestPassword = false;
this.toastService.success(res.data.message);
// this.forgetPasswordForm.reset();
this.otpToken = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.token;
this.otpVerifyForm.patchValue({
token: (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.token,
});
this.restPasswordState = 'otpRest';
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
this.isLoadingOnRequestRestPassword = false;
});
}
}
onSubmitOtp() {
if (!this.otpVerifyForm.valid) {
this.toastService.error('Please Enter the OTP');
return;
}
this.isLoadingOtpSubmit = true;
let data = { token: this.otpVerifyForm.get('token').value, otp: this.otpVerifyForm.get('otp').value, forgotPassword: true };
const sub = this.auth
.verifyOTP(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoadingOtpSubmit = false;
this.restPasswordState = 'passwordRest';
// this.otpToken = res.data?.token;
this.toastService.success('OTP verified successfully');
// this.getValidatorFnArray(res.data.pwdSettings.pwdSettings);
}, (error) => {
var _a;
this.isLoadingOtpSubmit = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
goBack() {
this.restPasswordState = 'initRest';
}
onRestPassword() {
this.passwordRestForm.patchValue({
token: this.otpToken,
});
if (!this.passwordRestForm.valid) {
this.submitted3 = true;
return;
}
let data = {
password: this.passwordRestForm.get('confirmPassword').value,
token: this.passwordRestForm.value.token,
};
this.isLoadingResetPassword = true;
const sub = this.auth
.restPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoadingResetPassword = false;
this.toastService.success('Password Updated successfully');
this.passwordRestForm.patchValue({
token: res.data.token,
});
this.auth.logout();
}, (error) => {
this.isLoadingResetPassword = false;
this.toastService.error('Cannot use last 15 used passwords, please use a new password');
});
}
}
ForgetPasswordComponent.ɵfac = function ForgetPasswordComponent_Factory(t) { return new (t || ForgetPasswordComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["ActivatedRoute"])); };
ForgetPasswordComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ForgetPasswordComponent, selectors: [["app-forget-password"]], decls: 16, vars: 5, consts: [[1, "d-flex", "login-main", "flex-sm-row", "flex-column"], [1, "flex-fill", "min-w50", "d-sm-block", "d-none"], [1, "mw-100", "bg-banner"], [1, "flex-fill", "bg"], [1, "d-flex", "align-items-center", "h-100", "min-h35"], [1, "d-flex", "justify-content-center", "min-w100"], [1, "login-body", "min-w50", "card"], [1, "forgot-password-header"], [1, "text-center"], [4, "ngIf"], [1, "card-body"], [3, "formGroup", "ngSubmit", 4, "ngIf"], [3, "formGroup", 4, "ngIf"], [3, "formGroup", "ngSubmit"], ["class", "form-group", 4, "ngIf"], [1, "form-group"], ["for", "exampleInputEmail1"], ["type", "text", "formControlName", "staffId", "maxlength", "40", "aria-describedby", "emailHelp", "placeholder", "Enter Staff ID", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", "ml-2", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-red-back", "pl-3", "pr-3", "float-right", 3, "click"], [1, "font-weight-500"], ["type", "text", "formControlName", "companyId", "placeholder", "Enter Company Name", 1, "form-control", 3, "ngClass", "blur"], [1, "invalid-feedback"], ["for", "exampleInputPassword1"], ["type", "email", "maxlength", "40", "placeholder", "Enter Email", "formControlName", "email", 1, "form-control", 3, "ngClass"], [1, "error-container"], ["formControlName", "mobile", 3, "cssClass", "preferredCountries", "ngClass", "enableAutoCountrySelect", "enablePlaceholder", "searchCountryFlag", "searchCountryField", "selectFirstCountry", "selectedCountryISO", "maxLength", "phoneValidation", "separateDialCode", "numberFormat"], ["class", "invalid-feedback mobile-error", 4, "ngIf"], [1, "invalid-feedback", "mobile-error"], [3, "formGroup"], ["type", "text", "formControlName", "otp", "maxlength", "6", "aria-describedby", "emailHelp", "placeholder", "Enter OTP", 1, "form-control", 3, "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", "ml-3", 3, "disabled", "click"], ["type", "submit", 1, "btn", "btn-sm", "btn-back", "float-right", 3, "click"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], ["placeholder", " Password", "formControlName", "password", 1, "form-control", 3, "type", "ngClass"], ["class", "eye-slash", 4, "ngIf"], [1, "pb-2", "form-bg"], ["placeholder", " Confirm Password", "formControlName", "confirmPassword", 1, "form-control", 3, "type", "ngClass"], ["class", "eye-slash-alt", 4, "ngIf"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", 3, "disabled"], [1, "eye-slash"], ["aria-hidden", "true", 1, "fa", "fa-eye-slash", "fa-lg", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-eye", "fa-lg", 3, "click"], [1, "eye-slash-alt"]], template: function ForgetPasswordComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h3", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Forgot Password");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, ForgetPasswordComponent_p_10_Template, 2, 0, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, ForgetPasswordComponent_p_11_Template, 2, 0, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, ForgetPasswordComponent_form_13_Template, 15, 13, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ForgetPasswordComponent_form_14_Template, 12, 10, "form", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, ForgetPasswordComponent_form_15_Template, 19, 20, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "initRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "passwordRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "initRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "otpRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "passwordRest" && ctx.passwordRestForm);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgClass"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["NgxIntlTelInputComponent"]], styles: [".login-main[_ngcontent-%COMP%] .min-w50[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n min-width: 50%;\n}\n.login-main[_ngcontent-%COMP%] .bg-banner[_ngcontent-%COMP%] {\n background-image: url('background.jpg');\n background-repeat: no-repeat;\n background-size: cover;\n min-height: 100vh;\n min-width: 100%;\n}\n.login-main[_ngcontent-%COMP%] .min-h35[_ngcontent-%COMP%] {\n min-height: 100vh;\n}\n.flex-fill.bg[_ngcontent-%COMP%] {\n background-image: url('loginBg.jpg');\n}\n.forgot-password-header[_ngcontent-%COMP%] {\n width: 450px;\n text-align: center;\n}\n.eye-slash[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -25px;\n cursor: pointer;\n}\n.eye-slash-alt[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -25px;\n cursor: pointer;\n}\n.mobile-error[_ngcontent-%COMP%] {\n margin-top: -15px;\n}\n.error-container[_ngcontent-%COMP%] {\n color: #f44336;\n font-weight: 600;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC9mb3JnZXQtcGFzc3dvcmQvZm9yZ2V0LXBhc3N3b3JkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNFO0VBQ0UsdUJBQUE7RUFDQSxTQUFBO0VBQ0EsY0FBQTtBQUFKO0FBR0U7RUFDRSx1Q0FBQTtFQUNBLDRCQUFBO0VBQ0Esc0JBQUE7RUFDQSxpQkFBQTtFQUNBLGVBQUE7QUFESjtBQUdFO0VBQ0UsaUJBQUE7QUFESjtBQUlBO0VBQ0Usb0NBQUE7QUFERjtBQUlBO0VBQ0UsWUFBQTtFQUNBLGtCQUFBO0FBREY7QUFJQTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxpQkFBQTtFQUNBLGVBQUE7QUFERjtBQUlBO0VBQ0UsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLGlCQUFBO0VBQ0EsZUFBQTtBQURGO0FBSUE7RUFDRSxpQkFBQTtBQURGO0FBSUE7RUFDRSxjQUFBO0VBQ0EsZ0JBQUE7QUFERiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2F1dGgvZm9yZ2V0LXBhc3N3b3JkL2ZvcmdldC1wYXNzd29yZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5sb2dpbi1tYWluIHtcbiAgLm1pbi13NTAge1xuICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICAgIGJvcmRlcjogMDtcbiAgICBtaW4td2lkdGg6IDUwJTtcbiAgfVxuXG4gIC5iZy1iYW5uZXIge1xuICAgIGJhY2tncm91bmQtaW1hZ2U6IHVybChcIi4uLy4uLy4uLy4uLy4uL2Fzc2V0cy9pbWFnZXMvYmFja2dyb3VuZC5qcGdcIik7XG4gICAgYmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcbiAgICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuICAgIG1pbi1oZWlnaHQ6IDEwMHZoO1xuICAgIG1pbi13aWR0aDogMTAwJTtcbiAgfVxuICAubWluLWgzNSB7XG4gICAgbWluLWhlaWdodDogMTAwdmg7XG4gIH1cbn1cbi5mbGV4LWZpbGwuYmcge1xuICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoXCIuLi8uLi8uLi8uLi8uLi9hc3NldHMvaW1hZ2VzL2xvZ2luQmcuanBnXCIpO1xufVxuXG4uZm9yZ290LXBhc3N3b3JkLWhlYWRlciB7XG4gIHdpZHRoOiA0NTBweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuXG4uZXllLXNsYXNoIHtcbiAgd2lkdGg6IDIwcHg7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDMwcHg7XG4gIG1hcmdpbi10b3A6IC0yNXB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5leWUtc2xhc2gtYWx0IHtcbiAgd2lkdGg6IDIwcHg7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgcmlnaHQ6IDMwcHg7XG4gIG1hcmdpbi10b3A6IC0yNXB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5tb2JpbGUtZXJyb3J7XG4gIG1hcmdpbi10b3A6IC0xNXB4O1xufVxuXG4uZXJyb3ItY29udGFpbmVye1xuICBjb2xvcjogI2Y0NDMzNjtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ForgetPasswordComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-forget-password',
templateUrl: './forget-password.component.html',
styleUrls: ['./forget-password.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"] }, { type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__["CompanySetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["ActivatedRoute"] }]; }, null); })();
/***/ }),
/***/ "P9lB":
/*!*********************************************************************************************!*\
!*** ./src/app/users/pages/communication/news&events-logs/post-logs/post-logs.component.ts ***!
\*********************************************************************************************/
/*! exports provided: PostLogsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PostLogsComponent", function() { return PostLogsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
class PostLogsComponent {
constructor() { }
ngOnInit() {
}
}
PostLogsComponent.ɵfac = function PostLogsComponent_Factory(t) { return new (t || PostLogsComponent)(); };
PostLogsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: PostLogsComponent, selectors: [["app-post-logs"]], decls: 48, vars: 6, consts: [[1, "card"], [1, "card-header", "flexi-header"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "maxSize"]], template: function PostLogsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "ALL POSTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "USER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "th", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "DATE AND TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "th", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "POST TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](38, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](39, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](40, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](42, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Total records");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](47, "ngb-pagination", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("maxSize", 5);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_2__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbPagination"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbmV3cyZldmVudHMtbG9ncy9wb3N0LWxvZ3MvcG9zdC1sb2dzLmNvbXBvbmVudC5zY3NzIn0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PostLogsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-post-logs',
templateUrl: './post-logs.component.html',
styleUrls: ['./post-logs.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "PCNd":
/*!*****************************************!*\
!*** ./src/app/shared/shared.module.ts ***!
\*****************************************/
/*! exports provided: SharedModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SharedModule", function() { return SharedModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _multi_select_muli_select_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./multi-select/muli-select.component */ "urWI");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pipes/filter.pipe */ "UhSo");
/* harmony import */ var _single_select_single_select_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./single-select/single-select.component */ "zBNY");
/* harmony import */ var _buttons_buttons_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buttons/buttons.component */ "f9/q");
/* harmony import */ var _dynamic_fields_field_builder_field_builder__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./dynamic-fields/field-builder/field-builder */ "yrE4");
/* harmony import */ var _dynamic_fields_fields_checkbox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./dynamic-fields/fields/checkbox */ "FIzO");
/* harmony import */ var _dynamic_fields_fields_dropdown__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dynamic-fields/fields/dropdown */ "xopz");
/* harmony import */ var _dynamic_fields_fields_radio__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dynamic-fields/fields/radio */ "sKpv");
/* harmony import */ var _dynamic_fields_fields_text_box__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dynamic-fields/fields/text-box */ "mIF3");
/* harmony import */ var _skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _skliton_loading_table_loop_directive__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./skliton-loading-table/loop.directive */ "8kvr");
/* harmony import */ var _pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./pipes/safe.pipe */ "ITC6");
/* harmony import */ var _dynamic_fields_fields_file__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./dynamic-fields/fields/file */ "Ln+9");
/* harmony import */ var _dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./dynamic-fields/dynamic-form.component */ "6CZB");
/* harmony import */ var _dynamic_fields_fields_text_area__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./dynamic-fields/fields/text-area */ "jrlu");
/* harmony import */ var _dynamic_questions_dynamic_questions__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./dynamic-questions/dynamic-questions */ "Tb+D");
/* harmony import */ var _dynamic_questions_field_builder_question_builder__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./dynamic-questions/field-builder/question-builder */ "b2wH");
/* harmony import */ var _angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./angular-date-time-picker/date-time-picker.html/date-time-picker.html.component */ "d4JE");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @fortawesome/angular-fontawesome */ "6NWb");
/* harmony import */ var _dynamic_questions_fields_checkboxs__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./dynamic-questions/fields/checkboxs */ "ZT52");
/* harmony import */ var _dynamic_questions_fields_dropdowns__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./dynamic-questions/fields/dropdowns */ "0iAT");
/* harmony import */ var _dynamic_questions_fields_files__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./dynamic-questions/fields/files */ "T0L9");
/* harmony import */ var _dynamic_questions_fields_radios__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./dynamic-questions/fields/radios */ "ydS9");
/* harmony import */ var _dynamic_questions_fields_text_areas__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./dynamic-questions/fields/text-areas */ "mSQx");
/* harmony import */ var _dynamic_questions_fields_text_boxs__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./dynamic-questions/fields/text-boxs */ "KUSf");
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./angular.material */ "lqlD");
/* harmony import */ var _directive_sortable_directive__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./directive/sortable.directive */ "I0Qq");
/* harmony import */ var _assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./assign-users/assign-users.component */ "9Zea");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _bootstrap_alert_bootstrap_alert_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./bootstrap-alert/bootstrap-alert.component */ "7JBP");
/* harmony import */ var _pipes_event_publishstatus_pipe__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./pipes/event-publishstatus.pipe */ "S6Fq");
/* harmony import */ var angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! angular2-multiselect-dropdown */ "e/mZ");
/* harmony import */ var _loading_loading_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./loading/loading.component */ "Frqi");
/* harmony import */ var _directive_numberOnly_directive__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./directive/numberOnly.directive */ "cYTg");
// import { FileComponent } from './dynamic-fields/fields/file';
// import { NgSelectModule } from '@ng-select/ng-seng servlect';
class SharedModule {
}
SharedModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: SharedModule });
SharedModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function SharedModule_Factory(t) { return new (t || SharedModule)(); }, providers: [], imports: [[
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["ReactiveFormsModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__["NgbModule"],
_fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_22__["FontAwesomeModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_29__["MaterialModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_32__["NgSelectModule"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_35__["AngularMultiSelectModule"],
], _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_29__["MaterialModule"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_35__["AngularMultiSelectModule"]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](SharedModule, { declarations: [_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_30__["SortableHeader"],
_multi_select_muli_select_component__WEBPACK_IMPORTED_MODULE_2__["MultiSelectDropdownComponent"],
_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_4__["FilterPipe"],
_single_select_single_select_component__WEBPACK_IMPORTED_MODULE_5__["SingleSelectDropdownComponent"],
_buttons_buttons_component__WEBPACK_IMPORTED_MODULE_6__["ButtonsComponent"],
_dynamic_fields_field_builder_field_builder__WEBPACK_IMPORTED_MODULE_7__["FieldBuilderComponent"],
_dynamic_fields_fields_text_box__WEBPACK_IMPORTED_MODULE_11__["TextBoxComponent"],
_dynamic_fields_fields_dropdown__WEBPACK_IMPORTED_MODULE_9__["DropDownComponent"],
_dynamic_fields_fields_checkbox__WEBPACK_IMPORTED_MODULE_8__["CheckBoxComponent"],
_dynamic_fields_fields_file__WEBPACK_IMPORTED_MODULE_15__["FileComponent"],
_dynamic_questions_fields_text_boxs__WEBPACK_IMPORTED_MODULE_28__["TextBoxsComponent"],
_dynamic_questions_fields_dropdowns__WEBPACK_IMPORTED_MODULE_24__["DropDownsComponent"],
_dynamic_questions_fields_checkboxs__WEBPACK_IMPORTED_MODULE_23__["CheckBoxsComponent"],
_dynamic_questions_fields_files__WEBPACK_IMPORTED_MODULE_25__["FilesComponent"],
_skliton_loading_table_loop_directive__WEBPACK_IMPORTED_MODULE_13__["TableTdLoop"],
_dynamic_fields_fields_radio__WEBPACK_IMPORTED_MODULE_10__["RadioComponent"],
_dynamic_questions_fields_radios__WEBPACK_IMPORTED_MODULE_26__["RadiosComponent"],
_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_14__["SafeHtmlPipe"],
_dynamic_fields_fields_text_area__WEBPACK_IMPORTED_MODULE_17__["TextAreaComponent"],
_dynamic_questions_fields_text_areas__WEBPACK_IMPORTED_MODULE_27__["TextAreasComponent"],
_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_20__["DateTimePickerComponent"],
_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_16__["DynamicFormBuilderComponent"],
_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"],
_dynamic_questions_dynamic_questions__WEBPACK_IMPORTED_MODULE_18__["DynamicQuestionBuilderComponent"],
_dynamic_questions_field_builder_question_builder__WEBPACK_IMPORTED_MODULE_19__["QuestionBuilder"],
_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_31__["AssignUsersComponent"],
_bootstrap_alert_bootstrap_alert_component__WEBPACK_IMPORTED_MODULE_33__["BootstrapAlertComponent"],
_pipes_event_publishstatus_pipe__WEBPACK_IMPORTED_MODULE_34__["EventPublishstatusPipe"],
_loading_loading_component__WEBPACK_IMPORTED_MODULE_36__["LoadingComponent"],
_directive_numberOnly_directive__WEBPACK_IMPORTED_MODULE_37__["NumberOnlyDirective"]], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["ReactiveFormsModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__["NgbModule"],
_fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_22__["FontAwesomeModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_29__["MaterialModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_32__["NgSelectModule"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_35__["AngularMultiSelectModule"]], exports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_30__["SortableHeader"],
_multi_select_muli_select_component__WEBPACK_IMPORTED_MODULE_2__["MultiSelectDropdownComponent"],
_single_select_single_select_component__WEBPACK_IMPORTED_MODULE_5__["SingleSelectDropdownComponent"],
_buttons_buttons_component__WEBPACK_IMPORTED_MODULE_6__["ButtonsComponent"],
_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"],
_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_16__["DynamicFormBuilderComponent"],
_skliton_loading_table_loop_directive__WEBPACK_IMPORTED_MODULE_13__["TableTdLoop"],
_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_14__["SafeHtmlPipe"],
_angular_material__WEBPACK_IMPORTED_MODULE_29__["MaterialModule"],
_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_20__["DateTimePickerComponent"],
_dynamic_questions_dynamic_questions__WEBPACK_IMPORTED_MODULE_18__["DynamicQuestionBuilderComponent"],
_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_31__["AssignUsersComponent"],
_bootstrap_alert_bootstrap_alert_component__WEBPACK_IMPORTED_MODULE_33__["BootstrapAlertComponent"],
_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_4__["FilterPipe"],
_pipes_event_publishstatus_pipe__WEBPACK_IMPORTED_MODULE_34__["EventPublishstatusPipe"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_35__["AngularMultiSelectModule"],
_loading_loading_component__WEBPACK_IMPORTED_MODULE_36__["LoadingComponent"],
_directive_numberOnly_directive__WEBPACK_IMPORTED_MODULE_37__["NumberOnlyDirective"]] }); })();
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SharedModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
args: [{
declarations: [
_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_30__["SortableHeader"],
_multi_select_muli_select_component__WEBPACK_IMPORTED_MODULE_2__["MultiSelectDropdownComponent"],
_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_4__["FilterPipe"],
_single_select_single_select_component__WEBPACK_IMPORTED_MODULE_5__["SingleSelectDropdownComponent"],
_buttons_buttons_component__WEBPACK_IMPORTED_MODULE_6__["ButtonsComponent"],
_dynamic_fields_field_builder_field_builder__WEBPACK_IMPORTED_MODULE_7__["FieldBuilderComponent"],
_dynamic_fields_fields_text_box__WEBPACK_IMPORTED_MODULE_11__["TextBoxComponent"],
_dynamic_fields_fields_dropdown__WEBPACK_IMPORTED_MODULE_9__["DropDownComponent"],
_dynamic_fields_fields_checkbox__WEBPACK_IMPORTED_MODULE_8__["CheckBoxComponent"],
_dynamic_fields_fields_file__WEBPACK_IMPORTED_MODULE_15__["FileComponent"],
_dynamic_questions_fields_text_boxs__WEBPACK_IMPORTED_MODULE_28__["TextBoxsComponent"],
_dynamic_questions_fields_dropdowns__WEBPACK_IMPORTED_MODULE_24__["DropDownsComponent"],
_dynamic_questions_fields_checkboxs__WEBPACK_IMPORTED_MODULE_23__["CheckBoxsComponent"],
_dynamic_questions_fields_files__WEBPACK_IMPORTED_MODULE_25__["FilesComponent"],
_skliton_loading_table_loop_directive__WEBPACK_IMPORTED_MODULE_13__["TableTdLoop"],
_dynamic_fields_fields_radio__WEBPACK_IMPORTED_MODULE_10__["RadioComponent"],
_dynamic_questions_fields_radios__WEBPACK_IMPORTED_MODULE_26__["RadiosComponent"],
_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_14__["SafeHtmlPipe"],
_dynamic_fields_fields_text_area__WEBPACK_IMPORTED_MODULE_17__["TextAreaComponent"],
_dynamic_questions_fields_text_areas__WEBPACK_IMPORTED_MODULE_27__["TextAreasComponent"],
_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_20__["DateTimePickerComponent"],
_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_16__["DynamicFormBuilderComponent"],
_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"],
_dynamic_questions_dynamic_questions__WEBPACK_IMPORTED_MODULE_18__["DynamicQuestionBuilderComponent"],
_dynamic_questions_field_builder_question_builder__WEBPACK_IMPORTED_MODULE_19__["QuestionBuilder"],
_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_31__["AssignUsersComponent"],
_bootstrap_alert_bootstrap_alert_component__WEBPACK_IMPORTED_MODULE_33__["BootstrapAlertComponent"],
_pipes_event_publishstatus_pipe__WEBPACK_IMPORTED_MODULE_34__["EventPublishstatusPipe"],
_loading_loading_component__WEBPACK_IMPORTED_MODULE_36__["LoadingComponent"],
_directive_numberOnly_directive__WEBPACK_IMPORTED_MODULE_37__["NumberOnlyDirective"]
],
imports: [
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["ReactiveFormsModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_21__["NgbModule"],
_fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_22__["FontAwesomeModule"],
_angular_material__WEBPACK_IMPORTED_MODULE_29__["MaterialModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_32__["NgSelectModule"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_35__["AngularMultiSelectModule"],
],
exports: [
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_30__["SortableHeader"],
_multi_select_muli_select_component__WEBPACK_IMPORTED_MODULE_2__["MultiSelectDropdownComponent"],
_single_select_single_select_component__WEBPACK_IMPORTED_MODULE_5__["SingleSelectDropdownComponent"],
_buttons_buttons_component__WEBPACK_IMPORTED_MODULE_6__["ButtonsComponent"],
_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"],
_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_16__["DynamicFormBuilderComponent"],
_skliton_loading_table_loop_directive__WEBPACK_IMPORTED_MODULE_13__["TableTdLoop"],
_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_14__["SafeHtmlPipe"],
_angular_material__WEBPACK_IMPORTED_MODULE_29__["MaterialModule"],
_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_20__["DateTimePickerComponent"],
_dynamic_questions_dynamic_questions__WEBPACK_IMPORTED_MODULE_18__["DynamicQuestionBuilderComponent"],
_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_31__["AssignUsersComponent"],
_bootstrap_alert_bootstrap_alert_component__WEBPACK_IMPORTED_MODULE_33__["BootstrapAlertComponent"],
_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_4__["FilterPipe"],
_pipes_event_publishstatus_pipe__WEBPACK_IMPORTED_MODULE_34__["EventPublishstatusPipe"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_35__["AngularMultiSelectModule"],
_loading_loading_component__WEBPACK_IMPORTED_MODULE_36__["LoadingComponent"],
_directive_numberOnly_directive__WEBPACK_IMPORTED_MODULE_37__["NumberOnlyDirective"]
],
providers: [],
}]
}], null, null); })();
/***/ }),
/***/ "PGHV":
/*!************************************************!*\
!*** ./src/app/core/model/pagination.model.ts ***!
\************************************************/
/*! exports provided: COUNTRIES */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COUNTRIES", function() { return COUNTRIES; });
const COUNTRIES = [
{
id: 1,
name: 'Russia',
flag: 'f/f3/Flag_of_Russia.svg',
area: 17075200,
population: 146989754
},
{
id: 2,
name: 'France',
flag: 'c/c3/Flag_of_France.svg',
area: 640679,
population: 64979548
},
{
id: 3,
name: 'Germany',
flag: 'b/ba/Flag_of_Germany.svg',
area: 357114,
population: 82114224
},
{
id: 4,
name: 'Portugal',
flag: '5/5c/Flag_of_Portugal.svg',
area: 92090,
population: 10329506
},
{
id: 5,
name: 'Canada',
flag: 'c/cf/Flag_of_Canada.svg',
area: 9976140,
population: 36624199
},
{
id: 6,
name: 'Vietnam',
flag: '2/21/Flag_of_Vietnam.svg',
area: 331212,
population: 95540800
},
{
id: 7,
name: 'Brazil',
flag: '0/05/Flag_of_Brazil.svg',
area: 8515767,
population: 209288278
},
{
id: 8,
name: 'Mexico',
flag: 'f/fc/Flag_of_Mexico.svg',
area: 1964375,
population: 129163276
},
{
id: 9,
name: 'United States',
flag: 'a/a4/Flag_of_the_United_States.svg',
area: 9629091,
population: 324459463
},
{
id: 10,
name: 'India',
flag: '4/41/Flag_of_India.svg',
area: 3287263,
population: 1324171354
},
{
id: 11,
name: 'Indonesia',
flag: '9/9f/Flag_of_Indonesia.svg',
area: 1910931,
population: 263991379
},
{
id: 12,
name: 'Tuvalu',
flag: '3/38/Flag_of_Tuvalu.svg',
area: 26,
population: 11097
},
{
id: 13,
name: 'China',
flag: 'f/fa/Flag_of_the_People%27s_Republic_of_China.svg',
area: 9596960,
population: 1409517397
}
];
/***/ }),
/***/ "PLrH":
/*!********************************************************************************************!*\
!*** ./src/app/users/pages/admin/users/ops-group/ops-add-staff/ops-add-staff.component.ts ***!
\********************************************************************************************/
/*! exports provided: OpsAddStaffComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpsAddStaffComponent", function() { return OpsAddStaffComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/ops-group/ops-group.service */ "NV6M");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! angular2-multiselect-dropdown */ "e/mZ");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
function OpsAddStaffComponent_li_2_ng_template_3_ng_template_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r5.selectedBuShift == null ? null : ctx_r5.selectedBuShift.length, " selected ");
} }
function OpsAddStaffComponent_li_2_ng_template_3_div_17_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_2_ng_template_3_div_17_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const field_r11 = ctx.$implicit; const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r13.deleteSourceBU(field_r11._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r11 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", field_r11.orgName, " ");
} }
function OpsAddStaffComponent_li_2_ng_template_3_ng_template_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r7.selectedAdmin == null ? null : ctx_r7.selectedAdmin.length, " selected ");
} }
function OpsAddStaffComponent_li_2_ng_template_3_div_24_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_2_ng_template_3_div_24_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r19); const field_r16 = ctx.$implicit; const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r18.deleteAdmin(field_r16._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r16 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", field_r16.name, " ");
} }
function OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_button_7_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_button_7_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const i_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r26.addTeambutton(i_r22); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Add Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !team_r21.teamName);
} }
function OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_ng_template_8_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_ng_template_8_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r32); const i_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r30.editTeam(i_r22); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Edit Team Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
const _c0 = function () { return { standalone: true }; };
function OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Team name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const team_r21 = ctx.$implicit; return team_r21.teamName = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const i_r22 = ctx.index; const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r35.removeTeam(i_r22); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Remove Team");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_button_7_Template, 2, 1, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_ng_template_8_Template, 2, 0, "ng-template", null, 46, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r21 = ctx.$implicit;
const i_r22 = ctx.index;
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", "teamIdName" + i_r22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("value", team_r21.teamName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", team_r21.isAdded)("ngModel", team_r21.teamName)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](7, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !team_r21.isAdded)("ngIfElse", _r24);
} }
function OpsAddStaffComponent_li_2_ng_template_3_div_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OpsAddStaffComponent_li_2_ng_template_3_div_31_div_1_Template, 10, 8, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r9.teamNameArray);
} }
function OpsAddStaffComponent_li_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "ENTER OPS GROUP DATA");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "ENTER OPS GROUP DATA ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Source BU's ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "angular2-multiselect", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsAddStaffComponent_li_2_ng_template_3_Template_angular2_multiselect_ngModelChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r36.selectedBuShift = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "c-badge");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, OpsAddStaffComponent_li_2_ng_template_3_ng_template_15_Template, 1, 1, "ng-template");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, OpsAddStaffComponent_li_2_ng_template_3_div_17_Template, 5, 1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, "Adminstration ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "angular2-multiselect", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsAddStaffComponent_li_2_ng_template_3_Template_angular2_multiselect_ngModelChange_21_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r38.selectedAdmin = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "c-badge");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, OpsAddStaffComponent_li_2_ng_template_3_ng_template_23_Template, 1, 1, "ng-template");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, OpsAddStaffComponent_li_2_ng_template_3_div_24_Template, 5, 1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "Number of Teams ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ng-select", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function OpsAddStaffComponent_li_2_ng_template_3_Template_ng_select_change_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r39.teamNoCount(); })("ngModelChange", function OpsAddStaffComponent_li_2_ng_template_3_Template_ng_select_ngModelChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r40.teamCountNo = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](31, OpsAddStaffComponent_li_2_ng_template_3_div_31_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](32, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, "Swap Setting");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](37, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "No swap");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](41, "input", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "Swap at Ops Group level");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](45, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "Swap at Ops Team level");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_2_ng_template_3_Template_button_click_49_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r41.changeTabId(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, " arrow_forward ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r4.opsGroupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("data", ctx_r4.buParameters.data)("ngModel", ctx_r4.selectedBuShift)("settings", ctx_r4.dropdownSettingsSourceBU)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](18, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.selectedBuShift);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("data", ctx_r4.shiftSchemeAdmin)("ngModel", ctx_r4.selectedAdmin)("settings", ctx_r4.dropdownSettingsAdmin)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](19, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.selectedAdmin);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r4.teamNo)("multiple", false)("clearable", false)("closeOnSelect", true)("ngModel", ctx_r4.teamCountNo)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](20, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.showRow);
} }
function OpsAddStaffComponent_li_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "a", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "ENTER OPS GROUP DATA");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, OpsAddStaffComponent_li_2_ng_template_3_Template, 54, 21, "ng-template", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1)("disabled", true);
} }
function OpsAddStaffComponent_li_3_ng_template_3_div_15_Template(rf, ctx) { if (rf & 1) {
const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function OpsAddStaffComponent_li_3_ng_template_3_div_15_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const i_r48 = ctx.index; const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r49.selectedteam(i_r48); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r47 = ctx.$implicit;
const i_r48 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("value", team_r47.teamName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", i_r48 == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](team_r47.teamName);
} }
function OpsAddStaffComponent_li_3_ng_template_3_div_27_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const buShift_r52 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", buShift_r52.name, " ");
} }
function OpsAddStaffComponent_li_3_ng_template_3_div_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Selected Source BU's ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, OpsAddStaffComponent_li_3_ng_template_3_div_27_div_4_Template, 2, 1, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r44.buShiftNewArr);
} }
function OpsAddStaffComponent_li_3_ng_template_3_div_28_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
} if (rf & 2) {
const item_r55 = ctx.item;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", item_r55 == null ? null : item_r55.name, " (", item_r55 == null ? null : item_r55.staffId, ") ");
} }
function OpsAddStaffComponent_li_3_ng_template_3_div_28_Template(rf, ctx) { if (rf & 1) {
const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Add Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ng-select", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsAddStaffComponent_li_3_ng_template_3_div_28_Template_ng_select_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r59); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r58.staffDetail = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, OpsAddStaffComponent_li_3_ng_template_3_div_28_ng_template_5_Template, 1, 2, "ng-template", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_3_ng_template_3_div_28_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r59); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r60.addStaffUser(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Add Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r45.staffUser)("multiple", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r45.staffDetail)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](6, _c0));
} }
function OpsAddStaffComponent_li_3_ng_template_3_tr_52_Template(rf, ctx) { if (rf & 1) {
const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_3_ng_template_3_tr_52_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r64); const i_r62 = ctx.index; const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r63.removeStaff(i_r62); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Remove Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const staffData_r61 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r61.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r61.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r61.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r61.appointmentId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", staffData_r61.parentBussinessUnitId.orgName, " ");
} }
function OpsAddStaffComponent_li_3_ng_template_3_Template(rf, ctx) { if (rf & 1) {
const _r66 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "ADD/REMOVE STAFF");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Ops Group ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, " Ops Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, OpsAddStaffComponent_li_3_ng_template_3_div_15_Template, 4, 3, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsAddStaffComponent_li_3_ng_template_3_Template_input_ngModelChange_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r66); const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r65.addFromSource = $event; })("change", function OpsAddStaffComponent_li_3_ng_template_3_Template_input_change_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r66); const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r67.handleApprove(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, " Add Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "input", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "label", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, " Remove Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, OpsAddStaffComponent_li_3_ng_template_3_div_27_Template, 5, 1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, OpsAddStaffComponent_li_3_ng_template_3_div_28_Template, 9, 7, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, "Staff Table");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "table", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "USER NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42, "DATE OF JOINNING");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, "CONTACT NUMBER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46, "APPOINMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, "ACTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](52, OpsAddStaffComponent_li_3_ng_template_3_tr_52_Template, 15, 5, "tr", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "button", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_3_ng_template_3_Template_button_click_55_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r66); const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r68.changeTabIdPrevious(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "span", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](59, "Previous");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "button", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_3_ng_template_3_Template_button_click_60_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r66); const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r69.changeTabIdNextBTn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](62, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](64, " arrow_forward ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r42.opsGroupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r42.teamNameArray);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1)("ngModel", ctx_r42.addFromSource)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](10, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2)("checked", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r42.addFromBu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r42.addFromBu);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r42.staffUserDet);
} }
function OpsAddStaffComponent_li_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "a", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "ADD STAFF");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, OpsAddStaffComponent_li_3_ng_template_3_Template, 65, 11, "ng-template", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2)("disabled", true);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const buShiftView_r80 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](buShiftView_r80.businessUnit ? buShiftView_r80.businessUnit : buShiftView_r80.orgName);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_15_ng_template_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
} if (rf & 2) {
const item_r82 = ctx.item;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r82.orgName, " ");
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_15_Template(rf, ctx) { if (rf & 1) {
const _r86 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Source BU's ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsAddStaffComponent_li_4_ng_template_3_div_15_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r86); const ctx_r85 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r85.selectedBuShift = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, OpsAddStaffComponent_li_4_ng_template_3_div_15_ng_template_4_Template, 1, 1, "ng-template", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r72.buOption)("multiple", true)("selectableGroup", true)("selectableGroupAsModel", true)("closeOnSelect", false)("searchable", false)("ngModel", ctx_r72.selectedBuShift)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](9, _c0))("readonly", true);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const adminView_r87 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](adminView_r87.name);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_27_div_2_ng_container_5_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Remove Team");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_4_ng_template_3_div_27_div_2_ng_container_5_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r92); const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r91.addTeambutton(ctx_r91.i); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Add Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_27_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Team name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, OpsAddStaffComponent_li_4_ng_template_3_div_27_div_2_ng_container_5_Template, 5, 0, "ng-container", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r89 = ctx.$implicit;
const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("value", team_r89.teamName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r88.isViewtab3);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OpsAddStaffComponent_li_4_ng_template_3_div_27_div_2_Template, 7, 2, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r74.teamNameArray);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_28_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r94 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r94.teamId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](5, 3, item_r94.deletedDateTime, "MMM d, y, h:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r94.userId.name);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Deleted Teams");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "table", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Team name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Date, Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Deleted By");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, OpsAddStaffComponent_li_4_ng_template_3_div_28_tr_16_Template, 8, 6, "tr", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r75.removedTeam);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_52_div_5_Template(rf, ctx) { if (rf & 1) {
const _r99 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "input", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function OpsAddStaffComponent_li_4_ng_template_3_div_52_div_5_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r99); const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r98.selectedTeamIndex = $event; })("change", function OpsAddStaffComponent_li_4_ng_template_3_div_52_div_5_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r99); const i_r97 = ctx.index; const team_r96 = ctx.$implicit; const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r100.selectedteam(i_r97, "o", team_r96._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const team_r96 = ctx.$implicit;
const i_r97 = ctx.index;
const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", ctx_r95.selectedteam)("value", i_r97)("ngModel", ctx_r95.selectedTeamIndex)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](5, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](team_r96.teamName);
} }
function OpsAddStaffComponent_li_4_ng_template_3_div_52_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Ops Team ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, OpsAddStaffComponent_li_4_ng_template_3_div_52_div_5_Template, 4, 6, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r76.teamNameArray);
} }
function OpsAddStaffComponent_li_4_ng_template_3_tr_75_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const staffData_r101 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r101.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r101.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r101.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](staffData_r101.appointmentId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", staffData_r101.parentBussinessUnitId.orgName, " ");
} }
function OpsAddStaffComponent_li_4_ng_template_3_button_78_Template(rf, ctx) { if (rf & 1) {
const _r103 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_4_ng_template_3_button_78_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r103); const ctx_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r102.backToOverview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_span_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " arrow_upward ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_span_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span", 106);
} }
function OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_span_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " arrow_upward ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_span_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span", 106);
} }
function OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_Template(rf, ctx) { if (rf & 1) {
const _r109 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r108 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r108.changeTabIdPreviouBtn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Previous");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r110 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r110.saveAsDraft(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Save as Draft");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_span_9_Template, 2, 0, "span", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_span_10_Template, 1, 0, "span", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r109); const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r111.onCreateForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Create OPS Group");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_span_14_Template, 2, 0, "span", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_span_15_Template, 1, 0, "span", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r79.draftOpsGrpLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r79.draftOpsGrpLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r79.draftOpsGrpLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r79.createOpsGrpLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r79.createOpsGrpLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r79.createOpsGrpLoader);
} }
function OpsAddStaffComponent_li_4_ng_template_3_Template(rf, ctx) { if (rf & 1) {
const _r113 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "VIEW DETAILS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Ops group name ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "input", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Source BU's ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, OpsAddStaffComponent_li_4_ng_template_3_div_14_Template, 3, 1, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, OpsAddStaffComponent_li_4_ng_template_3_div_15_Template, 5, 10, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Adminstration ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, OpsAddStaffComponent_li_4_ng_template_3_div_20_Template, 4, 1, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Number of Teams ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "ng-select", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function OpsAddStaffComponent_li_4_ng_template_3_Template_ng_select_change_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r113); const ctx_r112 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r112.teamNoCount(); })("ngModelChange", function OpsAddStaffComponent_li_4_ng_template_3_Template_ng_select_ngModelChange_26_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r113); const ctx_r114 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r114.teamCountNo = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, OpsAddStaffComponent_li_4_ng_template_3_div_27_Template, 3, 1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, OpsAddStaffComponent_li_4_ng_template_3_div_28_Template, 17, 1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](29, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, "Swap Setting");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](34, "input", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "No swap");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](38, "input", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "Swap at Ops Group level");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](42, "input", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, "Swap at Ops Team level");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](45, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, "Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](51, "input", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](52, OpsAddStaffComponent_li_4_ng_template_3_div_52_Template, 6, 1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](53, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "label", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57, "Staff Table");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "table", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](63, "USER NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](65, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](67, "DATE OF JOINNING");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](69, "CONTACT NUMBER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](71, "APPOINMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](73, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](75, OpsAddStaffComponent_li_4_ng_template_3_tr_75_Template, 12, 5, "tr", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](78, OpsAddStaffComponent_li_4_ng_template_3_button_78_Template, 5, 0, "button", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](79, OpsAddStaffComponent_li_4_ng_template_3_ng_container_79_Template, 16, 6, "ng-container", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r70.opsGroupForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r70.selectedBuShift);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r70.isViewtab3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r70.selectedAdmin);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r70.teamNo)("readonly", true)("multiple", false)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r70.teamCountNo)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](17, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r70.teamCountNo > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r70.isViewtab3 && (ctx_r70.removedTeam == null ? null : ctx_r70.removedTeam.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r70.ifNoTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r70.staffUserDet);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r70.disable);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r70.disable);
} }
function OpsAddStaffComponent_li_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "a", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "CREATE OPS GROUP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, OpsAddStaffComponent_li_4_ng_template_3_Template, 80, 18, "ng-template", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 3)("disabled", true);
} }
const _c1 = function (a0) { return { "display": a0 }; };
class OpsAddStaffComponent {
constructor(fb, buService, opsGroupService, toastService, userService) {
this.fb = fb;
this.buService = buService;
this.opsGroupService = opsGroupService;
this.toastService = toastService;
this.userService = userService;
this.ChangeTabId = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.activeSubId = 1;
this.isView = true;
this.isViewtab2 = true;
this.isViewtab3 = true;
this.selectedAdmin = [];
this.selectedBuShift = [];
this.groupBuShiftId = [];
this.groupAdmintId = [];
this.staffUserDet = [];
this.staffDetail = [];
this.teamNo = [];
this.shiftSchemeAdmin = [];
this.teamCountNo = 0;
this.forUserBuId = [];
this.staffUserId = [];
this.showRow = false;
this.teamCountInt = null;
this.teamNameArray = [];
this.teamOpsobjArr = [];
this.staffAllUsers = [];
this.headingtabchange = false;
this.disable = false;
this.selectedTeamIndex = 0;
this.buShiftNewArr = [];
this.buIdArry = [];
this.selectedViewTeam = 1;
this.draftOpsGrpLoader = false;
// userData: {};
this.loginAdminId = [];
this.ifNoTeam = true;
this.removedTeam = [];
this.buLoader = true;
this.administrationLoader = false;
this.dropdownSettingsSourceBU = {};
this.dropdownSettingsAdmin = {};
this.buParameters = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.dropdownSettingsSourceBU = {
singleSelection: false,
text: 'Enter/Search Business Unit',
selectAllText: 'Select All',
unSelectAllText: 'UnSelect All',
enableSearchFilter: true,
classes: 'myclass custom-class',
labelKey: 'orgName',
primaryKey: '_id',
badgeShowLimit: 1,
// showCheckbox:true,
lazyLoading: true,
noDataLabel: 'No Data Available',
maxHeight: 250
};
this.dropdownSettingsAdmin = {
singleSelection: false,
text: 'Search Administration',
selectAllText: 'Select All',
unSelectAllText: 'UnSelect All',
enableSearchFilter: true,
classes: 'myclass custom-class',
labelKey: 'name',
primaryKey: '_id',
badgeShowLimit: 1,
// showCheckbox:true,
lazyLoading: true,
noDataLabel: 'No Data Available',
maxHeight: 250
};
}
ngOnInit() {
this.activeSubId = 1;
this.headingtabchange = true;
this.opsGroupForm = this.fb.group({
groupname: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
buShift: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
teamName: [[], [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
opsTeamName: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
numberteam: ['0', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
swap: ['0', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
opsGroupAction: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
removeOpsGroup: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
editable: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.getAdministrationList();
this.getSourceBuList();
this.opsGroupForm.get('removeOpsGroup').disable();
if (this.viewValue == true) {
this.opsGroupForm.get('groupname').disable();
this.opsGroupForm.get('teamName').disable();
this.opsGroupForm.get('numberteam').disable();
this.opsGroupForm.get('swap').disable();
this.selectedBuShift = [];
this.disable = true;
this.headingtabchange = false;
this.activeSubId = 3;
this.isView = false;
this.isViewtab2 = false;
this.isViewtab3 = true;
this.opsGroupService.allPassedData.subscribe((allPassedData) => {
this.selectProducts = allPassedData;
this.selectProducts.forEach((element) => {
var _a;
if (element.hasOwnProperty('removeOpsTeamId')) {
this.removedTeam = element.removeOpsTeamId;
}
this.opsGroupForm.patchValue({
groupname: element.opsGroupName,
swap: element.swopSetup,
numberteam: element.noOfTeam,
});
this.teamCountNo = parseInt(element === null || element === void 0 ? void 0 : element.noOfTeam);
this.teamCountInt = parseInt(element === null || element === void 0 ? void 0 : element.noOfTeam);
let BuArr = [];
(_a = element === null || element === void 0 ? void 0 : element.buId) === null || _a === void 0 ? void 0 : _a.map(item => {
let obj = { _id: item._id, orgName: (item === null || item === void 0 ? void 0 : item.sectionId.departmentId.companyId.name) + ' > ' + (item === null || item === void 0 ? void 0 : item.sectionId.departmentId.name) +
' > ' + (item === null || item === void 0 ? void 0 : item.sectionId.name) +
'> ' + (item === null || item === void 0 ? void 0 : item.name) };
BuArr.push(obj);
});
this.selectedBuShift = BuArr;
this.selectedAdmin = element === null || element === void 0 ? void 0 : element.adminId;
if ((element === null || element === void 0 ? void 0 : element.noOfTeam) > 0) {
this.ifNoTeam = false;
this.teamNameArray = element === null || element === void 0 ? void 0 : element.opsTeamId.map((team) => {
return {
id: team._id,
teamName: team.name,
staffUser: team.userId,
};
});
}
else {
this.ifNoTeam = true;
this.teamNameArray = element === null || element === void 0 ? void 0 : element.userId.map((team) => {
return {
id: null,
teamName: null,
staffUser: [Object.assign({}, team)],
};
});
}
element === null || element === void 0 ? void 0 : element.opsTeamId.map((team) => {
this.opsGroupForm.patchValue({
opsTeamName: team.name,
});
});
this.selectedteam(this.selectedTeamIndex, 'o', null);
});
});
}
for (let i = 0; i <= 40; i++) {
this.teamNo.push(i.toString());
}
}
getAdministrationList() {
this.administrationLoader = true;
this.opsGroupService.getOpsGroupAdminList().subscribe((res) => {
var _a, _b;
this.administrationLoader = false;
this.shiftSchemeAdmin = res['data'];
if (!this.viewValue) {
this.selectedAdmin = ((_a = this.shiftSchemeAdmin) === null || _a === void 0 ? void 0 : _a.find(item => item.name == JSON.parse(localStorage.getItem("loggedInUserName")))) ? [(_b = this.shiftSchemeAdmin) === null || _b === void 0 ? void 0 : _b.find(item => item.name == JSON.parse(localStorage.getItem("loggedInUserName")))] : [];
}
}, (err) => {
this.administrationLoader = false;
});
}
viewOpsData() {
this.viewOps = this.viewOpsGroup;
}
changeTabIdNextBTn() {
this.activeSubId = 3;
this.checkedBu = this.checkedBuShift;
this.opsGroupForm.get('groupname').disable();
this.opsGroupForm.get('teamName').disable();
this.opsGroupForm.get('numberteam').disable();
this.opsGroupForm.get('swap').disable();
}
changeTabId() {
let count = 0;
if (this.teamCountInt) {
this.teamNameArray.map((item) => {
if (item.teamName) {
count++;
}
});
}
if (this.opsGroupForm.get('groupname').invalid) {
this.toastService.warning('Please enter OPS Group name');
}
else if (this.opsGroupForm.get('buShift').invalid) {
this.toastService.warning("Please Select Source Bu's");
}
else if (this.teamCountInt && +count != +this.teamCountInt) {
this.toastService.warning("Please click on 'Add Team' Button");
}
else {
this.activeSubId = 2;
this.addFromSource = 1;
this.ifNoTeam = false;
}
this.groupName = this.opsGroupForm.get('groupname').value;
this.groupTeamNo = this.teamCountNo;
this.teamName = this.opsGroupForm.get('teamName').value;
this.buShiftNewArr = this.selectedBuShift.map((ele) => {
return {
id: ele._id,
name: ele.orgName,
isChecked: false,
};
});
this.teamNameArray = this.teamNameArray.map((ele) => {
return Object.assign(Object.assign({}, ele), { sourceBus: this.buShiftNewArr });
});
this.selectedBuShift.forEach((element) => {
this.groupBuShiftId.push(element._id);
});
this.handleApprove();
}
changeTabIdPrevious() {
this.groupBuShiftId = [];
this.groupAdmintId = [];
this.activeSubId = 1;
}
changeTabIdPreviouBtn() {
this.activeSubId = 2;
}
intializeTeamArr(i) {
let teamList = [];
for (let j = 0; j < i; j++) {
const obj = {
teamName: '',
isAdded: false,
addFromSource: false,
sourceBus: [],
staffUser: []
};
teamList.push(obj);
}
this.teamNameArray = teamList;
}
handleApprove() {
this.addFromBu = true;
const bu = [];
this.buShiftNewArr.forEach((val) => {
bu.push(val.id);
});
this.staffObj = {
buId: bu,
};
this.opsGroupService.staffList(this.staffObj).subscribe((res) => {
this.staffUser = res.data;
this.staffAllUsers = JSON.parse(JSON.stringify(this.staffUser));
});
}
teamNoCount() {
this.showRow = true;
this.teamCountInt = parseInt(this.teamCountNo);
this.intializeTeamArr(this.teamCountInt);
}
selectedteam(i, type, id) {
this.selectedTeamIndex = i;
this.selectedViewTeam = i + 1;
if (type === 'o') {
this.sourceTeamId = id;
this.selectedTeamIndex = i;
}
if (type === 't') {
this.destinationTeamId = id;
this.selectedTransferTeamIndex = i;
}
this.addFromSource =
this.teamNameArray[this.selectedTeamIndex].addFromSource;
this.staffDetail = this.teamNameArray[this.selectedTeamIndex].staffUser;
if (this.teamCountInt === 0) {
this.staffUserDet = this.teamNameArray.reduce((accumulator, currentObject) => {
const staffUsers = currentObject.staffUser;
accumulator.push(...staffUsers);
return accumulator;
}, []);
}
else {
this.staffUserDet = this.teamNameArray[this.selectedTeamIndex].staffUser;
}
this.buShiftNewArr = this.teamNameArray[this.selectedTeamIndex].sourceBus;
}
getBuShift(event, i, id) {
if (this.teamNameArray.length !== 0) {
this.teamNameArray[this.selectedTeamIndex].sourceBus[i].isChecked =
event.target.checked;
}
if (event.target.checked) {
this.buIdArry.push(id);
}
else {
this.buIdArry.splice(this.buIdArry.indexOf(id), 1);
}
this.staffObj = {
buId: this.buIdArry,
};
this.opsGroupService.staffList(this.staffObj).subscribe((res) => {
this.staffUser = res.data;
});
}
removeBuId(buitem) {
this.selectedBuShift = this.selectedBuShift.filter((item) => item._id !== buitem._id);
}
removeAdminId(AdminId) {
this.selectedAdmin = this.selectedAdmin.filter((adminitem) => adminitem._id !== AdminId._id);
}
removeStaff(index) {
var _a, _b;
let selectedUser = (_a = this.staffAllUsers) === null || _a === void 0 ? void 0 : _a.filter(x => { var _a; return x._id == ((_a = this.staffUserDet[index]) === null || _a === void 0 ? void 0 : _a._id); });
if (selectedUser === null || selectedUser === void 0 ? void 0 : selectedUser.length) {
this.staffUser.push(selectedUser[0]);
}
this.staffUser = [...this.staffUser];
(_b = this.staffUserDet) === null || _b === void 0 ? void 0 : _b.splice(index, 1);
}
addStaffUser() {
this.staffUserId = [];
if (this.staffDetail.length) {
this.staffDetail.forEach((val) => {
this.staffUserDet.push(val);
const teIn = this.staffUser.findIndex((vv) => {
if (vv._id == val._id) {
return true;
}
});
if (teIn != -1) {
this.staffUser.splice(teIn, 1);
}
});
this.staffUser = [...this.staffUser];
}
this.staffUserDet.forEach((element) => {
this.staffUserId.push(element._id);
});
if (this.teamNameArray.length !== 0) {
this.teamOpsobjArr = this.teamNameArray.map((ele) => {
return {
admin: [],
name: ele.teamName,
userId: this.staffUserId,
};
});
}
if (this.teamNameArray.length !== 0) {
this.teamOpsObj = {
admin: [],
name: this.teamName,
userId: this.staffUserId,
};
this.teamNameArray[this.selectedTeamIndex].staffUser = this.staffDetail;
}
this.teamOpsobjArr.push(this.teamOpsObj);
this.staffDetail = [];
}
addTeambutton(i) {
this.editBtn = true;
this.teamNameArray[i].teamName = (document.getElementById('teamIdName' + i)).value;
this.teamNameArray[i].isAdded = true;
}
editTeam(i) {
this.teamNameArray[i].isAdded = false;
}
removeTeam(i) {
this.teamNameArray.splice(i, 1);
this.teamCountNo = this.teamCountNo - 1;
this.teamCountInt = parseInt(this.teamCountNo);
}
backToOverview() {
this.ChangeTabId.emit(1);
}
clearLocationLabel() {
this.teamName = '';
}
onCreateForm() {
let createGroupObjPayload = this.createPayloadForSave(false);
this.createOpsGrpLoader = true;
const createOpsGrp = this.opsGroupService
.createOpsForm(createGroupObjPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
createOpsGrp.unsubscribe();
this.createOpsGrpLoader = false;
}))
.subscribe((res) => {
if (res['success']) {
this.toastService.success(res['message'], 'Successful');
this.ChangeTabId.emit(1);
}
else {
this.toastService.error(res['message'], 'Failed', {
timeOut: 5000,
progressBar: true,
});
}
});
}
getSourceBuList() {
this.buLoader = true;
// const { data, ...rest } = this.buParameters;
const buSubscribe = this.buService
.getBusinessUnitBUShift().subscribe((res) => {
var _a;
// if (res.success) {
this.buLoader = false;
this.buParameters.data = ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.planBussinessUnitId) || [];
// } else {
// this.buParameters.data = [];
// }
}, (error) => {
this.buLoader = false;
this.buParameters.data = [];
});
}
loadMoreItem() {
this.buParameters.limit = this.buParameters.limit + 10;
this.getSourceBuList();
}
saveAsDraft() {
let createGroupObjPayload = this.createPayloadForSave(true);
this.draftOpsGrpLoader = true;
const createOpsGrp = this.opsGroupService
.saveAsDraftOpsForm(createGroupObjPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
createOpsGrp.unsubscribe();
this.draftOpsGrpLoader = false;
}))
.subscribe((res) => {
if (res['success']) {
this.toastService.success(res['message'], 'Successful');
this.ChangeTabId.emit(1);
}
else {
this.toastService.error(res['message'], 'Failed', {
timeOut: 5000,
progressBar: true,
});
}
});
}
createPayloadForSave(isDraft) {
this.teamUsersObj = [];
this.groupAdmin = this.selectedAdmin;
this.groupAdmin.forEach((admin) => {
this.groupAdmintId.push(admin._id);
});
let opsArr = [];
if (this.teamNameArray.length !== 0) {
this.teamNameArray.forEach((val) => {
const userId = [];
val.staffUser.forEach((v) => {
userId.push(v._id);
opsArr.push(v._id);
});
this.teamUsersObj.push({ admin: [], name: val.teamName, userId: userId });
});
}
else {
opsArr = [...this.staffUserId];
}
return {
adminId: this.groupAdmintId,
buId: this.groupBuShiftId,
isDraft: isDraft ? isDraft : false,
noOfTeam: this.teamCountNo,
opsGroupName: this.groupName,
opsTeam: this.teamUsersObj,
swopSetup: this.opsGroupForm.get('swap').value,
userId: opsArr,
};
}
deleteSourceBU(id) {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const buUnitIndex = yield ((_a = this.selectedBuShift) === null || _a === void 0 ? void 0 : _a.findIndex((x) => x._id === id));
(_b = this.selectedBuShift) === null || _b === void 0 ? void 0 : _b.splice(buUnitIndex, 1);
});
}
deleteAdmin(id) {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const adminIndex = yield ((_a = this.selectedAdmin) === null || _a === void 0 ? void 0 : _a.findIndex((x) => x._id === id));
(_b = this.selectedAdmin) === null || _b === void 0 ? void 0 : _b.splice(adminIndex, 1);
});
}
}
OpsAddStaffComponent.ɵfac = function OpsAddStaffComponent_Factory(t) { return new (t || OpsAddStaffComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_5__["OpsGroupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"])); };
OpsAddStaffComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: OpsAddStaffComponent, selectors: [["app-ops-add-staff"]], inputs: { viewValue: "viewValue", viewOpsGroup: "viewOpsGroup" }, outputs: { ChangeTabId: "ChangeTabId" }, decls: 6, vars: 8, consts: [["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "ngStyle", "activeIdChange"], ["nav", "ngbNav"], [3, "ngbNavItem", "disabled", 4, "ngIf"], [3, "ngbNavOutlet"], [3, "ngbNavItem", "disabled"], ["ngbNavLink", ""], ["ngbNavContent", ""], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [3, "formGroup"], [1, "row"], [1, "col-md-3"], [1, "font-weight-500"], ["type", "text", "formControlName", "groupname", 1, "form-control"], [1, "col-md-6", "angular2-multiselect-dropdown"], ["formControlName", "buShift", 3, "data", "ngModel", "settings", "ngModelOptions", "ngModelChange"], ["class", "row red-container mt-3 col-md-5 ml-4", 4, "ngFor", "ngForOf"], [1, "col-md-3", "angular2-multiselect-dropdown"], [3, "data", "ngModel", "settings", "ngModelOptions", "ngModelChange"], ["class", "row red-container mt-3 ml-0", 4, "ngFor", "ngForOf"], ["appendTo", "body", 1, "custom", 3, "items", "multiple", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["class", "my-3", 4, "ngIf"], [1, "form-inline"], [1, "font-weight-500", "mr-2"], [1, "form-check", "form-check-inline"], ["type", "radio", "formControlName", "swap", "id", "swapNo", "value", "0", 1, "form-check-input"], ["for", "swapNo", 1, "form-check-label"], ["type", "radio", "formControlName", "swap", "id", "swapGroup1", "value", "1", 1, "form-check-input"], ["for", "swapGroup1", 1, "form-check-label"], ["type", "radio", "formControlName", "swap", "id", "swapTeam2", "value", "2", 1, "form-check-input"], ["for", "swapTeam2", 1, "form-check-label"], [1, "card-footer"], ["type", "button", 1, "bg-theme", "border-0", "btn", "d-flex", "align-items-center", 3, "click"], [1, "material-icons", "ml-1"], [1, "row", "red-container", "mt-3", "col-md-5", "ml-4"], [1, "col-10", "selected-text"], [1, "col-2", "cancel-btn-container"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 3, "click"], [1, "row", "red-container", "mt-3", "ml-0"], [1, "my-3"], ["class", "border d-inline-flex mb-3 p-2 rounded mr-2", 4, "ngFor", "ngForOf"], [1, "border", "d-inline-flex", "mb-3", "p-2", "rounded", "mr-2"], ["type", "text", 1, "form-control", "mx-2", 3, "id", "value", "disabled", "ngModel", "ngModelOptions", "ngModelChange"], [1, "btn", "btn-danger", 3, "click"], ["class", "btn btn-success ml-2", 3, "disabled", "click", 4, "ngIf", "ngIfElse"], ["editBtn", ""], [1, "btn", "btn-success", "ml-2", 3, "disabled", "click"], [1, "btn", "btn-warning", "ml-2", 3, "click"], [1, "mb-3", 3, "formGroup"], [1, "col-md-9"], [1, "form-group"], ["class", "form-check form-check-inline", 4, "ngFor", "ngForOf"], [1, "row", "mb-3"], [1, "form-check"], ["type", "radio", "id", "opsAction1", 1, "form-check-input", 3, "value", "ngModel", "ngModelOptions", "ngModelChange", "change"], ["for", "opsAction1", 1, "form-check-label", "font-weight-500"], ["type", "radio", "formControlName", "removeOpsGroup", 1, "form-check-input", 3, "value", "checked"], ["for", "opsAction2", 1, "form-check-label", "font-weight-500"], ["class", "col-md-9", 4, "ngIf"], ["class", "row", 4, "ngIf"], [1, "col-md-12"], [1, "table-responsive", "border-theme", "rounded"], [1, "table", "m-0"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "d-flex"], ["type", "button", 1, "align-items-center", "btn", "btn-outline-dark", "d-flex", 3, "click"], [1, "material-icons", "mr-1"], [1, "bg-theme", "border-0", "btn", "d-flex", "align-items-center", "ml-2", 3, "click"], ["type", "radio", "name", "opsteam", 1, "form-check-input", 3, "value", "checked", "change"], [1, "form-check-label"], ["class", "labels label-light mr-1 mb-1", 4, "ngFor", "ngForOf"], [1, "labels", "label-light", "mr-1", "mb-1"], ["bindLabel", "name", "appendTo", "body", "clearAllText", "Clear", 1, "custom", 3, "items", "multiple", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "ngModelChange"], ["ng-option-tmp", ""], [1, "col-md-2", "d-flex", "justify-content-start", "align-items-end"], [1, "btn", "btn-add", 3, "click"], ["disabled", "", "type", "text", "placeholder", "Field Name", "formControlName", "groupname", 1, "form-control"], [1, "col-md-6"], ["class", "labels mb-1 mr-1", 4, "ngFor", "ngForOf"], ["class", "col-md-6", 4, "ngIf"], ["class", "labels my-1", 4, "ngFor", "ngForOf"], ["appendTo", "body", "formControlName", "numberteam", 1, "custom", 3, "items", "readonly", "multiple", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["type", "radio", "formControlName", "swap", "id", "swapNo", "value", "0", "disabled", "", 1, "form-check-input"], ["type", "radio", "formControlName", "swap", "id", "swapGroup1", "value", "1", "disabled", "", 1, "form-check-input"], ["type", "radio", "formControlName", "swap", "id", "swapTeam2", "value", "2", "disabled", "", 1, "form-check-input"], ["type", "text", "formControlName", "groupname", "disabled", "", 1, "form-control"], ["class", "align-items-center btn btn-outline-dark d-flex", 3, "click", 4, "ngIf"], [4, "ngIf"], [1, "labels", "mb-1", "mr-1"], [1, "text"], ["bindLabel", "orgName", "groupBy", "type", "placeholder", "Search", 3, "items", "multiple", "selectableGroup", "selectableGroupAsModel", "closeOnSelect", "searchable", "ngModel", "ngModelOptions", "readonly", "ngModelChange"], [1, "labels", "my-1"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], [1, "btn", "btn-danger"], [1, "btn", "btn-success", "ml-2", 3, "click"], [1, "card-body", "p-0"], [1, "table"], ["type", "radio", "formControlName", "opsTeamName", 1, "form-check-input", 3, "checked", "value", "ngModel", "ngModelOptions", "ngModelChange", "change"], ["for", "channel", 1, "form-check-label"], [1, "align-items-center", "btn", "btn-outline-dark", "d-flex", 3, "click"], [1, "btn", "btn-warning", "ml-2", "d-flex", "align-items-center", 3, "disabled", "click"], ["class", "material-icons mr-1", 4, "ngIf"], ["class", "spinner-border spinner-border-sm ml-2", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "btn", "border-0", "d-flex", "align-items-center", "ml-2", "btn-success", 3, "disabled", "click"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-2"]], template: function OpsAddStaffComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function OpsAddStaffComponent_Template_ul_activeIdChange_0_listener($event) { return ctx.activeSubId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OpsAddStaffComponent_li_2_Template, 4, 2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, OpsAddStaffComponent_li_3_Template, 4, 2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, OpsAddStaffComponent_li_4_Template, 4, 2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "div", 3);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx.activeSubId)("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](6, _c1, ctx.viewValue ? "none" : "flex"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isViewtab2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isViewtab3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNav"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgStyle"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavOutlet"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_11__["AngularMultiSelect"], angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_11__["ɵf"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_12__["ɵf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["DatePipe"]], styles: [".labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n.labels.label-light[_ngcontent-%COMP%] {\n background: #eee;\n color: #212529;\n}\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n width: calc(100% - 30 px);\n}\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n}\n .ng-select-multiple .ng-value-container .ng-value {\n background: #a42138 !important;\n color: #fff;\n font-size: 1.2rem !important;\n}\n.card-footer[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] {\n font-size: 1.8rem;\n}\n.btn.bg-theme[_ngcontent-%COMP%]:hover {\n background-color: #7d1a2b !important;\n}\n.btn.bg-theme[_ngcontent-%COMP%]:hover .material-icons[_ngcontent-%COMP%] {\n transition: all 0.2s;\n}\n .ng-select.ng-select-single .ng-select-container {\n height: 30px;\n}\n .ng-select .ng-select-container {\n min-height: 30px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYWRtaW4vdXNlcnMvb3BzLWdyb3VwL29wcy1hZGQtc3RhZmYvb3BzLWFkZC1zdGFmZi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0VBQ0EsOEJBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBQ0Y7QUFDRTtFQUNFLGdCQUFBO0VBQ0EsY0FBQTtBQUNKO0FBRUU7RUFDRSxrQkFBQTtFQUNBLHlCQUFBO0FBQUo7QUFHRTtFQUNFLGVBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtBQURKO0FBS0E7RUFDRSw4QkFBQTtFQUNBLFdBQUE7RUFDQSw0QkFBQTtBQUZGO0FBS0E7RUFDRSxpQkFBQTtBQUZGO0FBS0E7RUFDRSxvQ0FBQTtBQUZGO0FBSUU7RUFDRSxvQkFBQTtBQUZKO0FBUUk7RUFDRSxZQUFBO0FBTE47QUFRRTtFQUNFLGdCQUFBO0FBTkoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9hZG1pbi91c2Vycy9vcHMtZ3JvdXAvb3BzLWFkZC1zdGFmZi9vcHMtYWRkLXN0YWZmLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmxhYmVscyB7XG4gIHBhZGRpbmc6IDZweCA4cHg7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xuICBmb250LXNpemU6IDE0cHg7XG4gIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAmLmxhYmVsLWxpZ2h0IHtcbiAgICBiYWNrZ3JvdW5kOiAjZWVlO1xuICAgIGNvbG9yOiAjMjEyNTI5O1xuICB9XG5cbiAgLnRleHQge1xuICAgIG1hcmdpbi1ib3R0b206IDJweDtcbiAgICB3aWR0aDogY2FsYygxMDAlIC0gMzAgcHgpO1xuICB9XG5cbiAgLmJ0bi1jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIHBhZGRpbmc6IDJweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbn1cblxuOjpuZy1kZWVwIC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUge1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4ICFpbXBvcnRhbnQ7XG4gIGNvbG9yOiAjZmZmO1xuICBmb250LXNpemU6IDEuMnJlbSAhaW1wb3J0YW50O1xufVxuXG4uY2FyZC1mb290ZXIgLm1hdGVyaWFsLWljb25zIHtcbiAgZm9udC1zaXplOiAxLjhyZW07XG59XG5cbi5idG4uYmctdGhlbWU6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjN2QxYTJiIWltcG9ydGFudDtcblxuICAubWF0ZXJpYWwtaWNvbnMge1xuICAgIHRyYW5zaXRpb246IGFsbCAwLjJzO1xuICB9XG59XG5cbjo6bmctZGVlcCAubmctc2VsZWN0IHtcbiAgJi5uZy1zZWxlY3Qtc2luZ2xlIHtcbiAgICAubmctc2VsZWN0LWNvbnRhaW5lciB7XG4gICAgICBoZWlnaHQ6IDMwcHg7XG4gICAgfVxuICB9XG4gIC5uZy1zZWxlY3QtY29udGFpbmVyIHtcbiAgICBtaW4taGVpZ2h0OiAzMHB4O1xuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OpsAddStaffComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-ops-add-staff',
templateUrl: './ops-add-staff.component.html',
styleUrls: ['./ops-add-staff.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"] }, { type: src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_5__["OpsGroupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"] }]; }, { ChangeTabId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], viewValue: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], viewOpsGroup: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}] }); })();
/***/ }),
/***/ "PXv1":
/*!**********************************************************************************!*\
!*** ./src/app/users/pages/operations/report/list-shift/list-shift.component.ts ***!
\**********************************************************************************/
/*! exports provided: CustomDateParserFormatter, ListShiftComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDateParserFormatter", function() { return CustomDateParserFormatter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ListShiftComponent", function() { return ListShiftComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! file-saver */ "Iab2");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/constants */ "l207");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/report.service */ "Ecij");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function ListShiftComponent_ng_template_6_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Please wait data is loading... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ListShiftComponent_ng_template_6_div_21_div_1_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListShiftComponent_ng_template_6_div_21_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const i_r9 = ctx.index; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r10.clearLabel(i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r8);
} }
function ListShiftComponent_ng_template_6_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ListShiftComponent_ng_template_6_div_21_div_1_Template, 5, 1, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r4.buLabelArr);
} }
function ListShiftComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h6", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "SELECT BUSINESS UNIT AND DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "ng-select", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ListShiftComponent_ng_template_6_Template_ng_select_ngModelChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.bu = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ListShiftComponent_ng_template_6_div_14_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListShiftComponent_ng_template_6_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.clearAllBu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListShiftComponent_ng_template_6_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.addBu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, ListShiftComponent_ng_template_6_div_21_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Start Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "input", 26, 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListShiftComponent_ng_template_6_Template_input_click_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](31); return _r5.toggle(); })("ngModelChange", function ListShiftComponent_ng_template_6_Template_input_ngModelChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.startdate = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "End Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "input", 26, 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListShiftComponent_ng_template_6_Template_input_click_39_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](40); return _r6.toggle(); })("ngModelChange", function ListShiftComponent_ng_template_6_Template_input_ngModelChange_39_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r19.enddate = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ListShiftComponent_ng_template_6_Template_button_click_42_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.downloadCsv(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, " Click to download File ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r1.allBuShift)("loading", ctx_r1.buLoader)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r1.bu);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.buLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.buLabelArr != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.startdate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.enddate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !(ctx_r1.startdate && ctx_r1.enddate && ctx_r1.buArr.length > 0));
} }
function ListShiftComponent_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.loadingMessage, " ");
} }
class CustomDateParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"] {
constructor() {
super(...arguments);
this.DELIMITER = '-';
}
parse(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1].padStart(10, '0'), 10),
year: parseInt(date[2], 10),
};
}
return null;
}
format(date) {
return date
? date.day +
this.DELIMITER +
parseInt(date.month.toString().padStart(10, '0'), 10) +
this.DELIMITER +
date.year
: '';
}
}
CustomDateParserFormatter.ɵfac = function CustomDateParserFormatter_Factory(t) { return ɵCustomDateParserFormatter_BaseFactory(t || CustomDateParserFormatter); };
CustomDateParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: CustomDateParserFormatter, factory: CustomDateParserFormatter.ɵfac });
const ɵCustomDateParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CustomDateParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CustomDateParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
}], null, null); })();
class ListShiftComponent {
constructor(setupService, reportService, toastService) {
this.setupService = setupService;
this.reportService = reportService;
this.toastService = toastService;
this.buArr = [];
this.buLabelArr = [];
this.bu = null;
this.allBusinessUnitSelected = false;
this.buLoader = true;
this.activeId = 1;
this.isLoader = false;
this.loadingMessage = src_app_constants__WEBPACK_IMPORTED_MODULE_5__["LOADING_MESSAGE"];
}
ngOnInit() {
this.getAllBu();
}
getAllBu() {
this.buLoader = true;
const buSubscribe = this.setupService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((val) => {
// Adding 'all' option to Select All Bu
val['data']['businessUnitList'].unshift({
_id: 'all',
orgName: 'Select All Business Units',
});
return val;
}))
.subscribe((res) => {
if (res['data']) {
this.allBuShift = res['data']['businessUnitList'];
}
else {
this.allBuShift = [];
}
}, (error) => {
this.allBuShift = [];
});
}
addBu() {
if (this.bu._id === 'all') {
//removing selected bu before selection of All bu
this.buArr = [];
this.buLabelArr = [];
//Adding all bu except 1st Select All option
this.allBuShift.forEach((el, i) => {
if (i > 0) {
this.buArr.push(el._id);
}
});
this.buLabelArr.push('All Business Units Selected');
}
else if (this.buArr.includes(this.bu._id)) {
this.toastService.info('Business unit already selected', 'Already Selected');
}
else {
this.buArr.push(this.bu._id);
this.buLabelArr.push(this.bu.orgName);
this.bu = null;
}
}
clearLabel(i) {
if (this.buLabelArr.includes('All Business Units Selected')) {
this.buArr = [];
this.buLabelArr = [];
}
else {
this.buArr.splice(i, 1);
this.buLabelArr.splice(i, 1);
}
}
downloadCsv() {
this.isLoader = true;
const filePayload = {
date: moment__WEBPACK_IMPORTED_MODULE_2__().format('MM-DD-YYYY') + ' 00:00:00 GMT+0800',
businessUnitId: this.buArr,
startDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
y: this.startdate.year,
M: this.startdate.month - 1,
D: this.startdate.day,
})
.format('MM-DD-YYYY') + ' 00:00:00 GMT+0800',
endDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
y: this.enddate.year,
M: this.enddate.month - 1,
D: this.enddate.day,
})
.format('MM-DD-YYYY') + ' 00:00:00 GMT+0800',
AllBuSelected: this.allBusinessUnitSelected,
};
this.reportService
.listOfShiftCsv(filePayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.isLoader = false; // Stop loader when complete
}))
.subscribe((res) => {
const filename = res['data']['csvLink']
.split('\\')
.pop()
.split('/')
.pop();
this.downloadFile(filename);
}, (error) => {
this.toastService.error(`Something went wrong!`);
});
}
// Converting json response to CSV file with third party npm fileSaver
downloadFile(n) {
this.reportService
.downloadFile(n)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.bu = null;
this.buArr = [];
this.buLabelArr = [];
this.startdate = null;
this.enddate = null;
}))
.subscribe((res) => {
if (res) {
file_saver__WEBPACK_IMPORTED_MODULE_3__["saveAs"](new Blob([res], { type: 'text/csv' }), n);
}
});
}
clearAllBu() {
this.buArr = [];
this.buLabelArr = [];
}
}
ListShiftComponent.ɵfac = function ListShiftComponent_Factory(t) { return new (t || ListShiftComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__["ReportService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"])); };
ListShiftComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ListShiftComponent, selectors: [["app-list-shift"]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
])], decls: 10, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["listNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["class", "loader", 4, "ngIf"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "row"], [1, "col-12"], [1, "col-md-10", "d-flex", "align-items-end"], [1, "form-group", "w-100"], [1, "font-weight-500"], [1, "field-mandatory"], ["bindLabel", "orgName", "placeholder", "Select Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], ["class", "text-danger", 4, "ngIf"], [1, "btn", "btn-danger", "ml-2", 3, "click"], [1, "btn", "btn-success", "ml-2", 3, "click"], [1, "row", "mt-3"], [4, "ngIf"], [1, "col-md-3"], [1, "form-group"], [1, "input-group"], ["placeholder", "Select date", "ngbDatepicker", "", 1, "form-control", 3, "ngModel", "click", "ngModelChange"], ["d1", "ngbDatepicker"], ["d2", "ngbDatepicker"], [1, "card-footer"], [1, "btn", "btn-warning", 3, "disabled", "click"], [1, "text-danger"], ["class", "labels", 4, "ngFor", "ngForOf"], [1, "labels"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"]], template: function ListShiftComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ListShiftComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "LIST OF SHIFTS RELEASED FOR BOOKING");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ListShiftComponent_ng_template_6_Template, 44, 12, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ListShiftComponent_div_9_Template, 5, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLoader);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbInputDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"]], styles: [".btn-download[_ngcontent-%COMP%] {\n background-color: #f2c94d;\n padding: 8px 50px;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n margin: 4px 4px 0 0;\n display: inline-block;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n margin-left: 6px;\n vertical-align: middle;\n}\n\n.form-control[_ngcontent-%COMP%] {\n height: 36px;\n}\n\n.form-group[_ngcontent-%COMP%] {\n margin-bottom: 0;\n}\n\n.ml-2[_ngcontent-%COMP%] {\n margin-left: 0.5rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9yZXBvcnQvbGlzdC1zaGlmdC9saXN0LXNoaWZ0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UseUJBQUE7RUFDQSxpQkFBQTtBQUNGOztBQUVBO0VBQ0UsZ0JBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0VBQ0EsbUJBQUE7RUFDQSxxQkFBQTtFQUNBLDhCQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtBQUNGOztBQUNFO0VBQ0Usa0JBQUE7QUFDSjs7QUFFRTtFQUNFLGVBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0Esc0JBQUE7QUFBSjs7QUFJQTtFQUNFLFlBQUE7QUFERjs7QUFJQTtFQUNFLGdCQUFBO0FBREY7O0FBSUE7RUFDRSxtQkFBQTtBQURGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9yZXBvcnQvbGlzdC1zaGlmdC9saXN0LXNoaWZ0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJ0bi1kb3dubG9hZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmMmM5NGQ7XG4gIHBhZGRpbmc6IDhweCA1MHB4O1xufVxuXG4ubGFiZWxzIHtcbiAgcGFkZGluZzogNnB4IDhweDtcbiAgYmFja2dyb3VuZDogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgbWFyZ2luOiA0cHggNHB4IDAgMDtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAudGV4dCB7XG4gICAgbWFyZ2luLWJvdHRvbTogMnB4O1xuICB9XG5cbiAgLmJ0bi1jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIHBhZGRpbmc6IDJweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgbWFyZ2luLWxlZnQ6IDZweDtcbiAgICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xuICB9XG59XG5cbi5mb3JtLWNvbnRyb2wge1xuICBoZWlnaHQ6IDM2cHg7XG59XG5cbi5mb3JtLWdyb3VwIHtcbiAgbWFyZ2luLWJvdHRvbTogMDtcbn1cblxuLm1sLTIge1xuICBtYXJnaW4tbGVmdDogMC41cmVtO1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ListShiftComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-list-shift',
templateUrl: './list-shift.component.html',
styleUrls: ['./list-shift.component.scss'],
providers: [
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"] }, { type: src_app_users_service_operations_report_service__WEBPACK_IMPORTED_MODULE_7__["ReportService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "Px+v":
/*!****************************************************************************************!*\
!*** ./src/app/users/pages/admin/users/manage-transport/manage-transport.component.ts ***!
\****************************************************************************************/
/*! exports provided: ManageTransportComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageTransportComponent", function() { return ManageTransportComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! papaparse */ "NpuA");
/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(papaparse__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_7__);
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
const _c0 = ["sidemenu"];
const _c1 = ["AddDataModal"];
const _c2 = ["importData"];
function ManageTransportComponent_div_0_ng_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r8.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("title", item_r8.key);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.key);
} }
function ManageTransportComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 4, 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "aside", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "SELECT FIELD");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ng-select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ManageTransportComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r9.buId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, ManageTransportComponent_div_0_ng_option_7_Template, 3, 3, "ng-option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_div_0_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.clickOnCancel(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_div_0_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.viewClicked(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r0.buOption)("loading", ctx_r0.buLoader)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.buId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.buOption);
} }
function ManageTransportComponent_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ManageTransportComponent_div_1_button_15_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_div_1_button_15_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r18.addDataField(0, null); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Add new data ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ManageTransportComponent_div_1_span_33_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ManageTransportComponent_div_1_div_35_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "a", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_div_1_div_35_tr_16_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r23); const item_r21 = ctx.$implicit; const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r22.addDataField(1, item_r21); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "i", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r21 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r21.postalCode, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r21 == null ? null : item_r21.zone);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r21 == null ? null : item_r21.pudo);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r21 == null ? null : item_r21.waitingTimeZone);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("href", item_r21.mapLink, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r21.mapLink, " ");
} }
function ManageTransportComponent_div_1_div_35_Template(rf, ctx) { if (rf & 1) {
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "table", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "th", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ManageTransportComponent_div_1_div_35_Template_th_sort_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r24.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " POSTAL CODE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "th", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ManageTransportComponent_div_1_div_35_Template_th_sort_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r26.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " ZONE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "th", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ManageTransportComponent_div_1_div_35_Template_th_sort_8_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r27.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " PUDO ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "th", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ManageTransportComponent_div_1_div_35_Template_th_sort_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r28.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " WAITING TIME ZONE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "th", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "MAP LINK");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ManageTransportComponent_div_1_div_35_tr_16_Template, 15, 6, "tr", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r16.usersPTable.data);
} }
function ManageTransportComponent_div_1_div_36_th_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r31 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("scope", "col");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", header_r31, " ");
} }
function ManageTransportComponent_div_1_div_36_tr_6_td_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r34 = ctx.$implicit;
const item_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r32[header_r34], " ");
} }
function ManageTransportComponent_div_1_div_36_tr_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ManageTransportComponent_div_1_div_36_tr_6_td_1_Template, 2, 1, "td", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r30.headerKey);
} }
function ManageTransportComponent_div_1_div_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "table", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ManageTransportComponent_div_1_div_36_th_4_Template, 2, 2, "th", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ManageTransportComponent_div_1_div_36_tr_6_Template, 2, 1, "tr", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r17.headerKey);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r17.usersPTable.data);
} }
function ManageTransportComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ManageTransportComponent_div_1_div_1_Template, 4, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](7, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_div_1_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r36.refresh(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Refresh ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_div_1_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r38.exportmasterData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Export data ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_div_1_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r39.openImportData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Import data ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, ManageTransportComponent_div_1_button_15_Template, 2, 0, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "select", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ManageTransportComponent_div_1_Template_select_change_21_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r40.onLimitChangeUsers(); })("ngModelChange", function ManageTransportComponent_div_1_Template_select_ngModelChange_21_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r41.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "option", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](33, ManageTransportComponent_div_1_span_33_Template, 2, 0, "span", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ManageTransportComponent_div_1_Template_input_search_34_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r42.userssearchInput.next($event); })("keyup", function ManageTransportComponent_div_1_Template_input_keyup_34_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r43.userssearchInput.next($event); })("ngModelChange", function ManageTransportComponent_div_1_Template_input_ngModelChange_34_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r44.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](35, ManageTransportComponent_div_1_div_35_Template, 17, 1, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](36, ManageTransportComponent_div_1_div_36_Template, 7, 2, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "ngb-pagination", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ManageTransportComponent_div_1_Template_ngb_pagination_pageChange_41_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r45.usersPTable.page = $event; })("pageChange", function ManageTransportComponent_div_1_Template_ngb_pagination_pageChange_41_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r37); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r46.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.isLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", "MANAGE TRANSPORT DATA", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" - (", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](7, 19, ctx_r1.buId == null ? null : ctx_r1.buId.key), ")");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r1.buId == null ? null : ctx_r1.buId.type) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r1.buId == null ? null : ctx_r1.buId.type) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx_r1.buId == null ? null : ctx_r1.buId.type) == 2 || (ctx_r1.buId == null ? null : ctx_r1.buId.type) == 3 || (ctx_r1.buId == null ? null : ctx_r1.buId.type) == 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total Records ", ctx_r1.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r1.usersPTable.total)("page", ctx_r1.usersPTable.page)("maxSize", 5)("pageSize", ctx_r1.usersPTable.limit);
} }
function ManageTransportComponent_ng_template_2_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const key_r50 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("for", key_r50.key);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](key_r50.key);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formControlName", key_r50.key)("id", key_r50.key);
} }
const _c3 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function ManageTransportComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](10, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_ng_template_2_Template_button_click_11_listener() { const c_r47 = ctx.close; return c_r47("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "i", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "form", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ManageTransportComponent_ng_template_2_div_16_Template, 5, 4, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](17, "keyvalue");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "button", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_ng_template_2_Template_button_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r53); const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r52.onSubmitDataField(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r3.isFieldEdited ? "UPDATE DATA" : "ADD DATA", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" - (", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](10, 8, ctx_r3.buId == null ? null : ctx_r3.buId.value), ")");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r3.transportFieldForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](17, 10, ctx_r3.transportFieldForm.controls));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r3.isLoading)("disabled", !ctx_r3.transportFieldForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](12, _c3, ctx_r3.isLoading, !ctx_r3.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r3.isFieldEdited ? "Update" : "Add Field", " ");
} }
function ManageTransportComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h4", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Import Master Data");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_ng_template_4_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r56); const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r55.downloadSampleCSV(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Download Sample ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_ng_template_4_Template_button_click_6_listener() { const modal_r54 = ctx.$implicit; return modal_r54.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "form", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function ManageTransportComponent_ng_template_4_Template_form_ngSubmit_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r56); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r58.uploadImportMasterData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ManageTransportComponent_ng_template_4_Template_input_change_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r56); const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r59.importDatafile($event.target.files); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "button", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_ng_template_4_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r56); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r60.uploadImportMasterData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, " Upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageTransportComponent_ng_template_4_Template_button_click_18_listener() { const modal_r54 = ctx.$implicit; return modal_r54.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r5.importDataForm);
} }
class ManageTransportComponent {
constructor(customformService, toastService, formBuilder, modelService, renderer, customFromService, location, router, route) {
this.customformService = customformService;
this.toastService = toastService;
this.formBuilder = formBuilder;
this.modelService = modelService;
this.renderer = renderer;
this.customFromService = customFromService;
this.location = location;
this.router = router;
this.route = route;
this.back = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.manageId = null;
this.editFormData = null;
this.overViewData = null;
this.formSubmissionListData = [];
this.totalSubmissions = 0;
this.errorCount = 0;
this.customFormId = null;
this.childComponentData = null;
this.serviceId = null;
this.buId = null;
this.status = null;
this.searchObj = null;
this.isCreateIndent = false;
this.hasWorkflow = false;
this.firstRow = null;
this.showCreateIndent = false;
this.showLogs = false;
this.formData = null;
this.isFieldEdited = false;
this.isLoader = false;
this.currentPage = 1;
this.isTableLoading = false;
this.selectedID = null;
this.fileToUpload = null;
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
this.tableQueryParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_3__["transportTableParam"];
this.headerKey = [];
this.dataSet = [];
this.router.routeReuseStrategy.shouldReuseRoute = function () {
return false;
};
this.router.onSameUrlNavigation = 'reload';
this.routeSub = this.route.data.subscribe((val) => {
this.isView = val.isView;
});
this.transportFieldForm = this.formBuilder.group({});
this.usersPTable = {
sortBy: 'asc',
sortWith: 'createdBy',
data: [],
page: 1,
limit: 10,
search: '',
};
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["delay"])(500))))
.subscribe((input) => {
this.tableQueryParams.search = input;
this.loadFormLog();
});
}
onSortUsers({ column, direction }) {
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sort = { key: column, order: direction };
this.loadFormLog();
}
ngOnInit() {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.childComponentData = this.editFormData;
this.customFormId = this.manageId;
this.isCreateIndent = (_a = this.editFormData) === null || _a === void 0 ? void 0 : _a.isCreateIndent;
this.hasWorkflow = (_b = this.editFormData) === null || _b === void 0 ? void 0 : _b.hasWorkflow;
const data = localStorage.getItem('privilegeFlags');
this.buOption = [
{ key: 'Postal Codes', value: 'postalcode', type: 1 },
{ key: 'Waiting Time', value: 'waitingtime', type: 2 },
{
key: 'Airport To Home Dataset',
value: 'airporttohomedataset',
type: 3,
},
{
key: 'Home To Airport Dataset',
value: 'hometoairportdataset',
type: 4,
},
];
this.privilegeFlags = JSON.parse(data);
this.tableQueryParams.page = 1;
this.tableQueryParams.search = '';
this.loadFormLog();
this.importDataForm = this.formBuilder.group({
csv: [''],
});
});
}
addDataField(type, value) {
this.transportFieldForm = this.formBuilder.group({});
const emptyValuesData = Object.fromEntries(Object.keys(this.dataFieldArray).map((key) => [key, '']));
const objectData = type === 1 ? value : emptyValuesData;
const { _id, status } = objectData, remainingData = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(objectData, ["_id", "status"]);
let formData = remainingData;
Object.keys(formData).forEach((key) => {
this.transportFieldForm.addControl(key, this.formBuilder.control(formData[key]));
});
this.isFieldEdited = type === 0 ? false : true;
if (type === 1) {
this.selectedID = value === null || value === void 0 ? void 0 : value._id;
}
this.modelService.open(this.AddDataModal, {
windowClass: 'modal-ui-fix right-align',
});
}
onPageChangeUsers(page) {
this.tableQueryParams.page = page;
this.loadFormLog();
}
onLimitChangeUsers() {
this.tableQueryParams.page = 1;
this.loadFormLog();
}
openImportData() {
this.modelService.open(this.importData, {
ariaLabelledBy: 'modal-basic-title',
});
}
checkForEmptyOrMissingValues(data) {
const invalidRows = data.filter((row, index) => {
return Object.values(row).some((value) => value === null && value === '' && value === undefined);
});
return invalidRows;
}
clickOnCancel() {
this.location.back();
}
// Convert CSV to JSON using PapaParse
importDataFromCSV(csvText) {
const parsedData = papaparse__WEBPACK_IMPORTED_MODULE_6__["parse"](csvText, {
header: true,
skipEmptyLines: true,
});
return parsedData.data;
}
importDatafile(files) {
this.fileToUpload = files.item(0);
}
uploadImportMasterData() {
var _a;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (!this.fileToUpload) {
alert('Please select a file first!');
return;
}
const csvText = yield this.fileToUpload.text();
const csvtoJSON = this.importDataFromCSV(csvText);
const emptyValueRow = this.checkForEmptyOrMissingValues(csvtoJSON);
if (emptyValueRow.length && this.buId.type !== 3 && this.buId.type !== 4) {
alert('Import file is not having proper records, please verify and try again');
return;
}
if (((_a = this.buId) === null || _a === void 0 ? void 0 : _a.value) === 'postalcode' &&
this.validatePostalCodes(csvtoJSON)) {
this.toastService.error('Some record may have invalid Postal Code', 'Error');
return true;
}
sweetalert2__WEBPACK_IMPORTED_MODULE_7___default.a.fire({
title: 'Are you sure?',
text: 'After importing the data, the previous data will be removed.',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
}).then((result) => {
var _a;
if (result.isConfirmed) {
this.customformService
.importCSVMasterData(csvtoJSON, (_a = this.buId) === null || _a === void 0 ? void 0 : _a.value)
.subscribe((res) => {
this.toastService.success(res.message);
this.modelService.dismissAll();
this.loadFormLog();
});
}
});
});
}
isValidPostalCode(code) {
return /^[0-9]{6}$/.test(code);
}
validatePostalCodes(array) {
const invalidEntry = array.find((item) => !this.isValidPostalCode(item.postalCode));
return invalidEntry;
}
downloadSampleCSV() {
var _a;
let defaultSample = [
this.dataFieldArray
];
defaultSample.forEach(item => delete item._id);
const jsonData = defaultSample;
const csvRows = [];
const headers = Object.keys(jsonData[0]);
csvRows.push(headers.join(','));
for (const row of jsonData) {
const values = headers.map((header) => JSON.stringify(row[header], (key, value) => value === null ? '' : value));
csvRows.push(values.join(','));
}
const csvString = csvRows.join('\n');
const blob = new Blob([csvString], { type: 'text/csv' });
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.setAttribute('href', url);
a.setAttribute('download', `${((_a = this.buId) === null || _a === void 0 ? void 0 : _a.type) === 1
? 'postalCode_sample.csv'
: 'waitingTime_sample.csv'}`);
a.click();
window.URL.revokeObjectURL(url);
}
onSubmitDataField() {
var _a, _b, _c, _d, _e;
const hasEmptyValue = Object.values((_a = this.transportFieldForm) === null || _a === void 0 ? void 0 : _a.value).some((value) => value === '');
if (hasEmptyValue) {
this.toastService.error('Please enter all the field data');
}
else {
if (!this.isFieldEdited) {
this.customformService
.createTransportMasterData((_b = this.transportFieldForm) === null || _b === void 0 ? void 0 : _b.value, (_c = this.buId) === null || _c === void 0 ? void 0 : _c.value)
.subscribe((data) => {
this.toastService.success('Data saved successfully');
this.modelService.dismissAll();
this.loadFormLog();
}, (error) => {
var _a, _b;
this.toastService.error((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
});
}
else {
if (!this.selectedID)
return;
this.customformService
.updateTransportMasterData((_d = this.transportFieldForm) === null || _d === void 0 ? void 0 : _d.value, this.selectedID, (_e = this.buId) === null || _e === void 0 ? void 0 : _e.value)
.subscribe((data) => {
this.toastService.success('Data updated successfully');
this.modelService.dismissAll();
this.loadFormLog();
}, (error) => {
var _a, _b;
this.toastService.error((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
});
}
}
}
loadFormLog() {
var _a;
if (!this.buId)
return;
this.isLoader = true;
this.tableQueryParams.limit = this.usersPTable.limit;
const subscribe = this.customformService
.getAdminTransportMasterData((_a = this.buId) === null || _a === void 0 ? void 0 : _a.value, this.tableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.usersPTable.data = response.data;
if (this.usersPTable.data.length > 0) {
this.dataFieldArray = this.usersPTable.data[0];
this.headerKey = Object.keys(this.usersPTable.data[0]);
this.headerKey = this.headerKey.filter((item) => item !== 'id' && item !== '_id');
}
this.usersPTable.total = response.total;
this.isLoader = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
this.isLoader = false;
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
refresh() {
this.loadFormLog();
}
viewClicked() {
if (this.buId) {
this.isView = true;
this.loadFormLog();
}
else {
this.toastService.warning('Please Select required field', 'Error');
}
}
exportmasterData() {
var _a;
this.isLoader = true;
this.customFromService
.exportTransportMasterData((_a = this.buId) === null || _a === void 0 ? void 0 : _a.value)
.subscribe((res) => {
var _a;
if (!(res === null || res === void 0 ? void 0 : res.result.length))
this.toastService.error('No data found!', 'Error');
this.exportToCsv(`admin_${(_a = this.buId) === null || _a === void 0 ? void 0 : _a.value}.csv`, res === null || res === void 0 ? void 0 : res.result);
this.isLoader = false;
}, (error) => {
this.isLoader = false;
});
}
exportToCsv(filename, rows) {
const csvData = this.convertToCsv(rows);
const blob = new Blob([csvData], { type: 'text/csv;charset=utf-8;' });
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.setAttribute('href', url);
a.setAttribute('download', filename);
a.click();
window.URL.revokeObjectURL(url);
}
convertToCsv(rows) {
if (rows.length === 0)
return '';
const headers = Object.keys(rows[0]);
const csvContent = rows.map((row) => {
return headers.map((header) => `"${row[header]}"`).join(',');
});
return [
headers.map((header) => `"${header}"`).join(','),
...csvContent,
].join('\n');
}
checkLogs() {
this.showLogs = true;
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
}
ManageTransportComponent.ɵfac = function ManageTransportComponent_Factory(t) { return new (t || ManageTransportComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_10__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_12__["Location"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_13__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_13__["ActivatedRoute"])); };
ManageTransportComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ManageTransportComponent, selectors: [["app-manage-transport"]], viewQuery: function ManageTransportComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c2, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_2__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddDataModal = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.importData = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { manageId: "manageId", editFormData: "editFormData", overViewData: "overViewData" }, outputs: { back: "back" }, decls: 6, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], [4, "ngIf"], ["AddDataModal", ""], ["importData", ""], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [2, "z-index", "999"], [1, "form-group"], [1, "d-block", "text-center"], ["bindLabel", "key", "placeholder", "Select/Search field item", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block", 3, "click"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [3, "value"], [3, "title"], ["style", "\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1050;\n background-color: rgba(0, 0, 0, 0.5);\n overflow: auto;\n ", 4, "ngIf"], [1, "card-header", "flexi-header", "d-flex", "justify-content-between"], [2, "align-self", "center"], [1, "btn", "btn-info", "mt-1", "mx-2", 3, "click"], [1, "btn", "btn-warning", "mt-1", "mx-2", 3, "click"], [1, "align-self-center", "btn", "btn-secondary", "mt-1", "mx-2", 3, "click"], ["class", "btn btn-primary mt-1 mx-2", 3, "click", 4, "ngIf"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], ["class", "table-responsive", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "700%"], [1, "innerDiv", 2, "position", "absolute", "top", "50%", "left", "50%"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "btn", "btn-primary", "mt-1", "mx-2", 3, "click"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], ["target", "_blank", 3, "href"], [1, "btn", "btn-add", "p-2", "m-1", 2, "width", "40px", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-pencil-square-o", "fa-lg"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "pt-4"], ["type", "button", "aria-label", "Close", 1, "btn", "no-border", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [3, "formGroup"], ["class", "col-md-12", 4, "ngFor", "ngForOf"], [1, "col-md-6"], ["type", "submit", 1, "btn", "btn-add", "btn-block", "p-1", "m-2", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "col-md-12"], [1, "font-weight-bold", "red-heading", 3, "for"], ["type", "text", "placeholder", "", 1, "form-control", 3, "formControlName", "id"], [1, "modal-header"], ["id", "modal-basic-title", 1, "modal-title"], [1, "d-flex"], [1, "btn", "btn-secondary", "mx-2", 3, "click"], ["ngbAutofocus", "", "type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "d-flex", "flex-wrap", 3, "formGroup", "ngSubmit"], [1, "bg-info", "header-buttons", "p-2", "mb-2", "rounded", "w-100"], ["type", "file", "name", "csv", "accept", ".csv", 1, "btn-info", "rounded", 3, "change"], ["type", "button", 1, "btn", "btn-success", "mx-auto", 3, "click"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-outline-dark", 3, "click"]], template: function ManageTransportComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ManageTransportComponent_div_0_Template, 15, 7, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ManageTransportComponent_div_1_Template, 42, 21, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ManageTransportComponent_ng_template_2_Template, 23, 15, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ManageTransportComponent_ng_template_4_Template, 20, 1, "ng-template", null, 3, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_15__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["DefaultValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_2__["SortableHeader"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgForm"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["UpperCasePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["KeyValuePipe"]], styles: [".forms-manage[_ngcontent-%COMP%] .box-item[_ngcontent-%COMP%] .box-item-status[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] {\n padding: 0 1.4rem;\n position: relative;\n}\n\n.forms-manage[_ngcontent-%COMP%] .box-item[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0 0.7rem;\n}\n\n.forms-manage[_ngcontent-%COMP%] {\n margin-bottom: 3rem;\n max-width: 100%;\n overflow-x: auto;\n}\n\n.form-group.hidden[_ngcontent-%COMP%] {\n width: 0;\n margin: 0;\n border: none;\n padding: 0;\n}\n\n.custom-day[_ngcontent-%COMP%] {\n text-align: center;\n padding: 0.185rem 0.25rem;\n display: inline-block;\n height: 2rem;\n width: 2rem;\n}\n\n.custom-day.focused[_ngcontent-%COMP%] {\n background-color: #e6e6e6;\n}\n\n.custom-day.range[_ngcontent-%COMP%], .custom-day[_ngcontent-%COMP%]:hover {\n background-color: #0275d8;\n color: white;\n}\n\n.custom-day.faded[_ngcontent-%COMP%] {\n background-color: rgba(2, 117, 216, 0.5);\n}\n\n.status-workflow-class[_ngcontent-%COMP%] {\n display: inline-block;\n padding: 2px 10px 2px 10px;\n word-break: break-all;\n color: #e6e6e6;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYWRtaW4vdXNlcnMvbWFuYWdlLXRyYW5zcG9ydC9tYW5hZ2UtdHJhbnNwb3J0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsaUJBQUE7RUFDQSxrQkFBQTtBQUNGOztBQUVBO0VBQ0Usc0JBQUE7RUFDQSxpQkFBQTtBQUNGOztBQUVBO0VBQ0UsbUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFHQTtFQUNFLFFBQUE7RUFDQSxTQUFBO0VBQ0EsWUFBQTtFQUNBLFVBQUE7QUFBRjs7QUFFQTtFQUNFLGtCQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFlBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBQ0E7RUFDRSx5QkFBQTtBQUVGOztBQUFBO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0FBR0Y7O0FBREE7RUFDRSx3Q0FBQTtBQUlGOztBQUZBO0VBQ0UscUJBQUE7RUFDQSwwQkFBQTtFQUNBLHFCQUFBO0VBQ0EsY0FBQTtBQUtGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvYWRtaW4vdXNlcnMvbWFuYWdlLXRyYW5zcG9ydC9tYW5hZ2UtdHJhbnNwb3J0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZvcm1zLW1hbmFnZSAuYm94LWl0ZW0gLmJveC1pdGVtLXN0YXR1cyAuc3RhdHVzIHtcbiAgcGFkZGluZzogMCAxLjRyZW07XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgLy8gbWluLXdpZHRoOiA5cmVtO1xufVxuLmZvcm1zLW1hbmFnZSAuYm94LWl0ZW0ge1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBwYWRkaW5nOiAwIDAuN3JlbTtcbn1cblxuLmZvcm1zLW1hbmFnZSB7XG4gIG1hcmdpbi1ib3R0b206IDNyZW07XG4gIG1heC13aWR0aDogMTAwJTtcbiAgb3ZlcmZsb3cteDogYXV0bztcbn1cblxuXG4uZm9ybS1ncm91cC5oaWRkZW4ge1xuICB3aWR0aDogMDtcbiAgbWFyZ2luOiAwO1xuICBib3JkZXI6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG59XG4uY3VzdG9tLWRheSB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgcGFkZGluZzogMC4xODVyZW0gMC4yNXJlbTtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBoZWlnaHQ6IDJyZW07XG4gIHdpZHRoOiAycmVtO1xufVxuLmN1c3RvbS1kYXkuZm9jdXNlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNlNmU2ZTY7XG59XG4uY3VzdG9tLWRheS5yYW5nZSwgLmN1c3RvbS1kYXk6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2IoMiwgMTE3LCAyMTYpO1xuICBjb2xvcjogd2hpdGU7XG59XG4uY3VzdG9tLWRheS5mYWRlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMiwgMTE3LCAyMTYsIDAuNSk7XG59XG4uc3RhdHVzLXdvcmtmbG93LWNsYXNze1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIHBhZGRpbmc6IDJweCAxMHB4IDJweCAxMHB4O1xuICB3b3JkLWJyZWFrOiBicmVhay1hbGw7XG4gIGNvbG9yOiAjZTZlNmU2O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ManageTransportComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-manage-transport',
templateUrl: './manage-transport.component.html',
styleUrls: ['./manage-transport.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__["CustomFormService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_10__["FormBuilder"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbModal"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__["CustomFormService"] }, { type: _angular_common__WEBPACK_IMPORTED_MODULE_12__["Location"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_13__["Router"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_13__["ActivatedRoute"] }]; }, { sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['sidemenu']
}], back: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], AddDataModal: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddDataModal', { static: true }]
}], importData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['importData', { static: true }]
}], manageId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], editFormData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], overViewData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_2__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "PxIJ":
/*!****************************************************!*\
!*** ./src/app/users/service/auth/auth.service.ts ***!
\****************************************************/
/*! exports provided: AuthService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AuthService", function() { return AuthService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _core_service_storage_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "tyNb");
class AuthService {
constructor(http, storageService, router) {
this.http = http;
this.storageService = storageService;
this.router = router;
this.JWT_TOKEN = 'usersToken';
this.isAuthenticated = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](false);
this.isUserVerified = new rxjs__WEBPACK_IMPORTED_MODULE_4__["BehaviorSubject"](null);
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].baseUrl;
this.loadToken();
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
loadToken() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const token = yield this.storageService.getByKey(this.JWT_TOKEN);
if (token) {
this.isAuthenticated.next(true);
}
else {
this.isAuthenticated.next(false);
const company = yield this.loadCompany();
this.router.navigate(['/users/login/', company]);
}
});
}
login(payload) {
return this.http.post(`${this.baseUrl}/login`, payload).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])((data) => {
var _a, _b, _c;
const item = { key: this.JWT_TOKEN, value: (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.token };
const item2 = { key: 'staffId', value: (_c = (_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.staffId };
this.storageService.addItem(item);
this.storageService.addItem(item2);
const tokens = {
accessToken: data.data.token,
refreshToken: data.data.refreshToken,
};
localStorage.setItem('loggedInUserAllTokens', JSON.stringify(tokens));
this.isAuthenticated.next(true);
}));
}
resetTokens(payload) {
return this.http.post(`${this.baseUrl}/login/createAccessToken`, payload);
}
pwdChangeDuration() {
return this.http.get(`${this.baseUrl}/login/pwdChangeDuration`).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
}
requestForgetPassword(payload) {
return this.http.post(`${this.baseUrl}/login/requestOtp`, payload, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])(res => res));
}
verifyOTP(payload) {
return this.http
.post(`${this.baseUrl}/login/verifyOtp`, payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
}
profileInit() {
return this.http.get(`${this.baseUrl}/user/profile-init/`).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
// .subscribe((res) => {
// this.isUserVerified.next(false);
// });
}
updateProfileInit(type, data) {
return this.http
.post(`${this.baseUrl}/user/profile-init/${type}/`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
}
otpVerify(payload) {
return this.http
.post(`${this.baseUrl}/user/verifyOtp/`, payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
}
sendSupportQuery(data) {
return this.http
.post(`${this.baseUrl}/user/sendFeedback/`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
}
restPassword(payload) {
return this.http
.post(`${this.baseUrl}/login/resetPassword/`, payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
}
resetPasswordFromProfile(data) {
return this.http.post(`${this.baseUrl}/user/resetPasswordFromProfile/`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
}
fetchCompanyId(companyName) {
return this.http
.get(`${this.baseUrl}/login/getCompany/${companyName}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["tap"])((data) => {
const item1 = {
key: 'companyName',
value: data.data.name,
};
const item2 = { key: 'companyId', value: data.data._id };
this.storageService.addItem(item1);
this.storageService.addItem(item2);
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["map"])((res) => res));
}
loadCompany() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
return yield this.storageService.getByKey('urlCompanyName');
});
}
logout() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const company = yield this.loadCompany();
this.storageService.removeByKey(this.JWT_TOKEN);
this.isAuthenticated.next(false);
this.router.navigate(['/users/login/', company]);
});
}
}
AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_core_service_storage_service__WEBPACK_IMPORTED_MODULE_6__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"])); };
AuthService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AuthService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }, { type: _core_service_storage_service__WEBPACK_IMPORTED_MODULE_6__["StorageService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"] }]; }, null); })();
/***/ }),
/***/ "Q/FD":
/*!**************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/view-booking/booking/booking.component.ts ***!
\**************************************************************************************************/
/*! exports provided: BookingComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BookingComponent", function() { return BookingComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function BookingComponent_button_15_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BookingComponent_button_15_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const i_r7 = ctx.$implicit; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.getSelectedWeek1(i_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r7 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selected", i_r7 === ctx_r0.selectedDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r7.day, " ");
} }
function BookingComponent_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div");
} }
function BookingComponent_ng_template_17_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r14 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 2, j_r14.skillSetId.name), " > ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 4, j_r14.name), " ");
} }
function BookingComponent_ng_template_17_div_0_p_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, i_r11.splitShiftStartTime, "HH:mm"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, i_r11.splitShiftEndTime, "HH:mm"), " ");
} }
function BookingComponent_ng_template_17_div_0_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BookingComponent_ng_template_17_div_0_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r17); const i_r11 = ctx.$implicit; const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r16.getListShift(i_r11); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h6", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, BookingComponent_ng_template_17_div_0_div_4_Template, 4, 6, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, BookingComponent_ng_template_17_div_0_p_10_Template, 4, 8, "p", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r11 = ctx.$implicit;
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selectedShift", i_r11 === ctx_r10.selectedShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r11.confirmedStaffs.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", i_r11.subSkillSets);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 7, i_r11.startTime, "HH:mm"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](9, 10, i_r11.endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r11.isSplitShift);
} }
function BookingComponent_ng_template_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, BookingComponent_ng_template_17_div_0_Template, 11, 13, "div", 14);
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.dayShifts);
} }
function BookingComponent_ng_template_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "No items found");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BookingComponent_div_22_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r21 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", i_r21[0], " > ", i_r21[1], " ");
} }
function BookingComponent_div_22_div_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BookingComponent_div_22_div_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r22 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", i_r22[0], " > ", i_r22[1], " ");
} }
function BookingComponent_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "img", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h4", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Skillsets & Speciality ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, BookingComponent_div_22_div_12_Template, 2, 2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Phone");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Shift Details");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "form", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](34, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](39, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](40, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](41, BookingComponent_div_22_div_41_Template, 3, 0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, " Skillsets & Speciality ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, BookingComponent_div_22_div_45_Template, 2, 2, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "Reports To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](49, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r6.PersonalData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", (ctx_r6.selectedShift.confirmedStaffs == null ? null : ctx_r6.selectedShift.confirmedStaffs.profilePicture) != "" ? ctx_r6.selectedShift.confirmedStaffs.profilePicture : "../assets/images/user1.png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r6.username);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r6.usernameId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r6.skillLabel);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r6.ShiftForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.isSplitTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r6.skillLabel);
} }
class BookingComponent {
constructor(fb) {
this.fb = fb;
this.headerData = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.day = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.cancel = false;
this.dayArr = [
{ count: 0, day: "M" },
{ count: 1, day: "T" },
{ count: 2, day: "W" },
{ count: 3, day: "T" },
{ count: 4, day: "F" },
{ count: 5, day: "S" },
{ count: 6, day: "S" },
];
this.weekDates = [];
this.skillLabel = [];
this.hideBtn = true;
}
ngOnInit() {
this.selectedDay = this.dayArr[0];
this.PersonalData = this.fb.group({
phone: [""],
email: [""],
});
this.ShiftForm = this.fb.group({
buName: [""],
date: [""],
startTime: [""],
endTime: [""],
splitstartTime: [""],
splitendTime: [""],
reportLocationId: [""],
staffNeedCount: [""],
backUpStaffNeedCount: [""],
});
this.createDays();
this.getSelectedWeek1(this.selectedDay);
this.getPage();
}
cancelShift(val) {
this.cancel = val;
}
getPage() {
if (this.page == "view") {
this.hideBtn = false;
}
}
createDays() {
for (var i = 0; i < 7; i++) {
var j = moment__WEBPACK_IMPORTED_MODULE_1__(this.week);
this.weekDates.push(j.add(i, "days").format("DD-MM-YYYY"));
}
}
getSelectedWeek1(day) {
var _a;
this.day.emit(day);
this.selectedDay = day;
for (var i = 0; i < 7; i++) {
if (this.selectedDay.count == i && this.shift.hasOwnProperty('data')) {
if (this.shift.data.hasOwnProperty('list') && Object.keys(this.shift.data.list).length > 0) {
if (Object.keys(this.shift.data.list).includes(this.weekDates[i])) {
this.dayShifts = (_a = this.shift) === null || _a === void 0 ? void 0 : _a.data.list[this.weekDates[i]];
this.getListShift(this.dayShifts[0]);
}
else {
this.dayShifts = [];
}
}
else {
this.dayShifts = [];
this.skillLabel = [];
this.ShiftForm.reset();
}
}
}
}
getListShift(i) {
var _a, _b, _c, _d;
this.selectedShift = i;
this.skillLabel = [];
this.listShift = i;
this.username = i.confirmedStaffs.name;
this.usernameId = i.confirmedStaffs.staffId;
this.isSplitTime = i.isSplitShift;
if (i.isSplitShift) {
this.ShiftForm.patchValue({
splitstartTime: moment__WEBPACK_IMPORTED_MODULE_1__(i.splitShiftStartTime).format("HH:mm"),
splitendTime: moment__WEBPACK_IMPORTED_MODULE_1__(i.splitShiftEndTime).format("HH:mm"),
});
}
this.PersonalData.patchValue({
phone: i.confirmedStaffs.contactNumber,
email: i.confirmedStaffs.email,
});
this.ShiftForm.patchValue({
buName: this.buId.orgName,
date: moment__WEBPACK_IMPORTED_MODULE_1__(i.date).format("DD MMM YYYY"),
startTime: moment__WEBPACK_IMPORTED_MODULE_1__(i.startTime).format("HH:mm"),
endTime: moment__WEBPACK_IMPORTED_MODULE_1__(i.endTime).format("HH:mm"),
// reportLocationId: i.reportLocationId.name,
staffNeedCount: i.staffNeedCount,
backUpStaffNeedCount: i.backUpStaffNeedCount,
});
if (i.reportLocationId != null) {
this.ShiftForm.patchValue({
reportLocationId: (_a = i.reportLocationId) === null || _a === void 0 ? void 0 : _a.name,
});
}
else {
this.ShiftForm.patchValue({
reportLocationId: (_b = i.geoReportingLocation) === null || _b === void 0 ? void 0 : _b.name,
});
}
if ((_c = i.subSkillSets) === null || _c === void 0 ? void 0 : _c.length) {
i.subSkillSets.forEach((element) => {
this.skillLabel.push([element.skillSetId.name, element.name]);
});
}
else if ((_d = i.mainSkillSets) === null || _d === void 0 ? void 0 : _d.length) {
i.mainSkillSets.forEach((element) => {
this.skillLabel.push([element.name, '_']);
});
}
}
}
BookingComponent.ɵfac = function BookingComponent_Factory(t) { return new (t || BookingComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"])); };
BookingComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: BookingComponent, selectors: [["app-booking"]], inputs: { shift: "shift", week: "week", buId: "buId", page: "page" }, outputs: { headerData: "headerData", day: "day" }, decls: 23, vars: 6, consts: [[1, "card"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body"], [1, "row"], [1, "col-md-6"], [1, "form-group"], ["for", "", 1, "font-weight-500"], ["class", "dayButton", 3, "selected", "click", 4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["thenBlock", ""], ["elseBlock", ""], ["class", "card", 4, "ngIf"], [1, "dayButton", 3, "click"], ["class", "shiftTab my-2 rounded", 3, "selectedShift", "click", 4, "ngFor", "ngForOf"], [1, "shiftTab", "my-2", "rounded", 3, "click"], [1, "d-flex", "justify-content-between"], ["class", "text-secondary", 4, "ngFor", "ngForOf"], [1, "text-secondary"], ["class", "m-0", 4, "ngIf"], [1, "text-muted"], [3, "formGroup"], [1, "d-flex", "mb-3"], ["onerror", "this.src='./assets/images/user1.png';", 1, "user-image", "rounded", 3, "src"], [1, "align-self-center", "ml-4"], [1, "font-weight-bold", "m-0"], [1, "font-weight-500", "m-0", "text-muted"], [1, "form-input", "no-padding", "mb-2"], ["class", "bg-theme d-inline-block mb-2 mr-2 p-2 rounded", 4, "ngFor", "ngForOf"], [1, "row", "mb-3", "mt-2", "col-md-12"], [1, "form-input", "mb-2"], ["formControlName", "phone", "readonly", "", 1, "form-control"], [1, "row", "mb-3", "col-md-12"], ["formControlName", "email", "readonly", "", 1, "form-control"], [1, "card-header", "bg-theme"], ["formControlName", "buName", "readonly", "", 1, "form-control"], ["formControlName", "date", "readonly", "", 1, "form-control"], [1, "col-md-12", "no-padding", "flexDisplay", "mb-1"], ["formControlName", "startTime", "readonly", "", 1, "form-control", "mr-2"], ["formControlName", "endTime", "readonly", "", 1, "form-control", "ml-2"], ["class", "col-md-12 no-padding flexDisplay", 4, "ngIf"], [1, "form-input", "col-md-12", "no-padding", "mb-2"], ["class", "redButton mr-2", 4, "ngFor", "ngForOf"], ["formControlName", "reportLocationId", "readonly", "", 1, "form-control"], [1, "bg-theme", "d-inline-block", "mb-2", "mr-2", "p-2", "rounded"], [1, "col-md-12", "no-padding", "flexDisplay"], ["formControlName", "splitstartTime", "readonly", "", 1, "form-control", "mr-2"], ["formControlName", "splitendTime", "readonly", "", 1, "form-control", "ml-2"], [1, "redButton", "mr-2"]], template: function BookingComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "VIEW BOOKING");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Select Day");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, BookingComponent_button_15_Template, 2, 3, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, BookingComponent_div_16_Template, 1, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, BookingComponent_ng_template_17_Template, 1, 1, "ng-template", null, 10, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, BookingComponent_ng_template_19_Template, 2, 0, "ng-template", null, 11, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, BookingComponent_div_22_Template, 50, 8, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](18);
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.buId.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.dayArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.dayShifts == null ? null : ctx.dayShifts.length) > 0)("ngIfThen", _r2)("ngIfElse", _r4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.dayShifts == null ? null : ctx.dayShifts.length) > 0);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__["NativeElementInjectorDirective"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["TitleCasePipe"]], styles: [".dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-right: 10px;\n font-weight: 500;\n color: #942a57 !important;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover, .selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #a42138;\n color: white !important;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover {\n opacity: 0.8;\n}\n\n.selected[_ngcontent-%COMP%] {\n opacity: 1 !important;\n}\n\n.input[_ngcontent-%COMP%] {\n margin-left: 10px;\n font-weight: 600;\n color: #9f9f9f;\n}\n\n.flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.redInput[_ngcontent-%COMP%] {\n background: #a42138;\n color: #ffffff;\n padding: 2px 10px;\n border-radius: 20px;\n letter-spacing: 1px;\n text-align: center;\n width: auto;\n}\n\n.shiftTab[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0.5rem 0.8rem;\n}\n\n.shiftTab[_ngcontent-%COMP%]:hover {\n background-color: #f2f2f2;\n cursor: pointer;\n}\n\n.shiftTab.selectedShift[_ngcontent-%COMP%] {\n background-color: #721c2414;\n cursor: pointer;\n border: 1px solid #a73535;\n border-radius: 4px;\n}\n\n.paddingHorizontal[_ngcontent-%COMP%] {\n padding: 0.5rem 0;\n}\n\n.body[_ngcontent-%COMP%] {\n justify-content: space-evenly;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.form-input[_ngcontent-%COMP%] {\n font-weight: 500;\n}\n\n.form-control[_ngcontent-%COMP%] {\n font-size: 1rem;\n color: black;\n}\n\n.redButton[_ngcontent-%COMP%] {\n background: #a42138;\n border: none;\n color: #ffffff;\n letter-spacing: 1px;\n width: auto;\n padding: 0.5rem;\n}\n\n.show-modal[_ngcontent-%COMP%] {\n display: block;\n}\n\n.modal-footer[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n}\n\n.footer-button[_ngcontent-%COMP%] {\n width: 4rem;\n}\n\n.greenButton[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #5cb85c;\n border: none;\n color: #ffffff;\n letter-spacing: 1px;\n width: auto;\n padding: 0.5rem;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background: #a42138;\n color: #fff;\n}\n\n.profileImage[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n max-width: 50px;\n max-height: 50px;\n margin-bottom: 8px;\n border-radius: 50%;\n padding: 2px;\n}\n\n.user-image[_ngcontent-%COMP%] {\n width: 100px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvdmlldy1ib29raW5nL2Jvb2tpbmcvYm9va2luZy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGNBQUE7RUFDQSxhQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EseUJBQUE7RUFDQSw2QkFBQTtFQUNBLGtCQUFBO0VBQ0EsdUJBQUE7QUFDRjs7QUFFQTs7RUFFRSxhQUFBO0VBQ0EseUJBQUE7RUFDQSx1QkFBQTtBQUNGOztBQUVBO0VBQ0UsWUFBQTtBQUNGOztBQUVBO0VBQ0UscUJBQUE7QUFDRjs7QUFDQTtFQUNFLGlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0FBRUY7O0FBQUE7RUFDRSxhQUFBO0VBQ0EsOEJBQUE7QUFHRjs7QUFEQTtFQUNFLG1CQUFBO0VBQ0EsY0FBQTtFQUNBLGlCQUFBO0VBQ0EsbUJBQUE7RUFDQSxtQkFBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtBQUlGOztBQUZBO0VBQ0Usc0JBQUE7RUFDQSxzQkFBQTtBQUtGOztBQUhBO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0FBTUY7O0FBSEE7RUFDRSwyQkFBQTtFQUNBLGVBQUE7RUFDQSx5QkFBQTtFQUNBLGtCQUFBO0FBTUY7O0FBSEE7RUFDRSxpQkFBQTtBQU1GOztBQUpBO0VBQ0UsNkJBQUE7QUFPRjs7QUFMQTtFQUNFLFVBQUE7QUFRRjs7QUFOQTtFQUNFLGdCQUFBO0FBU0Y7O0FBUEE7RUFDRSxlQUFBO0VBQ0EsWUFBQTtBQVVGOztBQVJBO0VBQ0UsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7QUFXRjs7QUFUQTtFQUNFLGNBQUE7QUFZRjs7QUFUQTtFQUNFLGFBQUE7RUFDQSx1QkFBQTtBQVlGOztBQVRBO0VBQ0UsV0FBQTtBQVlGOztBQVZBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0FBYUY7O0FBVkE7RUFDRSxtQkFBQTtFQUNBLFdBQUE7QUFhRjs7QUFURTtFQUNFLHNCQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7QUFZSjs7QUFSQTtFQUNFLFlBQUE7QUFXRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3ZpZXctYm9va2luZy9ib29raW5nL2Jvb2tpbmcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZGF5QnV0dG9uIHtcbiAgaGVpZ2h0OiAyLjVyZW07XG4gIHdpZHRoOiAyLjVyZW07XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBjb2xvcjogIzk0MmE1NyAhaW1wb3J0YW50O1xuICBib3JkZXI6IDFweCBzb2xpZCB0cmFuc3BhcmVudDtcbiAgYm9yZGVyLWNvbG9yOiAjY2NjO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbn1cblxuLmRheUJ1dHRvbjpob3Zlcixcbi5zZWxlY3RlZCB7XG4gIG91dGxpbmU6IG5vbmU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xufVxuXG4uZGF5QnV0dG9uOmhvdmVyIHtcbiAgb3BhY2l0eTogMC44O1xufVxuXG4uc2VsZWN0ZWQge1xuICBvcGFjaXR5OiAxICFpbXBvcnRhbnQ7XG59XG4uaW5wdXQge1xuICBtYXJnaW4tbGVmdDogMTBweDtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgY29sb3I6ICM5ZjlmOWY7XG59XG4uZmxleERpc3BsYXkge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG4ucmVkSW5wdXQge1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZmZmZjtcbiAgcGFkZGluZzogMnB4IDEwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDIwcHg7XG4gIGxldHRlci1zcGFjaW5nOiAxcHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgd2lkdGg6IGF1dG87XG59XG4uc2hpZnRUYWIge1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBwYWRkaW5nOiAwLjVyZW0gMC44cmVtO1xufVxuLnNoaWZ0VGFiOmhvdmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2YyZjJmMjtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uc2hpZnRUYWIuc2VsZWN0ZWRTaGlmdCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICM3MjFjMjQxNDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBib3JkZXI6IDFweCBzb2xpZCAjYTczNTM1O1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG59XG5cbi5wYWRkaW5nSG9yaXpvbnRhbCB7XG4gIHBhZGRpbmc6IDAuNXJlbSAwO1xufVxuLmJvZHkge1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWV2ZW5seTtcbn1cbi5uby1wYWRkaW5nIHtcbiAgcGFkZGluZzogMDtcbn1cbi5mb3JtLWlucHV0IHtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbn1cbi5mb3JtLWNvbnRyb2wge1xuICBmb250LXNpemU6IDFyZW07XG4gIGNvbG9yOiBibGFjaztcbn1cbi5yZWRCdXR0b24ge1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBib3JkZXI6IG5vbmU7XG4gIGNvbG9yOiAjZmZmZmZmO1xuICBsZXR0ZXItc3BhY2luZzogMXB4O1xuICB3aWR0aDogYXV0bztcbiAgcGFkZGluZzogMC41cmVtO1xufVxuLnNob3ctbW9kYWwge1xuICBkaXNwbGF5OiBibG9jaztcbn1cblxuLm1vZGFsLWZvb3RlciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xufVxuXG4uZm9vdGVyLWJ1dHRvbiB7XG4gIHdpZHRoOiA0cmVtO1xufVxuLmdyZWVuQnV0dG9uIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICM1Y2I4NWM7XG4gIGJvcmRlcjogbm9uZTtcbiAgY29sb3I6ICNmZmZmZmY7XG4gIGxldHRlci1zcGFjaW5nOiAxcHg7XG4gIHdpZHRoOiBhdXRvO1xuICBwYWRkaW5nOiAwLjVyZW07XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuXG4ucHJvZmlsZUltYWdlIHtcbiAgaW1nIHtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgIG1heC13aWR0aDogNTBweDtcbiAgICBtYXgtaGVpZ2h0OiA1MHB4O1xuICAgIG1hcmdpbi1ib3R0b206IDhweDtcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgcGFkZGluZzogMnB4O1xuICB9XG59XG5cbi51c2VyLWltYWdlIHtcbiAgd2lkdGg6IDEwMHB4O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BookingComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: "app-booking",
templateUrl: "./booking.component.html",
styleUrls: ["./booking.component.scss"],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }]; }, { shift: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], week: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], buId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], page: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], headerData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], day: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "QR1U":
/*!**********************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-shift/assign-shift/assign-shift.component.ts ***!
\**********************************************************************************************************/
/*! exports provided: AssignShiftComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AssignShiftComponent", function() { return AssignShiftComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
const _c0 = ["AddCreateDay"];
function AssignShiftComponent_div_16_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_16_Template_div_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.changeWeek("Prev"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "i", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " chevron_left ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_16_Template_div_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.changeWeek("Nxt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "i", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " chevron_right ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.currWeek, " ");
} }
const _c1 = function () { return { width: "calc(80.4%)", "border-radius": "6px", height: "36px", margin: "10px", "margin-top": "0", "margin-left": "0", display: "block" }; };
function AssignShiftComponent_ngx_skeleton_loader_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 48);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c1));
} }
function AssignShiftComponent_ng_select_22_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-select", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AssignShiftComponent_ng_select_22_Template_ng_select_ngModelChange_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r21.subSkillFilter = $event; })("change", function AssignShiftComponent_ng_select_22_Template_ng_select_change_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r22); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r23.onSubSkillFilter(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r2.skillsetArray)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r2.subSkillFilter);
} }
function AssignShiftComponent_span_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 50);
} }
function AssignShiftComponent_span_37_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r4.weekDateArr[0], " ");
} }
function AssignShiftComponent_span_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r5.weekDateArr[1], " ");
} }
function AssignShiftComponent_span_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r6.weekDateArr[2], " ");
} }
function AssignShiftComponent_span_49_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r7.weekDateArr[3], " ");
} }
function AssignShiftComponent_span_53_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r8.weekDateArr[4], " ");
} }
function AssignShiftComponent_span_57_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r9.weekDateArr[5], " ");
} }
function AssignShiftComponent_span_61_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r10.weekDateArr[6], " ");
} }
const _c2 = function () { return { "border-radius": "6px", height: "100px", width: "124px", margin: "0 2px 2px", border: "1px solid white" }; };
function AssignShiftComponent_ngx_skeleton_loader_62_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 51);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c2));
} }
function AssignShiftComponent_div_63_div_1_i_11_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_i_11_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r49.deleteShiftAll(x_r26); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_i_16_Template(rf, ctx) { if (rf & 1) {
const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_i_16_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r53); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r52.onCreateDay(ctx_r52.assignShifts == null ? null : ctx_r52.assignShifts.Monday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_17_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "OFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_17_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "REST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, ctx_r58.assignShifts == null ? null : ctx_r58.assignShifts.Monday[x_r26] == null ? null : ctx_r58.assignShifts.Monday[x_r26].splitStartTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, ctx_r58.assignShifts == null ? null : ctx_r58.assignShifts.Monday[x_r26] == null ? null : ctx_r58.assignShifts.Monday[x_r26].splitEndTime, "HH:mm"), " ");
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r64 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", s_r64.skillSetId.name, " > ", s_r64.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_17_div_3_div_6_div_1_Template, 2, 2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r59.assignShifts == null ? null : ctx_r59.assignShifts.Monday[x_r26] == null ? null : ctx_r59.assignShifts.Monday[x_r26].subSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r67 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", s_r67.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_17_div_3_div_7_div_1_Template, 2, 1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r60.assignShifts == null ? null : ctx_r60.assignShifts.Monday[x_r26] == null ? null : ctx_r60.assignShifts.Monday[x_r26].mainSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_10_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_10_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_17_div_3_div_10_span_2_Template, 2, 0, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_17_div_3_div_10_span_3_Template, 2, 0, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, AssignShiftComponent_div_63_div_1_div_17_div_3_div_10_span_4_Template, 2, 0, "span", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx_r61.assignShifts == null ? null : ctx_r61.assignShifts.Monday[x_r26] == null ? null : ctx_r61.assignShifts.Monday[x_r26].isRecallAccepted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
} }
function AssignShiftComponent_div_63_div_1_div_17_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, AssignShiftComponent_div_63_div_1_div_17_div_3_div_5_Template, 4, 8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, AssignShiftComponent_div_63_div_1_div_17_div_3_div_6_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AssignShiftComponent_div_63_div_1_div_17_div_3_div_7_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AssignShiftComponent_div_63_div_1_div_17_div_3_div_10_Template, 5, 4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index;
const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 7, ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].startTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 10, ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].subSkillSets.length) && ctx_r57.tier == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].mainSkillSets) && ctx_r57.tier == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].reportLocationId) != null ? ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].reportLocationId == null ? null : ctx_r57.assignShifts.Monday[x_r26].reportLocationId.name : ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].geoReportingLocation == null ? null : ctx_r57.assignShifts.Monday[x_r26].geoReportingLocation.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r57.assignShifts == null ? null : ctx_r57.assignShifts.Monday[x_r26] == null ? null : ctx_r57.assignShifts.Monday[x_r26].isRecalled);
} }
function AssignShiftComponent_div_63_div_1_div_17_Template(rf, ctx) { if (rf & 1) {
const _r75 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_17_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r75); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r74.onCreateDay(ctx_r74.assignShifts == null ? null : ctx_r74.assignShifts.Monday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_17_span_1_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_17_span_2_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_17_div_3_Template, 11, 13, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r29.assignShifts == null ? null : ctx_r29.assignShifts.Monday[x_r26] == null ? null : ctx_r29.assignShifts.Monday[x_r26].isOff) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r29.assignShifts == null ? null : ctx_r29.assignShifts.Monday[x_r26] == null ? null : ctx_r29.assignShifts.Monday[x_r26].isRest) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r29.assignShifts == null ? null : ctx_r29.assignShifts.Monday[x_r26] == null ? null : ctx_r29.assignShifts.Monday[x_r26].endTime) != null);
} }
function AssignShiftComponent_div_63_div_1_div_18_i_1_Template(rf, ctx) { if (rf & 1) {
const _r82 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_18_i_1_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r82); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r81.limit(ctx_r81.assignShifts == null ? null : ctx_r81.assignShifts.Monday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " error_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_18_i_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done_all ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_18_i_3_Template(rf, ctx) { if (rf & 1) {
const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_18_i_3_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r85); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r84.showMsg(ctx_r84.assignShifts == null ? null : ctx_r84.assignShifts.Monday[x_r26] == null ? null : ctx_r84.assignShifts.Monday[x_r26].shiftChangeRequestMessage); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " chat_bubble_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_18_Template(rf, ctx) { if (rf & 1) {
const _r88 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_18_i_1_Template, 2, 0, "i", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_18_i_2_Template, 2, 0, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_18_i_3_Template, 2, 0, "i", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_18_Template_i_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r88); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r87.deleteShift(ctx_r87.assignShifts == null ? null : ctx_r87.assignShifts.Monday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("justify-content-between", (ctx_r30.assignShifts == null ? null : ctx_r30.assignShifts.Monday[x_r26] == null ? null : ctx_r30.assignShifts.Monday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r30.assignShifts == null ? null : ctx_r30.assignShifts.Monday[x_r26] == null ? null : ctx_r30.assignShifts.Monday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r30.assignShifts == null ? null : ctx_r30.assignShifts.Monday[x_r26] == null ? null : ctx_r30.assignShifts.Monday[x_r26].shiftRead) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r30.assignShifts == null ? null : ctx_r30.assignShifts.Monday[x_r26] == null ? null : ctx_r30.assignShifts.Monday[x_r26].shiftChangeRequestMessage) != "");
} }
function AssignShiftComponent_div_63_div_1_i_20_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_i_20_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r92); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r91.onCreateDay(ctx_r91.assignShifts == null ? null : ctx_r91.assignShifts.Tuesday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_21_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "OFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_21_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "REST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, ctx_r97.assignShifts == null ? null : ctx_r97.assignShifts.Tuesday[x_r26] == null ? null : ctx_r97.assignShifts.Tuesday[x_r26].splitStartTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, ctx_r97.assignShifts == null ? null : ctx_r97.assignShifts.Tuesday[x_r26] == null ? null : ctx_r97.assignShifts.Tuesday[x_r26].splitEndTime, "HH:mm"), " ");
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r103 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", s_r103.skillSetId.name, " > ", s_r103.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_21_div_3_div_6_div_1_Template, 2, 2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r98.assignShifts == null ? null : ctx_r98.assignShifts.Tuesday[x_r26] == null ? null : ctx_r98.assignShifts.Tuesday[x_r26].subSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r106 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", s_r106.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_21_div_3_div_7_div_1_Template, 2, 1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r99.assignShifts == null ? null : ctx_r99.assignShifts.Tuesday[x_r26] == null ? null : ctx_r99.assignShifts.Tuesday[x_r26].mainSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_10_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_10_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_21_div_3_div_10_span_2_Template, 2, 0, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_21_div_3_div_10_span_3_Template, 2, 0, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, AssignShiftComponent_div_63_div_1_div_21_div_3_div_10_span_4_Template, 2, 0, "span", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx_r100.assignShifts == null ? null : ctx_r100.assignShifts.Tuesday[x_r26] == null ? null : ctx_r100.assignShifts.Tuesday[x_r26].isRecallAccepted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
} }
function AssignShiftComponent_div_63_div_1_div_21_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, AssignShiftComponent_div_63_div_1_div_21_div_3_div_5_Template, 4, 8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, AssignShiftComponent_div_63_div_1_div_21_div_3_div_6_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AssignShiftComponent_div_63_div_1_div_21_div_3_div_7_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AssignShiftComponent_div_63_div_1_div_21_div_3_div_10_Template, 5, 4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index;
const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 7, ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].startTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 10, ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].subSkillSets.length) && ctx_r96.tier == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].mainSkillSets) && ctx_r96.tier == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].reportLocationId) != null ? ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].reportLocationId == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].reportLocationId.name : ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].geoReportingLocation == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].geoReportingLocation.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r96.assignShifts == null ? null : ctx_r96.assignShifts.Tuesday[x_r26] == null ? null : ctx_r96.assignShifts.Tuesday[x_r26].isRecalled);
} }
function AssignShiftComponent_div_63_div_1_div_21_Template(rf, ctx) { if (rf & 1) {
const _r114 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_21_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r114); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r113.onCreateDay(ctx_r113.assignShifts == null ? null : ctx_r113.assignShifts.Tuesday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_21_span_1_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_21_span_2_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_21_div_3_Template, 11, 13, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r32.assignShifts == null ? null : ctx_r32.assignShifts.Tuesday[x_r26] == null ? null : ctx_r32.assignShifts.Tuesday[x_r26].isOff) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r32.assignShifts == null ? null : ctx_r32.assignShifts.Tuesday[x_r26] == null ? null : ctx_r32.assignShifts.Tuesday[x_r26].isRest) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r32.assignShifts == null ? null : ctx_r32.assignShifts.Tuesday[x_r26] == null ? null : ctx_r32.assignShifts.Tuesday[x_r26].endTime) != null);
} }
function AssignShiftComponent_div_63_div_1_div_22_i_1_Template(rf, ctx) { if (rf & 1) {
const _r121 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_22_i_1_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r121); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r120.limit(ctx_r120.assignShifts == null ? null : ctx_r120.assignShifts.Tuesday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " error_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_22_i_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done_all ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_22_i_3_Template(rf, ctx) { if (rf & 1) {
const _r124 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_22_i_3_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r124); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r123.showMsg(ctx_r123.assignShifts == null ? null : ctx_r123.assignShifts.Tuesday[x_r26] == null ? null : ctx_r123.assignShifts.Tuesday[x_r26].shiftChangeRequestMessage); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " chat_bubble_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_22_Template(rf, ctx) { if (rf & 1) {
const _r127 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_22_i_1_Template, 2, 0, "i", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_22_i_2_Template, 2, 0, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_22_i_3_Template, 2, 0, "i", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_22_Template_i_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r127); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r126.deleteShift(ctx_r126.assignShifts == null ? null : ctx_r126.assignShifts.Tuesday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("justify-content-between", (ctx_r33.assignShifts == null ? null : ctx_r33.assignShifts.Tuesday[x_r26] == null ? null : ctx_r33.assignShifts.Tuesday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r33.assignShifts == null ? null : ctx_r33.assignShifts.Tuesday[x_r26] == null ? null : ctx_r33.assignShifts.Tuesday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r33.assignShifts == null ? null : ctx_r33.assignShifts.Tuesday[x_r26] == null ? null : ctx_r33.assignShifts.Tuesday[x_r26].shiftRead) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r33.assignShifts == null ? null : ctx_r33.assignShifts.Tuesday[x_r26] == null ? null : ctx_r33.assignShifts.Tuesday[x_r26].shiftChangeRequestMessage) != "");
} }
function AssignShiftComponent_div_63_div_1_i_24_Template(rf, ctx) { if (rf & 1) {
const _r131 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_i_24_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r131); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r130 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r130.onCreateDay(ctx_r130.assignShifts == null ? null : ctx_r130.assignShifts.Wednesday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_25_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "OFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_25_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "REST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r136 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, ctx_r136.assignShifts == null ? null : ctx_r136.assignShifts.Wednesday[x_r26] == null ? null : ctx_r136.assignShifts.Wednesday[x_r26].splitStartTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, ctx_r136.assignShifts == null ? null : ctx_r136.assignShifts.Wednesday[x_r26] == null ? null : ctx_r136.assignShifts.Wednesday[x_r26].splitEndTime, "HH:mm"), " ");
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r142 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", s_r142.skillSetId.name, " > ", s_r142.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_25_div_3_div_6_div_1_Template, 2, 2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r137 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r137.assignShifts == null ? null : ctx_r137.assignShifts.Wednesday[x_r26] == null ? null : ctx_r137.assignShifts.Wednesday[x_r26].subSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r145 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", s_r145.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_25_div_3_div_7_div_1_Template, 2, 1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r138 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r138.assignShifts == null ? null : ctx_r138.assignShifts.Wednesday[x_r26] == null ? null : ctx_r138.assignShifts.Wednesday[x_r26].mainSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_10_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_10_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_25_div_3_div_10_span_2_Template, 2, 0, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_25_div_3_div_10_span_3_Template, 2, 0, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, AssignShiftComponent_div_63_div_1_div_25_div_3_div_10_span_4_Template, 2, 0, "span", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r139 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx_r139.assignShifts == null ? null : ctx_r139.assignShifts.Wednesday[x_r26] == null ? null : ctx_r139.assignShifts.Wednesday[x_r26].isRecallAccepted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
} }
function AssignShiftComponent_div_63_div_1_div_25_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, AssignShiftComponent_div_63_div_1_div_25_div_3_div_5_Template, 4, 8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, AssignShiftComponent_div_63_div_1_div_25_div_3_div_6_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AssignShiftComponent_div_63_div_1_div_25_div_3_div_7_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AssignShiftComponent_div_63_div_1_div_25_div_3_div_10_Template, 5, 4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index;
const ctx_r135 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 7, ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].startTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 10, ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].subSkillSets.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].mainSkillSets) && ctx_r135.tier == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].reportLocationId) != null ? ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].reportLocationId == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].reportLocationId.name : ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].geoReportingLocation == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].geoReportingLocation.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r135.assignShifts == null ? null : ctx_r135.assignShifts.Wednesday[x_r26] == null ? null : ctx_r135.assignShifts.Wednesday[x_r26].isRecalled);
} }
function AssignShiftComponent_div_63_div_1_div_25_Template(rf, ctx) { if (rf & 1) {
const _r153 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_25_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r153); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r152 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r152.onCreateDay(ctx_r152.assignShifts == null ? null : ctx_r152.assignShifts.Wednesday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_25_span_1_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_25_span_2_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_25_div_3_Template, 11, 13, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r35.assignShifts == null ? null : ctx_r35.assignShifts.Wednesday[x_r26] == null ? null : ctx_r35.assignShifts.Wednesday[x_r26].isOff) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r35.assignShifts == null ? null : ctx_r35.assignShifts.Wednesday[x_r26] == null ? null : ctx_r35.assignShifts.Wednesday[x_r26].isRest) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r35.assignShifts == null ? null : ctx_r35.assignShifts.Wednesday[x_r26] == null ? null : ctx_r35.assignShifts.Wednesday[x_r26].endTime) != null);
} }
function AssignShiftComponent_div_63_div_1_div_26_i_1_Template(rf, ctx) { if (rf & 1) {
const _r160 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_26_i_1_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r160); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r159 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r159.limit(ctx_r159.assignShifts == null ? null : ctx_r159.assignShifts.Wednesday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " error_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_26_i_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done_all ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_26_i_3_Template(rf, ctx) { if (rf & 1) {
const _r163 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_26_i_3_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r163); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r162 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r162.showMsg(ctx_r162.assignShifts == null ? null : ctx_r162.assignShifts.Wednesday[x_r26] == null ? null : ctx_r162.assignShifts.Wednesday[x_r26].shiftChangeRequestMessage); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " chat_bubble_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_26_Template(rf, ctx) { if (rf & 1) {
const _r166 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_26_i_1_Template, 2, 0, "i", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_26_i_2_Template, 2, 0, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_26_i_3_Template, 2, 0, "i", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_26_Template_i_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r166); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r165 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r165.deleteShift(ctx_r165.assignShifts == null ? null : ctx_r165.assignShifts.Wednesday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("justify-content-between", (ctx_r36.assignShifts == null ? null : ctx_r36.assignShifts.Wednesday[x_r26] == null ? null : ctx_r36.assignShifts.Wednesday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r36.assignShifts == null ? null : ctx_r36.assignShifts.Wednesday[x_r26] == null ? null : ctx_r36.assignShifts.Wednesday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r36.assignShifts == null ? null : ctx_r36.assignShifts.Wednesday[x_r26] == null ? null : ctx_r36.assignShifts.Wednesday[x_r26].shiftRead) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r36.assignShifts == null ? null : ctx_r36.assignShifts.Wednesday[x_r26] == null ? null : ctx_r36.assignShifts.Wednesday[x_r26].shiftChangeRequestMessage) != "");
} }
function AssignShiftComponent_div_63_div_1_i_28_Template(rf, ctx) { if (rf & 1) {
const _r170 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_i_28_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r170); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r169 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r169.onCreateDay(ctx_r169.assignShifts == null ? null : ctx_r169.assignShifts.Thursday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_29_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "OFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_29_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "REST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r175 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, ctx_r175.assignShifts == null ? null : ctx_r175.assignShifts.Thursday[x_r26] == null ? null : ctx_r175.assignShifts.Thursday[x_r26].splitStartTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, ctx_r175.assignShifts == null ? null : ctx_r175.assignShifts.Thursday[x_r26] == null ? null : ctx_r175.assignShifts.Thursday[x_r26].splitEndTime, "HH:mm"), " ");
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r181 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", s_r181.skillSetId.name, " > ", s_r181.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_29_div_3_div_6_div_1_Template, 2, 2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r176 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r176.assignShifts == null ? null : ctx_r176.assignShifts.Thursday[x_r26] == null ? null : ctx_r176.assignShifts.Thursday[x_r26].subSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r184 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", s_r184.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_29_div_3_div_7_div_1_Template, 2, 1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r177 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r177.assignShifts == null ? null : ctx_r177.assignShifts.Thursday[x_r26] == null ? null : ctx_r177.assignShifts.Thursday[x_r26].mainSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_10_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_10_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_29_div_3_div_10_span_2_Template, 2, 0, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_29_div_3_div_10_span_3_Template, 2, 0, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, AssignShiftComponent_div_63_div_1_div_29_div_3_div_10_span_4_Template, 2, 0, "span", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r178 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx_r178.assignShifts == null ? null : ctx_r178.assignShifts.Thursday[x_r26] == null ? null : ctx_r178.assignShifts.Thursday[x_r26].isRecallAccepted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
} }
function AssignShiftComponent_div_63_div_1_div_29_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, AssignShiftComponent_div_63_div_1_div_29_div_3_div_5_Template, 4, 8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, AssignShiftComponent_div_63_div_1_div_29_div_3_div_6_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AssignShiftComponent_div_63_div_1_div_29_div_3_div_7_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AssignShiftComponent_div_63_div_1_div_29_div_3_div_10_Template, 5, 4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index;
const ctx_r174 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 7, ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].startTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 10, ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].subSkillSets.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].mainSkillSets) && ctx_r174.tier == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].reportLocationId) != null ? ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].reportLocationId == null ? null : ctx_r174.assignShifts.Thursday[x_r26].reportLocationId.name : ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].geoReportingLocation == null ? null : ctx_r174.assignShifts.Thursday[x_r26].geoReportingLocation.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r174.assignShifts == null ? null : ctx_r174.assignShifts.Thursday[x_r26] == null ? null : ctx_r174.assignShifts.Thursday[x_r26].isRecalled);
} }
function AssignShiftComponent_div_63_div_1_div_29_Template(rf, ctx) { if (rf & 1) {
const _r192 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_29_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r192); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r191 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r191.onCreateDay(ctx_r191.assignShifts == null ? null : ctx_r191.assignShifts.Thursday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_29_span_1_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_29_span_2_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_29_div_3_Template, 11, 13, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r38.assignShifts == null ? null : ctx_r38.assignShifts.Thursday[x_r26] == null ? null : ctx_r38.assignShifts.Thursday[x_r26].isOff) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r38.assignShifts == null ? null : ctx_r38.assignShifts.Thursday[x_r26] == null ? null : ctx_r38.assignShifts.Thursday[x_r26].isRest) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r38.assignShifts == null ? null : ctx_r38.assignShifts.Thursday[x_r26] == null ? null : ctx_r38.assignShifts.Thursday[x_r26].endTime) != null);
} }
function AssignShiftComponent_div_63_div_1_div_30_i_1_Template(rf, ctx) { if (rf & 1) {
const _r199 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_30_i_1_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r199); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r198 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r198.limit(ctx_r198.assignShifts == null ? null : ctx_r198.assignShifts.Thursday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " error_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_30_i_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done_all ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_30_i_3_Template(rf, ctx) { if (rf & 1) {
const _r202 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_30_i_3_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r202); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r201 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r201.showMsg(ctx_r201.assignShifts == null ? null : ctx_r201.assignShifts.Thursday[x_r26] == null ? null : ctx_r201.assignShifts.Thursday[x_r26].shiftChangeRequestMessage); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " chat_bubble_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_30_Template(rf, ctx) { if (rf & 1) {
const _r205 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_30_i_1_Template, 2, 0, "i", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_30_i_2_Template, 2, 0, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_30_i_3_Template, 2, 0, "i", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_30_Template_i_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r205); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r204 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r204.deleteShift(ctx_r204.assignShifts == null ? null : ctx_r204.assignShifts.Thursday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("justify-content-between", (ctx_r39.assignShifts == null ? null : ctx_r39.assignShifts.Thursday[x_r26] == null ? null : ctx_r39.assignShifts.Thursday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r39.assignShifts == null ? null : ctx_r39.assignShifts.Thursday[x_r26] == null ? null : ctx_r39.assignShifts.Thursday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r39.assignShifts == null ? null : ctx_r39.assignShifts.Thursday[x_r26] == null ? null : ctx_r39.assignShifts.Thursday[x_r26].shiftRead) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r39.assignShifts == null ? null : ctx_r39.assignShifts.Thursday[x_r26] == null ? null : ctx_r39.assignShifts.Thursday[x_r26].shiftChangeRequestMessage) != "");
} }
function AssignShiftComponent_div_63_div_1_i_32_Template(rf, ctx) { if (rf & 1) {
const _r209 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_i_32_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r209); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r208 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r208.onCreateDay(ctx_r208.assignShifts == null ? null : ctx_r208.assignShifts.Friday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_33_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "OFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_33_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "REST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r214 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, ctx_r214.assignShifts == null ? null : ctx_r214.assignShifts.Friday[x_r26] == null ? null : ctx_r214.assignShifts.Friday[x_r26].splitStartTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, ctx_r214.assignShifts == null ? null : ctx_r214.assignShifts.Friday[x_r26] == null ? null : ctx_r214.assignShifts.Friday[x_r26].splitEndTime, "HH:mm"), " ");
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r220 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", s_r220.skillSetId.name, " > ", s_r220.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_33_div_3_div_6_div_1_Template, 2, 2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r215 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r215.assignShifts == null ? null : ctx_r215.assignShifts.Friday[x_r26] == null ? null : ctx_r215.assignShifts.Friday[x_r26].subSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r223 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", s_r223.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_33_div_3_div_7_div_1_Template, 2, 1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r216 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r216.assignShifts == null ? null : ctx_r216.assignShifts.Friday[x_r26] == null ? null : ctx_r216.assignShifts.Friday[x_r26].mainSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_10_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_10_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_33_div_3_div_10_span_2_Template, 2, 0, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_33_div_3_div_10_span_3_Template, 2, 0, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, AssignShiftComponent_div_63_div_1_div_33_div_3_div_10_span_4_Template, 2, 0, "span", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r217 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx_r217.assignShifts == null ? null : ctx_r217.assignShifts.Friday[x_r26] == null ? null : ctx_r217.assignShifts.Friday[x_r26].isRecallAccepted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
} }
function AssignShiftComponent_div_63_div_1_div_33_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, AssignShiftComponent_div_63_div_1_div_33_div_3_div_5_Template, 4, 8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, AssignShiftComponent_div_63_div_1_div_33_div_3_div_6_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AssignShiftComponent_div_63_div_1_div_33_div_3_div_7_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AssignShiftComponent_div_63_div_1_div_33_div_3_div_10_Template, 5, 4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index;
const ctx_r213 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 7, ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].startTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 10, ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].subSkillSets.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].mainSkillSets) && ctx_r213.tier == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].reportLocationId) != null ? ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].reportLocationId == null ? null : ctx_r213.assignShifts.Friday[x_r26].reportLocationId.name : ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].geoReportingLocation == null ? null : ctx_r213.assignShifts.Friday[x_r26].geoReportingLocation.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r213.assignShifts == null ? null : ctx_r213.assignShifts.Friday[x_r26] == null ? null : ctx_r213.assignShifts.Friday[x_r26].isRecalled);
} }
function AssignShiftComponent_div_63_div_1_div_33_Template(rf, ctx) { if (rf & 1) {
const _r231 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_33_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r231); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r230 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r230.onCreateDay(ctx_r230.assignShifts == null ? null : ctx_r230.assignShifts.Friday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_33_span_1_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_33_span_2_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_33_div_3_Template, 11, 13, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r41.assignShifts == null ? null : ctx_r41.assignShifts.Friday[x_r26] == null ? null : ctx_r41.assignShifts.Friday[x_r26].isOff) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r41.assignShifts == null ? null : ctx_r41.assignShifts.Friday[x_r26] == null ? null : ctx_r41.assignShifts.Friday[x_r26].isRest) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r41.assignShifts == null ? null : ctx_r41.assignShifts.Friday[x_r26] == null ? null : ctx_r41.assignShifts.Friday[x_r26].endTime) != null);
} }
function AssignShiftComponent_div_63_div_1_div_34_i_1_Template(rf, ctx) { if (rf & 1) {
const _r238 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_34_i_1_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r238); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r237 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r237.limit(ctx_r237.assignShifts == null ? null : ctx_r237.assignShifts.Friday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " error_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_34_i_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done_all ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_34_i_3_Template(rf, ctx) { if (rf & 1) {
const _r241 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_34_i_3_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r241); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r240 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r240.showMsg(ctx_r240.assignShifts == null ? null : ctx_r240.assignShifts.Friday[x_r26] == null ? null : ctx_r240.assignShifts.Friday[x_r26].shiftChangeRequestMessage); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " chat_bubble_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_34_Template(rf, ctx) { if (rf & 1) {
const _r244 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_34_i_1_Template, 2, 0, "i", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_34_i_2_Template, 2, 0, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_34_i_3_Template, 2, 0, "i", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_34_Template_i_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r244); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r243 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r243.deleteShift(ctx_r243.assignShifts == null ? null : ctx_r243.assignShifts.Friday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("justify-content-between", (ctx_r42.assignShifts == null ? null : ctx_r42.assignShifts.Friday[x_r26] == null ? null : ctx_r42.assignShifts.Friday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r42.assignShifts == null ? null : ctx_r42.assignShifts.Friday[x_r26] == null ? null : ctx_r42.assignShifts.Friday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r42.assignShifts == null ? null : ctx_r42.assignShifts.Friday[x_r26] == null ? null : ctx_r42.assignShifts.Friday[x_r26].shiftRead) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r42.assignShifts == null ? null : ctx_r42.assignShifts.Friday[x_r26] == null ? null : ctx_r42.assignShifts.Friday[x_r26].shiftChangeRequestMessage) != "");
} }
function AssignShiftComponent_div_63_div_1_i_36_Template(rf, ctx) { if (rf & 1) {
const _r248 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_i_36_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r248); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r247 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r247.onCreateDay(ctx_r247.assignShifts == null ? null : ctx_r247.assignShifts.Saturday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_37_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "OFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_37_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "REST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r253 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, ctx_r253.assignShifts == null ? null : ctx_r253.assignShifts.Saturday[x_r26] == null ? null : ctx_r253.assignShifts.Saturday[x_r26].splitStartTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, ctx_r253.assignShifts == null ? null : ctx_r253.assignShifts.Saturday[x_r26] == null ? null : ctx_r253.assignShifts.Saturday[x_r26].splitEndTime, "HH:mm"), " ");
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r259 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", s_r259.skillSetId.name, " > ", s_r259.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_37_div_3_div_6_div_1_Template, 2, 2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r254 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r254.assignShifts == null ? null : ctx_r254.assignShifts.Saturday[x_r26] == null ? null : ctx_r254.assignShifts.Saturday[x_r26].subSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r262 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", s_r262.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_37_div_3_div_7_div_1_Template, 2, 1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r255 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r255.assignShifts == null ? null : ctx_r255.assignShifts.Saturday[x_r26] == null ? null : ctx_r255.assignShifts.Saturday[x_r26].mainSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_10_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_10_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_37_div_3_div_10_span_2_Template, 2, 0, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_37_div_3_div_10_span_3_Template, 2, 0, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, AssignShiftComponent_div_63_div_1_div_37_div_3_div_10_span_4_Template, 2, 0, "span", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r256 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx_r256.assignShifts == null ? null : ctx_r256.assignShifts.Saturday[x_r26] == null ? null : ctx_r256.assignShifts.Saturday[x_r26].isRecallAccepted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
} }
function AssignShiftComponent_div_63_div_1_div_37_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, AssignShiftComponent_div_63_div_1_div_37_div_3_div_5_Template, 4, 8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, AssignShiftComponent_div_63_div_1_div_37_div_3_div_6_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AssignShiftComponent_div_63_div_1_div_37_div_3_div_7_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AssignShiftComponent_div_63_div_1_div_37_div_3_div_10_Template, 5, 4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index;
const ctx_r252 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 7, ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].startTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 10, ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].subSkillSets.length) && ctx_r252.tier == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].mainSkillSets) && ctx_r252.tier == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].reportLocationId) != null ? ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].reportLocationId == null ? null : ctx_r252.assignShifts.Saturday[x_r26].reportLocationId.name : ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].geoReportingLocation == null ? null : ctx_r252.assignShifts.Saturday[x_r26].geoReportingLocation.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r252.assignShifts == null ? null : ctx_r252.assignShifts.Saturday[x_r26] == null ? null : ctx_r252.assignShifts.Saturday[x_r26].isRecalled);
} }
function AssignShiftComponent_div_63_div_1_div_37_Template(rf, ctx) { if (rf & 1) {
const _r270 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_37_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r270); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r269 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r269.onCreateDay(ctx_r269.assignShifts == null ? null : ctx_r269.assignShifts.Saturday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_37_span_1_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_37_span_2_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_37_div_3_Template, 11, 13, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r44.assignShifts == null ? null : ctx_r44.assignShifts.Saturday[x_r26] == null ? null : ctx_r44.assignShifts.Saturday[x_r26].isOff) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r44.assignShifts == null ? null : ctx_r44.assignShifts.Saturday[x_r26] == null ? null : ctx_r44.assignShifts.Saturday[x_r26].isRest) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r44.assignShifts == null ? null : ctx_r44.assignShifts.Saturday[x_r26] == null ? null : ctx_r44.assignShifts.Saturday[x_r26].endTime) != null);
} }
function AssignShiftComponent_div_63_div_1_div_38_i_1_Template(rf, ctx) { if (rf & 1) {
const _r277 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_38_i_1_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r277); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r276 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r276.limit(ctx_r276.assignShifts == null ? null : ctx_r276.assignShifts.Saturday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " error_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_38_i_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done_all ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_38_i_3_Template(rf, ctx) { if (rf & 1) {
const _r280 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_38_i_3_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r280); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r279 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r279.showMsg(ctx_r279.assignShifts == null ? null : ctx_r279.assignShifts.Saturday[x_r26] == null ? null : ctx_r279.assignShifts.Saturday[x_r26].shiftChangeRequestMessage); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " chat_bubble_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_38_Template(rf, ctx) { if (rf & 1) {
const _r283 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_38_i_1_Template, 2, 0, "i", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_38_i_2_Template, 2, 0, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_38_i_3_Template, 2, 0, "i", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_38_Template_i_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r283); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r282 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r282.deleteShift(ctx_r282.assignShifts == null ? null : ctx_r282.assignShifts.Saturday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("justify-content-between", (ctx_r45.assignShifts == null ? null : ctx_r45.assignShifts.Saturday[x_r26] == null ? null : ctx_r45.assignShifts.Saturday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r45.assignShifts == null ? null : ctx_r45.assignShifts.Saturday[x_r26] == null ? null : ctx_r45.assignShifts.Saturday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r45.assignShifts == null ? null : ctx_r45.assignShifts.Saturday[x_r26] == null ? null : ctx_r45.assignShifts.Saturday[x_r26].shiftRead) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r45.assignShifts == null ? null : ctx_r45.assignShifts.Saturday[x_r26] == null ? null : ctx_r45.assignShifts.Saturday[x_r26].shiftChangeRequestMessage) != "");
} }
function AssignShiftComponent_div_63_div_1_i_40_Template(rf, ctx) { if (rf & 1) {
const _r287 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_i_40_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r287); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r286 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r286.onCreateDay(ctx_r286.assignShifts == null ? null : ctx_r286.assignShifts.Sunday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_41_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "OFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_41_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "REST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r292 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, ctx_r292.assignShifts == null ? null : ctx_r292.assignShifts.Sunday[x_r26] == null ? null : ctx_r292.assignShifts.Sunday[x_r26].splitStartTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, ctx_r292.assignShifts == null ? null : ctx_r292.assignShifts.Sunday[x_r26] == null ? null : ctx_r292.assignShifts.Sunday[x_r26].splitEndTime, "HH:mm"), " ");
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r298 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", s_r298.skillSetId.name, " > ", s_r298.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_41_div_3_div_6_div_1_Template, 2, 2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r293 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r293.assignShifts == null ? null : ctx_r293.assignShifts.Sunday[x_r26] == null ? null : ctx_r293.assignShifts.Sunday[x_r26].subSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r301 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", s_r301.name, " ");
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_41_div_3_div_7_div_1_Template, 2, 1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r294 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r294.assignShifts == null ? null : ctx_r294.assignShifts.Sunday[x_r26] == null ? null : ctx_r294.assignShifts.Sunday[x_r26].mainSkillSets);
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_10_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_10_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Recall - Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_41_div_3_div_10_span_2_Template, 2, 0, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_41_div_3_div_10_span_3_Template, 2, 0, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, AssignShiftComponent_div_63_div_1_div_41_div_3_div_10_span_4_Template, 2, 0, "span", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index;
const ctx_r295 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx_r295.assignShifts == null ? null : ctx_r295.assignShifts.Sunday[x_r26] == null ? null : ctx_r295.assignShifts.Sunday[x_r26].isRecallAccepted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
} }
function AssignShiftComponent_div_63_div_1_div_41_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, AssignShiftComponent_div_63_div_1_div_41_div_3_div_5_Template, 4, 8, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, AssignShiftComponent_div_63_div_1_div_41_div_3_div_6_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, AssignShiftComponent_div_63_div_1_div_41_div_3_div_7_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, AssignShiftComponent_div_63_div_1_div_41_div_3_div_10_Template, 5, 4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index;
const ctx_r291 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 7, ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].startTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 10, ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].subSkillSets.length) && ctx_r291.tier == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].mainSkillSets) && ctx_r291.tier == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].reportLocationId) != null ? ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].reportLocationId == null ? null : ctx_r291.assignShifts.Sunday[x_r26].reportLocationId.name : ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].geoReportingLocation == null ? null : ctx_r291.assignShifts.Sunday[x_r26].geoReportingLocation.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r291.assignShifts == null ? null : ctx_r291.assignShifts.Sunday[x_r26] == null ? null : ctx_r291.assignShifts.Sunday[x_r26].isRecalled);
} }
function AssignShiftComponent_div_63_div_1_div_41_Template(rf, ctx) { if (rf & 1) {
const _r309 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_41_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r309); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r308 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r308.onCreateDay(ctx_r308.assignShifts == null ? null : ctx_r308.assignShifts.Sunday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_41_span_1_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_41_span_2_Template, 2, 0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_41_div_3_Template, 11, 13, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r47.assignShifts == null ? null : ctx_r47.assignShifts.Sunday[x_r26] == null ? null : ctx_r47.assignShifts.Sunday[x_r26].isOff) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r47.assignShifts == null ? null : ctx_r47.assignShifts.Sunday[x_r26] == null ? null : ctx_r47.assignShifts.Sunday[x_r26].isRest) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r47.assignShifts == null ? null : ctx_r47.assignShifts.Sunday[x_r26] == null ? null : ctx_r47.assignShifts.Sunday[x_r26].endTime) != null);
} }
function AssignShiftComponent_div_63_div_1_div_42_i_1_Template(rf, ctx) { if (rf & 1) {
const _r316 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_42_i_1_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r316); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r315 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r315.limit(ctx_r315.assignShifts == null ? null : ctx_r315.assignShifts.Sunday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " error_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_42_i_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done_all ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_42_i_3_Template(rf, ctx) { if (rf & 1) {
const _r319 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "i", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_42_i_3_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r319); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).index; const ctx_r318 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r318.showMsg(ctx_r318.assignShifts == null ? null : ctx_r318.assignShifts.Sunday[x_r26] == null ? null : ctx_r318.assignShifts.Sunday[x_r26].shiftChangeRequestMessage); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " chat_bubble_outline ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function AssignShiftComponent_div_63_div_1_div_42_Template(rf, ctx) { if (rf & 1) {
const _r322 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_div_42_i_1_Template, 2, 0, "i", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_63_div_1_div_42_i_2_Template, 2, 0, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_63_div_1_div_42_i_3_Template, 2, 0, "i", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "i", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_div_63_div_1_div_42_Template_i_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r322); const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r321 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r321.deleteShift(ctx_r321.assignShifts == null ? null : ctx_r321.assignShifts.Sunday[x_r26]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index;
const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("justify-content-between", (ctx_r48.assignShifts == null ? null : ctx_r48.assignShifts.Sunday[x_r26] == null ? null : ctx_r48.assignShifts.Sunday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r48.assignShifts == null ? null : ctx_r48.assignShifts.Sunday[x_r26] == null ? null : ctx_r48.assignShifts.Sunday[x_r26].isLimit) == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r48.assignShifts == null ? null : ctx_r48.assignShifts.Sunday[x_r26] == null ? null : ctx_r48.assignShifts.Sunday[x_r26].shiftRead) == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r48.assignShifts == null ? null : ctx_r48.assignShifts.Sunday[x_r26] == null ? null : ctx_r48.assignShifts.Sunday[x_r26].shiftChangeRequestMessage) != "");
} }
function AssignShiftComponent_div_63_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "p", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "span", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, AssignShiftComponent_div_63_div_1_i_11_Template, 2, 0, "i", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, AssignShiftComponent_div_63_div_1_i_16_Template, 1, 0, "i", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, AssignShiftComponent_div_63_div_1_div_17_Template, 4, 3, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, AssignShiftComponent_div_63_div_1_div_18_Template, 6, 5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, AssignShiftComponent_div_63_div_1_i_20_Template, 1, 0, "i", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, AssignShiftComponent_div_63_div_1_div_21_Template, 4, 3, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, AssignShiftComponent_div_63_div_1_div_22_Template, 6, 5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, AssignShiftComponent_div_63_div_1_i_24_Template, 1, 0, "i", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, AssignShiftComponent_div_63_div_1_div_25_Template, 4, 3, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, AssignShiftComponent_div_63_div_1_div_26_Template, 6, 5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](28, AssignShiftComponent_div_63_div_1_i_28_Template, 1, 0, "i", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, AssignShiftComponent_div_63_div_1_div_29_Template, 4, 3, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](30, AssignShiftComponent_div_63_div_1_div_30_Template, 6, 5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, AssignShiftComponent_div_63_div_1_i_32_Template, 1, 0, "i", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, AssignShiftComponent_div_63_div_1_div_33_Template, 4, 3, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, AssignShiftComponent_div_63_div_1_div_34_Template, 6, 5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](36, AssignShiftComponent_div_63_div_1_i_36_Template, 1, 0, "i", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](37, AssignShiftComponent_div_63_div_1_div_37_Template, 4, 3, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, AssignShiftComponent_div_63_div_1_div_38_Template, 6, 5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](40, AssignShiftComponent_div_63_div_1_i_40_Template, 1, 0, "i", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](41, AssignShiftComponent_div_63_div_1_div_41_Template, 4, 3, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](42, AssignShiftComponent_div_63_div_1_div_42_Template, 6, 5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const x_r26 = ctx.index;
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].staff_id == null ? null : ctx_r24.assignShifts.Monday[x_r26].staff_id.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].staffAppointmentId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r24.staffHrs[x_r26], " Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("w3-white", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].draftStatus) == 1)("w3-skyblue", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].draftStatus) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].isEmpty) == true && ctx_r24.filters && ctx_r24.filters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Monday[x_r26] == null ? null : ctx_r24.assignShifts.Monday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("w3-white", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Tuesday[x_r26] == null ? null : ctx_r24.assignShifts.Tuesday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Tuesday[x_r26] == null ? null : ctx_r24.assignShifts.Tuesday[x_r26].draftStatus) == 1)("w3-skyblue", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Tuesday[x_r26] == null ? null : ctx_r24.assignShifts.Tuesday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Tuesday[x_r26] == null ? null : ctx_r24.assignShifts.Tuesday[x_r26].draftStatus) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Tuesday[x_r26] == null ? null : ctx_r24.assignShifts.Tuesday[x_r26].isEmpty) == true && ctx_r24.filters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Tuesday[x_r26] == null ? null : ctx_r24.assignShifts.Tuesday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Tuesday[x_r26] == null ? null : ctx_r24.assignShifts.Tuesday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("w3-white", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Wednesday[x_r26] == null ? null : ctx_r24.assignShifts.Wednesday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Wednesday[x_r26] == null ? null : ctx_r24.assignShifts.Wednesday[x_r26].draftStatus) == 1)("w3-skyblue", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Wednesday[x_r26] == null ? null : ctx_r24.assignShifts.Wednesday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Wednesday[x_r26] == null ? null : ctx_r24.assignShifts.Wednesday[x_r26].draftStatus) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Wednesday[x_r26] == null ? null : ctx_r24.assignShifts.Wednesday[x_r26].isEmpty) == true && ctx_r24.filters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Wednesday[x_r26] == null ? null : ctx_r24.assignShifts.Wednesday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Wednesday[x_r26] == null ? null : ctx_r24.assignShifts.Wednesday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("w3-white", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Thursday[x_r26] == null ? null : ctx_r24.assignShifts.Thursday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Thursday[x_r26] == null ? null : ctx_r24.assignShifts.Thursday[x_r26].draftStatus) == 1)("w3-skyblue", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Thursday[x_r26] == null ? null : ctx_r24.assignShifts.Thursday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Thursday[x_r26] == null ? null : ctx_r24.assignShifts.Thursday[x_r26].draftStatus) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Thursday[x_r26] == null ? null : ctx_r24.assignShifts.Thursday[x_r26].isEmpty) == true && ctx_r24.filters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Thursday[x_r26] == null ? null : ctx_r24.assignShifts.Thursday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Thursday[x_r26] == null ? null : ctx_r24.assignShifts.Thursday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("w3-white", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Friday[x_r26] == null ? null : ctx_r24.assignShifts.Friday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Friday[x_r26] == null ? null : ctx_r24.assignShifts.Friday[x_r26].draftStatus) == 1)("w3-skyblue", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Friday[x_r26] == null ? null : ctx_r24.assignShifts.Friday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Friday[x_r26] == null ? null : ctx_r24.assignShifts.Friday[x_r26].draftStatus) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Friday[x_r26] == null ? null : ctx_r24.assignShifts.Friday[x_r26].isEmpty) == true && ctx_r24.filters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Friday[x_r26] == null ? null : ctx_r24.assignShifts.Friday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Friday[x_r26] == null ? null : ctx_r24.assignShifts.Friday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("w3-white", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Saturday[x_r26] == null ? null : ctx_r24.assignShifts.Saturday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Saturday[x_r26] == null ? null : ctx_r24.assignShifts.Saturday[x_r26].draftStatus) == 1)("w3-skyblue", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Saturday[x_r26] == null ? null : ctx_r24.assignShifts.Saturday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Saturday[x_r26] == null ? null : ctx_r24.assignShifts.Saturday[x_r26].draftStatus) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Saturday[x_r26] == null ? null : ctx_r24.assignShifts.Saturday[x_r26].isEmpty) == true && ctx_r24.filters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Saturday[x_r26] == null ? null : ctx_r24.assignShifts.Saturday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Saturday[x_r26] == null ? null : ctx_r24.assignShifts.Saturday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("w3-white", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Sunday[x_r26] == null ? null : ctx_r24.assignShifts.Sunday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Sunday[x_r26] == null ? null : ctx_r24.assignShifts.Sunday[x_r26].draftStatus) == 1)("w3-skyblue", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Sunday[x_r26] == null ? null : ctx_r24.assignShifts.Sunday[x_r26].isEmpty) == false && (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Sunday[x_r26] == null ? null : ctx_r24.assignShifts.Sunday[x_r26].draftStatus) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Sunday[x_r26] == null ? null : ctx_r24.assignShifts.Sunday[x_r26].isEmpty) == true && ctx_r24.filters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Sunday[x_r26] == null ? null : ctx_r24.assignShifts.Sunday[x_r26].isEmpty) == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r24.assignShifts == null ? null : ctx_r24.assignShifts.Sunday[x_r26] == null ? null : ctx_r24.assignShifts.Sunday[x_r26].isEmpty) == false);
} }
function AssignShiftComponent_div_63_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_63_div_1_Template, 43, 54, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r12.assignShifts.Monday);
} }
function AssignShiftComponent_div_66_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r325 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r325.totalHrStr, " Hrs ");
} }
function AssignShiftComponent_div_66_div_3_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r328 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r328.assignShifts == null ? null : ctx_r328.assignShifts.Monday == null ? null : ctx_r328.assignShifts.Monday.length, " Staff ");
} }
function AssignShiftComponent_div_66_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_div_66_div_3_div_1_Template, 2, 1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r327 = ctx.$implicit;
const ctx_r326 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r326.assignShifts.length != 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", j_r327, " Hrs");
} }
function AssignShiftComponent_div_66_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, AssignShiftComponent_div_66_div_2_Template, 2, 1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_div_66_div_3_Template, 4, 2, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r13.totalHrStr != "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r13.dayHrs);
} }
function AssignShiftComponent_ng_template_81_Template(rf, ctx) { if (rf & 1) {
const _r332 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Staff Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_81_Template_button_click_3_listener() { const modal_r329 = ctx.$implicit; return modal_r329.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Select Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "ng-select", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function AssignShiftComponent_ng_template_81_Template_ng_select_search_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r332); const ctx_r331 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r331.staffSearch($event); })("ngModelChange", function AssignShiftComponent_ng_template_81_Template_ng_select_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r332); const ctx_r333 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r333.Selectedemp = $event; })("scrollToEnd", function AssignShiftComponent_ng_template_81_Template_ng_select_scrollToEnd_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r332); const ctx_r334 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r334.loadMorePlasnBuUnitItems($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_81_Template_button_click_12_listener() { const modal_r329 = ctx.$implicit; return modal_r329.dismiss("cancel click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_81_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r332); const modal_r329 = ctx.$implicit; const ctx_r336 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r336.onEmpSelected(); return modal_r329.close("Save click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r15.empList)("placeholder", ctx_r15.placeHolderText)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r15.Selectedemp)("loading", ctx_r15.isSelectStaffLoading);
} }
function AssignShiftComponent_ng_template_83_button_25_Template(rf, ctx) { if (rf & 1) {
const _r348 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_83_button_25_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r348); const i_r346 = ctx.$implicit; const ctx_r347 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r347.addDay(i_r346); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r346 = ctx.$implicit;
const ctx_r339 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selected", ctx_r339.addedDay.indexOf(i_r346) != -1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r346.day, " ");
} }
function AssignShiftComponent_ng_template_83_div_42_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "ng-select", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "ng-select", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r340 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r340.timeDropDown)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r340.timeDropDown)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
} }
function AssignShiftComponent_ng_template_83_div_63_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Proximity Enabled");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
} }
function AssignShiftComponent_ng_template_83_div_64_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Proximity");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ng-select", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r342 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r342.reportingLocationRadius)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
} }
function AssignShiftComponent_ng_template_83_div_71_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Select Speciality ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ng-select", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r343 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r343.subSkill)("multiple", false)("searchable", true)("closeOnSelect", true)("clearable", true);
} }
function AssignShiftComponent_ng_template_83_div_77_div_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r350 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r350[1]);
} }
function AssignShiftComponent_ng_template_83_div_77_div_1_Template(rf, ctx) { if (rf & 1) {
const _r355 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, AssignShiftComponent_ng_template_83_div_77_div_1_ng_container_3_Template, 2, 1, "ng-container", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_83_div_77_div_1_Template_span_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r355); const i_r351 = ctx.index; const ctx_r354 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r354.clearLabel(i_r351); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r350 = ctx.$implicit;
const ctx_r349 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", item_r350[0], " > ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r349.tier == 2);
} }
function AssignShiftComponent_ng_template_83_div_77_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, AssignShiftComponent_ng_template_83_div_77_div_1_Template, 6, 2, "div", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r344 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r344.skillsLabel);
} }
function AssignShiftComponent_ng_template_83_span_83_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 50);
} }
function AssignShiftComponent_ng_template_83_Template(rf, ctx) { if (rf & 1) {
const _r357 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function AssignShiftComponent_ng_template_83_Template_input_change_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r357); const ctx_r356 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r356.dayOff($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "OFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "input", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function AssignShiftComponent_ng_template_83_Template_input_change_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r357); const ctx_r358 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r358.dayOff($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "REST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "label", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "Select Day");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, AssignShiftComponent_ng_template_83_button_25_Template, 2, 3, "button", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Set Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "ng-select", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "label", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "ng-select", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "input", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function AssignShiftComponent_ng_template_83_Template_input_change_39_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r357); const ctx_r359 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r359.setSplitShift($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "label", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Split Shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](42, AssignShiftComponent_ng_template_83_div_42_Template, 7, 10, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "label", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Report to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](50, "ng-select", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "div", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "label", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, "Enable Check-in");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "div", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](56, "input", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "label", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "div", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](60, "input", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "label", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](63, AssignShiftComponent_ng_template_83_div_63_Template, 12, 2, "div", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](64, AssignShiftComponent_ng_template_83_div_64_Template, 5, 5, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "div", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "label", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, "Select Skillsets ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "ng-select", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function AssignShiftComponent_ng_template_83_Template_ng_select_change_70_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r357); const ctx_r360 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r360.setSubSkill(ctx_r360.adShift.controls.SkillSets.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](71, AssignShiftComponent_ng_template_83_div_71_Template, 5, 5, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_83_Template_button_click_73_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r357); const ctx_r361 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r361.clearSkill(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "button", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_83_Template_button_click_75_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r357); const ctx_r362 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r362.addSkills(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](76, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](77, AssignShiftComponent_ng_template_83_div_77_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "button", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_83_Template_button_click_79_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r357); const ctx_r363 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r363.modelClose(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "button", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_ng_template_83_Template_button_click_81_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r357); const ctx_r364 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r364.createShift(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](83, AssignShiftComponent_ng_template_83_span_83_Template, 1, 0, "span", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r17.StaffName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r17.adShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r17.isCheck);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r17.isCheckRest);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r17.dayArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r17.timeDropDown)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r17.timeDropDown)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r17.isSplit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.isSplit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r17.reportLocation)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.adShift.get("isCheckInEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.adShift.get("isProximityEnabled").value && ctx_r17.adShift.get("isCheckInEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r17.skillArr)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.tier == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.skillsLabel != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r17.submitBtn, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.loaderCreateShift);
} }
class AssignShiftComponent {
constructor(modalService, config, buService, shiftService, fb, toastr, userService, gamificationService) {
this.modalService = modalService;
this.buService = buService;
this.shiftService = shiftService;
this.fb = fb;
this.toastr = toastr;
this.userService = userService;
this.gamificationService = gamificationService;
this.addStaff = false;
this.createDay = false;
this.isSplit = false;
this.isSelectStaffLoading = false;
this.buWeekArr = [];
this.weekCount = 0;
this.userListPage = 1;
this.dayArr = [
{ count: 0, day: 'M', dayName: 'Monday' },
{ count: 1, day: 'T', dayName: 'Tuesday' },
{ count: 2, day: 'W', dayName: 'Wednesday' },
{ count: 3, day: 'T', dayName: 'Thursday' },
{ count: 4, day: 'F', dayName: 'Friday' },
{ count: 5, day: 'S', dayName: 'Saturday' },
{ count: 6, day: 'S', dayName: 'Sunday' },
];
this.addedDay = [];
this.isCheck = false;
this.isCheckRest = false;
this.skillSet = [];
this.createUserShift = [];
this.subSkill = [];
this.skillsLabel = [];
this.skillsId = [];
this.assignShiftsId = [];
this.dur = 0;
this.durH = 0;
this.draftShifts = [];
this.placeHolderText = 'select staff';
this.deleteShiftIds = [];
this.dayHrs = [];
this.staffHrs = [];
this.totalHrs = 0;
this.fileToUpload = null;
this.isSplitShift = false;
this.submitBtn = 'Create';
this.filterLocationData = [];
this.assignShiftsArray = [];
this.filterDaysObj = [];
this.appointmentArr = [];
this.skillsetFilter = [];
this.mainSkillsetFilter = [];
this.mainSkillsetOptions = [];
this.filters = true;
this.reportingLocationRadius = [
{ name: 50, id: 50 },
{ name: 100, id: 100 },
{ name: 150, id: 150 },
{ name: 200, id: 200 },
{ name: 250, id: 250 },
{ name: 300, id: 300 },
{ name: 350, id: 350 },
{ name: 400, id: 400 },
{ name: 450, id: 450 },
{ name: 500, id: 500 },
];
this.assignShiftsLoader = true;
this.loaderPublishShift = false;
this.loaderCreateShift = false;
this.disablePublishButton = true;
this.getWeekStartEndDate = function (date, count) {
let datesToReturn = {};
let label = moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').add(count, 'days').format("MMM DD YYYY") + ' to ' + moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').add(count + 6, 'days').format("MMM DD YYYY");
let value = moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').add(count, 'days').format("MM-DD-YYYY");
datesToReturn = { label: label, value: value, key: count };
/* if (count == 0 && $scope.workWeeksDate == undefined) {
$scope.workWeeksDate = value;
}*/
return label;
};
config.backdrop = 'static';
config.keyboard = false;
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["getGmtOffSet"])();
this.getWeeks();
this.selectedDay = this.dayArr[0];
this.initAddShift();
this.readPageSettingSkill();
this.getLocation();
this.roaterForm();
/*this.userService.getUserProfile().subscribe((res) => {
this.user = res['data'];
});*/
this.selectTime();
this.getLocationSetting();
}
checkDraftStatus() {
Object.entries(this.assignShifts).map((days) => {
const finalVal = days[1].filter((data) => {
return !(data === null || data === void 0 ? void 0 : data.isEmpty) && (data === null || data === void 0 ? void 0 : data.draftStatus) === 0;
});
if (finalVal.length > 0)
this.disablePublishButton = false;
});
}
selectTime() {
this.timeDropDown = [];
for (let hour = 0; hour < 24; hour++) {
this.timeDropDown.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour }).format('HH:mm'));
this.timeDropDown.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 15 }).format('HH:mm'));
this.timeDropDown.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 30 }).format('HH:mm'));
this.timeDropDown.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 45 }).format('HH:mm'));
}
}
getLocationSetting() {
this.buService.getBuShiftGeoLocation(this.bu._id).subscribe((res) => {
const data = res['result'];
this.radius = data.proximity;
this.isCheckInEnabled = data.isCheckInEnabled;
this.isProximityEnabled = data.isProximityEnabled;
this.adShift.patchValue({
proximity: this.radius,
isCheckInEnabled: this.isCheckInEnabled,
isProximityEnabled: this.isProximityEnabled,
});
});
}
initAddShift() {
this.adShift = this.fb.group({
isOff: null,
isRest: null,
StartTime: null,
EndTime: null,
splitStartTime: null,
splitEndTime: null,
SkillSets: null,
subSkillSets: null,
reportLocation: null,
isCheckInEnabled: this.isCheckInEnabled,
isProximityEnabled: this.isProximityEnabled,
proximity: this.radius,
isSplit: null,
});
}
dayOff(c) {
if (c.target.name == 'isOff') {
this.isCheckRest = false;
if (c.target.checked == true) {
this.isCheck = true;
this.isCheckRest = false;
}
else {
this.isCheck = false;
}
}
else if (c.target.name == 'isRest') {
if (c.target.checked == true) {
this.isCheckRest = true;
this.isCheck = false;
}
else {
this.isCheckRest = false;
}
}
else {
this.isCheckRest = false;
this.isCheck = false;
this.adShift.patchValue({
isOff: false,
isRest: false,
});
}
}
getLocation() {
this.buService.getRepoLocations(this.bu._id).subscribe((res) => {
this.reportLocation = res['data'].reportingLocation;
this.buService.getGeoRepoLocations(this.bu._id).subscribe((res) => {
this.locations = res['result'].geoReportingLocation;
this.reportLocation = this.reportLocation.concat(this.locations);
this.checkInEnabledFlag = res['result']['isCheckInEnabled'];
});
});
}
addSplitTime() {
}
areTimingsOnOtherDay(startTime, endTime) {
const startDateTime = startTime.split(':');
const endDateTime = endTime.split(':');
const startHour = parseInt(startDateTime[0]);
const endHour = parseInt(endDateTime[0]);
return startHour > endHour;
}
createShift() {
const pastTrue = [];
this.createUserShift = [];
if (this.isSplit) {
const firstSplitEndTime = this.adShift.controls.EndTime.value;
const secondSplitStartTime = this.adShift.controls.splitStartTime.value;
var startTime = moment__WEBPACK_IMPORTED_MODULE_2__(firstSplitEndTime, 'HH:mm');
var endTime = moment__WEBPACK_IMPORTED_MODULE_2__(secondSplitStartTime, 'HH:mm');
var duration = endTime.diff(startTime);
if (duration < 0) {
this.toastr.error('Second split timing is overlapping with the first split timing', 'Failed', { timeOut: 3000 });
return;
}
}
if (this.isCheck == true || this.isCheckRest == true) {
this.loaderCreateShift = true;
this.restOffPara = {
assignShiftId: this.assignShiftsId[0]._id,
isOff: this.isCheck,
isRest: this.isCheckRest,
};
const restOffShift = this.shiftService
.updateShiftRestOff(this.restOffPara)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.loaderCreateShift = false;
restOffShift.unsubscribe();
}))
.subscribe((res) => {
this.modelClose();
this.readShift();
this.restOffPara = {
assignShiftId: '',
isOff: null,
isRest: null,
};
this.toastr.success('Shift Created', 'Successfully');
});
}
else {
this.addedDay.forEach((item, index) => {
var _a;
const otherDayFlag = this.areTimingsOnOtherDay(this.adShift.controls.StartTime.value, this.adShift.controls.EndTime.value);
const nextDay = moment__WEBPACK_IMPORTED_MODULE_2__(this.startDay).add(item.count + 1, 'days').format('DD-MM-YYYY');
let splitStartDate = moment__WEBPACK_IMPORTED_MODULE_2__(this.startDay).add(item.count, 'days').format('DD-MM-YYYY');
let splitEndDate = moment__WEBPACK_IMPORTED_MODULE_2__(this.startDay).add(item.count, 'days').format('DD-MM-YYYY');
let endDate = moment__WEBPACK_IMPORTED_MODULE_2__(this.startDay).add(item.count, 'days').format('DD-MM-YYYY');
if (this.isSplit) {
if (this.areTimingsOnOtherDay(this.adShift.controls.StartTime.value, this.adShift.controls.splitEndTime.value)) {
splitEndDate = nextDay;
}
if (this.areTimingsOnOtherDay(this.adShift.controls.StartTime.value, this.adShift.controls.splitStartTime.value)) {
splitStartDate = nextDay;
}
}
if (otherDayFlag) {
endDate = nextDay;
}
const createShift = {
assignShiftId: this.assignShiftsId[index]._id,
Date: moment__WEBPACK_IMPORTED_MODULE_2__(this.startDay)
.add(item.count, 'days')
.format('DD-MM-YYYY'),
StartDate: moment__WEBPACK_IMPORTED_MODULE_2__(this.startDay)
.add(item.count, 'days')
.format('DD-MM-YYYY'),
StartTime: this.adShift.controls.StartTime.value + ':00',
EndDate: endDate,
EndTime: this.adShift.controls.EndTime.value + ':00',
timeFormat: this.gmtOffset,
isOff: false,
isRest: false,
splitStartTime: this.adShift.controls.splitStartTime.value + ':00',
splitEndTime: this.adShift.controls.splitEndTime.value + ':00',
splitStartDate: splitStartDate,
spiltEndDate: splitEndDate,
isSplitShift: this.isSplit,
isCheckInEnabled: this.adShift.controls.isCheckInEnabled.value,
isProximityEnabled: this.adShift.controls.isProximityEnabled.value,
proximity: (_a = this.adShift.controls.proximity.value) === null || _a === void 0 ? void 0 : _a.id,
};
const indexVal = this.locations.find((data) => {
return data._id == this.adShift.controls.reportLocation.value._id;
});
if (!indexVal) {
createShift['geoReportingLocation'] = null;
createShift['reportLocationId'] =
this.adShift.controls.reportLocation.value._id;
}
else {
createShift['reportLocationId'] = null;
createShift['geoReportingLocation'] =
this.adShift.controls.reportLocation.value._id;
}
if (this.tier == 2) {
createShift['subSkillSets'] = this.skillsId;
}
else {
createShift['mainSkillSets'] = this.skillsId;
}
this.createUserShift.push(createShift);
});
if (this.isSplit) {
const splitst = this.adShift.controls.splitStartTime.value;
const splitet = this.adShift.controls.splitEndTime.value;
for (var s = 0; s < this.createUserShift.length; s++) {
this.createUserShift[s].splitStartTime = splitst + ':00';
this.createUserShift[s].splitEndTime = splitet + ':00';
}
}
this.createStaffShifts = {
user: this.createUserShift,
};
// Past Date and Time not allowed validation
const now = moment__WEBPACK_IMPORTED_MODULE_2__();
for (var t = 0; t < this.createUserShift.length; t++) {
let timecheck = moment__WEBPACK_IMPORTED_MODULE_2__(this.createUserShift[t].StartDate, 'DD-MM-YYYY').set({
hour: this.createUserShift[t].StartTime.slice(0, 2),
minute: this.createUserShift[t].StartTime.slice(3, 5),
});
if (timecheck.isAfter(now)) {
pastTrue.push('true');
}
else {
pastTrue.push('false');
}
}
if (pastTrue.includes('false')) {
this.toastr.error('This Date or Time has already passed. Can Update only future dates', 'Failed', {
timeOut: 3000,
});
pastTrue.length = 0;
}
else {
this.loaderCreateShift = true;
const createShift = this.shiftService
.updateShift(this.createStaffShifts)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.loaderCreateShift = false;
createShift.unsubscribe();
}))
.subscribe((res) => {
if (res['success'] == true) {
this.modelClose();
this.readShift();
this.toastr.success('Shift Created', 'Successfully');
this.addedDay = [];
this.createUserShift = [];
this.skillsId = [];
this.skillsLabel = [];
this.adShift.reset();
this.isSplit = false;
this.isSplitShift = false;
}
else if (res['success'] == false) {
this.toastr.error(res['message'], 'Failed', {
timeOut: 3000,
});
}
}, (error) => {
this.toastr.error(error, 'Failed', {
timeOut: 3000,
});
}, () => {
pastTrue.length = 0;
});
}
}
}
getWeeks() {
const buWeeks = this.shiftService
.getWeeks(this.bu._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
buWeeks.unsubscribe();
}))
.subscribe((res) => {
//this.buWeekArr = res['data'];
const weekCount = res['data'];
//this.selectedWeek
const number = res['data'].noOfWeek;
this.weekNumber = number;
let getDate = moment__WEBPACK_IMPORTED_MODULE_2__().startOf('isoWeek').format("MM-DD-YYYY");
if (number > 0) {
for (var i = -number; i <= number; i++) {
let dummyData = this.getWeekStartEndDate(getDate, 7 * (i));
this.buWeekArr.push(dummyData);
//localStorageService.set("WorkWeekList", $scope.myWeekRange);
}
/*this.planOpenshiftForm.patchValue({
selectWeek: this.weekArr1[res['data'].noOfWeek],
});*/
this.currentWeekCount = this.buWeekArr[number];
}
this.changeWeek('');
});
}
changeWeek(str) {
this.locationValue = [];
this.weekDateArr = [];
if (str == 'Nxt') {
this.weekCount =
this.weekCount < this.weekNumber
? this.weekCount + 1
: this.weekNumber;
}
else if (str == 'Prev') {
this.weekCount =
this.weekCount == -Math.abs(this.weekNumber)
? this.weekCount
: this.weekCount - 1;
}
else {
this.weekCount = 0;
}
this.currWeek =
this.buWeekArr[this.weekNumber + this.weekCount];
var startDaystr = this.currWeek.slice(0, 11);
var date = moment__WEBPACK_IMPORTED_MODULE_2__(startDaystr).format('MM-DD-YYYY');
this.startDay = date + ` 00:00:00 ${this.gmtOffset}`;
var endDayString = moment__WEBPACK_IMPORTED_MODULE_2__(startDaystr)
.add(6, 'days')
.format('MM-DD-YYYY');
this.endDay = endDayString + ` 00:00:00 ${this.gmtOffset}`;
for (var w = 0; w < 7; w++) {
this.weekDateArr.push(moment__WEBPACK_IMPORTED_MODULE_2__(date, 'MM-DD-YYYY').add(w, 'days').format('DD MMM'));
}
this.readShift();
}
onAddStaff(value) {
const payload = {
page: this.userListPage,
"parentBussinessUnitId[]": this.bu._id
};
this.addStaff = value;
this.isSelectStaffLoading = true;
this.placeHolderText = 'Loading..........';
this.shiftService.getUserbyPlanBU(payload).subscribe((res) => {
var _a;
const response = res['data']['items'];
this.empList = [...this.empList, ...response];
(_a = this.empList) === null || _a === void 0 ? void 0 : _a.map(id => {
id['nameAndStaffIdCombination'] = `${id.name} (${id.staffId})`;
});
this.placeHolderText = 'select staff';
this.isSelectStaffLoading = false;
});
}
/*className() {
return this.isSelectStaffLoading ? 'class1' : 'class2';
}*/
onScrollToEnd() {
const payload = {
page: this.userListPage,
"parentBussinessUnitId[]": this.bu._id
};
this.isSelectStaffLoading = true;
this.placeHolderText = 'Loading..........';
this.shiftService.getUserbyPlanBU(payload).subscribe((res) => {
var _a;
const response = res['data']['items'];
this.empList = [...this.empList, ...response];
(_a = this.empList) === null || _a === void 0 ? void 0 : _a.map(id => {
id['nameAndStaffIdCombination'] = `${id.name} (${id.staffId})`;
});
this.placeHolderText = 'select staff';
this.isSelectStaffLoading = false;
});
}
staffSearch(term) {
const payload = {
q: term.term,
"parentBussinessUnitId[]": this.businessUnit
};
this.isSelectStaffLoading = true;
this.placeHolderText = 'Loading..........';
this.shiftService.getUserbyPlanBU(payload).subscribe((res) => {
var _a;
const response = res['data']['items'];
this.placeHolderText = 'select staff';
this.isSelectStaffLoading = false;
this.empList = response;
(_a = this.empList) === null || _a === void 0 ? void 0 : _a.map(id => {
id['nameAndStaffIdCombination'] = `${id.name} (${id.staffId})`;
});
});
}
anotherFun() {
}
loadMorePlasnBuUnitItems(data) {
this.userListPage = this.userListPage + 1;
this.onScrollToEnd();
}
readShift() {
this.assignShifts = null;
this.assignShiftsArray = [];
this.filterDaysObj = [];
this.disablePublishButton = true;
this.assignShiftsLoader = true;
this.assignShiftReadParam = {
businessUnitId: this.bu._id,
weekRangeStartsAt: this.startDay,
weekRangeEndsAt: this.endDay,
timeZone: 330,
};
this.dayHrs = [];
this.totalHrs = 0;
this.totalHrStr = '';
this.shiftService.readAssignShift(this.assignShiftReadParam).subscribe((res) => {
this.assignShifts = res['shifts'];
this.checkDraftStatus();
this.tempAssignShift = Object.assign({}, res['shifts']);
// this.noOfStaff = this.assignShifts.Monday;
for (var k in this.assignShifts) {
for (var j in this.assignShifts[k]) {
this.dur = this.dur + this.assignShifts[k][j].duration;
}
var m = Math.trunc(this.dur);
var n = (this.dur - m) * 60;
this.dayHrs.push(m + ':' + n);
this.totalHrs = this.totalHrs + this.dur;
var e = Math.trunc(this.totalHrs);
var f = (this.totalHrs - e) * 60;
this.totalHrStr = e + ':' + f;
this.dur = 0;
}
this.totalColumnHrs();
this.assignShiftsArray.push(this.assignShifts);
this.assignShiftsArray.forEach((element) => {
this.filterDaysObj.push(element['Monday'], element['Tuesday'], element['Wednesday'], element['Thursday'], element['Friday'], element['Saturday'], element['Sunday']);
this.filterDaysObj.forEach((item) => {
item === null || item === void 0 ? void 0 : item.forEach((data1) => {
var _a, _b, _c;
this.appointmentArr.push(data1.staffAppointmentId.name);
this.appointOption = this.appliedLeaveCount(this.appointmentArr);
if (data1.startTime) {
((_a = data1 === null || data1 === void 0 ? void 0 : data1.geoReportingLocation) === null || _a === void 0 ? void 0 : _a.name) ? this.filterLocationData.push((_b = data1.geoReportingLocation) === null || _b === void 0 ? void 0 : _b.name) : this.filterLocationData.push((_c = data1.reportLocationId) === null || _c === void 0 ? void 0 : _c.name);
this.filtersOptions = this.filterLocationData;
this.filterLocationArray = this.appliedLeaveCount(this.filtersOptions);
}
if ((data1 === null || data1 === void 0 ? void 0 : data1.subSkillSets.length) > 0) {
this.mainSkillsetFilter.push(data1 === null || data1 === void 0 ? void 0 : data1.subSkillSets);
this.mainSkillsetFilter.forEach((element) => {
this.mainSkillsetOptions.push(element[0].skillSetId.name);
});
this.mainSkillsetArray = this.appointCount(this.mainSkillsetOptions);
}
else if ((data1 === null || data1 === void 0 ? void 0 : data1.subSkillSets.length) === 0 &&
(data1 === null || data1 === void 0 ? void 0 : data1.mainSkillSets) > 0) {
// this.mainSkillsetFilter.push(data1?.mainSkillSets)
}
});
});
});
this.filterLocationArrayFinal = this.filterLocationArray && this.filterLocationArray.filter((data) => {
return (data === null || data === void 0 ? void 0 : data.name) !== undefined;
});
}, () => { }, () => {
this.assignShiftsLoader = false;
});
}
totalColumnHrs() {
this.staffHrs = [];
if (this.assignShifts.length != 0) {
for (var p = 0; p < this.assignShifts['Monday'].length; p++) {
for (var l in this.assignShifts) {
if (this.assignShifts[l][p].isEmpty != true) {
this.durH = this.durH + this.assignShifts[l][p].duration;
}
}
var q = Math.trunc(this.durH);
var r = (this.durH - q) * 60;
this.staffHrs.push(q + ':' + r);
this.durH = 0;
}
}
}
appointCount(arr) {
let objArr = [
...arr.map((item) => {
return item;
}),
];
const uniqueArr = [...new Set(objArr)];
const arrObj3 = [];
for (let index = 0; index < uniqueArr.length; index++) {
const count = this.getOccurence(objArr, uniqueArr[index]);
arrObj3.push(uniqueArr[index]);
}
return arrObj3;
}
appliedLeaveCount(arr) {
let objArr = [
...arr.map((item) => {
return item;
}),
];
const uniqueArr = [...new Set(objArr)];
const arrObj3 = [];
for (let index = 0; index < uniqueArr.length; index++) {
const count = this.getOccurence(objArr, uniqueArr[index]);
arrObj3.push({ name: uniqueArr[index], total: count });
}
return arrObj3;
}
getOccurence(arr, val) {
return arr.filter((value) => value === val).length;
}
// onSelectLocation(){
// let daysObj = {}
// Object.keys(this.assignShifts).forEach((item, i) => {
// // Object.values(this.assignShifts).forEach(element => {
// //console.log('aarr', this.assignShifts[item])
// this.assignShifts[item].forEach(ele => {
// if(ele.reportLocationId && ele.reportLocationId?.name === this.locationValue.name){
// daysObj[item] = this.assignShifts[item]
// this.noOfStaff = this.assignShifts[item]
// }else{
// daysObj[item] = []
// }
// })
// //})
// })
// this.assignShifts = daysObj;
// }
deleteShift(i) {
const currTime = moment__WEBPACK_IMPORTED_MODULE_2__();
const startTime = moment__WEBPACK_IMPORTED_MODULE_2__(i.startTime);
const diffTime = currTime.diff(startTime);
if (diffTime > 0) {
this.toastr.error("Can't delete this. Either shift started or attendance has been taken.", 'Failed', {
timeOut: 3000,
});
}
else {
const shiftDeletePayload = {
assignShiftId: [i._id],
userId: i.staff_id._id,
};
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: 'Are you sure?',
text: 'You want to delete this?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.shiftService
.deleteSingleShift(shiftDeletePayload)
.subscribe((res) => {
// Swal.fire('Deleted!', 'Shift has been deleted.', 'success');
this.toastr.success('Shift has been deleted.', 'Successfully');
this.readShift();
});
}
});
}
}
deleteShiftAll(i) {
const currTime = moment__WEBPACK_IMPORTED_MODULE_2__();
const times = moment__WEBPACK_IMPORTED_MODULE_2__(this.assignShifts['Monday'][i].date);
const diffTime = currTime.diff(times);
if (diffTime > 0) {
this.toastr.error("Can't delete this. Either shift started or attendance has been taken.", 'Failed', {
timeOut: 3000,
});
}
else {
for (let j in this.assignShifts) {
this.deleteShiftIds.push(this.assignShifts[j][i]._id);
}
this.singleShift = {
assignShiftId: this.deleteShiftIds,
userId: this.assignShifts['Monday'][i].staff_id._id,
};
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: 'Are you sure?',
text: 'You want to delete All Shift for this Staff?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.shiftService
.deleteSingleShift(this.singleShift)
.subscribe((res) => {
// Swal.fire('Deleted!', 'Shift has been deleted.', 'success');
this.toastr.success('Shift has been deleted.', 'Successfully');
this.readShift();
});
}
});
}
}
limit(i) {
if (i.schemeDetails.alert == true) {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: i.alertMessage,
text: 'Do you want to continue?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
var d = {
assignShiftId: i._id,
from: 'yes',
};
this.shiftService.alertAction(d).subscribe((res) => {
this.toastr.success('Changed', 'You have Selected to Proceed');
this.readShift();
});
// Swal.fire("Deleted!", "Your file has been deleted.", "success");
}
});
}
else {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire(i.alertMessage);
}
if (i.schemeDetails.disallow == true) {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire(i.alertMessage);
}
}
showMsg(i) {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire(i);
}
readPageSettingSkill() {
this.shiftService.getPageSettingSkill().subscribe((res) => {
this.tierType = res['tierType'];
});
}
onEmpSelected() {
this.SelectedEmpDisplay = this.Selectedemp;
this.stafflisting = {
businessUnitId: this.bu._id,
plannedBy: localStorage.getItem('loggedInUserId'),
timeFormat: this.gmtOffset,
userId: this.SelectedEmpDisplay._id,
weekNumber: moment__WEBPACK_IMPORTED_MODULE_2__(this.startDay).week(),
weekRangeEndsAt: this.endDay,
weekRangeStartsAt: this.startDay,
};
this.shiftService
.getStaffIdShift(this.SelectedEmpDisplay.staffId)
.subscribe(() => { });
this.shiftService.createEmptyShift(this.stafflisting).subscribe((res) => {
this.daywiseData = res['dayWiseData'];
this.readShift();
});
}
onChangeSplit(value) {
this.isSplit = value;
}
onCreateDay(i) {
this.isCheck = false;
this.isCheckRest = false;
this.modalService.open(this.AddCreateDay, {
windowClass: 'modal-ui-fix right-align',
});
this.StaffName = i.staff_id.name;
this.selectedEmptyShift = i;
this.getStaffSkill(i.staff_id);
this.assignShiftsId.push(i);
for (var k in this.assignShifts[i.dayName]) {
if (this.assignShifts[i.dayName][k] == i) {
this.dayKey = k;
}
}
if (i.isEmpty == false) {
this.submitBtn = 'Update';
}
else {
this.submitBtn = 'Create';
}
if (i.isEmpty == false && i.isOff == false && i.isRest == false) {
//not getting createdAt in assignshift read api hence adding it to handle geolocation
let locationId;
if (i.reportLocationId) {
locationId = this.reportLocation.find((el) => el._id == i.reportLocationId._id);
}
else {
locationId = this.locations.find((el) => el._id == i.geoReportingLocation._id);
}
this.adShift.patchValue({
StartTime: moment__WEBPACK_IMPORTED_MODULE_2__(i.startTime).format('HH:mm'),
EndTime: moment__WEBPACK_IMPORTED_MODULE_2__(i.endTime).format('HH:mm'),
reportLocation: locationId,
isCheckInEnabled: i.isCheckInEnabled != undefined ? i.isCheckInEnabled : this.checkInEnabledFlag,
isProximityEnabled: i.isProximityEnabled != undefined ? i.isProximityEnabled : this.checkInEnabledFlag,
proximity: i.proximity != undefined ? i.proximity : null,
isSplit: i.isSplitShift,
splitStartTime: moment__WEBPACK_IMPORTED_MODULE_2__(i === null || i === void 0 ? void 0 : i.splitStartTime).format('HH:mm'),
splitEndTime: moment__WEBPACK_IMPORTED_MODULE_2__(i === null || i === void 0 ? void 0 : i.splitEndTime).format('HH:mm'),
});
this.isSplit = i.isSplitShift;
if (this.tier == 2 && i.subSkillSets.length) {
i.subSkillSets.forEach((item) => {
this.skillsLabel.push([item.skillSetId.name, item.name]);
this.skillsId.push(item._id);
});
}
else if (this.tier == 1 && i.mainSkillSets.length) {
i.mainSkillSets.forEach((item) => {
this.skillsLabel.push([item.name, '']);
this.skillsId.push(item._id);
});
}
}
else if (i.isOff == true && i.isEmpty == false) {
this.isCheck = i.isOff;
this.isCheckRest = i.isRest;
}
else if (i.isRest == true && i.isEmpty == false) {
this.isCheck = i.isOff;
this.isCheckRest = i.isRest;
}
this.assignShiftsId.forEach((item) => {
switch (item.dayName) {
case 'Monday':
this.addedDay.push(this.dayArr[0]);
break;
case 'Tuesday':
this.addedDay.push(this.dayArr[1]);
break;
case 'Wednesday':
this.addedDay.push(this.dayArr[2]);
break;
case 'Thursday':
this.addedDay.push(this.dayArr[3]);
break;
case 'Friday':
this.addedDay.push(this.dayArr[4]);
break;
case 'Saturday':
this.addedDay.push(this.dayArr[5]);
break;
case 'Sunday':
this.addedDay.push(this.dayArr[6]);
break;
}
});
this.isCheck = false;
this.isCheckRest = false;
}
modelClose() {
this.adShift.patchValue({
isOff: false,
isRest: false,
SkillSets: null,
subSkillSets: null,
StartTime: null,
EndTime: null,
reportLocation: null,
proximity: this.radius,
isCheckInEnabled: this.isCheckInEnabled,
isProximityEnabled: this.isProximityEnabled,
});
this.isCheck = false;
this.isCheckRest = false;
this.modalService.dismissAll();
this.addedDay = [];
this.assignShiftsId = [];
this.skillsId = [];
this.skillsLabel = [];
}
displaySkilltable() {
this.buService.getSkillset(this.bu._id).subscribe((res) => {
if (this.tier == 2) {
this.skillSet = res['data'].skillSets;
}
});
}
getStaffSkill(s) {
this.shiftService.getStaffIdShift(s.staffId).subscribe((res) => {
if (this.tier == 2) {
this.skillSet = res['user'].subSkillSets;
if (this.skillSet.length) {
const skillArrTemp = [];
this.skillSet.forEach((val) => {
skillArrTemp.push(val.skillSetId);
});
this.skillArr = skillArrTemp.filter((v, i, a) => a.findIndex((t) => t._id === v._id) === i);
}
}
else {
this.skillArr = res['user'].mainSkillSets;
}
});
}
setSubSkill(selectedSkill) {
this.adShift.patchValue({
subSkillSets: null,
});
this.subSkill = this.skillSet.filter((v, i, a) => v.skillSetId._id == selectedSkill._id);
}
addSkills() {
if (this.tier == 2) {
this.skillsLabel.push([
this.adShift.controls.SkillSets.value.name,
this.adShift.controls.subSkillSets.value.name,
]);
this.skillsId.push(this.adShift.controls.subSkillSets.value._id);
}
else {
this.skillsLabel.push([this.adShift.controls.SkillSets.value.name, '_']);
this.skillsId.push(this.adShift.controls.SkillSets.value._id);
}
}
clearLabel(i) {
this.skillsLabel.splice(i, 1);
this.skillsId.splice(i, 1);
}
clearSkill() {
this.skillsLabel = [];
this.skillsId = [];
}
addDay(d) {
if (this.addedDay.indexOf(d) == -1) {
this.addedDay.push(d);
this.assignShiftsId.push(this.assignShifts[d.dayName][this.dayKey]);
}
else {
this.addedDay.splice(this.addedDay.indexOf(d), 1);
this.assignShiftsId.splice(this.assignShiftsId.indexOf(this.assignShifts[d.dayName][this.dayKey]), 1);
}
}
shiftPublish() {
for (var a in this.assignShifts) {
for (var b in this.assignShifts[a]) {
if (this.assignShifts[a][b].draftStatus == 0 &&
this.assignShifts[a][b].isEmpty == false &&
(this.assignShifts[a][b].isLimit == false ||
this.assignShifts[a][b].isLimit == null)) {
this.draftShifts.push(this.assignShifts[a][b]._id);
}
}
}
this.publishParam = {
businessUnitId: this.bu._id,
weekRangeStartsAt: this.startDay,
weekRangeEndsAt: this.endDay,
assignShiftIds: [...new Set(this.draftShifts)],
};
if (this.draftShifts.length != 0) {
this.loaderPublishShift = true;
const publishShift = this.shiftService
.assignShiftPublish(this.publishParam)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.loaderPublishShift = false;
publishShift.unsubscribe();
}))
.subscribe((res) => {
this.draftShifts = [];
this.readShift();
this.toastr.success('Shift Published', 'Successfully');
});
}
else {
this.toastr.info('Nothing to Publish', 'Unsuccessful');
}
}
onFileSelect(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type === 'text/csv') {
const fileUpload = this.gamificationService.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.uploadForm.get('csv').setValue(file);
}, (error) => {
var _a;
this.toastr.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message, error === null || error === void 0 ? void 0 : error.statusText, {
timeOut: 3000,
});
event.target.value = '';
file = null;
});
}
else {
this.toastr.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["COMMON_MESSAGES"].UPLOAD_ONLY_CSV);
event.target.value = '';
file = null;
this.uploadForm.get('csv').reset();
}
}
}
roaterForm() {
this.uploadForm = this.fb.group({
csv: [''],
});
}
uploadRoster() {
this.uploadParam = this.fb.group({
businessUnitId: this.bu._id,
weekRangeStartsAt: this.startDay,
weekRangeEndsAt: this.endDay,
weekNumber: moment__WEBPACK_IMPORTED_MODULE_2__(this.startDay).week(),
plannedBy: localStorage.getItem("loggedInUserId"),
timeFormat: this.gmtOffset,
});
this.shiftService
.uploadRoster(this.uploadParam.value, this.uploadForm.get('csv').value)
.subscribe((res) => {
this.readShift();
if (res && res.status === true) {
this.toastr.success('Roster Uploaded', 'Successfully');
}
else {
this.toastr.error('There is some issue with the data in the csv file, please check');
}
}, (error) => {
this.toastr.error('Something wrong went, please try again');
});
}
setSplitShift(e) {
if (e.target.checked) {
this.isSplit = true;
this.isSplitShift = true;
}
else {
this.isSplit = false;
this.isSplitShift = false;
}
}
open1(content1) {
const payload = {
page: this.userListPage,
"parentBussinessUnitId[]": this.bu._id
};
this.businessUnit = this.bu._id;
this.isSelectStaffLoading = true;
this.placeHolderText = 'Loading..........';
this.shiftService.getUserbyPlanBU(payload).subscribe((res) => {
var _a;
this.empList = res['data']['items'];
(_a = this.empList) === null || _a === void 0 ? void 0 : _a.map(id => {
id['nameAndStaffIdCombination'] = `${id.name} (${id.staffId})`;
});
this.placeHolderText = 'select staff';
this.isSelectStaffLoading = false;
});
this.Selectedemp = null;
this.modalService
.open(content1, { ariaLabelledBy: 'modal-basic-title' })
.result.then((result) => {
this.closeResult = `Closed with: ${result}`;
}, (reason) => {
this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
});
}
getDismissReason(reason) {
if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["ModalDismissReasons"].ESC) {
return 'by pressing ESC';
}
else if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["ModalDismissReasons"].BACKDROP_CLICK) {
return 'by clicking on a backdrop';
}
else {
return `with: ${reason}`;
}
}
locationFilter() {
const initAssignShift = this.assignShifts;
if (this.locationValue.length != 0) {
this.filters = false;
for (const prop in initAssignShift) {
for (const inprop of initAssignShift[prop]) {
this.locationValue.forEach((val) => {
var _a;
if (val.name != ((_a = inprop.reportLocationId) === null || _a === void 0 ? void 0 : _a.name)) {
inprop['isEmpty'] = true;
}
});
this.locationValue.forEach((val) => {
var _a;
if (val.name == ((_a = inprop.reportLocationId) === null || _a === void 0 ? void 0 : _a.name)) {
inprop['isEmpty'] = false;
}
});
}
}
this.totalColumnHrs();
}
else {
this.filters = true;
this.readShift();
}
}
onMainSkillsetValue() {
var _a, _b;
this.assignShifts = Object.assign({}, this.tempAssignShift);
this.skillsetFilter = [];
this.filterDaysObj.forEach((item) => {
item.forEach((data1) => {
if ((data1 === null || data1 === void 0 ? void 0 : data1.subSkillSets.length) > 0 &&
this.mainSkillsetValue == (data1 === null || data1 === void 0 ? void 0 : data1.subSkillSets[0].skillSetId.name)) {
this.skillsetFilter.push(data1 === null || data1 === void 0 ? void 0 : data1.subSkillSets[0].name);
this.skillsetArray = this.appointCount(this.skillsetFilter);
}
});
});
const initAssignShift = this.assignShifts;
if (this.mainSkillsetValue) {
this.filters = false;
for (const prop in initAssignShift) {
for (const inprop of initAssignShift[prop]) {
if (this.mainSkillsetValue != ((_b = (_a = inprop.subSkillSets[0]) === null || _a === void 0 ? void 0 : _a.skillSetId) === null || _b === void 0 ? void 0 : _b.name)) {
inprop['isEmpty'] = true;
}
else {
inprop['isEmpty'] = false;
}
}
}
}
else {
this.filters = true;
this.subSkillFilter = null;
this.readShift();
}
}
onSubSkillFilter() {
var _a;
const initAssignShift = this.assignShifts;
if (this.subSkillFilter) {
this.filters = false;
for (const prop in initAssignShift) {
for (const inprop of initAssignShift[prop]) {
if (this.subSkillFilter != ((_a = inprop.subSkillSets[0]) === null || _a === void 0 ? void 0 : _a.name)) {
inprop['isEmpty'] = true;
}
else {
inprop['isEmpty'] = false;
}
}
}
}
else {
this.filters = true;
// this.assignShifts = Object.assign({}, this.tempAssignShift);
this.onMainSkillsetValue();
}
}
appointFitler() {
this.assignShifts = Object.assign({}, this.tempAssignShift);
if (this.appointValue.length != 0) {
this.filters = false;
for (const prop in this.assignShifts) {
let temp = [];
this.appointValue.forEach((v) => {
this.assignShifts[prop].forEach((vv) => {
if (v.name == vv.staffAppointmentId.name) {
temp.push(vv);
}
});
});
this.assignShifts[prop] = [...temp];
}
}
else {
this.filters = true;
this.assignShifts = Object.assign({}, this.tempAssignShift);
}
}
}
AssignShiftComponent.ɵfac = function AssignShiftComponent_Factory(t) { return new (t || AssignShiftComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModalConfig"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_11__["GamificationService"])); };
AssignShiftComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AssignShiftComponent, selectors: [["app-assign-shift"]], viewQuery: function AssignShiftComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.AddCreateDay = _t.first);
} }, inputs: { bu: "bu", tier: "tier" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModalConfig"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"]])], decls: 85, vars: 44, consts: [[1, "card"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [3, "formGroup", "ngSubmit"], [1, "header-buttons"], ["type", "file", "name", "csv", 1, "btn-info", "rounded", 3, "change"], ["type", "submit", 1, "btn", "btn-success", "btn-sm", "ml-1"], [1, "fa", "fa-upload"], ["href", "../../../../../../../assets/assginshift.csv", "download", "", 1, "btn", "btn-secondary", "btn-sm", "ml-1"], [1, "fa", "fa-download"], [1, "card-body", "p-1"], [1, "row"], [1, "col-md-3", "col-sm-12", "my-1"], ["class", "d-flex", 4, "ngIf"], ["count", "1", 3, "theme", 4, "ngIf"], [1, "col", "d-flex", "my-1"], ["bindLabel", "name", "placeholder", "Location Filter", "appendTo", "body", 1, "custom", "filters", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange", "change"], ["bindLabel", "name", "placeholder", "Appointment Filter", "appendTo", "body", 1, "custom", "px-1", "filters", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange", "change"], ["bindLabel", "name", "placeholder", "Select Skillset", "appendTo", "body", 1, "custom", "px-1", "filters", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange", "change"], ["class", "custom filters", "bindLabel", "name", "placeholder", "Select Speciality", "appendTo", "body", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange", "change", 4, "ngIf"], [1, "col", "text-right", "my-1"], [1, "btn", "btn-success", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], [2, "overflow-x", "scroll"], [1, "mb-2", "flexDisplay"], [1, "align-items-center", "d-flex", "justify-content-center", "p-2", "red-heading", "shiftCard"], [1, "red-heading", "shiftCard", "p-2"], [4, "ngIf"], ["title", "Please wait loading...", "class", "d-flex justify-content-between shiftSkeleton", "count", "9", 3, "theme", 4, "ngIf"], [1, "shiftCard", "w3-white", "w3-card", "p-2", "align-items-center", "d-flex", "flex-column", "justify-content-center"], [1, "fa", "fa-plus", 3, "click"], ["class", "my-1 flexDisplay", 4, "ngIf"], ["id", "mmmModal", 1, "modal", 3, "ngClass"], [1, "modal-dialog", 2, "margin-top", "180px", "width", "500px", "height", "500px"], [1, "modal-content", "modalContentBoxGrey"], [1, "modal-body"], [1, "mb-", "col-md-12", "row"], ["bindLabel", "name", "appendTo", "body", "loadingText", "Loading more result", 1, "custom", 3, "items", "placeholder", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "loading", "search", "ngModelChange", "scrollToEnd"], [1, "modal-footer"], [1, "btn", "footer-button", "btn-clear", 3, "click"], [1, "btn", "footer-button", "btn-primary", 3, "click"], ["content1", ""], ["AddCreateDay", ""], [1, "d-flex"], ["title", "Previous Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-left", 3, "click"], [1, "material-icons"], [1, "align-items-center", "d-flex", "weekInput"], ["title", "Next Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-right", 3, "click"], ["count", "1", 3, "theme"], ["bindLabel", "name", "placeholder", "Select Speciality", "appendTo", "body", 1, "custom", "filters", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange", "change"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-1"], ["title", "Please wait loading...", "count", "9", 1, "d-flex", "justify-content-between", "shiftSkeleton", 3, "theme"], ["class", "mb-2 flexDisplay", 4, "ngFor", "ngForOf"], [1, "shiftCard", "w3-white", "w3-card", "p-1", "d-flex", "flex-column", "justify-content-between"], [1, "flex-fill"], [1, "font-weight-bold", "font", "m-0"], [1, "text-muted"], [1, "d-flex", "justify-content-end"], ["class", "material-icons text-danger click align-self-end", "title", "Delete", 3, "click", 4, "ngIf"], [1, "w3-white", "shiftCard", "w3-card", "align-items-center", "d-flex", "flex-column", "justify-content-center"], [1, "shiftCard", "d-flex", "flex-column", "w3-card", "p-1"], ["class", "fa fa-plus", 3, "click", 4, "ngIf"], ["class", "flex-fill", 3, "click", 4, "ngIf"], ["class", "d-flex justify-content-end", 3, "justify-content-between", 4, "ngIf"], ["title", "Delete", 1, "material-icons", "text-danger", "click", "align-self-end", 3, "click"], [1, "flex-fill", 3, "click"], ["class", "truncate", 4, "ngFor", "ngForOf"], [1, "truncate"], [3, "ngSwitch"], ["class", "text-warning", 4, "ngSwitchCase"], ["class", "text-success", 4, "ngSwitchCase"], ["class", "text-danger", 4, "ngSwitchCase"], [1, "text-warning"], [1, "text-success"], [1, "text-danger"], ["class", "material-icons text-danger click", "title", "Time exceeds", 3, "click", 4, "ngIf"], ["class", "material-icons text-info", "title", "Shift Seen", 4, "ngIf"], ["class", "material-icons text-success click", "title", "Read Msg", 3, "click", 4, "ngIf"], ["title", "Time exceeds", 1, "material-icons", "text-danger", "click", 3, "click"], ["title", "Shift Seen", 1, "material-icons", "text-info"], ["title", "Read Msg", 1, "material-icons", "text-success", "click", 3, "click"], [1, "my-1", "flexDisplay"], [1, "shiftCard"], ["class", "w3-gray w3-gray-card shiftCard", 4, "ngIf"], ["class", "shiftCard w3-gray w3-gray-card", 4, "ngFor", "ngForOf"], [1, "w3-gray", "w3-gray-card", "shiftCard"], [1, "shiftCard", "w3-gray", "w3-gray-card"], ["style", "text-align: center", 4, "ngIf"], [2, "text-align", "center"], [1, "modal-header", "bg-theme"], ["id", "modal-basic-title", 1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "close", "text-light", 3, "click"], ["aria-hidden", "true"], [1, "form-group"], ["ngbAutofocus", "", "bindLabel", "nameAndStaffIdCombination", "appendTo", "body", "loadingText", "Loading more result", 1, "custom", 3, "items", "placeholder", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "loading", "search", "ngModelChange", "scrollToEnd"], ["type", "button", 1, "btn", "btn-dark", 3, "click"], ["type", "button", 1, "btn", "btn-success", 3, "click"], [1, "modal-content"], [1, "modal-body", 2, "padding", "0", "min-height", "100vh"], [1, "card", "w-100"], [1, "card-header", "flexi-header", "h6", "text-white"], [1, "card-body"], [3, "formGroup"], [1, "col-md-4"], ["type", "checkbox", "name", "isOff", "value", "1", "formControlName", "isOff", 3, "checked", "change"], ["for", "off", 2, "padding-left", "0.2rem", "vertical-align", "middle"], ["type", "checkbox", "name", "isRest", "value", "2", "formControlName", "isRest", 3, "checked", "change"], ["for", "rest", 2, "padding-left", "0.2rem", "vertical-align", "middle"], [1, "row", "mt-4"], [1, "col-md-12"], [1, "font-weight-500"], ["class", "dayButton", 3, "selected", "click", 4, "ngFor", "ngForOf"], ["appendTo", "body", "placeholder", "Select StartTime", "formControlName", "StartTime", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["appendTo", "body", "placeholder", "Select EndTime", "formControlName", "EndTime", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "form-check", "form-check-inline", "float-right"], ["type", "checkbox", "id", "splitTiming", "value", "1", "formControlName", "isSplit", "name", "splitTiming", 1, "form-check-input", 3, "checked", "change"], ["for", "inlineCheckbox1", 1, "form-check-label", "font-weight-500"], ["class", "row", 4, "ngIf"], [1, "card", "mb-3"], [1, "col-md-8"], ["bindLabel", "name", "placeholder", "Select Location", "appendTo", "body", "formControlName", "reportLocation", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "form-group", "row"], [1, "align-self-end", "col-sm-4", "font-weight-500"], [1, "col-sm-8"], [1, "form-check", "form-check-inline"], ["type", "radio", "id", "yesCheckin", "formControlName", "isCheckInEnabled", "name", "isCheckInEnabled", 1, "form-check-input", 3, "value"], [1, "form-check-label"], ["type", "radio", "id", "noCheckin", "formControlName", "isCheckInEnabled", "name", "isCheckInEnabled", 1, "form-check-input", 3, "value"], ["class", "form-group row", 4, "ngIf"], ["class", "form-group row mb-0", 4, "ngIf"], [1, "row", "mb-5"], [1, "form-group", "m-0"], ["bindLabel", "name", "placeholder", "Skillsets", "appendTo", "body", "formControlName", "SkillSets", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "change"], ["class", "col-md-4", 4, "ngIf"], [1, "col-md-4", "align-self-end"], [1, "btn", "btn-clear", "p-2", 3, "click"], [1, "btn", "btn-add", "p-2", 3, "click"], ["type", "button", 1, "btn", "btn-danger", 3, "click"], ["type", "button", 1, "btn", "btn-info", 3, "click"], [1, "dayButton", 3, "click"], ["appendTo", "body", "placeholder", "Select StartTime", "formControlName", "splitStartTime", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["appendTo", "body", "placeholder", "Select EndTime", "formControlName", "splitEndTime", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["type", "radio", "id", "yesProx", "formControlName", "isProximityEnabled", "name", "isProximityEnabled", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "noProx", "formControlName", "isProximityEnabled", "name", "isProximityEnabled", 1, "form-check-input", 3, "value"], [1, "form-group", "row", "mb-0"], ["bindLabel", "name", "formControlName", "proximity", "name", "proximity", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "name", "placeholder", "Speciality", "appendTo", "body", "formControlName", "subSkillSets", 1, "custom", 3, "items", "multiple", "searchable", "closeOnSelect", "clearable"], ["class", "labels", 4, "ngFor", "ngForOf"], [1, "labels"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"]], template: function AssignShiftComponent_Template(rf, ctx) { if (rf & 1) {
const _r365 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function AssignShiftComponent_Template_form_ngSubmit_4_listener() { return ctx.uploadRoster(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "input", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function AssignShiftComponent_Template_input_change_6_listener($event) { return ctx.onFileSelect($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "i", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Upload roster ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "a", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "i", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Download sample ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, AssignShiftComponent_div_16_Template, 9, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, AssignShiftComponent_ngx_skeleton_loader_17_Template, 1, 2, "ngx-skeleton-loader", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "ng-select", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AssignShiftComponent_Template_ng_select_ngModelChange_19_listener($event) { return ctx.locationValue = $event; })("change", function AssignShiftComponent_Template_ng_select_change_19_listener() { return ctx.locationFilter(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "ng-select", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AssignShiftComponent_Template_ng_select_ngModelChange_20_listener($event) { return ctx.appointValue = $event; })("change", function AssignShiftComponent_Template_ng_select_change_20_listener() { return ctx.appointFitler(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "ng-select", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function AssignShiftComponent_Template_ng_select_ngModelChange_21_listener($event) { return ctx.mainSkillsetValue = $event; })("change", function AssignShiftComponent_Template_ng_select_change_21_listener() { return ctx.onMainSkillsetValue(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, AssignShiftComponent_ng_select_22_Template, 1, 6, "ng-select", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_Template_button_click_24_listener() { return ctx.shiftPublish(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, " Publish ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, AssignShiftComponent_span_26_Template, 1, 0, "span", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](27, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " Select Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " Total Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, " Monday");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](37, AssignShiftComponent_span_37_Template, 2, 1, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " Tuesday");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](40, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](41, AssignShiftComponent_span_41_Template, 2, 1, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, " Wednesday");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](44, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, AssignShiftComponent_span_45_Template, 2, 1, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, " Thursday");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](48, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](49, AssignShiftComponent_span_49_Template, 2, 1, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, " Friday");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](52, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](53, AssignShiftComponent_span_53_Template, 2, 1, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, " Saturday");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](56, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](57, AssignShiftComponent_span_57_Template, 2, 1, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59, " Sunday");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](60, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](61, AssignShiftComponent_span_61_Template, 2, 1, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](62, AssignShiftComponent_ngx_skeleton_loader_62_Template, 1, 2, "ngx-skeleton-loader", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](63, AssignShiftComponent_div_63_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_Template_i_click_65_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r365); const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](82); return ctx.open1(_r14); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](66, AssignShiftComponent_div_66_Template, 4, 2, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, "Select Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "ng-select", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function AssignShiftComponent_Template_ng_select_search_75_listener($event) { return ctx.staffSearch($event); })("ngModelChange", function AssignShiftComponent_Template_ng_select_ngModelChange_75_listener($event) { return ctx.Selectedemp = $event; })("scrollToEnd", function AssignShiftComponent_Template_ng_select_scrollToEnd_75_listener($event) { return ctx.loadMorePlasnBuUnitItems($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "button", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_Template_button_click_77_listener() { return ctx.onAddStaff(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](78, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function AssignShiftComponent_Template_button_click_79_listener() { return ctx.onEmpSelected(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](81, AssignShiftComponent_ng_template_81_Template, 16, 8, "ng-template", null, 41, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](83, AssignShiftComponent_ng_template_83_Template, 84, 35, "ng-template", null, 42, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Business Unit : ", ctx.bu.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.uploadForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.currWeek);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.currWeek);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.filterLocationArrayFinal)("multiple", true)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx.locationValue);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.appointOption)("multiple", true)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx.appointValue);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.mainSkillsetArray)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx.mainSkillsetValue);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.tierType == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disablePublishButton);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loaderPublishShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.weekDateArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.weekDateArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.weekDateArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.weekDateArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.weekDateArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.weekDateArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.weekDateArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.assignShiftsLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.assignShifts);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.assignShifts);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.addStaff ? "show-modal" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.empList)("placeholder", ctx.placeHolderText)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx.Selectedemp)("loading", ctx.isSelectStaffLoading);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_15__["NgxSkeletonLoaderComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgSwitchCase"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["DatePipe"]], styles: [".w3-bar-item[_ngcontent-%COMP%] {\n padding: 8px 16px !important;\n float: left;\n width: auto;\n border: none;\n display: block;\n outline: 0;\n margin: 0 0.25rem;\n}\n\n.w3-blue[_ngcontent-%COMP%] {\n color: #fff !important;\n background-color: #2196f3 !important;\n}\n\n.w3-round[_ngcontent-%COMP%] {\n border-radius: 4px;\n}\n\n.card-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.w3-red[_ngcontent-%COMP%] {\n color: #fff !important;\n background-color: #f44336 !important;\n}\n\n.w3-green[_ngcontent-%COMP%] {\n color: #fff !important;\n background-color: #4caf50 !important;\n}\n\n.w3-skyblue[_ngcontent-%COMP%] {\n color: #222 !important;\n background-color: skyblue !important;\n}\n\n.header-buttons[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.w3-white[_ngcontent-%COMP%] {\n color: #000;\n background-color: #fff;\n}\n\n.w3-card[_ngcontent-%COMP%] {\n height: 7.2rem;\n border: 1px solid #e2e2e2;\n}\n\n .shiftSkeleton > span {\n min-width: 120px;\n}\n\n.shiftCard[_ngcontent-%COMP%] {\n width: 124px;\n min-width: 120px;\n font-size: 12px;\n position: relative;\n overflow: hidden;\n border-radius: 4px;\n margin: 0 2px;\n}\n\n.shiftCard[_ngcontent-%COMP%] .fa-plus[_ngcontent-%COMP%] {\n cursor: pointer;\n transform: translate(-50%, -50%);\n top: 50%;\n left: 50%;\n position: absolute;\n font-size: 0.8rem;\n}\n\n.shiftCard[_ngcontent-%COMP%] .iconPos[_ngcontent-%COMP%] {\n position: absolute;\n right: 0.3rem;\n bottom: 0.4rem;\n}\n\n.shiftCard[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] {\n margin: 0 2px;\n font-size: 20px;\n}\n\n.shiftCard[_ngcontent-%COMP%] .flex-fill[_ngcontent-%COMP%] {\n overflow-y: auto;\n overflow-x: hidden;\n}\n\n@media only screen and (min-width: 1379px) {\n .shiftCard[_ngcontent-%COMP%] {\n min-width: 134px;\n }\n\n .shiftSkeleton > span {\n min-width: 134px;\n }\n}\n\n.red-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n text-align: center;\n border-radius: 4px;\n font-size: 1rem;\n}\n\n.hrCard[_ngcontent-%COMP%] {\n width: 90px;\n min-width: 90px;\n margin: 0 0.25rem;\n}\n\n.font[_ngcontent-%COMP%] {\n font-size: 12px;\n}\n\n.show-modal[_ngcontent-%COMP%] {\n display: block;\n}\n\n.modal-footer[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n}\n\n.footer-button[_ngcontent-%COMP%] {\n width: 4rem;\n}\n\n.dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-left: 10px;\n font-weight: 500;\n color: #942a57 !important;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover, .selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #a42138;\n color: white !important;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover {\n opacity: 0.8;\n}\n\n.dayButton[_ngcontent-%COMP%]:first-of-type {\n margin: 0;\n}\n\n.selected[_ngcontent-%COMP%] {\n opacity: 1 !important;\n}\n\n.w3-gray[_ngcontent-%COMP%] {\n background-color: #f1f1f1;\n text-align: center;\n height: 4rem;\n}\n\n.w3-gray-card[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.weekbtn[_ngcontent-%COMP%] {\n width: 36px;\n border: 1px solid #a42138;\n height: 36px;\n text-align: center;\n float: left;\n background: #faacac;\n color: #a42138;\n cursor: pointer;\n transition: all 0.3s;\n}\n\n.weekbtn[_ngcontent-%COMP%]:hover {\n background: #a42138;\n color: #fff;\n}\n\n.weekInput[_ngcontent-%COMP%] {\n height: 36px;\n border-top: 1px solid #a42138;\n border-bottom: 1px solid #a42138;\n text-align: center;\n float: left;\n padding: 5px;\n font-weight: bold;\n font-size: smaller;\n padding-left: 10px;\n padding-right: 10px;\n background: #fff;\n}\n\n.hidden[_ngcontent-%COMP%] {\n visibility: hidden;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n margin: 4px 4px 0 0;\n display: flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n font-size: smaller;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 13px;\n padding: 2px;\n cursor: pointer;\n margin-left: 2px;\n}\n\n.hand[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.flexi-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n color: #fff;\n font-size: 1rem;\n font-weight: 500;\n margin: 0;\n display: inline-block;\n}\n\n.truncate[_ngcontent-%COMP%] {\n width: 100px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.click[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n .modal-content {\n border: none;\n}\n\n.ng-select.custom.filters[_ngcontent-%COMP%] {\n padding: 0 2px;\n max-width: 175px;\n min-width: 150px;\n}\n\n.class1[_ngcontent-%COMP%] {\n padding: 0 2px;\n max-width: 175px;\n min-width: 150px;\n color: red;\n}\n\n.class2[_ngcontent-%COMP%] {\n padding: 0 2px;\n max-width: 175px;\n min-width: 150px;\n color: blue;\n}\n\n.spinner-border[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9hc3NpZ24tc2hpZnQvYXNzaWduLXNoaWZ0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBO0VBQ0UsNEJBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0EsVUFBQTtFQUNBLGlCQUFBO0FBQUY7O0FBR0E7RUFDRSxzQkFBQTtFQUNBLG9DQUFBO0FBQUY7O0FBR0E7RUFDRSxrQkFBQTtBQUFGOztBQUdBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBQUY7O0FBR0E7RUFDRSxzQkFBQTtFQUNBLG9DQUFBO0FBQUY7O0FBR0E7RUFDRSxzQkFBQTtFQUNBLG9DQUFBO0FBQUY7O0FBR0E7RUFDRSxzQkFBQTtFQUNBLG9DQUFBO0FBQUY7O0FBR0E7RUFDRSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxtQkFBQTtBQUFGOztBQUdBO0VBQ0UsVUFBQTtBQUFGOztBQUdBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBQUY7O0FBR0E7RUFDRSxXQUFBO0VBQ0Esc0JBQUE7QUFBRjs7QUFHQTtFQUNFLGNBQUE7RUFDQSx5QkFBQTtBQUFGOztBQUdBO0VBQ0UsZ0JBQUE7QUFBRjs7QUFHQTtFQUNFLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxhQUFBO0FBQUY7O0FBRUU7RUFDRSxlQUFBO0VBQ0EsZ0NBQUE7RUFDQSxRQUFBO0VBQ0EsU0FBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7QUFBSjs7QUFHRTtFQUNFLGtCQUFBO0VBQ0EsYUFBQTtFQUNBLGNBQUE7QUFESjs7QUFJRTtFQUNFLGFBQUE7RUFDQSxlQUFBO0FBRko7O0FBS0U7RUFDRSxnQkFBQTtFQUNBLGtCQUFBO0FBSEo7O0FBT0E7RUFDRTtJQUNFLGdCQUFBO0VBSkY7O0VBT0E7SUFDRSxnQkFBQTtFQUpGO0FBQ0Y7O0FBT0E7RUFDRSx5QkFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtBQUxGOztBQVFBO0VBQ0UsV0FBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTtBQUxGOztBQU9BO0VBQ0UsZUFBQTtBQUpGOztBQU9BO0VBQ0UsY0FBQTtBQUpGOztBQU9BO0VBQ0UsYUFBQTtFQUNBLHlCQUFBO0FBSkY7O0FBT0E7RUFDRSxXQUFBO0FBSkY7O0FBT0E7RUFDRSxjQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLHlCQUFBO0VBQ0EsNkJBQUE7RUFDQSxrQkFBQTtFQUNBLHVCQUFBO0FBSkY7O0FBT0E7O0VBRUUsYUFBQTtFQUNBLHlCQUFBO0VBQ0EsdUJBQUE7QUFKRjs7QUFPQTtFQUNFLFlBQUE7QUFKRjs7QUFPQTtFQUNFLFNBQUE7QUFKRjs7QUFPQTtFQUNFLHFCQUFBO0FBSkY7O0FBT0E7RUFDRSx5QkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtBQUpGOztBQU9BO0VBQ0UsYUFBQTtFQUNBLHNCQUFBO0VBQ0EsdUJBQUE7QUFKRjs7QUFPQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxtQkFBQTtFQUNBLGNBQUE7RUFDQSxlQUFBO0VBQ0Esb0JBQUE7QUFKRjs7QUFNRTtFQUNFLG1CQUFBO0VBQ0EsV0FBQTtBQUpKOztBQVFBO0VBQ0UsWUFBQTtFQUNBLDZCQUFBO0VBQ0EsZ0NBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtBQUxGOztBQVFBO0VBQ0Usa0JBQUE7QUFMRjs7QUFRQTtFQUNFLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLG1CQUFBO0VBQ0EsYUFBQTtFQUNBLDhCQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtBQUxGOztBQU9FO0VBQ0Usa0JBQUE7QUFMSjs7QUFRRTtFQUNFLGVBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0FBTko7O0FBVUE7RUFDRSxlQUFBO0FBUEY7O0FBVUE7RUFDRSxXQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsU0FBQTtFQUNBLHFCQUFBO0FBUEY7O0FBVUE7RUFDRSxZQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtFQUNBLHVCQUFBO0FBUEY7O0FBVUE7RUFDRSxlQUFBO0FBUEY7O0FBVUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUFQRjs7QUFVQTtFQUNFLFlBQUE7QUFQRjs7QUFVQTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0FBUEY7O0FBU0E7RUFDRSxjQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtFQUNBLFVBQUE7QUFORjs7QUFRQTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0VBQ0EsV0FBQTtBQUxGOztBQVFBO0VBQ0Usc0JBQUE7QUFMRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3BsYW4tc2hpZnQvYXNzaWduLXNoaWZ0L2Fzc2lnbi1zaGlmdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxuLnczLWJhci1pdGVtIHtcbiAgcGFkZGluZzogOHB4IDE2cHggIWltcG9ydGFudDtcbiAgZmxvYXQ6IGxlZnQ7XG4gIHdpZHRoOiBhdXRvO1xuICBib3JkZXI6IG5vbmU7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBvdXRsaW5lOiAwO1xuICBtYXJnaW46IDAgMC4yNXJlbTtcbn1cblxuLnczLWJsdWUge1xuICBjb2xvcjogI2ZmZiAhaW1wb3J0YW50O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjE5NmYzICFpbXBvcnRhbnQ7XG59XG5cbi53My1yb3VuZCB7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn1cblxuLmNhcmQtaGVhZGVyIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG4udzMtcmVkIHtcbiAgY29sb3I6ICNmZmYgIWltcG9ydGFudDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y0NDMzNiAhaW1wb3J0YW50O1xufVxuXG4udzMtZ3JlZW4ge1xuICBjb2xvcjogI2ZmZiAhaW1wb3J0YW50O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNGNhZjUwICFpbXBvcnRhbnQ7XG59XG5cbi53My1za3libHVlIHtcbiAgY29sb3I6ICMyMjIgIWltcG9ydGFudDtcbiAgYmFja2dyb3VuZC1jb2xvcjogc2t5Ymx1ZSAhaW1wb3J0YW50O1xufVxuXG4uaGVhZGVyLWJ1dHRvbnMge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG5cbi5uby1wYWRkaW5nIHtcbiAgcGFkZGluZzogMDtcbn1cblxuLmZsZXhEaXNwbGF5IHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG4udzMtd2hpdGUge1xuICBjb2xvcjogIzAwMDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbn1cblxuLnczLWNhcmQge1xuICBoZWlnaHQ6IDcuMnJlbTtcbiAgYm9yZGVyOiAxcHggc29saWQgI2UyZTJlMjtcbn1cblxuOjpuZy1kZWVwIC5zaGlmdFNrZWxldG9uID4gc3BhbiB7XG4gIG1pbi13aWR0aDogMTIwcHg7XG59XG5cbi5zaGlmdENhcmQge1xuICB3aWR0aDogMTI0cHg7XG4gIG1pbi13aWR0aDogMTIwcHg7XG4gIGZvbnQtc2l6ZTogMTJweDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBvdmVyZmxvdzogaGlkZGVuO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIG1hcmdpbjogMCAycHg7XG5cbiAgLmZhLXBsdXMge1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbiAgICB0b3A6IDUwJTtcbiAgICBsZWZ0OiA1MCU7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGZvbnQtc2l6ZTogMC44cmVtO1xuICB9XG5cbiAgLmljb25Qb3Mge1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICByaWdodDogMC4zcmVtO1xuICAgIGJvdHRvbTogMC40cmVtO1xuICB9XG5cbiAgLm1hdGVyaWFsLWljb25zIHtcbiAgICBtYXJnaW46IDAgMnB4O1xuICAgIGZvbnQtc2l6ZTogMjBweDtcbiAgfVxuXG4gIC5mbGV4LWZpbGwge1xuICAgIG92ZXJmbG93LXk6IGF1dG87XG4gICAgb3ZlcmZsb3cteDogaGlkZGVuO1xuICB9XG59XG5cbkBtZWRpYSBvbmx5IHNjcmVlbiBhbmQgKG1pbi13aWR0aDogMTM3OXB4KSB7XG4gIC5zaGlmdENhcmQge1xuICAgIG1pbi13aWR0aDogMTM0cHg7XG4gIH1cblxuICA6Om5nLWRlZXAgLnNoaWZ0U2tlbGV0b24gPiBzcGFuIHtcbiAgICBtaW4td2lkdGg6IDEzNHB4O1xuICB9XG59XG5cbi5yZWQtaGVhZGluZyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgZm9udC1zaXplOiAxcmVtO1xufVxuXG4uaHJDYXJkIHtcbiAgd2lkdGg6IDkwcHg7XG4gIG1pbi13aWR0aDogOTBweDtcbiAgbWFyZ2luOiAwIDAuMjVyZW07XG59XG4uZm9udCB7XG4gIGZvbnQtc2l6ZTogMTJweDtcbn1cblxuLnNob3ctbW9kYWwge1xuICBkaXNwbGF5OiBibG9jaztcbn1cblxuLm1vZGFsLWZvb3RlciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogZmxleC1lbmQ7XG59XG5cbi5mb290ZXItYnV0dG9uIHtcbiAgd2lkdGg6IDRyZW07XG59XG5cbi5kYXlCdXR0b24ge1xuICBoZWlnaHQ6IDIuNXJlbTtcbiAgd2lkdGg6IDIuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBtYXJnaW4tbGVmdDogMTBweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgY29sb3I6ICM5NDJhNTcgIWltcG9ydGFudDtcbiAgYm9yZGVyOiAxcHggc29saWQgdHJhbnNwYXJlbnQ7XG4gIGJvcmRlci1jb2xvcjogI2NjYztcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG59XG5cbi5kYXlCdXR0b246aG92ZXIsXG4uc2VsZWN0ZWQge1xuICBvdXRsaW5lOiBub25lO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cblxuLmRheUJ1dHRvbjpob3ZlciB7XG4gIG9wYWNpdHk6IDAuODtcbn1cblxuLmRheUJ1dHRvbjpmaXJzdC1vZi10eXBlIHtcbiAgbWFyZ2luOiAwO1xufVxuXG4uc2VsZWN0ZWQge1xuICBvcGFjaXR5OiAxICFpbXBvcnRhbnQ7XG59XG5cbi53My1ncmF5IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2YxZjFmMTtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBoZWlnaHQ6IDRyZW07XG59XG5cbi53My1ncmF5LWNhcmQge1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbn1cblxuLndlZWtidG4ge1xuICB3aWR0aDogMzZweDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2E0MjEzODtcbiAgaGVpZ2h0OiAzNnB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGZsb2F0OiBsZWZ0O1xuICBiYWNrZ3JvdW5kOiAjZmFhY2FjO1xuICBjb2xvcjogI2E0MjEzODtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICB0cmFuc2l0aW9uOiBhbGwgMC4zcztcblxuICAmOmhvdmVyIHtcbiAgICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICAgIGNvbG9yOiAjZmZmO1xuICB9XG59XG5cbi53ZWVrSW5wdXQge1xuICBoZWlnaHQ6IDM2cHg7XG4gIGJvcmRlci10b3A6IDFweCBzb2xpZCAjYTQyMTM4O1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2E0MjEzODtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBmbG9hdDogbGVmdDtcbiAgcGFkZGluZzogNXB4O1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgZm9udC1zaXplOiBzbWFsbGVyO1xuICBwYWRkaW5nLWxlZnQ6IDEwcHg7XG4gIHBhZGRpbmctcmlnaHQ6IDEwcHg7XG4gIGJhY2tncm91bmQ6ICNmZmY7XG59XG5cbi5oaWRkZW4ge1xuICB2aXNpYmlsaXR5OiBoaWRkZW47XG59XG5cbi5sYWJlbHMge1xuICBwYWRkaW5nOiA2cHggOHB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBtYXJnaW46IDRweCA0cHggMCAwO1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAudGV4dCB7XG4gICAgZm9udC1zaXplOiBzbWFsbGVyO1xuICB9XG5cbiAgLmJ0bi1jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxM3B4O1xuICAgIHBhZGRpbmc6IDJweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgbWFyZ2luLWxlZnQ6IDJweDtcbiAgfVxufVxuXG4uaGFuZCB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLmZsZXhpLWhlYWRlciBoMyB7XG4gIGNvbG9yOiAjZmZmO1xuICBmb250LXNpemU6IDFyZW07XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIG1hcmdpbjogMDtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xufVxuXG4udHJ1bmNhdGUge1xuICB3aWR0aDogMTAwcHg7XG4gIHdoaXRlLXNwYWNlOiBub3dyYXA7XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHRleHQtb3ZlcmZsb3c6IGVsbGlwc2lzO1xufVxuXG4uY2xpY2sge1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuXG46Om5nLWRlZXAgLm1vZGFsLWNvbnRlbnQge1xuICBib3JkZXI6IG5vbmU7XG59XG5cbi5uZy1zZWxlY3QuY3VzdG9tLmZpbHRlcnMge1xuICBwYWRkaW5nOiAwIDJweDtcbiAgbWF4LXdpZHRoOiAxNzVweDtcbiAgbWluLXdpZHRoOiAxNTBweDtcbn1cbi5jbGFzczF7XG4gIHBhZGRpbmc6IDAgMnB4O1xuICBtYXgtd2lkdGg6IDE3NXB4O1xuICBtaW4td2lkdGg6IDE1MHB4O1xuICBjb2xvcjogcmVkO1xufVxuLmNsYXNzMntcbiAgcGFkZGluZzogMCAycHg7XG4gIG1heC13aWR0aDogMTc1cHg7XG4gIG1pbi13aWR0aDogMTUwcHg7XG4gIGNvbG9yOiBibHVlO1xufVxuXG4uc3Bpbm5lci1ib3JkZXIge1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AssignShiftComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-assign-shift',
templateUrl: './assign-shift.component.html',
styleUrls: ['./assign-shift.component.scss'],
providers: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModalConfig"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"]],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModalConfig"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__["ShiftSchedulerService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_11__["GamificationService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], tier: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], AddCreateDay: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['AddCreateDay', { static: true }]
}] }); })();
/***/ }),
/***/ "RKBd":
/*!********************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/logs-overview/logs-overview.component.ts ***!
\********************************************************************************************/
/*! exports provided: LogsOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogsOverviewComponent", function() { return LogsOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function LogsOverviewComponent_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LogsOverviewComponent_table_24_tr_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, item_r3.createdAt, "medium"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.customForm == null ? null : item_r3.customForm.title);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.user == null ? null : item_r3.user.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.user == null ? null : item_r3.user.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r3.changeMessage);
} }
function LogsOverviewComponent_table_24_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function LogsOverviewComponent_table_24_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r4.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " UPDATED AT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function LogsOverviewComponent_table_24_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " FORM TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function LogsOverviewComponent_table_24_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " UPDATED BY ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function LogsOverviewComponent_table_24_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " STAFF ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "MESSAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, LogsOverviewComponent_table_24_tr_14_Template, 12, 8, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class LogsOverviewComponent {
constructor(customformService, toastService, storageService, formBuilder, tableService) {
this.customformService = customformService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.tableService = tableService;
this.isTableLoading = false;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this.logTableColumn = ['createdAt', 'customForm.title', 'user.name', 'user.staffId', 'changeMessage'];
this.tableQueryParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__["tableParamLog"];
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdBy',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["delay"])(500))))
.subscribe((input) => {
// this.usersPTable.page = 1;
this.tableQueryParams.start = 0;
this.tableQueryParams.search.value = input;
this.loadFormLog();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sort = { key: column, order: direction };
this.loadFormLog();
}
onPageChangeUsers(page) {
// this.usersPTable.page = page;
this.tableQueryParams.start = +page > 1 ? (page - 1) * this.usersPTable.limit : 0;
this.loadFormLog();
}
onLimitChangeUsers() {
this.tableQueryParams.start = 0;
this.loadFormLog();
}
ngOnInit() {
this.tableQueryParams.draw = 0;
this.tableQueryParams.search.value = "";
this.loadFormLog();
}
loadFormLog() {
//let tableCol: any = this.tableService.initializeTableParamsColums(this.logTableColumn, [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]) || [];
this.tableQueryParams.columns = [];
this.tableQueryParams.draw++;
this.tableQueryParams.length = this.usersPTable.limit;
this.isTableLoading = true;
const subscribe = this.customformService
.getAllFormLogs(this.tableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.usersPTable.data = response.data;
this.usersPTable.total = response.recordsTotal;
this.usersPTable.page = response.draw++;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
this.isTableLoading = false;
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
LogsOverviewComponent.ɵfac = function LogsOverviewComponent_Factory(t) { return new (t || LogsOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_5__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__["TableService"])); };
LogsOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogsOverviewComponent, selectors: [["app-logs-overview"]], viewQuery: function LogsOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 31, vars: 16, consts: [[1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"]], template: function LogsOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "FORMS LOG");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function LogsOverviewComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function LogsOverviewComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, LogsOverviewComponent_span_21_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function LogsOverviewComponent_Template_input_search_22_listener($event) { return ctx.userssearchInput.next($event); })("keyup", function LogsOverviewComponent_Template_input_keyup_22_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function LogsOverviewComponent_Template_input_ngModelChange_22_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, LogsOverviewComponent_table_24_Template, 15, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function LogsOverviewComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function LogsOverviewComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total Records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["DatePipe"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9mb3Jtcy9sb2dzLW92ZXJ2aWV3L2xvZ3Mtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MifQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LogsOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-logs-overview',
templateUrl: './logs-overview.component.html',
styleUrls: ['./logs-overview.component.scss']
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_5__["CustomFormService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__["TableService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "RZ9m":
/*!*****************************************************************!*\
!*** ./src/app/admin/service/companyservice/company.service.ts ***!
\*****************************************************************/
/*! exports provided: CompanyService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompanyService", function() { return CompanyService; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class CompanyService {
constructor(http, storageService) {
this.http = http;
this.storageService = storageService;
this.JWT_TOKEN = 'adminToken';
this.loadToken();
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({ Accept: 'application/json', 'Content-Type': 'application/json', 'Authorization': `${this.token}`, });
}
loadToken() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
this.token = yield this.storageService.getByKey(this.JWT_TOKEN);
});
}
getCompanies({ page, limit, search, sort }) {
return this.http.get(`${this.baseUrl}/company/`, { headers: this.Headers, params: { page, limit, search, sortWith: sort.key, sortBy: sort.order } });
}
uploadFile(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http.post(`${this.baseUrl}/upload/`, formData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((res) => res));
}
uploadAnswerImage(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http.post(`${this.baseUrl}/wall/uploadFiles`, formData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((res) => res));
}
uploadWallFile(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http.post(`${this.baseUrl}/wall/uploadFiles`, formData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((res) => res));
}
createCompany(company) {
return this.http.post(`${this.baseUrl}/company/`, Object.assign({}, company), { headers: this.Headers });
}
// updateWall(data, id): Observable {
// return this.http
// .put(`${this.baseUrl}/wall/updateWall/${id}`, data, {
// headers: this.Headers,
// })
// .pipe(map((res) => res as any));
// }
updateCompany(company, companyId) {
// http://doodlebluelive.com:2223/api/company/60379e1d9792158c58568484
return this.http.put(`${this.baseUrl}/company/${companyId}`, Object.assign({}, company), { headers: this.Headers }).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((res) => res));
}
getCompanyById(id) {
return this.http.get(`https://admin.newstaging.gq/api/company/getActiveCompanyByInput/?input=${id}`, { headers: this.Headers });
}
deleteCompanyById(companyId) {
return this.http.delete(`https://admin.newstaging.gq/api/company/deleteCompany/${companyId}`, { headers: this.Headers });
}
checkImagePath(path) {
if (path.startsWith('/'))
return `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl}${path}`;
return `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl}/${path}`;
}
}
CompanyService.ɵfac = function CompanyService_Factory(t) { return new (t || CompanyService)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
CompanyService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjectable"]({ token: CompanyService, factory: CompanyService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](CompanyService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "Rcuu":
/*!**************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/others/others.component.ts ***!
\**************************************************************************************/
/*! exports provided: OthersComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OthersComponent", function() { return OthersComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
function OthersComponent_ng_option_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r1, " ");
} }
class OthersComponent {
constructor(companySetupService, toastService) {
this.companySetupService = companySetupService;
this.toastService = toastService;
this.hoursArray = [];
}
ngOnInit() {
for (let index = 1; index < 25; index++) {
this.hoursArray.push(index);
}
this.getCompanySetupDetails();
}
getCompanySetupDetails() {
const sub = this.companySetupService
.getcompanySetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.companySettingsId = res.data._id;
this.technicalEmail = res.data.techEmail;
this.administratorEmail = res.data.adminEmail;
this.remindHours = Number(res.data.notificRemindHours);
this.remindDays = Number(res.data.notificRemindDays);
}, (error) => {
});
}
onSubmitSetupForm() {
let data = {
techEmail: this.technicalEmail,
adminEmail: this.administratorEmail,
pageId: this.companySettingsId,
notificRemindDays: this.remindDays,
notificRemindHours: this.remindHours
};
!this.remindDays ? delete data.notificRemindDays : '';
!this.remindHours ? delete data.notificRemindHours : '';
this.companySetupService
.updateCompanySettings(data)
.subscribe((res) => {
this.toastService.success('Updated SuccessFully');
});
}
}
OthersComponent.ɵfac = function OthersComponent_Factory(t) { return new (t || OthersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_2__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"])); };
OthersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: OthersComponent, selectors: [["app-others"]], decls: 38, vars: 7, consts: [[1, "card", "mb-3"], [1, "card-header", "flexi-header"], [1, "card-body", "notificationSection"], [1, "notif-reminder"], [1, "justify-content-SB"], [1, "col-3"], [1, "form-group"], [1, "font-weight-bold"], ["type", "number", 1, "form-control", 3, "ngModel", "ngModelChange"], [1, "custom", 3, "searchable", "clearable", "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], ["type", "email", "placeholder", "", "maxlength", "50", 1, "form-control", 3, "ngModel", "ngModelChange"], [1, "col-3", "mb-2"], ["type", "title", "placeholder", "", "maxlength", "50", 1, "form-control", 3, "ngModel", "ngModelChange"], [1, "row"], [1, "col-md-4"], [1, "btn", "btn-submit", "update-button", 3, "click"], [1, "fa"], [3, "value"]], template: function OthersComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "OTHERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " NOTIFICATION REMINDER SETUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Remind Days");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function OthersComponent_Template_input_ngModelChange_12_listener($event) { return ctx.remindDays = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Remind Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "ng-select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function OthersComponent_Template_ng_select_ngModelChange_17_listener($event) { return ctx.remindHours = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, OthersComponent_ng_option_18_Template, 2, 2, "ng-option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "p", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "FEEDBACK EMAIL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Technical email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "input", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function OthersComponent_Template_input_ngModelChange_27_listener($event) { return ctx.technicalEmail = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Adminstrative email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "input", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function OthersComponent_Template_input_ngModelChange_32_listener($event) { return ctx.administratorEmail = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "button", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OthersComponent_Template_button_click_35_listener() { return ctx.onSubmitSetupForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "i", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "Update");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.remindDays);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("searchable", true)("clearable", true)("ngModel", ctx.remindHours);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.hoursArray);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.technicalEmail);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.administratorEmail);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["NativeElementInjectorDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_6__["NgSelectComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["MaxLengthValidator"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_6__["ɵr"]], styles: [".justify-content-SB[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n}\n\n.update-button[_ngcontent-%COMP%] {\n width: 100px;\n}\n\n.card-body-inline[_ngcontent-%COMP%] {\n padding: 10px;\n display: inline-flex;\n align-items: center;\n}\n\n.justify-content-SB[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n}\n\n.notif-reminder[_ngcontent-%COMP%] {\n color: #a51f38;\n font-weight: 500;\n text-align: left;\n margin-top: 20px;\n margin-bottom: 20px;\n margin-left: 15px;\n}\n\n.notificationSection[_ngcontent-%COMP%] {\n padding: 5px 0px 0px 0px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvb3RoZXJzL290aGVycy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLFdBQUE7RUFDQSxhQUFBO0FBQ0o7O0FBQ0U7RUFDRSxZQUFBO0FBRUo7O0FBQ0U7RUFDRSxhQUFBO0VBQ0Esb0JBQUE7RUFDQSxtQkFBQTtBQUVKOztBQUNFO0VBQ0UsV0FBQTtFQUNBLGFBQUE7QUFFSjs7QUFDRTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxtQkFBQTtFQUNBLGlCQUFBO0FBRUo7O0FBQ0U7RUFDRSx3QkFBQTtBQUVKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvb3RoZXJzL290aGVycy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5qdXN0aWZ5LWNvbnRlbnQtU0Ige1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gIH1cbiAgLnVwZGF0ZS1idXR0b24ge1xuICAgIHdpZHRoOiAxMDBweDtcbiAgfVxuICBcbiAgLmNhcmQtYm9keS1pbmxpbmUge1xuICAgIHBhZGRpbmc6IDEwcHg7XG4gICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgfVxuICBcbiAgLmp1c3RpZnktY29udGVudC1TQiB7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgZGlzcGxheTogZmxleDtcbiAgfVxuICBcbiAgLm5vdGlmLXJlbWluZGVyIHtcbiAgICBjb2xvcjogI2E1MWYzODtcbiAgICBmb250LXdlaWdodDogNTAwO1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG4gICAgbWFyZ2luLXRvcDogMjBweDtcbiAgICBtYXJnaW4tYm90dG9tOiAyMHB4O1xuICAgIG1hcmdpbi1sZWZ0OiAxNXB4O1xuICB9XG4gIFxuICAubm90aWZpY2F0aW9uU2VjdGlvbntcbiAgICBwYWRkaW5nOiA1cHggMHB4IDBweCAwcHg7XG4gIH0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](OthersComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-others',
templateUrl: './others.component.html',
styleUrls: ['./others.component.scss']
}]
}], function () { return [{ type: _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_2__["CompanySetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "RndP":
/*!*******************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/view-shift/view-shift.component.ts ***!
\*******************************************************************************************/
/*! exports provided: ViewShiftComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewShiftComponent", function() { return ViewShiftComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _plan_shift_plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../plan-shift/plan-shift-header/plan-shift-header.component */ "SD5B");
/* harmony import */ var _manage_shift_manage_overview_manage_overview_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../manage-shift/manage-overview/manage-overview.component */ "IrbV");
/* harmony import */ var _manage_shift_manage_manage_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../manage-shift/manage/manage.component */ "qjb4");
const _c0 = ["sidemenu"];
function ViewShiftComponent_div_0_ng_container_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ng-option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r4.label);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.label);
} }
function ViewShiftComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ViewShiftComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.buId = $event; })("change", function ViewShiftComponent_div_0_Template_ng_select_change_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.onBuChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "WORK WEEK");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "ng-select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ViewShiftComponent_div_0_Template_ng_select_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.selectedWeek = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ViewShiftComponent_div_0_ng_container_11_Template, 3, 2, "ng-container", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewShiftComponent_div_0_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.viewClicked(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.buForShift)("loading", ctx_r0.buLoader)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.buId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", true)("loading", ctx_r0.weeksLoader)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.selectedWeek);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.weeksArr);
} }
function ViewShiftComponent_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-plan-shift-header", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "app-manage-overview", 24);
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("data", ctx_r11.headerData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("bu", ctx_r11.buId)("startDate", ctx_r11.startDateLocal)("shiftGraph", ctx_r11.receivedPlanShift);
} }
function ViewShiftComponent_div_1_ng_template_10_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Planned Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Planned Flexi Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Booked Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Booked Flexi staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "Assigned Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](30, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Assigned Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](36, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 6, ctx_r13.topData.totalHours.need, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 9, ctx_r13.topData.numberOfShifts.need, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 12, ctx_r13.topData.totalHours.booked, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](24, 15, ctx_r13.topData.numberOfShifts.booked, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](30, 18, ctx_r13.topData.totalHours.needAssign, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r13.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](36, 21, ctx_r13.topData.numberOfShifts.needAssign, "1.2-2"), " ");
} }
function ViewShiftComponent_div_1_ng_template_10_app_manage_1_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-manage", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("headerData", function ViewShiftComponent_div_1_ng_template_10_app_manage_1_Template_app_manage_headerData_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r15.getheaderData($event); })("day", function ViewShiftComponent_div_1_ng_template_10_app_manage_1_Template_app_manage_day_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r17.headerHrsStaff($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("shift", ctx_r14.shiftsPageData)("page", ctx_r14.pagefrom)("week", ctx_r14.planShift.startDate)("buId", ctx_r14.buId);
} }
function ViewShiftComponent_div_1_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ViewShiftComponent_div_1_ng_template_10_div_0_Template, 37, 24, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewShiftComponent_div_1_ng_template_10_app_manage_1_Template, 1, 4, "app-manage", 26);
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r12.isShiftsPageActive);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r12.isShiftsPageActive);
} }
function ViewShiftComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 16, 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ViewShiftComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewShiftComponent_div_1_Template_li_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.refreshHeaderData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewShiftComponent_div_1_Template_a_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r21.viewClicked(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ViewShiftComponent_div_1_ng_template_6_Template, 2, 4, "ng-template", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewShiftComponent_div_1_Template_a_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r22.switchToShift(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "SHIFTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ViewShiftComponent_div_1_ng_template_10_Template, 2, 2, "ng-template", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r10);
} }
class ViewShiftComponent {
constructor(route, router, renderer, planShiftService, setupService) {
this.route = route;
this.router = router;
this.renderer = renderer;
this.planShiftService = planShiftService;
this.setupService = setupService;
this.bu = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.activeId = 1;
this.weeksArr = [];
this.buLoader = true;
this.shiftsPageData = null;
this.isShiftsPageActive = false;
this.getWeekStartEndDate = function (date, count) {
let datesToReturn = {};
let label = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MMM DD YYYY") + ' to ' + moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count + 6, 'days').format("MMM DD YYYY");
let value = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MM-DD-YYYY");
datesToReturn = { label: label, value: value, key: count };
/* if (count == 0 && $scope.workWeeksDate == undefined) {
$scope.workWeeksDate = value;
}*/
return datesToReturn;
};
this.router.routeReuseStrategy.shouldReuseRoute = function () {
return false;
};
this.router.onSameUrlNavigation = 'reload';
this.routeSub = this.route.data.subscribe((val) => {
this.isView = val.isView;
});
}
ngOnInit() {
this.getAllBuForShift();
}
getAllBuForShift() {
this.buLoader = true;
const buSubscribe = this.setupService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}))
.subscribe((res) => {
//if (res.success) {
this.buForShift = res.data.businessUnitList;
/* } else {
this.buForShift = [];
}*/
}, (error) => {
this.buForShift = [];
});
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
ngOnDestroy() {
this.routeSub.unsubscribe();
}
onBuChange() {
this.weeksLoader = true;
const buWeeks = this.planShiftService
.getWeeks(this.buId._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.weeksLoader = false;
buWeeks.unsubscribe();
}))
.subscribe((res) => {
var _a;
//this.weeksArr
const weekCount = res['data'];
//this.selectedWeek
const number = res['data'].noOfWeek;
let getDate = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').format("MM-DD-YYYY");
if (number > 0) {
for (var i = -number; i <= number; i++) {
let dummyData = this.getWeekStartEndDate(getDate, 7 * (i));
this.weeksArr.push(dummyData);
//localStorageService.set("WorkWeekList", $scope.myWeekRange);
}
/*this.planOpenshiftForm.patchValue({
selectWeek: this.weekArr1[res['data'].noOfWeek],
});*/
this.selectedWeek = (_a = this.weeksArr[number]) === null || _a === void 0 ? void 0 : _a.label;
console.log("this.weeksArr", weekCount, number, this.selectedWeek);
}
});
}
changeToDate(d, n) {
var months = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
var sd = d.slice(4, 6).toString();
var dd = parseInt(sd);
var smm = d.slice(0, 3);
var mm = months.indexOf(smm);
var yy = parseInt(d.slice(7, 11));
var startDate = new Date(yy, mm, dd);
this.startDateLocal = new Date(yy, mm, dd);
if (n == 0) {
var startDate = new Date(yy, mm, dd);
return startDate;
}
else if (n == 1) {
var endDate = new Date(startDate.setDate(startDate.getDate() + 6));
return endDate;
}
}
dateFormat2(d) {
var dd = d.getDate().toString();
var mm = (d.getMonth() + 1).toString();
var yy = d.getFullYear().toString();
var date = mm.padStart(2, '0') +
'-' +
dd.padStart(2, '0') +
'-' +
yy +
' 00:00:00 GMT+0530';
console.log('dd', date);
return date;
}
viewClicked() {
var _a;
this.bu.emit(this.buId);
this.isShiftsPageActive = false;
this.planShift = {
businessUnitId: (_a = this.buId) === null || _a === void 0 ? void 0 : _a._id,
startDate: this.dateFormat2(this.changeToDate(this.selectedWeek, 0)),
from: 'plan',
};
this.planShiftService.getShiftGraph(this.planShift).subscribe((res) => {
this.receivedPlanShift = res['data'];
this.isView = true;
this.headerData = {
one: this.receivedPlanShift.dashboardGraphData.plannedFlexiHours,
two: this.receivedPlanShift.dashboardGraphData.plannedFlexiShifts,
three: this.receivedPlanShift.dashboardGraphData.bookedFlexiHours,
four: this.receivedPlanShift.dashboardGraphData.bookedFlexiShifts,
five: this.receivedPlanShift.dashboardGraphData.assignFlexiHours,
six: this.receivedPlanShift.dashboardGraphData.assignFlexiShifts,
};
console.log('View Shift Read', res);
this.headerHrsStaff({ count: 0, day: 'M' });
});
this.pagefrom = 'view';
}
//Refresh Header data on Overview Click
refreshHeaderData() {
var _a;
this.headerData = {
one: 0,
two: 0,
three: 0,
four: 0,
five: 0,
six: 0,
};
this.planShift = {
businessUnitId: (_a = this.buId) === null || _a === void 0 ? void 0 : _a._id,
startDate: this.dateFormat2(this.changeToDate(this.selectedWeek, 0)),
from: 'plan',
date: this.dateFormat2(this.changeToDate(this.selectedWeek, 0)),
};
this.planShiftService.getPlanShift(this.planShift).subscribe((res) => {
this.receivedPlanShift = res['data'];
this.headerData = {
one: this.receivedPlanShift.dashboardGraphData.plannedFlexiHours,
two: this.receivedPlanShift.dashboardGraphData.plannedFlexiShifts,
three: this.receivedPlanShift.dashboardGraphData.bookedFlexiHours,
four: this.receivedPlanShift.dashboardGraphData.bookedFlexiShifts,
five: this.receivedPlanShift.dashboardGraphData.assignFlexiHours,
six: this.receivedPlanShift.dashboardGraphData.assignFlexiShifts,
};
});
}
getheaderData(e) {
this.headerData = {
one: e.plannedHr,
two: e.plannedStaff,
three: e.bookedHr,
four: e.bookedStaff,
};
}
headerHrsStaff(e) {
var _a;
const [start, end] = this.selectedWeek.split(' to ');
const weekStart = moment__WEBPACK_IMPORTED_MODULE_1__(start, 'MMM DD YYYY');
const weekEnd = moment__WEBPACK_IMPORTED_MODULE_1__(end, 'MMM DD YYYY');
const weekdays = [];
moment__WEBPACK_IMPORTED_MODULE_1__["updateLocale"]('en', {
week: {
dow: 1,
},
});
for (let day = weekStart.clone(); day.isSameOrBefore(weekEnd); day.add(1, 'day')) {
weekdays.push(day.format('DD-MM-YYYY'));
}
this.topData = (_a = this.shiftsPageData) === null || _a === void 0 ? void 0 : _a.graphDataWeb[weekdays[e.count]];
}
switchToShift() {
this.planShiftService
.getPlanShift(this.planShift)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => { }))
.subscribe((res) => {
this.shiftsPageData = res['data'];
this.isShiftsPageActive = true;
this.headerHrsStaff({ count: 0, day: 'M' });
}, (error) => {
console.error('Failed to Refresh Data', 'Error');
});
}
}
ViewShiftComponent.ɵfac = function ViewShiftComponent_Factory(t) { return new (t || ViewShiftComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"])); };
ViewShiftComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewShiftComponent, selectors: [["app-view-shift"]], viewQuery: function ViewShiftComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
} }, outputs: { bu: "bu" }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "form-group"], [1, "d-block", "text-center"], ["loadingText", "Please wait data is loading...", "bindLabel", "orgName", "placeholder", "Select/Search Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange", "change"], ["placeholder", "Select Week", "appendTo", "body", 1, "custom", 3, "virtualScroll", "loading", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [3, "value"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem", "click"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], [3, "ngbNavItem"], [3, "ngbNavOutlet"], [3, "data"], [3, "bu", "startDate", "shiftGraph"], ["class", "top-header bg-white rounded mb-3", 4, "ngIf"], [3, "shift", "page", "week", "buId", "headerData", "day", 4, "ngIf"], [1, "top-header", "bg-white", "rounded", "mb-3"], [1, "hrs-text", "red-text"], [1, "red-text"], [3, "shift", "page", "week", "buId", "headerData", "day"]], template: function ViewShiftComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ViewShiftComponent_div_0_Template, 19, 14, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewShiftComponent_div_1_Template, 12, 4, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavOutlet"], _plan_shift_plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_11__["PlanShiftHeaderComponent"], _manage_shift_manage_overview_manage_overview_component__WEBPACK_IMPORTED_MODULE_12__["ManageOverviewComponent"], _manage_shift_manage_manage_component__WEBPACK_IMPORTED_MODULE_13__["ManageComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DecimalPipe"]], styles: [".top-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding: 1rem;\n}\n\n.red-text[_ngcontent-%COMP%] {\n color: #a42138 !important;\n}\n\n.hrs-text[_ngcontent-%COMP%] {\n text-align: center;\n font-size: 25px;\n line-height: 1.5;\n margin-top: 0.25rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvdmlldy1zaGlmdC92aWV3LXNoaWZ0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0VBQ0EsYUFBQTtBQUNGOztBQUVBO0VBQ0UseUJBQUE7QUFDRjs7QUFFQTtFQUNFLGtCQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3ZpZXctc2hpZnQvdmlldy1zaGlmdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50b3AtaGVhZGVyIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBwYWRkaW5nOiAxcmVtO1xufVxuXG4ucmVkLXRleHQge1xuICBjb2xvcjogI2E0MjEzOCAhaW1wb3J0YW50O1xufVxuXG4uaHJzLXRleHQge1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGZvbnQtc2l6ZTogMjVweDtcbiAgbGluZS1oZWlnaHQ6IDEuNTtcbiAgbWFyZ2luLXRvcDogMC4yNXJlbTtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewShiftComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-view-shift',
templateUrl: './view-shift.component.html',
styleUrls: ['./view-shift.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sidemenu']
}] }); })();
/***/ }),
/***/ "RnhZ":
/*!**************************************************!*\
!*** ./node_modules/moment/locale sync ^\.\/.*$ ***!
\**************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var map = {
"./af": "K/tc",
"./af.js": "K/tc",
"./ar": "jnO4",
"./ar-dz": "o1bE",
"./ar-dz.js": "o1bE",
"./ar-kw": "Qj4J",
"./ar-kw.js": "Qj4J",
"./ar-ly": "HP3h",
"./ar-ly.js": "HP3h",
"./ar-ma": "CoRJ",
"./ar-ma.js": "CoRJ",
"./ar-sa": "gjCT",
"./ar-sa.js": "gjCT",
"./ar-tn": "bYM6",
"./ar-tn.js": "bYM6",
"./ar.js": "jnO4",
"./az": "SFxW",
"./az.js": "SFxW",
"./be": "H8ED",
"./be.js": "H8ED",
"./bg": "hKrs",
"./bg.js": "hKrs",
"./bm": "p/rL",
"./bm.js": "p/rL",
"./bn": "kEOa",
"./bn-bd": "loYQ",
"./bn-bd.js": "loYQ",
"./bn.js": "kEOa",
"./bo": "0mo+",
"./bo.js": "0mo+",
"./br": "aIdf",
"./br.js": "aIdf",
"./bs": "JVSJ",
"./bs.js": "JVSJ",
"./ca": "1xZ4",
"./ca.js": "1xZ4",
"./cs": "PA2r",
"./cs.js": "PA2r",
"./cv": "A+xa",
"./cv.js": "A+xa",
"./cy": "l5ep",
"./cy.js": "l5ep",
"./da": "DxQv",
"./da.js": "DxQv",
"./de": "tGlX",
"./de-at": "s+uk",
"./de-at.js": "s+uk",
"./de-ch": "u3GI",
"./de-ch.js": "u3GI",
"./de.js": "tGlX",
"./dv": "WYrj",
"./dv.js": "WYrj",
"./el": "jUeY",
"./el.js": "jUeY",
"./en-au": "Dmvi",
"./en-au.js": "Dmvi",
"./en-ca": "OIYi",
"./en-ca.js": "OIYi",
"./en-gb": "Oaa7",
"./en-gb.js": "Oaa7",
"./en-ie": "4dOw",
"./en-ie.js": "4dOw",
"./en-il": "czMo",
"./en-il.js": "czMo",
"./en-in": "7C5Q",
"./en-in.js": "7C5Q",
"./en-nz": "b1Dy",
"./en-nz.js": "b1Dy",
"./en-sg": "t+mt",
"./en-sg.js": "t+mt",
"./eo": "Zduo",
"./eo.js": "Zduo",
"./es": "iYuL",
"./es-do": "CjzT",
"./es-do.js": "CjzT",
"./es-mx": "tbfe",
"./es-mx.js": "tbfe",
"./es-us": "Vclq",
"./es-us.js": "Vclq",
"./es.js": "iYuL",
"./et": "7BjC",
"./et.js": "7BjC",
"./eu": "D/JM",
"./eu.js": "D/JM",
"./fa": "jfSC",
"./fa.js": "jfSC",
"./fi": "gekB",
"./fi.js": "gekB",
"./fil": "1ppg",
"./fil.js": "1ppg",
"./fo": "ByF4",
"./fo.js": "ByF4",
"./fr": "nyYc",
"./fr-ca": "2fjn",
"./fr-ca.js": "2fjn",
"./fr-ch": "Dkky",
"./fr-ch.js": "Dkky",
"./fr.js": "nyYc",
"./fy": "cRix",
"./fy.js": "cRix",
"./ga": "USCx",
"./ga.js": "USCx",
"./gd": "9rRi",
"./gd.js": "9rRi",
"./gl": "iEDd",
"./gl.js": "iEDd",
"./gom-deva": "qvJo",
"./gom-deva.js": "qvJo",
"./gom-latn": "DKr+",
"./gom-latn.js": "DKr+",
"./gu": "4MV3",
"./gu.js": "4MV3",
"./he": "x6pH",
"./he.js": "x6pH",
"./hi": "3E1r",
"./hi.js": "3E1r",
"./hr": "S6ln",
"./hr.js": "S6ln",
"./hu": "WxRl",
"./hu.js": "WxRl",
"./hy-am": "1rYy",
"./hy-am.js": "1rYy",
"./id": "UDhR",
"./id.js": "UDhR",
"./is": "BVg3",
"./is.js": "BVg3",
"./it": "bpih",
"./it-ch": "bxKX",
"./it-ch.js": "bxKX",
"./it.js": "bpih",
"./ja": "B55N",
"./ja.js": "B55N",
"./jv": "tUCv",
"./jv.js": "tUCv",
"./ka": "IBtZ",
"./ka.js": "IBtZ",
"./kk": "bXm7",
"./kk.js": "bXm7",
"./km": "6B0Y",
"./km.js": "6B0Y",
"./kn": "PpIw",
"./kn.js": "PpIw",
"./ko": "Ivi+",
"./ko.js": "Ivi+",
"./ku": "JCF/",
"./ku.js": "JCF/",
"./ky": "lgnt",
"./ky.js": "lgnt",
"./lb": "RAwQ",
"./lb.js": "RAwQ",
"./lo": "sp3z",
"./lo.js": "sp3z",
"./lt": "JvlW",
"./lt.js": "JvlW",
"./lv": "uXwI",
"./lv.js": "uXwI",
"./me": "KTz0",
"./me.js": "KTz0",
"./mi": "aIsn",
"./mi.js": "aIsn",
"./mk": "aQkU",
"./mk.js": "aQkU",
"./ml": "AvvY",
"./ml.js": "AvvY",
"./mn": "lYtQ",
"./mn.js": "lYtQ",
"./mr": "Ob0Z",
"./mr.js": "Ob0Z",
"./ms": "6+QB",
"./ms-my": "ZAMP",
"./ms-my.js": "ZAMP",
"./ms.js": "6+QB",
"./mt": "G0Uy",
"./mt.js": "G0Uy",
"./my": "honF",
"./my.js": "honF",
"./nb": "bOMt",
"./nb.js": "bOMt",
"./ne": "OjkT",
"./ne.js": "OjkT",
"./nl": "+s0g",
"./nl-be": "2ykv",
"./nl-be.js": "2ykv",
"./nl.js": "+s0g",
"./nn": "uEye",
"./nn.js": "uEye",
"./oc-lnc": "Fnuy",
"./oc-lnc.js": "Fnuy",
"./pa-in": "8/+R",
"./pa-in.js": "8/+R",
"./pl": "jVdC",
"./pl.js": "jVdC",
"./pt": "8mBD",
"./pt-br": "0tRk",
"./pt-br.js": "0tRk",
"./pt.js": "8mBD",
"./ro": "lyxo",
"./ro.js": "lyxo",
"./ru": "lXzo",
"./ru.js": "lXzo",
"./sd": "Z4QM",
"./sd.js": "Z4QM",
"./se": "//9w",
"./se.js": "//9w",
"./si": "7aV9",
"./si.js": "7aV9",
"./sk": "e+ae",
"./sk.js": "e+ae",
"./sl": "gVVK",
"./sl.js": "gVVK",
"./sq": "yPMs",
"./sq.js": "yPMs",
"./sr": "zx6S",
"./sr-cyrl": "E+lV",
"./sr-cyrl.js": "E+lV",
"./sr.js": "zx6S",
"./ss": "Ur1D",
"./ss.js": "Ur1D",
"./sv": "X709",
"./sv.js": "X709",
"./sw": "dNwA",
"./sw.js": "dNwA",
"./ta": "PeUW",
"./ta.js": "PeUW",
"./te": "XLvN",
"./te.js": "XLvN",
"./tet": "V2x9",
"./tet.js": "V2x9",
"./tg": "Oxv6",
"./tg.js": "Oxv6",
"./th": "EOgW",
"./th.js": "EOgW",
"./tk": "Wv91",
"./tk.js": "Wv91",
"./tl-ph": "Dzi0",
"./tl-ph.js": "Dzi0",
"./tlh": "z3Vd",
"./tlh.js": "z3Vd",
"./tr": "DoHr",
"./tr.js": "DoHr",
"./tzl": "z1FC",
"./tzl.js": "z1FC",
"./tzm": "wQk9",
"./tzm-latn": "tT3J",
"./tzm-latn.js": "tT3J",
"./tzm.js": "wQk9",
"./ug-cn": "YRex",
"./ug-cn.js": "YRex",
"./uk": "raLr",
"./uk.js": "raLr",
"./ur": "UpQW",
"./ur.js": "UpQW",
"./uz": "Loxo",
"./uz-latn": "AQ68",
"./uz-latn.js": "AQ68",
"./uz.js": "Loxo",
"./vi": "KSF8",
"./vi.js": "KSF8",
"./x-pseudo": "/X5v",
"./x-pseudo.js": "/X5v",
"./yo": "fzPg",
"./yo.js": "fzPg",
"./zh-cn": "XDpg",
"./zh-cn.js": "XDpg",
"./zh-hk": "SatO",
"./zh-hk.js": "SatO",
"./zh-mo": "OmwH",
"./zh-mo.js": "OmwH",
"./zh-tw": "kOpN",
"./zh-tw.js": "kOpN"
};
function webpackContext(req) {
var id = webpackContextResolve(req);
return __webpack_require__(id);
}
function webpackContextResolve(req) {
if(!__webpack_require__.o(map, req)) {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
}
return map[req];
}
webpackContext.keys = function webpackContextKeys() {
return Object.keys(map);
};
webpackContext.resolve = webpackContextResolve;
module.exports = webpackContext;
webpackContext.id = "RnhZ";
/***/ }),
/***/ "S+3j":
/*!********************************************************************!*\
!*** ./src/app/users/service/notification/notification.service.ts ***!
\********************************************************************/
/*! exports provided: NotificationService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationService", function() { return NotificationService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
const baseUrl2 = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl}/manage-notification`;
class NotificationService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getAllNotifications(data, id) {
return this.http.post(`${this.baseUrl}/notification/read/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, { "businessUnitId": id }, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getUnreadNofications(data) {
return this.http.get(`${this.baseUrl}/notification/mynotifications/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAcknowledgedNofications(data) {
return this.http.get(`${this.baseUrl}/notification/acknowledgedNotifications/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSingleNotification(id) {
return this.http.get(`${this.baseUrl}/notification/getSingleNotification/${id}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getModuleQuestions(data) {
return this.http.post(`${this.baseUrl}/common/questionModule/getModuleQuestions`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getManageQuestions(data) {
return this.http.post(`${this.baseUrl}/customForm/getManageQuestions`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getManageFormAnswers(data) {
return this.http.post(`${this.baseUrl}/customForm/getManageFormAnswers`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAcknowledgeNotification(notificationId) {
return this.http.post(`${this.baseUrl}/notification/acknowledge`, { "notificationId": notificationId })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
answerQuestions(data) {
return this.http.post(`${this.baseUrl}//notification/answerQuestions/`, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
readAcknowledgedAndUnreadUser(id, data) {
return this.http.get(`${this.baseUrl}/notification/readAcknowledgedAndUnreadUser/${id}?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
// updateForm(data, id: string): Observable {
// return this.http
// .put(`${this.baseUrl}/custom-form/${id}`, data, {
// headers: this.Headers,
// })
// .pipe(map((res) => res as any));
// }
createNotification(data) {
return this.http
.post(`${this.baseUrl}/notification/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
saveDraft() {
return this.http.get(`${this.baseUrl}/centralBuilder/read?nonLinkedModules=true`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportNotification(data) {
return this.http
.post(`${this.baseUrl}/notification/download`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
downloadUrl(url) {
return this.http
.get(`${this.baseUrl}/${url}`, {
headers: this.Headers,
observe: 'body',
responseType: 'text'
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getMimeType(data) {
return this.http
.post(`${this.baseUrl}/scheme/mimetype`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
downloadAnyUrl(url) {
return this.http
.get(`${this.baseUrl}/${url}`, {
headers: this.Headers,
responseType: 'blob'
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
downloadFile(signedUrl) {
return this.http.get(signedUrl, { responseType: 'blob' });
}
///category
getAllCategory(data) {
return this.http.get(`${this.baseUrl}/category/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createCategory(data) {
return this.http.post(`${this.baseUrl}/category/`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateCategory(data) {
return this.http.post(`${this.baseUrl}/category/update`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteCategory(id) {
return this.http.post(`${this.baseUrl}/category/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
///subcategory
getAllSubCategory(data, id) {
return this.http.get(`${this.baseUrl}/subcategory/${id}/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
});
}
createSubCategory(data) {
return this.http.post(`${this.baseUrl}/subcategory/create`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateSubCategory(data) {
return this.http.post(`${this.baseUrl}/subcategory/update`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteSubCategory(data) {
return this.http.post(`${this.baseUrl}/subcategory/delete`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllSchedule(data) {
return this.http.post(baseUrl2 + '/schedule', data);
}
getAllPush(data) {
return this.http.post(baseUrl2 + '/push', data);
}
export(data) {
return this.http.post(baseUrl2 + '/export', data);
}
createNotificationManage(data) {
return this.http.post(baseUrl2 + '/create', data);
}
updateNotification(data) {
return this.http.post(baseUrl2 + '/update', data);
}
cancelNotification(data) {
return this.http.post(baseUrl2 + '/cancel', data);
}
getSingleNotificationManage(notificationId) {
return this.http.get(baseUrl2 + '/single/' + notificationId);
}
getScheduleNotification(data, queryData) {
return this.http.post(baseUrl2 + '/scheduled/?' + Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(queryData), data);
}
getPushNotification(data, queryData) {
return this.http.post(baseUrl2 + '/pushed/?' + Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(queryData), data);
}
getMyNotification() {
return this.http.get(`${this.baseUrl}/notification/mynotifications`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
NotificationService.ɵfac = function NotificationService_Factory(t) { return new (t || NotificationService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
NotificationService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: NotificationService, factory: NotificationService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NotificationService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "S6Fq":
/*!**********************************************************!*\
!*** ./src/app/shared/pipes/event-publishstatus.pipe.ts ***!
\**********************************************************/
/*! exports provided: EventPublishstatusPipe */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventPublishstatusPipe", function() { return EventPublishstatusPipe; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
class EventPublishstatusPipe {
transform(start, end) {
if (moment__WEBPACK_IMPORTED_MODULE_1__(start).isAfter(moment__WEBPACK_IMPORTED_MODULE_1__())) {
return '0'; //Pending
}
else if (moment__WEBPACK_IMPORTED_MODULE_1__(start).isBefore(moment__WEBPACK_IMPORTED_MODULE_1__()) &&
moment__WEBPACK_IMPORTED_MODULE_1__(end).isAfter(moment__WEBPACK_IMPORTED_MODULE_1__())) {
return '1'; //Published
}
else if (moment__WEBPACK_IMPORTED_MODULE_1__(end).isBefore(moment__WEBPACK_IMPORTED_MODULE_1__())) {
return '2'; // Expired
}
else {
return '4';
}
}
}
EventPublishstatusPipe.ɵfac = function EventPublishstatusPipe_Factory(t) { return new (t || EventPublishstatusPipe)(); };
EventPublishstatusPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "eventPublishstatus", type: EventPublishstatusPipe, pure: false });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EventPublishstatusPipe, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
args: [{
name: 'eventPublishstatus',
pure: false,
}]
}], null, null); })();
/***/ }),
/***/ "SD5B":
/*!********************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-shift/plan-shift-header/plan-shift-header.component.ts ***!
\********************************************************************************************************************/
/*! exports provided: PlanShiftHeaderComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanShiftHeaderComponent", function() { return PlanShiftHeaderComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
class PlanShiftHeaderComponent {
constructor() { }
ngOnInit() {
if (this.data != null) {
console.log("header Data", this.data);
}
}
}
PlanShiftHeaderComponent.ɵfac = function PlanShiftHeaderComponent_Factory(t) { return new (t || PlanShiftHeaderComponent)(); };
PlanShiftHeaderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: PlanShiftHeaderComponent, selectors: [["app-plan-shift-header"]], inputs: { data: "data" }, decls: 37, vars: 24, consts: [[1, "top-header", "rounded", "bg-white", "mb-3"], [1, "hrs-text", "red-text"], [1, "red-text"]], template: function PlanShiftHeaderComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Planned Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Planned Flexi Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Booked Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Booked Flexi staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "Planned Assigned Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](30, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Planned Assigned Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](36, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data == null ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 6, ctx.data.one, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data == null ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 9, ctx.data.two, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data == null ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 12, ctx.data.three, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data == null ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](24, 15, ctx.data.four, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data == null ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](30, 18, ctx.data.five, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.data == null ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](36, 21, ctx.data.six, "1.2-2"), " ");
} }, pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DecimalPipe"]], styles: [".top-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding: 1rem;\n}\n\n.red-text[_ngcontent-%COMP%] {\n color: #a42138 !important;\n}\n\n.hrs-text[_ngcontent-%COMP%] {\n text-align: center;\n font-size: 25px;\n line-height: 1.5;\n margin-top: 0.25rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9wbGFuLXNoaWZ0LWhlYWRlci9wbGFuLXNoaWZ0LWhlYWRlci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGFBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9vcGVyYXRpb25zL3NoaWZ0LXNjaGVkdWxlci9wbGFuLXNoaWZ0L3BsYW4tc2hpZnQtaGVhZGVyL3BsYW4tc2hpZnQtaGVhZGVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnRvcC1oZWFkZXIge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIHBhZGRpbmc6IDFyZW07XG59XG5cbi5yZWQtdGV4dCB7XG4gIGNvbG9yOiAjYTQyMTM4ICFpbXBvcnRhbnQ7XG59XG5cbi5ocnMtdGV4dCB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgZm9udC1zaXplOiAyNXB4O1xuICBsaW5lLWhlaWdodDogMS41O1xuICBtYXJnaW4tdG9wOiAwLjI1cmVtO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlanShiftHeaderComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: "app-plan-shift-header",
templateUrl: "./plan-shift-header.component.html",
styleUrls: ["./plan-shift-header.component.scss"],
}]
}], function () { return []; }, { data: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "SOWo":
/*!*****************************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-balloting/manage-ballot/manage-ballot.component.ts ***!
\*****************************************************************************************************/
/*! exports provided: CustomDateParserFormatter, ManageBallotComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDateParserFormatter", function() { return CustomDateParserFormatter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageBallotComponent", function() { return ManageBallotComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/human-resources/leave-planner.service */ "Z/ig");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function ManageBallotComponent_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "THIS BALLOT IS CANCELLED");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageBallotComponent_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Please wait Loading Data... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageBallotComponent_tr_23_ng_container_11_ng_container_2_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_tr_23_ng_container_11_ng_container_2_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.resultRelease(item_r11._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Result Release ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r15.resultDisabled || item_r11.isCanceled);
} }
function ManageBallotComponent_tr_23_ng_container_11_ng_container_3_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_tr_23_ng_container_11_ng_container_3_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r21.resultRelease(item_r11._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Result Release ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", (item_r11 == null ? null : item_r11.resultRelease) === 1 || (item_r11 == null ? null : item_r11.isResultRelease) || ((item_r11 == null ? null : item_r11.ballotStatus) == "Open" || (item_r11 == null ? null : item_r11.ballotStatus) == "Closed") && !(item_r11 == null ? null : item_r11.isConduct) || (item_r11 == null ? null : item_r11.isCanceled));
} }
function ManageBallotComponent_tr_23_ng_container_11_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageBallotComponent_tr_23_ng_container_11_ng_container_2_Template, 3, 1, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ManageBallotComponent_tr_23_ng_container_11_ng_container_3_Template, 3, 1, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_tr_23_ng_container_11_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r25.cancelManageBallot(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "button", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_tr_23_ng_container_11_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](57); return ctx_r27.extend(_r9, item_r11); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " Extend ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r11.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r11.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", item_r11.isCanceled);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", item_r11.isAutoAssign || item_r11.isCanceled || item_r11.isResultRelease);
} }
function ManageBallotComponent_tr_23_ng_container_13_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 34);
} }
function ManageBallotComponent_tr_23_ng_container_13_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_tr_23_ng_container_13_ng_template_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r37); const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r35.conductAuto(item_r11); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Conduct Auto-Assign ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r32.conductAutoAssignDisabled);
} }
function ManageBallotComponent_tr_23_ng_container_13_ng_template_4_Template(rf, ctx) { if (rf & 1) {
const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_tr_23_ng_container_13_ng_template_4_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r39); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r38.reBallot(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Re-Ballot ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_tr_23_ng_container_13_ng_template_4_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r39); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r40.autoAssign(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Auto-Assign ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !item_r11.isResultRelease || item_r11.isAutoAssign && item_r11.isConduct);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !item_r11.isResultRelease || item_r11.isAutoAssign && item_r11.isConduct);
} }
function ManageBallotComponent_tr_23_ng_container_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageBallotComponent_tr_23_ng_container_13_div_1_Template, 1, 0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageBallotComponent_tr_23_ng_container_13_ng_template_2_Template, 2, 1, "ng-template", null, 39, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageBallotComponent_tr_23_ng_container_13_ng_template_4_Template, 5, 2, "ng-template", null, 40, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3);
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5);
const item_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r11.isAutoAssign && !item_r11.isConduct)("ngIfThen", _r31)("ngIfElse", _r33);
} }
function ManageBallotComponent_tr_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ManageBallotComponent_tr_23_ng_container_11_Template, 8, 4, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ManageBallotComponent_tr_23_ng_container_13_Template, 6, 3, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r11 = ctx.$implicit;
const i_r12 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r11.ballotName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r11.ballotRound);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r11.ballotStatus);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r11.isResultRelease ? _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](9, 6, item_r11.resultDate, "mediumDate") : "Not Released", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r12 == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r12 == 0);
} }
function ManageBallotComponent_div_32_ng_option_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" - ", item_r44.ballotRound, "");
} }
function ManageBallotComponent_div_32_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageBallotComponent_div_32_ng_option_4_span_2_Template, 2, 1, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r44 = ctx.$implicit;
const i_r45 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r44._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r44.ballotName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r45 != 0);
} }
function ManageBallotComponent_div_32_Template(rf, ctx) { if (rf & 1) {
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Balloting Round");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ManageBallotComponent_div_32_Template_ng_select_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r49); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r48.viewDetail(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageBallotComponent_div_32_ng_option_4_Template, 3, 3, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.ballotRoundDropdown);
} }
function ManageBallotComponent_div_33_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ManageBallotComponent_div_33_Template_ng_select_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r50.getTeam(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r4.ballotAll["data"]);
} }
function ManageBallotComponent_div_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Ops Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "ng-select", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r5.teamOps);
} }
function ManageBallotComponent_ng_template_47_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h6", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Ballot Round Result");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "p", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Applied");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "p", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, " Successful");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "span", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r52.ballotAll.finalTotalQuota);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r52.ballotAll.finalTotalApplied);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r52.ballotAll.finalTotalSuccessful);
} }
const _c0 = function () { return { width: "calc(100%)", "border-radius": "6px", height: "100px", margin: "10px 0", display: "block" }; };
function ManageBallotComponent_ng_template_47_ngx_skeleton_loader_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 64);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function ManageBallotComponent_ng_template_47_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h6", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Consolidated Ballots Result ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "p", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Successful");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "p", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, " Unassigned");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "span", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r54.consolidate.finalTotalQuota);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r54.consolidate.finalTotalSuccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r54.consolidate.totalTeamUnassign);
} }
function ManageBallotComponent_ng_template_47_ngx_skeleton_loader_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 64);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
const _c1 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function ManageBallotComponent_ng_template_47_ngx_skeleton_loader_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 65);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c1));
} }
function ManageBallotComponent_ng_template_47_div_11_th_15_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, item_r60[0], "dd MMM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, item_r60[1], "dd MMM"), " ");
} }
function ManageBallotComponent_ng_template_47_div_11_th_15_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, item_r60, "dd MMM"), " ");
} }
function ManageBallotComponent_ng_template_47_div_11_th_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageBallotComponent_ng_template_47_div_11_th_15_ng_container_4_Template, 4, 8, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageBallotComponent_ng_template_47_div_11_th_15_ng_container_5_Template, 3, 4, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Q");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "A");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "S");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r61 = ctx.index;
const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" SLOT ", i_r61 + 1, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r58.daySlot);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r58.daySlot);
} }
function ManageBallotComponent_ng_template_47_div_11_tr_17_td_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const el_r69 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", el_r69.teamQuota);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", el_r69.appliedStaffQuota);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", el_r69.successStaffQuota);
} }
function ManageBallotComponent_ng_template_47_div_11_tr_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "th", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ManageBallotComponent_ng_template_47_div_11_tr_17_td_9_Template, 5, 3, "td", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r66 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r66.OpsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r66.OpsTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", item_r66.quota);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", item_r66.unassignBalanace);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r66.slots);
} }
function ManageBallotComponent_ng_template_47_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "th", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " OPS GROUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "th", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " OPS TEAM ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " BALLOTING BALANCE ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Q");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "U");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ManageBallotComponent_ng_template_47_div_11_th_15_Template, 13, 3, "th", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, ManageBallotComponent_ng_template_47_div_11_tr_17_Template, 10, 5, "tr", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r57.slotsArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r57.allOps);
} }
function ManageBallotComponent_ng_template_47_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageBallotComponent_ng_template_47_div_2_Template, 20, 3, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ManageBallotComponent_ng_template_47_ngx_skeleton_loader_3_Template, 1, 2, "ngx-skeleton-loader", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageBallotComponent_ng_template_47_div_5_Template, 20, 3, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageBallotComponent_ng_template_47_ngx_skeleton_loader_6_Template, 1, 2, "ngx-skeleton-loader", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ManageBallotComponent_ng_template_47_ngx_skeleton_loader_10_Template, 1, 2, "ngx-skeleton-loader", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ManageBallotComponent_ng_template_47_div_11_Template, 18, 2, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.ballotAll);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r7.ballotAll);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.ballotAll && ctx_r7.consolidate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r7.ballotAll);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.summaryLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r7.summaryLoader);
} }
const _c2 = function () { return { width: "calc(100% - 22px)", "border-radius": "6px", height: "40px", margin: "10px", display: "block" }; };
function ManageBallotComponent_ng_template_51_ngx_skeleton_loader_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 84);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c2));
} }
function ManageBallotComponent_ng_template_51_table_5_tr_18_span_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r75.Team == null ? null : item_r75.Team.name);
} }
function ManageBallotComponent_ng_template_51_table_5_tr_18_Template(rf, ctx) { if (rf & 1) {
const _r79 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ManageBallotComponent_ng_template_51_table_5_tr_18_span_8_Template, 2, 1, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_ng_template_51_table_5_tr_18_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r79); const item_r75 = ctx.$implicit; const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r78.getMobileViewDetail(item_r75); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r75 = ctx.$implicit;
const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("bg-grey", ctx_r74.selectedUser == item_r75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r75.user.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r75.user.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r75.Ops == null ? null : item_r75.Ops.opsGroupName, " > ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r75.Team == null ? null : item_r75.Team.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r75.ballotRound);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r75.applied);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r75.wonCount);
} }
function ManageBallotComponent_ng_template_51_table_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "STAFF NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "OPS GROUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "BALLOT ROUND");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "BALLOT SUBMITTED");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "SUCCESSFULL BALLOTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ManageBallotComponent_ng_template_51_table_5_tr_18_Template, 18, 9, "tr", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r72.detailView);
} }
const _c3 = function () { return { width: "calc(40%)", "border-radius": "6px", height: "40px", margin: "10px 0", display: "block" }; };
const _c4 = function () { return { width: "calc(70%)", "border-radius": "6px", height: "40px", margin: "10px 0", display: "block" }; };
const _c5 = function () { return { width: "calc(50%)", "border-radius": "6px", height: "40px", margin: "10px 0", display: "block" }; };
const _c6 = function () { return { width: "calc(90%)", "border-radius": "6px", height: "40px", margin: "10px 0", display: "block" }; };
const _c7 = function () { return { width: "calc(60%)", "border-radius": "6px", height: "40px", margin: "10px 0", display: "block" }; };
function ManageBallotComponent_ng_template_51_div_6_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ngx-skeleton-loader", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "ngx-skeleton-loader", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "ngx-skeleton-loader", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ngx-skeleton-loader", 92);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](5, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](6, _c4));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](7, _c5));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](8, _c6));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](9, _c7));
} }
const _c8 = function (a0, a1) { return { "bg-success": a0, "bg-info": a1 }; };
function ManageBallotComponent_ng_template_51_div_6_ng_template_6_div_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r83 = ctx.$implicit;
const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](5, _c8, item_r83.staffStatus === "Successful", item_r83.staffStatus === "autoAssigned"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate4"](" Slot--", item_r83.weekNo + 1, "\u00A0\u00A0 ", ctx_r82.getdate2(item_r83.start), " \u00A0--\u00A0 ", ctx_r82.getdate2(item_r83.end), " ", item_r83.staffStatus, " ");
} }
function ManageBallotComponent_ng_template_51_div_6_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "form", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Ballot Peirod");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](11, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Closing Date For Ballot Application");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Leave Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](27, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Max Consecutive");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "Slot List");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](35, ManageBallotComponent_ng_template_51_div_6_ng_template_6_div_35_Template, 2, 8, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r81.viewLeaveBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 8, ctx_r81.mobileViewDetail.ballotStartDate, "dd-MM-yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](11, 11, ctx_r81.mobileViewDetail.ballotEndDate, "dd-MM-yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](17, 14, ctx_r81.mobileViewDetail.applicationCloseDateTime, "dd-MM-yyyy, HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r81.mobileViewDetail.opsGroup + " > ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r81.mobileViewDetail.leaveType == 1 ? "Week Ballot Slot" : "Day Ballot Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r81.mobileViewDetail.maxConsecutiveBallot ? ctx_r81.mobileViewDetail.maxConsecutiveBallot : "-");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r81.mobileViewDetail.won);
} }
function ManageBallotComponent_ng_template_51_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h6", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "VIEW LEAVE BALLOTING");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageBallotComponent_ng_template_51_div_6_ng_template_5_Template, 5, 10, "ng-template", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageBallotComponent_ng_template_51_div_6_ng_template_6_Template, 36, 17, "ng-template", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r73.mobileViewLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r73.mobileViewLoader);
} }
function ManageBallotComponent_ng_template_51_Template(rf, ctx) { if (rf & 1) {
const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ManageBallotComponent_ng_template_51_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r85); const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r84.searchQuery = $event; })("ngModelChange", function ManageBallotComponent_ng_template_51_Template_input_ngModelChange_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r85); const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r86.filterDetailView(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageBallotComponent_ng_template_51_ngx_skeleton_loader_4_Template, 1, 2, "ngx-skeleton-loader", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageBallotComponent_ng_template_51_table_5_Template, 19, 1, "table", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageBallotComponent_ng_template_51_div_6_Template, 7, 2, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r8.searchQuery);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r8.detailViewLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r8.detailViewLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r8.mobileView);
} }
function ManageBallotComponent_ng_template_56_div_37_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Result Release Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 118, 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_ng_template_56_div_37_Template_input_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r92); const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5); return _r90.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Result Release time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "ng-select", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r89.time);
} }
const _c9 = function () { return { standalone: true }; };
function ManageBallotComponent_ng_template_56_Template(rf, ctx) { if (rf & 1) {
const _r95 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Extend Ballot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_ng_template_56_Template_button_click_3_listener() { const modal_r87 = ctx.$implicit; return modal_r87.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Application Start date & time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](14, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Closing date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "input", 106, 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_ng_template_56_Template_input_click_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const _r88 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](20); return _r88.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "Closing time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "ng-select", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "label", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "Result Release");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "input", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ManageBallotComponent_ng_template_56_Template_input_ngModelChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r96.resultReleaseIn = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "label", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Auto");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "input", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ManageBallotComponent_ng_template_56_Template_input_ngModelChange_34_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r97.resultReleaseIn = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "label", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Manual");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](37, ManageBallotComponent_ng_template_56_div_37_Template, 10, 1, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_ng_template_56_Template_button_click_39_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r98.extendSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, " Extend ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "button", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_ng_template_56_Template_button_click_41_listener() { const modal_r87 = ctx.$implicit; return modal_r87.close("Save click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r10.extendBallotForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](14, 8, ctx_r10.applicationStartDate, "medium"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r10.time);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r10.resultReleaseIn)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](11, _c9));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r10.resultReleaseIn)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](12, _c9));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.resultReleaseIn == "auto");
} }
class CustomDateParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"] {
constructor() {
super(...arguments);
this.DELIMITER = '-';
}
parse(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1], 10),
year: parseInt(date[2], 10),
};
}
return null;
}
format(date) {
return date
? date.day + this.DELIMITER + date.month + this.DELIMITER + date.year
: '';
}
}
CustomDateParserFormatter.ɵfac = function CustomDateParserFormatter_Factory(t) { return ɵCustomDateParserFormatter_BaseFactory(t || CustomDateParserFormatter); };
CustomDateParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: CustomDateParserFormatter, factory: CustomDateParserFormatter.ɵfac });
const ɵCustomDateParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CustomDateParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CustomDateParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
}], null, null); })();
class ManageBallotComponent {
constructor(leaveService, fb, modalService, toastService) {
this.leaveService = leaveService;
this.fb = fb;
this.modalService = modalService;
this.toastService = toastService;
this.ballotRound = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.ballotAuto = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.redirectToOverview = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.back = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.active = 1;
this.slotsArr = [];
this.closeResult = '';
this.time = [];
this.consolidate = {};
this.mobileView = false;
this.loader = false;
this.conductAutoAssignDisabled = false;
this.searchQuery = '';
this.isInitLoad = true;
}
ngOnInit() {
this.selectTime();
this.ballotResultForm = this.fb.group({
ballotName: null,
ballotGrp: null,
ballotTeam: null,
});
this.viewLeaveBallot = this.fb.group({
ballotName: null,
ballotGrp: null,
ballotTeam: null,
});
this.getBallotList();
}
autoAssign() {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: 'Are you sure?',
html: '',
icon: 'question',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
showLoaderOnConfirm: true,
allowOutsideClick: false,
allowEscapeKey: false,
didOpen: () => {
const p = sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.getHtmlContainer().querySelector('p');
p.textContent = 'You want to Auto-Assign?';
},
preConfirm: () => {
const b = sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.getHtmlContainer().querySelector('b');
b.textContent = 'Please wait Loading...';
return new Promise((resolve, reject) => {
this.leaveService.getAutoAssign(this.ballotList[0]._id).subscribe((res) => {
this.autoBallot = res;
this.ballotAuto.emit(this.autoBallot);
resolve('success');
}, () => {
reject('Failed');
});
});
},
});
}
getDetails() {
this.detailViewLoader = true;
const ballotDetailView = this.leaveService
.getballotdetailsByUsers(this.parentBallotId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
ballotDetailView.unsubscribe();
this.detailViewLoader = false;
}))
.subscribe((res) => {
if (this.ballotRoundCount.slice(-1) != 'l') {
const detailRound = res.userlist.filter((val) => {
if (val.ballotRound == this.ballotRoundCount.slice(-1)) {
return true;
}
});
this.detailView = detailRound;
}
else {
this.detailView = res.userlist;
}
this.detailViewTemp = this.detailView;
this.detailsViewTemp = this.detailView;
});
}
getMobileViewDetail(item) {
var _a;
this.selectedUser = item;
const mobileViewPayload = {
id: item.ballotId,
userId: item.userId,
opsGroup: (_a = item.Ops) === null || _a === void 0 ? void 0 : _a.opsGroupName,
};
this.mobileViewLoader = true;
this.mobileView = true;
const userDetail = this.leaveService
.getMobileView(mobileViewPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.mobileViewLoader = false;
userDetail.unsubscribe();
}))
.subscribe((res) => {
this.mobileViewDetail = res.data;
});
}
getdate2(d) {
return moment__WEBPACK_IMPORTED_MODULE_2__(d, 'YYYY-MM-DD').format('DD-MM-YYYY');
}
getBallotList() {
this.summaryLoader = true;
this.loader = true;
this.leaveService
.manageBallot(this.ballot._id)
.subscribe((res) => {
var _a;
this.parentBallotId = (_a = res.data) === null || _a === void 0 ? void 0 : _a.parent;
this.ballotList = res.data.BallotList;
this.ballotRoundDropdown = [...this.ballotList];
this.resultReleaseDisable();
const bv = Object.assign({}, this.ballotRoundDropdown[0]);
this.ballotRoundDropdown.unshift(bv);
this.ballotRoundDropdown[0].ballotName =
this.ballotRoundDropdown[0].ballotName + ' - All Rounds';
this.ballotRoundDropdown[0]._id = 'allRound';
const bbn = this.ballotRoundDropdown[0].ballotName;
const roundIndex = this.ballotRoundDropdown.findIndex((v, i) => {
if (v._id == this.ballot._id) {
return true;
}
});
this.ballotResultForm
.get('ballotName')
.patchValue(this.ballotRoundDropdown[roundIndex]._id);
let allb = [];
this.ballotList.forEach((v) => {
allb.push(v._id);
});
const allP = { selectedBallotId: allb };
const consolidateConst = this.leaveService
.getConsolidatedResult(allP)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
consolidateConst.unsubscribe();
}))
.subscribe((res) => {
this.consolidate['finalTotalQuota'] = res['finalTotalQuota'];
this.consolidate['finalTotalSuccess'] = res['finalTotalSuccess'];
});
this.viewDetail();
this.isInitLoad = false;
});
}
resultReleaseDisable() {
const ballot = this.ballotList[0];
if (ballot.isAutoAssign) {
if (ballot.isConduct == true && ballot.isResultRelease == true) {
this.resultDisabled = true;
}
else if (ballot.isConduct == true && ballot.isResultRelease == false) {
this.resultDisabled = false;
}
else if (ballot.isConduct == false && ballot.isResultRelease == false) {
this.resultDisabled = true;
}
}
}
extend(content, item) {
this.extendId = item._id;
this.extendBallotForm = this.fb.group({
applicationCloseDate: '',
applicationCloseTime: null,
resultReleaseDate: null,
resultReleaseTime: null,
timeZone: moment__WEBPACK_IMPORTED_MODULE_2__().format('[GMT]ZZ'),
});
this.applicationStartDate = item.applicationOpenDateTime;
item &&
this.extendBallotForm.patchValue({
// resultReleaseDate: item.resultDate,
applicationCloseDate: this.momToNgb(item.applicationCloseDateTime),
applicationCloseTime: moment__WEBPACK_IMPORTED_MODULE_2__(item.applicationCloseDateTime).format('HH:mm'),
});
if (item.resultRelease == 2) {
this.resultReleaseIn = 'manual';
}
else {
this.resultReleaseIn = 'auto';
}
if (this.resultReleaseIn == 'auto') {
this.extendBallotForm.patchValue({
resultReleaseDate: this.momToNgb(item.resultDate),
resultReleaseTime: moment__WEBPACK_IMPORTED_MODULE_2__(item.resultDate).format('HH:mm'),
});
}
this.modalService
.open(content, { ariaLabelledBy: 'modal-basic-title' })
.result.then((result) => {
this.closeResult = `Closed with: ${result}`;
}, (reason) => {
this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
});
}
momToNgb(d) {
let md = moment__WEBPACK_IMPORTED_MODULE_2__(d);
const dd = {
year: md.year(),
month: md.month() + 1,
day: md.date(),
};
return dd;
}
extendSubmit() {
var _a, _b, _c, _d;
this.modalService.dismissAll();
this.loader = true;
const controls = this.extendBallotForm.controls;
const payload = Object.assign({ applicationCloseDate: this.nbgToMom((_a = controls.applicationCloseDate) === null || _a === void 0 ? void 0 : _a.value).format('MM-DD-YYYY'), applicationCloseTime: (_b = controls.applicationCloseTime) === null || _b === void 0 ? void 0 : _b.value, resultRelease: this.resultReleaseIn === 'auto' ? 1 : 2, timeZone: moment__WEBPACK_IMPORTED_MODULE_2__().format('[GMT]ZZ') }, (this.resultReleaseIn === 'auto' && {
resultReleaseDate: this.nbgToMom((_c = controls.resultReleaseDate) === null || _c === void 0 ? void 0 : _c.value).format('MM-DD-YYYY'),
resultReleaseTime: (_d = controls.resultReleaseTime) === null || _d === void 0 ? void 0 : _d.value,
}));
this.leaveService
.extendBallot(this.extendId, payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.loader = false;
}))
.subscribe({
next: () => {
this.toastService.success('Ballot Extended Successfully', 'Success');
this.redirectToOverview.emit();
},
error: (err) => {
this.toastService.error('Failed to extend the ballot', 'Error');
},
});
}
nbgToMom(d) {
const Nd = moment__WEBPACK_IMPORTED_MODULE_2__().set({
year: d.year,
month: d.month - 1,
date: d.day,
});
return Nd;
}
resultRelease(i) {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
text: 'Are you sure you want to release result now?',
footer: 'Please Note: This action is irreversible
',
icon: 'question',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
this.loader = true;
const payload = { selectedBallotId: i };
this.leaveService
.resultRelease(payload)
.subscribe((res) => {
this.toastService.success('Result Released Successfully', 'Successfull');
this.redirectToOverview.emit();
})
.add(() => {
this.loader = false;
});
}
});
}
getDismissReason(reason) {
if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["ModalDismissReasons"].ESC) {
return 'by pressing ESC';
}
else if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["ModalDismissReasons"].BACKDROP_CLICK) {
return 'by clicking on a backdrop';
}
else {
return `with: ${reason}`;
}
}
getTeam() {
if (this.ballotResultForm.controls.ballotGrp.value.opsTeam.length) {
this.teamOps = this.ballotResultForm.controls.ballotGrp.value.opsTeam;
}
else {
this.teamOps = [];
this.ballotResultForm.get('ballotTeam').patchValue([]);
}
}
filterSummary() {
var _a;
if (this.allOpsTemp) {
this.allOps = this.allOpsTemp;
}
if (this.active == 2) {
this.detailView = this.detailViewTemp;
const grpOps = this.ballotResultForm.controls.ballotGrp.value;
const teamOps = this.ballotResultForm.controls.ballotTeam.value;
if (grpOps) {
const grpFilter = this.detailView.filter((val) => {
var _a, _b;
if (((_a = val.Ops) === null || _a === void 0 ? void 0 : _a._id) == ((_b = grpOps.opsGroup) === null || _b === void 0 ? void 0 : _b.opsId)) {
return true;
}
});
this.detailView = grpFilter;
const teamFilter = this.detailView;
if (teamOps) {
const team = this.detailView.filter((val) => {
var _a;
if (((_a = val.Team) === null || _a === void 0 ? void 0 : _a._id) == teamOps._id) {
return true;
}
});
this.detailView = team;
}
else {
this.detailView = grpFilter;
}
}
this.detailsViewTemp = this.detailView;
}
if (this.ballotResultForm.controls.ballotTeam.value) {
const filterOps = this.allOps.filter((v) => {
if (v.OpsTeamId == this.ballotResultForm.controls.ballotTeam.value._id) {
return true;
}
});
this.allOps = filterOps;
}
else if (this.ballotResultForm.controls.ballotGrp.value) {
const gg = (_a = this.ballotResultForm.controls.ballotGrp.value.opsTeam[0]) === null || _a === void 0 ? void 0 : _a._id;
let vg;
this.allOps.find((vv) => {
if (vv.OpsTeamId == gg) {
vg = vv.OpsGrpId;
}
});
const filterOpsGrp = this.allOps.filter((v) => {
if (v.OpsGrpId == vg) {
return true;
}
});
this.allOps = filterOpsGrp;
}
this.filterDetailView();
}
clearFilter() {
this.detailsViewTemp = this.detailViewTemp;
this.filterDetailView();
this.ballotResultForm.patchValue({
ballotGrp: null,
ballotTeam: null,
});
this.allOps = this.allOpsTemp;
}
viewDetail() {
const ballotId = {
selectedBallotId: this.ballotResultForm.get('ballotName').value,
};
const ballRoundId = this.ballotResultForm.get('ballotName').value;
const bR = this.ballotRoundDropdown.find((val) => val._id == ballRoundId);
if (bR._id != 'allRound') {
this.ballotRoundCount = bR.ballotRound;
}
else {
this.ballotRoundCount = 'all';
}
if (!this.isInitLoad) {
this.getDetails();
}
this.summaryLoader = true;
this.loader = true;
if (this.ballotResultForm.get('ballotName').value != 'allRound') {
const viewballotsummary = this.leaveService
.viewBallotRoundDetail(ballotId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
viewballotsummary.unsubscribe();
this.summaryLoader = false;
this.loader = false;
}))
.subscribe((res) => {
this.consolidate['totalTeamUnassign'] = res['totalTeamUnassign'];
this.generateslots(res);
});
}
else {
let allb = [];
this.ballotList.forEach((v) => {
allb.push(v._id);
});
const allP = { selectedBallotId: allb };
const allBallot = this.leaveService
.allBallotDetail(allP)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
allBallot.unsubscribe();
this.summaryLoader = false;
this.loader = false;
}))
.subscribe((res) => {
this.generateslots(res);
});
}
}
generateslots(res) {
this.ballotAll = res;
this.allOps = [];
this.slotsArr = [];
//to find week or day ballot by checking difference between 2 start dates in arr
const startDateArr = this.ballotAll['data'][0].arr; //collection of startdate of every slots
const slot1StartDate = moment__WEBPACK_IMPORTED_MODULE_2__(startDateArr[0].startDate.slice(0, 10), 'MM-DD-YYYY');
const slot2StartDate = moment__WEBPACK_IMPORTED_MODULE_2__(startDateArr[1].startDate.slice(0, 10), 'MM-DD-YYYY');
const lastSlotStartDate = moment__WEBPACK_IMPORTED_MODULE_2__(startDateArr[startDateArr.length - 1].startDate.slice(0, 10), 'MM-DD-YYYY');
if (slot2StartDate.format('MM-DD-YYYY') ==
moment__WEBPACK_IMPORTED_MODULE_2__(slot1StartDate).add(1, 'days').format('MM-DD-YYYY')) {
this.daySlot = true;
}
else {
this.daySlot = false;
}
//create day or week slotsArr
if (this.daySlot) {
const daydiff = lastSlotStartDate.diff(slot1StartDate, 'days');
this.slotsArr = [];
for (var i = 0; i <= daydiff; i++) {
this.slotsArr.push([moment__WEBPACK_IMPORTED_MODULE_2__(slot1StartDate).add(i, 'days')]);
}
}
else {
this.ballotAll['data'][0].arr.forEach((v) => {
const sd = moment__WEBPACK_IMPORTED_MODULE_2__(v.startDate, 'MM-DD-YYYY HH:mm:ss');
const startOfWeek = sd.clone().startOf('isoWeek');
const endOfWeek = sd.clone().endOf('isoWeek');
this.slotsArr.push([startOfWeek, endOfWeek]);
});
}
let ballotSlot;
let slotSortArr;
this.ballotAll['data'].forEach((val, index) => {
ballotSlot = this.ballotAll['data'][index].weekRangeSlot;
let keyy = Object.keys(ballotSlot);
slotSortArr = [];
keyy.forEach((v) => {
slotSortArr.push([v, ballotSlot[v]]);
});
let team = {
OpsGrp: val.opsGroup.value,
OpsGrpId: val.opsGroup.opsId,
OpsTeam: 'Tier 1',
OpsTeamId: '',
balanceQuota: val.opsGroup.balanceQuota,
applied: val.opsGroup.applied,
quota: val.opsGroup.quota,
successful: val.opsGroup.successful,
unassignBalanace: val.opsGroup.unassignBalanace,
slots: {},
};
const slotGrpVal = [];
let pk = [];
slotSortArr.forEach((vv) => {
if (vv[0].endsWith('A')) {
let ck = vv[0].slice(0, -1);
pk.push([ck, vv[1].value]);
}
});
pk.sort((a, b) => {
let aa = parseInt(a[0]);
let bb = parseInt(b[0]);
if (aa < bb) {
return -1;
}
if (aa > bb) {
return 1;
}
// names must be equal
return 0;
});
pk.forEach((sv) => slotGrpVal.push(sv[1]));
team['slots'] = slotGrpVal;
this.allOps.push(team);
if (val.opsTeam) {
val.opsTeam.forEach((vv, opsTeamIndex) => {
team = {
OpsGrp: '',
OpsGrpId: val.opsGroup.opsId,
OpsTeam: vv.name,
OpsTeamId: vv._id,
balanceQuota: vv.balanceQuota,
applied: vv.applied,
quota: vv.quota,
successful: vv.successful,
unassignBalanace: vv.unassignBalanace,
slots: {},
};
const slotTeam = [];
let pTeamm = [];
this.slotsArr.forEach((vs, slotsIndex) => {
let matchKeyValue = slotSortArr.find((slotValue) => {
if (slotValue[0] ==
'OG' + slotsIndex + 'OT' + opsTeamIndex.toString()) {
return true;
}
});
pTeamm.push(matchKeyValue);
});
pTeamm.forEach((sv) => slotTeam.push(sv[1].value));
team['slots'] = slotTeam;
this.allOps.push(team);
this.allOpsTemp = this.allOps;
});
}
});
}
conductAuto(item) {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: 'Are you sure?',
text: 'You want to Conduct this?',
icon: 'question',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
const conductdata = {};
conductdata['ballotId'] = this.ballot._id;
conductdata['userFrom'] = this.ballot.userFrom;
conductdata['data'] = this.ballot.eligibleStaffsForAuto;
this.loader = true;
this.conductAutoAssignDisabled = true;
this.leaveService
.conductAutoBallot(conductdata)
.subscribe((res) => {
if (res.success) {
this.loader = false;
this.toastService.success(res.message, 'Successfull');
this.back.emit(1);
}
else {
this.loader = false;
this.toastService.error(res.message, 'Failed');
}
});
}
});
}
reBallot() {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: 'Are you sure?',
text: 'You want to Re-Ballot this',
icon: 'question',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
this.loader = true;
this.leaveService
.getReballot(this.ballotList[0]._id)
.subscribe((res) => {
this.loader = false;
this.ballotRound.emit(res.data);
}, (err) => {
this.loader = false;
});
}
});
}
cancelManageBallot() {
sweetalert2__WEBPACK_IMPORTED_MODULE_4___default.a.fire({
title: 'Are you sure?',
text: 'You want to cancel this?',
footer: 'Please Note: This action is irreversible
',
icon: 'question',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
this.loader = true;
const ballLen = this.ballotList.length;
this.leaveService
.updateCancelBallot(this.ballotList[ballLen - 1]._id)
.subscribe((res) => {
if (res.status) {
this.toastService.success(res.message, 'Successfull');
}
else {
this.toastService.error(res.message, 'Failed');
}
this.back.emit(1);
}, () => {
this.toastService.error('Somthing went wrong', 'Error');
}).add(() => {
this.loader = false;
});
}
});
}
exportBallotData() {
this.loader = true;
let id = this.ballotResultForm.value.ballotName === 'allRound' ? this.parentBallotId : this.ballotResultForm.value.ballotName;
this.leaveService.getExportBallotData(id).subscribe((res) => {
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + encodeURI(res['csv']);
a.target = '_blank';
a.download = "Ballots.csv";
document.body.appendChild(a);
a.click();
this.loader = false;
this.toastService.success("success", "Ballots exported succesfully");
}, () => {
this.loader = false;
this.toastService.error('Something went wrong', 'Failed');
});
}
selectTime() {
this.time = [];
for (let hour = 0; hour < 24; hour++) {
this.time.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 15 }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 30 }).format('HH:mm'));
this.time.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 45 }).format('HH:mm'));
}
}
filterDetailView() {
if (!this.searchQuery.trim()) {
this.detailView = this.detailsViewTemp;
return;
}
const searchQueryLowerCase = this.searchQuery.toLowerCase();
this.detailView = this.detailsViewTemp.filter(item => item.user.name.toLowerCase().includes(searchQueryLowerCase) ||
item.user.staffId.toLowerCase().includes(searchQueryLowerCase));
}
}
ManageBallotComponent.ɵfac = function ManageBallotComponent_Factory(t) { return new (t || ManageBallotComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_5__["LeavePlannerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"])); };
ManageBallotComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageBallotComponent, selectors: [["manage-ballot"]], inputs: { ballot: "ballot" }, outputs: { ballotRound: "ballotRound", ballotAuto: "ballotAuto", redirectToOverview: "redirectToOverview", back: "back" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
])], decls: 58, vars: 12, consts: [["class", "cancel-ballot", 4, "ngIf"], [1, "card", "mb-3"], ["style", "position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1050;background-color: rgba(0, 0, 0, 0.5);overflow: auto;", 4, "ngIf"], [1, "card-header", "bg-theme"], [1, "card-body", "p-0"], [1, "table-responsive"], [1, "table", "m-0"], [4, "ngFor", "ngForOf"], [1, "card"], [1, "card-body"], [1, "row"], [1, "col-md-12"], [3, "formGroup"], [1, "form-row"], ["class", "form-group col-md-4", 4, "ngIf"], ["class", "form-group col-md-3", 4, "ngIf"], [1, "form-group", "col-md-2", "align-self-end", "text-right"], ["type", "button", 1, "btn", "btn-danger", 3, "click"], ["type", "submit", 1, "btn", "btn-success", "ml-2", 3, "click"], ["ngbNav", "", 1, "nav-tabs", 3, "activeId", "activeIdChange"], ["nav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], ["ngbNavLink", "", 3, "click"], [1, "mt-2", 3, "ngbNavOutlet"], ["content", ""], [1, "cancel-ballot"], [1, "blinking-text"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "450%"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [4, "ngIf"], [1, "d-flex"], [1, "btn", "btn-danger", "btn-sm", "ml-2", 3, "disabled", "click"], [1, "btn", "btn-info", "btn-sm", "ml-2", 3, "disabled", "click"], [1, "btn", "btn-success", "btn-sm", 3, "disabled", "click"], ["class", "d-flex", 4, "ngIf", "ngIfThen", "ngIfElse"], ["thenBlock", ""], ["elseBlock", ""], [1, "btn", "btn-info", "btn-sm", 3, "disabled", "click"], [1, "btn", "btn-warning", "btn-sm", "ml-2", 3, "disabled", "click"], [1, "form-group", "col-md-4"], [1, "font-weight-500"], ["formControlName", "ballotName", 3, "multiple", "closeOnSelect", "change"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [1, "form-group", "col-md-3"], ["bindLabel", "opsGroup.value", "placeholder", "Select", "formControlName", "ballotGrp", 3, "items", "change"], ["bindLabel", "name", "placeholder", "Select", "clearAllText", "Clear", "formControlName", "ballotTeam", 3, "items"], [1, "col-md-4"], ["class", "card border-theme", 4, "ngIf"], [3, "theme", 4, "ngIf"], [1, "col-md-4", "pl-md-0"], [1, "row", "my-3"], [1, "border-theme", "rounded"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table-responsive table-sticky", 4, "ngIf"], [1, "card", "border-theme"], [1, "card-title", "mb-3"], [1, "d-flex", "text-center", "justify-content-between"], [1, "text-center", "m-0", "text-muted"], [1, "h2", "text-dark"], [3, "theme"], ["count", "6", 3, "theme"], [1, "table-responsive", "table-sticky"], [1, "table", "table-striped", "border-left", "m-0"], ["scope", "col", 1, "fix", "border-bottom-0", "border-top-0"], [1, "box-label", "text-muted"], [1, "box-label", "text-muted", "ml-1"], ["scope", "col noWrap", 4, "ngFor", "ngForOf"], ["scope", "col noWrap"], [1, "h6", "text-muted"], [1, "fix", "pb-0"], [1, "fix"], ["type", "text", 1, "form-control", "box", "p-1", 3, "value"], ["type", "text", 1, "form-control", "box", "ml-1", "p-1", 3, "value"], [1, "col-md-8"], ["type", "search", "placeholder", "Search by Staff Name or Staff ID", 1, "form-control", "mb-3", 3, "ngModel", "ngModelChange"], [1, "table-responsive", "border-theme", "rounded"], ["count", "5", "appearance", "line", 3, "theme", 4, "ngIf"], ["class", "table table-hover m-0", 4, "ngIf"], ["class", "col-md-4 pl-md-0", 4, "ngIf"], ["count", "5", "appearance", "line", 3, "theme"], [1, "table", "table-hover", "m-0"], ["title", "View Details", 3, "bg-grey", 4, "ngFor", "ngForOf"], ["title", "View Details"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "card", "border-0"], [1, "card-body", "border"], [3, "ngIf"], ["appearance", "line", 3, "theme"], [1, "form-group", "col-md-6"], ["type", "text", 1, "form-control", 3, "value"], [1, "form-group", "col-md-12"], [1, "form-group"], ["class", "alert border font-weight-bold", "role", "alert", 3, "ngClass", 4, "ngFor", "ngForOf"], ["role", "alert", 1, "alert", "border", "font-weight-bold", 3, "ngClass"], [1, "modal-header", "bg-theme"], ["id", "modal-basic-title", 1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "close", "text-light", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "input-group"], ["readonly", "", 1, "form-control", 3, "value"], ["placeholder", "Select Date", "name", "dp7", "ngbDatepicker", "", "formControlName", "applicationCloseDate", 1, "form-control", 3, "click"], ["dp7", "ngbDatepicker"], ["formControlName", "applicationCloseTime", 3, "items"], [1, "d-block"], [1, "form-check", "form-check-inline"], ["type", "radio", "name", "resultReleaseIn", "value", "auto", 1, "form-check-input", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "form-check-label"], ["type", "radio", "name", "resultReleaseIn", "value", "manual", 1, "form-check-input", 3, "ngModel", "ngModelOptions", "ngModelChange"], ["class", "form-row", 4, "ngIf"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-success", 3, "click"], ["ngbAutofocus", "", "type", "button", 1, "btn", "btn-dark", 3, "click"], ["placeholder", "Select Date", "name", "dp9", "ngbDatepicker", "", "formControlName", "resultReleaseDate", 1, "form-control", 3, "click"], ["dp9", "ngbDatepicker"], ["formControlName", "resultReleaseTime", 3, "items"]], template: function ManageBallotComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageBallotComponent_div_0_Template, 3, 0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageBallotComponent_div_2_Template, 5, 0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "BALLOTING EXERCISE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "table", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Ballot Title");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Balloting Round");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Result Release Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Current Ballot Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Post Ballot Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, ManageBallotComponent_tr_23_Template, 14, 9, "tr", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "BALLOTING RESULTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "form", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, ManageBallotComponent_div_32_Template, 5, 3, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, ManageBallotComponent_div_33_Template, 4, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, ManageBallotComponent_div_34_Template, 4, 1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "button", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_Template_button_click_36_listener() { return ctx.clearFilter(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "button", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_Template_button_click_38_listener() { return ctx.filterSummary(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "ul", 19, 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ManageBallotComponent_Template_ul_activeIdChange_42_listener($event) { return ctx.active = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "li", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "a", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Summary View");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](47, ManageBallotComponent_ng_template_47_Template, 12, 6, "ng-template", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "li", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "a", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_Template_a_click_49_listener() { return ctx.getDetails(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, "Detail View");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](51, ManageBallotComponent_ng_template_51_Template, 7, 4, "ng-template", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "li", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "a", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageBallotComponent_Template_a_click_53_listener() { return ctx.exportBallotData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Export");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](55, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](56, ManageBallotComponent_ng_template_56_Template, 43, 13, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.ballotList == null ? null : ctx.ballotList.length) && (ctx.ballotList[0] == null ? null : ctx.ballotList[0].isCanceled));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.ballotList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.ballotResultForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.ballotList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.ballotAll);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.ballotAll);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.active);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r6);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormGroupDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__["ɵr"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_11__["NgxSkeletonLoaderComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgClass"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbInputDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["RadioControlValueAccessor"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DatePipe"]], styles: [".nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n border: none;\n transition: color 0.2s;\n color: white;\n padding: 10px;\n background-color: #a42138;\n margin-right: 10px;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n border-color: transparent transparent blue;\n border-bottom: 5px solid blue;\n}\n.bg-grey[_ngcontent-%COMP%] {\n background-color: #dcdcdc;\n}\n.border-theme[_ngcontent-%COMP%] {\n border: 1px solid #a42138;\n}\n.form-control.box[_ngcontent-%COMP%] {\n width: 35px;\n text-align: center;\n}\n .ng-select .ng-select-container {\n min-height: calc(1.5em + 0.75rem + 2px);\n}\n .ng-select.ng-select-single .ng-select-container {\n height: calc(1.5em + 0.75rem + 2px);\n}\n.box-label[_ngcontent-%COMP%] {\n border: 1px solid #eaeaea;\n width: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 4px;\n padding: 3px;\n margin-top: 3px;\n}\n .modal-content {\n border: none;\n}\n.pageLoading[_ngcontent-%COMP%] {\n z-index: 99999;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n color: #a51f38;\n font-weight: 600;\n display: table;\n padding-bottom: 10px;\n}\n.innerDiv[_ngcontent-%COMP%] {\n display: table-cell;\n vertical-align: middle;\n}\n.table-sticky[_ngcontent-%COMP%] {\n width: calc(100% - 8em * 3);\n overflow-x: scroll;\n margin-left: calc(8em * 3);\n overflow-y: visible;\n}\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%] {\n position: absolute;\n background-color: #fff;\n width: 8em;\n}\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(1) {\n left: 15px;\n border-left: 1px solid #a42138;\n}\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(2) {\n left: calc(8em + 15px);\n}\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(3) {\n left: calc(16em + 15px);\n}\n@keyframes blink {\n 0% {\n opacity: 1;\n }\n 50% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n}\n.blinking-text[_ngcontent-%COMP%] {\n animation: blink 1s infinite;\n}\n.cancel-ballot[_ngcontent-%COMP%] {\n position: absolute;\n font-size: 20px;\n font-weight: bold;\n color: white;\n z-index: 99999;\n position: fixed;\n margin: 0 auto;\n text-transform: uppercasel;\n background: red;\n padding: 10px;\n top: 50%;\n border: 2px dashed #000;\n left: 45%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtYmFsbG90aW5nL21hbmFnZS1iYWxsb3QvbWFuYWdlLWJhbGxvdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDRTtFQUNFLFlBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxhQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtBQUFKO0FBQ0k7RUFDRSwwQ0FBQTtFQUNBLDZCQUFBO0FBQ047QUFJQTtFQUNFLHlCQUFBO0FBREY7QUFJQTtFQUNFLHlCQUFBO0FBREY7QUFJQTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtBQURGO0FBSUE7RUFDRSx1Q0FBQTtBQURGO0FBSUE7RUFDRSxtQ0FBQTtBQURGO0FBSUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtBQURGO0FBSUE7RUFDRSxZQUFBO0FBREY7QUFJQTtFQUNFLGNBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsY0FBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLG9CQUFBO0FBREY7QUFJQTtFQUNFLG1CQUFBO0VBQ0Esc0JBQUE7QUFERjtBQUlBO0VBQ0UsMkJBQUE7RUFDQSxrQkFBQTtFQUNBLDBCQUFBO0VBQ0EsbUJBQUE7QUFERjtBQUdFO0VBQ0Usa0JBQUE7RUFDQSxzQkFBQTtFQUNBLFVBQUE7QUFESjtBQUdJO0VBQ0UsVUFBQTtFQUNBLDhCQUFBO0FBRE47QUFHSTtFQUNFLHNCQUFBO0FBRE47QUFHSTtFQUNFLHVCQUFBO0FBRE47QUFLQTtFQUNFO0lBQUssVUFBQTtFQURMO0VBRUE7SUFBTSxVQUFBO0VBQ047RUFBQTtJQUFPLFVBQUE7RUFHUDtBQUNGO0FBREE7RUFDRSw0QkFBQTtBQUdGO0FBREE7RUFDRSxrQkFBQTtFQUFtQixlQUFBO0VBQ3JCLGlCQUFBO0VBQ0EsWUFBQTtFQUNBLGNBQUE7RUFDQSxlQUFBO0VBQ0EsY0FBQTtFQUNBLDBCQUFBO0VBQ0EsZUFBQTtFQUNBLGFBQUE7RUFDQSxRQUFBO0VBQ0EsdUJBQUE7RUFDQSxTQUFBO0FBS0EiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9odW1hbi1yZXNvdXJjZS9sZWF2ZS1iYWxsb3RpbmcvbWFuYWdlLWJhbGxvdC9tYW5hZ2UtYmFsbG90LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdi10YWJzIHtcbiAgLm5hdi1saW5rIHtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICBjb2xvcjogd2hpdGU7XG4gICAgcGFkZGluZzogMTBweDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICAgIG1hcmdpbi1yaWdodDogMTBweDtcbiAgICAmLmFjdGl2ZSB7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50IGJsdWU7XG4gICAgICBib3JkZXItYm90dG9tOiA1cHggc29saWQgYmx1ZTtcbiAgICB9XG4gIH1cbn1cblxuLmJnLWdyZXkge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZGNkY2RjO1xufVxuXG4uYm9yZGVyLXRoZW1lIHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2E0MjEzODtcbn1cblxuLmZvcm0tY29udHJvbC5ib3gge1xuICB3aWR0aDogMzVweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuXG46Om5nLWRlZXAgLm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciB7XG4gIG1pbi1oZWlnaHQ6IGNhbGMoMS41ZW0gKyAwLjc1cmVtICsgMnB4KTtcbn1cblxuOjpuZy1kZWVwIC5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lciB7XG4gIGhlaWdodDogY2FsYygxLjVlbSArIDAuNzVyZW0gKyAycHgpO1xufVxuXG4uYm94LWxhYmVsIHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2VhZWFlYTtcbiAgd2lkdGg6IDM1cHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIHBhZGRpbmc6IDNweDtcbiAgbWFyZ2luLXRvcDogM3B4O1xufVxuXG46Om5nLWRlZXAgLm1vZGFsLWNvbnRlbnQge1xuICBib3JkZXI6IG5vbmU7XG59XG5cbi5wYWdlTG9hZGluZyB7XG4gIHotaW5kZXg6IDk5OTk5O1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGNvbG9yOiAjYTUxZjM4O1xuICBmb250LXdlaWdodDogNjAwO1xuICBkaXNwbGF5OiB0YWJsZTtcbiAgcGFkZGluZy1ib3R0b206IDEwcHg7XG59XG5cbi5pbm5lckRpdiB7XG4gIGRpc3BsYXk6IHRhYmxlLWNlbGw7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG59XG5cbi50YWJsZS1zdGlja3kge1xuICB3aWR0aDogY2FsYygxMDAlIC0gOGVtICogMyk7XG4gIG92ZXJmbG93LXg6IHNjcm9sbDtcbiAgbWFyZ2luLWxlZnQ6IGNhbGMoOGVtICogMyk7XG4gIG92ZXJmbG93LXk6IHZpc2libGU7XG5cbiAgLmZpeCB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgd2lkdGg6IDhlbTtcblxuICAgICY6bnRoLWNoaWxkKDEpIHtcbiAgICAgIGxlZnQ6IDE1cHg7XG4gICAgICBib3JkZXItbGVmdDogMXB4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICAgICY6bnRoLWNoaWxkKDIpIHtcbiAgICAgIGxlZnQ6IGNhbGMoOGVtICsgMTVweCk7XG4gICAgfVxuICAgICY6bnRoLWNoaWxkKDMpIHtcbiAgICAgIGxlZnQ6IGNhbGMoMTZlbSArIDE1cHgpO1xuICAgIH1cbiAgfVxufVxuQGtleWZyYW1lcyBibGluayB7XG4gIDAlIHsgb3BhY2l0eTogMTsgfVxuICA1MCUgeyBvcGFjaXR5OiAwOyB9XG4gIDEwMCUgeyBvcGFjaXR5OiAxOyB9XG59XG5cbi5ibGlua2luZy10ZXh0IHtcbiAgYW5pbWF0aW9uOiBibGluayAxcyBpbmZpbml0ZTtcbn1cbi5jYW5jZWwtYmFsbG90e1xuICBwb3NpdGlvbjogYWJzb2x1dGU7Zm9udC1zaXplOiAyMHB4O1xuZm9udC13ZWlnaHQ6IGJvbGQ7XG5jb2xvcjogd2hpdGU7XG56LWluZGV4OiA5OTk5OTtcbnBvc2l0aW9uOiBmaXhlZDtcbm1hcmdpbjogMCBhdXRvO1xudGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZWw7XG5iYWNrZ3JvdW5kOiByZWQ7XG5wYWRkaW5nOiAxMHB4O1xudG9wOiA1MCU7XG5ib3JkZXI6MnB4IGRhc2hlZCAjMDAwO1xubGVmdDogNDUlO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageBallotComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'manage-ballot',
templateUrl: './manage-ballot.component.html',
styleUrls: ['./manage-ballot.component.scss'],
providers: [
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
],
}]
}], function () { return [{ type: src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_5__["LeavePlannerService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormBuilder"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }]; }, { ballot: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], ballotRound: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], ballotAuto: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], redirectToOverview: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], back: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "SPRF":
/*!**********************************************************!*\
!*** ./src/app/external-link/external-link.component.ts ***!
\**********************************************************/
/*! exports provided: ExternalLinkComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExternalLinkComponent", function() { return ExternalLinkComponent; });
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _users_pages_central_builder_my_forms_signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../users/pages/central-builder/my-forms/signature-questions/signature-questions.component */ "roDN");
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/cdk/drag-drop */ "5+WD");
/* harmony import */ var _users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/dialog */ "0IaG");
/* harmony import */ var _users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var _users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../users/service/user-service/users.service */ "lGV6");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/input */ "qFsG");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/button */ "bTqV");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../shared/pipes/safe.pipe */ "ITC6");
function ExternalLinkComponent_div_11_div_7_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "textarea", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_7_Template_textarea_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r1.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r1.answer);
} }
function ExternalLinkComponent_div_11_div_8_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r23 == null ? null : option_r23.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function ExternalLinkComponent_div_11_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_8_div_1_div_1_Template, 2, 1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_8_div_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r1.answer = $event; })("change", function ExternalLinkComponent_div_11_div_8_div_1_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const option_r23 = ctx.$implicit; const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r29.setChild(item_r1, option_r23); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r23 = ctx.$implicit;
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r23.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r23._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", item_r1._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r23)("ngModel", item_r1.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r23.value);
} }
function ExternalLinkComponent_div_11_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_8_div_1_Template, 5, 6, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r1.options);
} }
function ExternalLinkComponent_div_11_div_9_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r34 == null ? null : option_r34.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function ExternalLinkComponent_div_11_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_9_div_1_div_1_Template, 2, 1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_9_div_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r39); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r1.answer = $event; })("change", function ExternalLinkComponent_div_11_div_9_div_1_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r39); const option_r34 = ctx.$implicit; const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r40.setChild(item_r1, option_r34); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r34 = ctx.$implicit;
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r34.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r34._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", item_r1._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r34)("ngModel", item_r1.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("for", option_r34._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r34.value);
} }
function ExternalLinkComponent_div_11_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_9_div_1_Template, 5, 7, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r1.options);
} }
function ExternalLinkComponent_div_11_div_10_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "img", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ExternalLinkComponent_div_11_div_10_div_2_img_2_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r51); const i_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r1.selected = i_r46; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", option_r45.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function ExternalLinkComponent_div_11_div_10_div_2_span_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", option_r45.percentage, " %");
} }
const _c0 = function (a0) { return { "width": a0 }; };
const _c1 = function (a0) { return { "pollingSelect": a0 }; };
function ExternalLinkComponent_div_11_div_10_div_2_Template(rf, ctx) { if (rf & 1) {
const _r57 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ExternalLinkComponent_div_11_div_10_div_2_img_2_Template, 1, 1, "img", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ExternalLinkComponent_div_11_div_10_div_2_Template_div_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r57); const option_r45 = ctx.$implicit; const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r55.selectPolling(item_r1._id, option_r45); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "img", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h4", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ExternalLinkComponent_div_11_div_10_div_2_Template_h4_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r57); const i_r46 = ctx.index; const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r1.selected = i_r46; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, ExternalLinkComponent_div_11_div_10_div_2_span_11_Template, 2, 1, "span", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r45 = ctx.$implicit;
const i_r46 = ctx.index;
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("for", option_r45._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r45.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](7, _c0, option_r45.imageSrc ? "270px" : "150px"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", "./assets/images/" + (option_r45.answer ? "like1" : "like0") + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](9, _c1, item_r1.selected === i_r46));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r45.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r45.percentage);
} }
function ExternalLinkComponent_div_11_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ExternalLinkComponent_div_11_div_10_div_2_Template, 12, 11, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r1.options);
} }
function ExternalLinkComponent_div_11_div_11_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r63.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function ExternalLinkComponent_div_11_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
const _r67 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_11_div_2_div_1_Template, 3, 1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_11_div_2_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r67); const option_r63 = ctx.$implicit; return option_r63.answer = $event; })("change", function ExternalLinkComponent_div_11_div_11_div_2_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r67); const option_r63 = ctx.$implicit; const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r68.setChild(item_r1, option_r63); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r63 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r63.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", option_r63._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r63._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", option_r63.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r63.value);
} }
function ExternalLinkComponent_div_11_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ExternalLinkComponent_div_11_div_11_div_2_Template, 5, 5, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r1.options);
} }
function ExternalLinkComponent_div_11_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", item_r1.answer, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function ExternalLinkComponent_div_11_div_12_Template(rf, ctx) { if (rf & 1) {
const _r75 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ExternalLinkComponent_div_11_div_12_div_2_Template, 2, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ExternalLinkComponent_div_11_div_12_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r75); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r73.openDialog(item_r1); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Signature");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "mat-icon", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.answer);
} }
function ExternalLinkComponent_div_11_div_13_Template(rf, ctx) { if (rf & 1) {
const _r79 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "textarea", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_13_Template_textarea_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r79); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r1.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("maxlength", !!(item_r1 == null ? null : item_r1.maxlength) ? item_r1 == null ? null : item_r1.maxlength : 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r1.answer);
} }
function ExternalLinkComponent_div_11_div_14_Template(rf, ctx) { if (rf & 1) {
const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_14_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r83); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r1.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r1.answer);
} }
function ExternalLinkComponent_div_11_div_15_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_15_div_1_div_1_Template_input_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r92); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r1.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "ngb-timepicker", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_15_div_1_div_1_Template_ngb_timepicker_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r92); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r1.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r1.answer["date"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r1.answer["time"])("meridian", true)("hourStep", ctx_r87.hourStep)("minuteStep", ctx_r87.minuteStep);
} }
function ExternalLinkComponent_div_11_div_15_div_1_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
const _r99 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_15_div_1_div_2_div_1_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r99); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit; return (item_r1.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r1.answer["date"]);
} }
function ExternalLinkComponent_div_11_div_15_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_15_div_1_div_2_div_1_Template, 5, 1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r86 === 1);
} }
function ExternalLinkComponent_div_11_div_15_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
const _r104 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ngb-timepicker", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_15_div_1_div_3_Template_ngb_timepicker_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r104); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r1.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r1.answer["time"])("meridian", true)("hourStep", ctx_r89.hourStep)("minuteStep", ctx_r89.minuteStep);
} }
function ExternalLinkComponent_div_11_div_15_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_15_div_1_div_1_Template, 10, 5, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ExternalLinkComponent_div_11_div_15_div_1_div_2_Template, 2, 1, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, ExternalLinkComponent_div_11_div_15_div_1_div_3_Template, 5, 4, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r86 = ctx.$implicit;
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r1.dateTime == null ? null : item_r1.dateTime.length) === 2 && option_r86 === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r1.dateTime == null ? null : item_r1.dateTime.length) === 1 && option_r86 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r86 === 2 && (item_r1.dateTime == null ? null : item_r1.dateTime.length) === 1);
} }
function ExternalLinkComponent_div_11_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_15_div_1_Template, 4, 3, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r1.dateTime);
} }
function ExternalLinkComponent_div_11_div_16_option_6_img_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 72);
} if (rf & 2) {
const choice_r110 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", choice_r110.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function ExternalLinkComponent_div_11_div_16_option_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_16_option_6_img_1_Template, 1, 1, "img", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r110 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", choice_r110.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", choice_r110.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](choice_r110.value);
} }
function ExternalLinkComponent_div_11_div_16_Template(rf, ctx) { if (rf & 1) {
const _r115 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "select", 66, 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function ExternalLinkComponent_div_11_div_16_Template_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r115); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r1.answer = $event; })("change", function ExternalLinkComponent_div_11_div_16_Template_select_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r115); const _r108 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](3); const ctx_r117 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); const item_r1 = ctx_r117.$implicit; const i_r2 = ctx_r117.index; const ctx_r116 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r116.setChild(item_r1, _r108.value, i_r2); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "option", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Select Options");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ExternalLinkComponent_div_11_div_16_option_6_Template, 3, 3, "option", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r1.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", ctx_r12.selected);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r1.options);
} }
function ExternalLinkComponent_div_11_div_17_span_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, ", ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ExternalLinkComponent_div_11_div_17_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ExternalLinkComponent_div_11_div_17_span_4_span_2_Template, 2, 0, "span", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const fileType_r120 = ctx.$implicit;
const index_r121 = ctx.index;
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", fileType_r120.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r1.options == null ? null : item_r1.options.length) != index_r121 + 1);
} }
function ExternalLinkComponent_div_11_div_17_Template(rf, ctx) { if (rf & 1) {
const _r125 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ExternalLinkComponent_div_11_div_17_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r125); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r124.fileUpload($event, item_r1); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ExternalLinkComponent_div_11_div_17_span_4_Template, 3, 2, "span", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r1 == null ? null : item_r1.options);
} }
function ExternalLinkComponent_div_11_div_18_Template(rf, ctx) { if (rf & 1) {
const _r130 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "ngb-rating", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("rateChange", function ExternalLinkComponent_div_11_div_18_Template_ngb_rating_rateChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r130); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r1.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("max", item_r1.value)("rate", item_r1.answer)("readonly", false);
} }
function ExternalLinkComponent_div_11_div_19_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r133 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", choice_r133._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", choice_r133.name, " ");
} }
function ExternalLinkComponent_div_11_div_19_Template(rf, ctx) { if (rf & 1) {
const _r135 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ExternalLinkComponent_div_11_div_19_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r135); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r134 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r134.multiSelect($event, item_r1); })("ngModelChange", function ExternalLinkComponent_div_11_div_19_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r135); const ctx_r137 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r137.user = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ExternalLinkComponent_div_11_div_19_ng_option_4_Template, 2, 2, "ng-option", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", true)("searchable", true)("ngModel", ctx_r15.user)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r15.typeFourteenQuestion);
} }
function ExternalLinkComponent_div_11_div_20_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r139 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", imagObj_r139.src, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function ExternalLinkComponent_div_11_div_20_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ExternalLinkComponent_div_11_div_20_div_2_div_1_Template, 2, 1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r139 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", imagObj_r139.src);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](imagObj_r139.value);
} }
function ExternalLinkComponent_div_11_div_20_Template(rf, ctx) { if (rf & 1) {
const _r143 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("cdkDropListDropped", function ExternalLinkComponent_div_11_div_20_Template_div_cdkDropListDropped_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r143); const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r142 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r142.drop($event, item_r1); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ExternalLinkComponent_div_11_div_20_div_2_Template, 5, 2, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r16.images);
} }
function ExternalLinkComponent_div_11_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ExternalLinkComponent_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "strong", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "p", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, ExternalLinkComponent_div_11_div_7_Template, 3, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, ExternalLinkComponent_div_11_div_8_Template, 3, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, ExternalLinkComponent_div_11_div_9_Template, 3, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, ExternalLinkComponent_div_11_div_10_Template, 4, 1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, ExternalLinkComponent_div_11_div_11_Template, 4, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, ExternalLinkComponent_div_11_div_12_Template, 7, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, ExternalLinkComponent_div_11_div_13_Template, 5, 2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ExternalLinkComponent_div_11_div_14_Template, 5, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, ExternalLinkComponent_div_11_div_15_Template, 3, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ExternalLinkComponent_div_11_div_16_Template, 8, 3, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, ExternalLinkComponent_div_11_div_17_Template, 6, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, ExternalLinkComponent_div_11_div_18_Template, 4, 3, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, ExternalLinkComponent_div_11_div_19_Template, 6, 5, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, ExternalLinkComponent_div_11_div_20_Template, 4, 1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, ExternalLinkComponent_div_11_div_21_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = ctx.$implicit;
const i_r2 = ctx.index;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r2 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 17, item_r1 == null ? null : item_r1.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r1.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.viewQuestions.length == 0);
} }
class ExternalLinkComponent {
constructor(centralBuilderService, toastService, dialogRef, customFormService, userService, activatedRoute) {
this.centralBuilderService = centralBuilderService;
this.toastService = toastService;
this.dialogRef = dialogRef;
this.customFormService = customFormService;
this.userService = userService;
this.activatedRoute = activatedRoute;
this.images = [];
this.isDisable = false;
this.hasParent = question => { var _a; return 0 === ((_a = question === null || question === void 0 ? void 0 : question.conditionalQuestions) === null || _a === void 0 ? void 0 : _a.length); };
}
ngOnInit() {
this.getExternalQestion();
}
getExternalQestion() {
let payload = {
formName: this.activatedRoute.snapshot.params.id
};
this.userService.getQuestionDetails(payload).subscribe((res) => {
var _a;
this.selectedModule = (res === null || res === void 0 ? void 0 : res.data.data) || null;
this.questions = this.selectedModule.questions.filter(v => 7 !== v.type) || [];
this.viewQuestions = this.questions.filter(x => 0 === x.conditionalQuestions.length) || [];
let typeFourteen;
(_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.map(item => {
item.answer = '';
if (item.type == 10) {
item.answer = { data: '', time: '' };
}
if (item.type === 14) {
typeFourteen = item._id;
}
if (item.type === 15) {
item === null || item === void 0 ? void 0 : item.options.map((final, index) => {
this.images[index] = { "src": final.imageSrc, "value": final.value, "option": final._id };
});
}
});
this.getNominateUserType(typeFourteen);
});
}
getNominateUserType(questionId) {
let finalData = {
questionId: questionId
};
this.centralBuilderService.getNominateUser(finalData).subscribe((data) => {
this.setDropdown(data.data, questionId);
});
}
setDropdown(data, questionId) {
this.typeFourteenQuestion = (data === null || data === void 0 ? void 0 : data.items) || [];
this.questionIDFourteen = questionId;
}
submit() {
var _a;
const answers = this.viewQuestions.reduce((prev, question, i) => {
var _a, _b, _c, _d, _e, _f, _g;
let answer = null, _id = question._id, type = question.type;
switch (question.type) {
case 1:
case 2:
case 3:
case 6:
case 8:
case 9:
case 11:
case 14:
case 12:
case 13:
answer = question.answer;
break;
case 10:
if (-1 !== question.dateTime.indexOf(1) && !!question.answer && !!question.answer.date) {
answer = answer || {};
answer["date"] = question.answer.date;
}
if (-1 !== question.dateTime.indexOf(2) &&
!!question.answer &&
!!question.answer.time) {
answer = answer || {};
if (((_a = question === null || question === void 0 ? void 0 : question.answer.time) === null || _a === void 0 ? void 0 : _a.hour) && ((_b = question === null || question === void 0 ? void 0 : question.answer.time) === null || _b === void 0 ? void 0 : _b.minute)) {
answer["time"] = this.convert24hourTo12HourFormat(((_c = question.answer.time) === null || _c === void 0 ? void 0 : _c.hour) + ':' + ((_d = question.answer.time) === null || _d === void 0 ? void 0 : _d.minute));
}
}
if ((-1 !== question.dateTime.indexOf(1) && -1 !== question.dateTime.indexOf(2)) &&
!(!!question.answer && !!question.answer.date && !!((_e = question.answer.time) === null || _e === void 0 ? void 0 : _e.hour) && !!((_f = question.answer.time) === null || _f === void 0 ? void 0 : _f.minute))) {
answer = false;
}
break;
case 5:
case 4:
answer = (_g = question.options) === null || _g === void 0 ? void 0 : _g.filter(v => v.answer);
if (!answer.length) {
answer = null;
}
break;
case 16:
break;
default:
answer = false;
break;
}
return prev.concat({ _id, answer, type });
}, []);
if (answers === null || answers === void 0 ? void 0 : answers.some(v => v.type === 9 && !(!!v.answer))) {
this.toastService.error('Please enter valid numeric values');
return;
}
this.viewQuestions.filter(q => q.type === 15).forEach(sq => {
let inans = answers.find(answer => answer._id.toString() === sq._id.toString());
inans.answer = sq.options;
});
if (answers.some(v => !!!v.answer)) {
this.toastService.error("Answer all questions");
return;
}
let _questions = this.questions.map(v => v._id);
const payload = {
answers: answers,
customFormId: (_a = this.selectedModule) === null || _a === void 0 ? void 0 : _a.customFormId,
questions: _questions
};
answers.length > 0 ? this.centralBuilderService.submitExternalAnswers(payload).subscribe((data) => {
if (data.data) {
this.toastService.success("Form Submitted Successfully");
this.isDisable = true;
}
}) : '';
}
;
convert24hourTo12HourFormat(time) {
const time_part_array = time.split(":");
let ampm = 'am';
if (time_part_array[0] >= 12) {
ampm = 'pm';
}
if (time_part_array[0] > 12) {
time_part_array[0] = time_part_array[0] - 12;
}
const formatted_time = time_part_array[0] + '-' + time_part_array[1] + '-' + ampm;
return formatted_time;
}
setChild(question, option, index) {
if (question.type == 11) {
this.selectedModule.questions[index].answer = option;
this.selectedModule.questions[index].isVisibleList = !this.selectedModule.questions[index].isVisibleList;
}
this.checkQuestions(question, option._id);
}
;
checkQuestions(question, a) {
var _a, _b;
let q = question._id;
const filteredQuestions = (_b = (_a = this.questions) === null || _a === void 0 ? void 0 : _a.filter(v => {
var _a;
return !this.hasParent(v) && ((_a = v === null || v === void 0 ? void 0 : v.conditionalQuestions) === null || _a === void 0 ? void 0 : _a.some(c => c.questionId === q && c.optionId === a));
})) === null || _b === void 0 ? void 0 : _b.map(c => {
c["cQuestion"] = q;
c["cOption"] = a;
return JSON.parse(JSON.stringify(c));
});
if (question.type == 5) {
setTimeout(() => {
var _a, _b, _c;
if (!question.options.filter(option => option._id === a)[0].answer) {
let allQuestionsadded = filteredQuestions.map(v => v._id);
let questionsNeedToDelete = (_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.reduce((prev, curr, i) => {
return allQuestionsadded.includes(curr._id) ? prev.concat(i) : prev;
}, []);
questionsNeedToDelete.sort((a, b) => b - a);
questionsNeedToDelete.forEach(v => {
this.viewQuestions.splice(v, 1);
});
}
else {
const index = ((_b = this.viewQuestions) === null || _b === void 0 ? void 0 : _b.findIndex(ques => ques._id == q)) + 1;
this.viewQuestions.splice(index, 0, ...filteredQuestions);
}
this.viewQuestions = (_c = this.viewQuestions) === null || _c === void 0 ? void 0 : _c.reduce((prev, curr, i) => {
const index = prev.findIndex(v => v._id === curr._id);
return -1 === index ? prev.concat(curr) : prev;
}, []);
}, 100);
}
else {
setTimeout(() => {
var _a;
this.viewQuestions = (_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.filter(ques => "cQuestion" in ques ? ques.cQuestion !== q : true);
const index = this.viewQuestions.findIndex(ques => ques._id == q) + 1;
this.viewQuestions.splice(index, 0, ...filteredQuestions);
this.viewQuestions = this.viewQuestions.reduce((prev, curr, i) => {
const index = prev.findIndex(v => v._id === curr._id);
return -1 === index ? prev.concat(curr) : prev;
}, []);
});
}
}
;
selectPolling(questionId, option) {
var _a;
let question = this.questions.find(q => q._id.toString() === questionId.toString());
if (!question.pollingSelectionCount || (1 === question.pollingSelectionCount)) {
question.options.forEach(opt => opt.answer = (option._id.toString() === opt._id.toString()));
}
else if ((question.options.filter(op => op.answer).length === question.pollingSelectionCount) && !option.answer) {
this.toastService.error('maxinum options reach for this question');
}
else {
question.options.find(op => op._id.toString() === option._id.toString()).answer =
!((_a = question.options) === null || _a === void 0 ? void 0 : _a.find(op => op._id.toString() === option._id.toString()).answer);
}
}
openDialog(questionid) {
const modalRef = this.dialogRef.open(_users_pages_central_builder_my_forms_signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_2__["SignatureQuestionsComponent"], {
height: '500px',
width: '600px',
});
modalRef.componentInstance.takeSignature.subscribe((signURL) => {
this.signatureImg = signURL;
questionid.answer = signURL;
this.close(modalRef);
});
}
close(modalRef) {
modalRef.close();
}
fileUpload(event, question) {
var _a;
let typeList = ((_a = question.options) === null || _a === void 0 ? void 0 : _a.map(data => { return data.value.toLowerCase(); })) || [];
if (event.target.files && event.target.files.length) {
const file = event.target.files[0];
let fileType = file.name.split('.');
let fileExe = (fileType === null || fileType === void 0 ? void 0 : fileType.length) ? fileType[fileType.length - 1].toLowerCase() : null;
if (fileExe && (typeList === null || typeList === void 0 ? void 0 : typeList.includes(fileExe))) {
var useraddData = new FormData();
useraddData.append("file", file);
const fileUpload = this.customFormService
.uploadFiles(useraddData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_0__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
question.answer = { url: (data === null || data === void 0 ? void 0 : data.filePath) || null, name: file.name };
}, (error) => {
this.toastService.error((error === null || error === void 0 ? void 0 : error.message) || 'File upload error');
});
}
else {
this.toastService.error("Only this format are accecpted", typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
// }
}
else {
this.toastService.error("Only this format are accecpted", typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
}
multiSelect(value, question) {
question.answer = value === null || value === void 0 ? void 0 : value.map(x => {
var _a, _b;
if ((_a = this.typeFourteenQuestion) === null || _a === void 0 ? void 0 : _a.find(qus => qus._id == x)) {
return (_b = this.typeFourteenQuestion) === null || _b === void 0 ? void 0 : _b.find(qus => qus._id == x);
}
});
}
drop(event, question) {
Object(_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["moveItemInArray"])(this.images, event.previousIndex, event.currentIndex);
}
}
ExternalLinkComponent.ɵfac = function ExternalLinkComponent_Factory(t) { return new (t || ExternalLinkComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_4__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_9__["ActivatedRoute"])); };
ExternalLinkComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ExternalLinkComponent, selectors: [["app-external-link"]], decls: 17, vars: 9, consts: [[1, "card"], [1, "card-header", "flexi-header", "pt-4"], [2, "display", "inline"], [1, "card-header"], [1, "card-body", "centered-image"], ["crossorigin", "anonymous", "width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", 1, "image", 3, "src"], [2, "text-align", "center"], [1, "card-body", 2, "word-break", "break-word", "padding", "10px", "height", "max-content"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [2, "margin-left", "400px", "margin-top", "20px"], ["type", "submit", 1, "btn-submit", 3, "ngClass", "disabled", "click"], [1, "box", "d-flex", "flex-column"], [1, "topHead", "d-flex"], [1, "mr-1"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["class", "card-body", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "box-body"], ["matInput", "", "rows", "5", "cols", "100", 3, "ngModel", "ngModelChange"], ["class", "box", 4, "ngFor", "ngForOf"], [1, "box"], ["type", "radio", 1, "card-header-flexi", 3, "id", "name", "value", "ngModel", "ngModelChange", "change"], ["for", "consolidated"], [1, "card-body"], ["crossorigin", "anonymous", "width", "250px", "height", "320px", "id", "4", "alt", "Image Preview", 3, "src"], ["class", "boxx", 4, "ngFor", "ngForOf"], [1, "boxx"], [3, "for"], ["crossorigin", "anonymous", "width", "250px", "height", "320px", "alt", "Image Preview", 3, "src"], [1, "d-flex", 2, "overflow", "auto"], ["class", "question-radio-inline", 4, "ngFor", "ngForOf"], [1, "question-radio-inline"], [1, "card", 2, "border-radius", "10px", "width", "min-content", 3, "for"], ["crossorigin", "anonymous", "alt", "", "style", "width: 270px;height: 201px;border-radius: 10px 10px 0px 0px;", 3, "src", "click", 4, "ngIf"], [1, "card-container", 2, "background-color", "#6eb96e", "display", "flex", "justify-content", "space-between", "border-radius", "0px 0px 10px 10px", "padding", "5px", 3, "ngStyle", "click"], ["crossorigin", "anonymous", "alt", "", "height", "10px", 2, "width", "12%", "min-width", "30px", "height", "1%", "margin", "3px", 3, "src"], [2, "text-align", "center", 3, "ngClass", "click"], ["class", "text-success", 4, "ngIf"], ["crossorigin", "anonymous", "alt", "", 2, "width", "270px", "height", "201px", "border-radius", "10px 10px 0px 0px", 3, "src", "click"], [1, "text-success"], [1, "form-group", "d-flex", "flex-column", "answers-options"], [4, "ngIf"], ["type", "checkbox", 3, "ngModel", "name", "id", "ngModelChange", "change"], ["width", "250px", "height", "320px", "id", "4", "alt", "Image Preview", 3, "src"], ["class", "signature-div", 4, "ngIf"], ["mat-button", "", 3, "click"], ["aria-hidden", "false", "aria-label", "Example home icon", "fontIcon", "home"], [1, "signature-div"], [1, "signature-img", 3, "src"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "box", "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["rows", "5", 1, "form-control", 3, "ngModel", "maxlength", "ngModelChange"], ["type", "number", 1, "form-control", 3, "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], ["class", "box", 4, "ngIf"], ["class", "box form-group", 4, "ngIf"], ["style", "margin-left: 10px;", "class", "box", 4, "ngIf"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["for", "my-input"], ["id", "my-input", "type", "date", 1, "form-control", 3, "ngModel", "ngModelChange"], [1, "box", 2, "margin-left", "10px"], [3, "ngModel", "meridian", "hourStep", "minuteStep", "ngModelChange"], [1, "box", "form-group"], ["class", "d-flex flex-wrap answers-options", 4, "ngIf"], [1, "form-control", 3, "ngModel", "ngModelChange", "change"], ["mySelect", ""], ["selected", "", "disabled", "", 3, "ngValue"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["crossorigin", "anonymous", "class", "dropdown-img", 3, "src", 4, "ngIf"], ["crossorigin", "anonymous", 1, "dropdown-img", 3, "src"], ["id", "my-input", "type", "file", 1, "form-control-file", 3, "change"], [1, "d-flex"], [3, "max", "rate", "readonly", "rateChange"], [1, "row"], [1, "col-md-6"], ["bindLabel", "name", "placeholder", "Select Users", 1, "custom", 3, "multiple", "searchable", "ngModel", "clearable", "change", "ngModelChange"], ["cdkDropList", "", 3, "cdkDropListDropped"], ["cdkDrag", "", 4, "ngFor", "ngForOf"], ["cdkDrag", ""]], template: function ExternalLinkComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "img", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h3", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, ExternalLinkComponent_div_11_Template, 22, 19, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "button", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ExternalLinkComponent_Template_button_click_15_listener() { return ctx.submit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "submit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 7, ctx.selectedModule == null ? null : ctx.selectedModule.moduleName), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx.selectedModule == null ? null : ctx.selectedModule.welComeAttachement, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.selectedModule == null ? null : ctx.selectedModule.welComeMessage, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.viewQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.selectedModule == null ? null : ctx.selectedModule.Message, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx.isDisable ? "disabled" : "")("disabled", ctx.isDisable);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_material_input__WEBPACK_IMPORTED_MODULE_11__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["RadioControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgStyle"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["CheckboxControlValueAccessor"], _angular_material_button__WEBPACK_IMPORTED_MODULE_13__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_14__["MatIcon"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NumberValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__["NgbTimepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["ɵangular_packages_forms_forms_x"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_15__["NgbRating"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_16__["ɵr"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["CdkDropList"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["CdkDrag"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["UpperCasePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_17__["SafeHtmlPipe"]], styles: ["a.list-group-item[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n border: 1px dotted #cccccc;\n cursor: pointer;\n color: #555;\n}\n\na[_ngcontent-%COMP%] {\n text-decoration: none;\n}\n\na.list-group-item[_ngcontent-%COMP%]:hover {\n background-color: #e2e2e2;\n}\n\n.card-header-flexi[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n padding: 1rem;\n color: #a42138;\n text-transform: uppercase;\n}\n\n.centered-image[_ngcontent-%COMP%] {\n margin: auto;\n padding: 10px;\n text-align: center;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n margin: 1rem;\n box-shadow: 0px 0px 8px #ccc;\n padding: 1.2rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n padding: 1rem;\n width: 300px;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] {\n padding-bottom: 1rem;\n word-wrap: break-word;\n font-weight: 600;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 1rem;\n}\n\n.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n\n.btn-white[_ngcontent-%COMP%] {\n background-color: whitesmoke;\n}\n\n.parent[_ngcontent-%COMP%] {\n content: \"\";\n display: table;\n clear: both;\n}\n\n.flex-child[_ngcontent-%COMP%] {\n float: left;\n height: 470px;\n width: 23%;\n padding: 0 10px;\n}\n\nimg[_ngcontent-%COMP%]:not(.image) {\n object-fit: cover;\n \n width: 100%;\n \n height: 80%;\n}\n\ninput[type=radio][_ngcontent-%COMP%] {\n margin: 0 10px 0 10px;\n}\n\ninput[type=checkbox][_ngcontent-%COMP%] {\n margin: 0 10px 0 10px;\n}\n\n.box[_ngcontent-%COMP%] {\n margin-bottom: 100px;\n}\n\n.questions-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n border: 1px solid #bdbdbd;\n border-radius: 10px;\n padding: 10px;\n}\n\nngb-rating[_ngcontent-%COMP%] {\n color: yellow;\n font-size: 50px;\n}\n\n.topHead[_ngcontent-%COMP%] {\n margin-bottom: 0 auto;\n}\n\n.signature-div[_ngcontent-%COMP%] {\n width: 15%;\n height: 100px;\n}\n\n.signature-img[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n}\n\n.box-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] {\n float: left;\n margin-bottom: auto;\n}\n\n.box.boxx[_ngcontent-%COMP%] {\n height: 1000px;\n}\n\ndiv.topHead.d-flex[_ngcontent-%COMP%] {\n margin-bottom: 0;\n}\n\n.tp-radio-group[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n}\n\n.onlytime[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: row;\n}\n\n.timedropdown[_ngcontent-%COMP%] {\n margin: 5px;\n}\n\n.tp-radio-button[_ngcontent-%COMP%] {\n margin: 5px;\n}\n\n.tp-selected-value[_ngcontent-%COMP%] {\n margin: 15px 0;\n}\n\n.grid-container[_ngcontent-%COMP%] {\n display: grid;\n grid-gap: 20px;\n}\n\n.pollingSelect[_ngcontent-%COMP%] {\n color: red;\n text-decoration: underline;\n}\n\n.question-radio-inline[_ngcontent-%COMP%] {\n max-width: 35%;\n margin: 1rem;\n}\n\n.dropdown-img[_ngcontent-%COMP%] {\n width: 100px;\n}\n\n.disabled[_ngcontent-%COMP%] {\n background-color: #16528594;\n color: #fff;\n cursor: not-allowed;\n border: none;\n}\n\n@media only screen and (max-width: 600px) {\n .image[_ngcontent-%COMP%] {\n width: 200px;\n }\n\n .box[_ngcontent-%COMP%] {\n align-items: center;\n justify-content: center;\n }\n\n .card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n width: auto;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvZXh0ZXJuYWwtbGluay9leHRlcm5hbC1saW5rLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksbUJBQUE7RUFDQSwwQkFBQTtFQUNBLGVBQUE7RUFDQSxXQUFBO0FBQ0o7O0FBRUE7RUFDSSxxQkFBQTtBQUNKOztBQUVBO0VBQ0kseUJBQUE7QUFDSjs7QUFFQTtFQUNJLDZCQUFBO0VBQ0EsYUFBQTtFQUNBLGNBQUE7RUFDQSx5QkFBQTtBQUNKOztBQUVBO0VBQ0ksWUFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtBQUNKOztBQUVBO0VBQ0ksWUFBQTtFQUNBLDRCQUFBO0VBQ0EsZUFBQTtBQUNKOztBQUNJO0VBQ0ksYUFBQTtFQUNBLFlBQUE7QUFDUjs7QUFFSTtFQUNJLG9CQUFBO0VBQ0EscUJBQUE7RUFDQSxnQkFBQTtBQUFSOztBQUVRO0VBQ0ksZUFBQTtBQUFaOztBQUtBO0VBQ0ksV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7QUFGSjs7QUFLQTtFQUNJLDRCQUFBO0FBRko7O0FBS0E7RUFDSSxXQUFBO0VBQ0EsY0FBQTtFQUNBLFdBQUE7QUFGSjs7QUFLQTtFQUNJLFdBQUE7RUFDQSxhQUFBO0VBQ0EsVUFBQTtFQUNBLGVBQUE7QUFGSjs7QUFLQTtFQUNJLGlCQUFBO0VBQ0EsOERBQUE7RUFDQSxXQUFBO0VBQ0EsNEZBQUE7RUFDQSxXQUFBO0FBRko7O0FBS0E7RUFDSSxxQkFBQTtBQUZKOztBQUtBO0VBQ0kscUJBQUE7QUFGSjs7QUFLQTtFQUNJLG9CQUFBO0FBRko7O0FBS0E7RUFDSSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSx5QkFBQTtFQUNBLG1CQUFBO0VBQ0EsYUFBQTtBQUZKOztBQUtBO0VBQ0ksYUFBQTtFQUNBLGVBQUE7QUFGSjs7QUFLQTtFQUNJLHFCQUFBO0FBRko7O0FBS0E7RUFDSSxVQUFBO0VBQ0EsYUFBQTtBQUZKOztBQUtBO0VBQ0ksV0FBQTtFQUNBLFlBQUE7QUFGSjs7QUFLQTtFQUNJLFdBQUE7RUFDQSxtQkFBQTtBQUZKOztBQUtBO0VBQ0ksY0FBQTtBQUZKOztBQUtBO0VBQ0ksZ0JBQUE7QUFGSjs7QUFLQTtFQUNJLG9CQUFBO0VBQ0Esc0JBQUE7QUFGSjs7QUFLQTtFQUNJLG9CQUFBO0VBQ0EsbUJBQUE7QUFGSjs7QUFLQTtFQUNJLFdBQUE7QUFGSjs7QUFLQTtFQUNJLFdBQUE7QUFGSjs7QUFLQTtFQUNJLGNBQUE7QUFGSjs7QUFLQTtFQUNJLGFBQUE7RUFDQSxjQUFBO0FBRko7O0FBS0E7RUFDSSxVQUFBO0VBQ0EsMEJBQUE7QUFGSjs7QUFLQTtFQUNJLGNBQUE7RUFDQSxZQUFBO0FBRko7O0FBS0E7RUFDSSxZQUFBO0FBRko7O0FBS0E7RUFDSSwyQkFBQTtFQUNBLFdBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7QUFGSjs7QUFJQTtFQUNJO0lBQ0ksWUFBQTtFQUROOztFQUdFO0lBQ0ksbUJBQUE7SUFDQSx1QkFBQTtFQUFOOztFQUdNO0lBQ0ksV0FBQTtFQUFWO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC9leHRlcm5hbC1saW5rL2V4dGVybmFsLWxpbmsuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJhLmxpc3QtZ3JvdXAtaXRlbSB7XG4gICAgbWFyZ2luLWJvdHRvbTogMXJlbTtcbiAgICBib3JkZXI6IDFweCBkb3R0ZWQgcmdiKDIwNCwgMjA0LCAyMDQpO1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICBjb2xvcjogIzU1NTtcbn1cblxuYSB7XG4gICAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xufVxuXG5hLmxpc3QtZ3JvdXAtaXRlbTpob3ZlciB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogcmdiKDIyNiwgMjI2LCAyMjYpO1xufVxuXG4uY2FyZC1oZWFkZXItZmxleGkge1xuICAgIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjY2NjO1xuICAgIHBhZGRpbmc6IDFyZW07XG4gICAgY29sb3I6ICNhNDIxMzg7XG4gICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbn1cblxuLmNlbnRlcmVkLWltYWdlIHtcbiAgICBtYXJnaW46IGF1dG87XG4gICAgcGFkZGluZzogMTBweDtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5jYXJkLWJvZHkgLmJveCB7XG4gICAgbWFyZ2luOiAxcmVtO1xuICAgIGJveC1zaGFkb3c6IDBweCAwcHggOHB4ICNjY2M7XG4gICAgcGFkZGluZzogMS4ycmVtO1xuXG4gICAgLmJveC1ib2R5IHtcbiAgICAgICAgcGFkZGluZzogMXJlbTtcbiAgICAgICAgd2lkdGg6IDMwMHB4O1xuICAgIH1cblxuICAgIC5ib3gtaGVhZGluZyB7XG4gICAgICAgIHBhZGRpbmctYm90dG9tOiAxcmVtO1xuICAgICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7XG4gICAgICAgIGZvbnQtd2VpZ2h0OiA2MDA7XG5cbiAgICAgICAgc3BhbiB7XG4gICAgICAgICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgICAgIH1cbiAgICB9XG59XG5cbi5idG4tc3VibWl0IHtcbiAgICBjb2xvcjogI2ZmZjtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzM3YWI3O1xuICAgIGJvcmRlci1jb2xvcjogIzJlNmRhNDtcbn1cblxuLmJ0bi13aGl0ZSB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGVzbW9rZTtcbn1cblxuLnBhcmVudCB7XG4gICAgY29udGVudDogXCJcIjtcbiAgICBkaXNwbGF5OiB0YWJsZTtcbiAgICBjbGVhcjogYm90aDtcbn1cblxuLmZsZXgtY2hpbGQge1xuICAgIGZsb2F0OiBsZWZ0O1xuICAgIGhlaWdodDogNDcwcHg7XG4gICAgd2lkdGg6IDIzJTtcbiAgICBwYWRkaW5nOiAwIDEwcHg7XG59XG5cbmltZzpub3QoLmltYWdlKSB7XG4gICAgb2JqZWN0LWZpdDogY292ZXI7XG4gICAgLyp0aGlzIG1ha2VzIHRoZSBpbWFnZSBpbiBzcmMgZml0IHRvIHRoZSBzaXplIHNwZWNpZmllZCBiZWxvdyovXG4gICAgd2lkdGg6IDEwMCU7XG4gICAgLyogSGVyZSB5b3UgY2FuIHVzZSB3aGVyZXZlciB5b3Ugd2FudCB0byBzcGVjaWZ5IHRoZSB3aWR0aCBhbmQgYWxzbyB0aGUgaGVpZ2h0IG9mIHRoZSA8aW1nPiovXG4gICAgaGVpZ2h0OiA4MCU7XG59XG5cbmlucHV0W3R5cGU9XCJyYWRpb1wiXSB7XG4gICAgbWFyZ2luOiAwIDEwcHggMCAxMHB4O1xufVxuXG5pbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0ge1xuICAgIG1hcmdpbjogMCAxMHB4IDAgMTBweDtcbn1cblxuLmJveCB7XG4gICAgbWFyZ2luLWJvdHRvbTogMTAwcHg7XG59XG5cbi5xdWVzdGlvbnMtY29udGFpbmVyIHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjYmRiZGJkO1xuICAgIGJvcmRlci1yYWRpdXM6IDEwcHg7XG4gICAgcGFkZGluZzogMTBweDtcbn1cblxubmdiLXJhdGluZyB7XG4gICAgY29sb3I6IHllbGxvdztcbiAgICBmb250LXNpemU6IDUwcHg7XG59XG5cbi50b3BIZWFkIHtcbiAgICBtYXJnaW4tYm90dG9tOiAwIGF1dG87XG59XG5cbi5zaWduYXR1cmUtZGl2IHtcbiAgICB3aWR0aDogMTUlO1xuICAgIGhlaWdodDogMTAwcHg7XG59XG5cbi5zaWduYXR1cmUtaW1nIHtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBoZWlnaHQ6IDEwMCU7XG59XG5cbi5ib3gtYm9keSAucHJvZmlsZSB7XG4gICAgZmxvYXQ6IGxlZnQ7XG4gICAgbWFyZ2luLWJvdHRvbTogYXV0bztcbn1cblxuLmJveC5ib3h4IHtcbiAgICBoZWlnaHQ6IDEwMDBweDtcbn1cblxuZGl2LnRvcEhlYWQuZC1mbGV4IHtcbiAgICBtYXJnaW4tYm90dG9tOiAwO1xufVxuXG4udHAtcmFkaW8tZ3JvdXAge1xuICAgIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG59XG5cbi5vbmx5dGltZSB7XG4gICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IHJvdztcbn1cblxuLnRpbWVkcm9wZG93biB7XG4gICAgbWFyZ2luOiA1cHg7XG59XG5cbi50cC1yYWRpby1idXR0b24ge1xuICAgIG1hcmdpbjogNXB4O1xufVxuXG4udHAtc2VsZWN0ZWQtdmFsdWUge1xuICAgIG1hcmdpbjogMTVweCAwO1xufVxuXG4uZ3JpZC1jb250YWluZXIge1xuICAgIGRpc3BsYXk6IGdyaWQ7XG4gICAgZ3JpZC1nYXA6IDIwcHg7XG59XG5cbi5wb2xsaW5nU2VsZWN0IHtcbiAgICBjb2xvcjogcmVkO1xuICAgIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lO1xufVxuXG4ucXVlc3Rpb24tcmFkaW8taW5saW5lIHtcbiAgICBtYXgtd2lkdGg6IDM1JTtcbiAgICBtYXJnaW46IDFyZW07XG59XG5cbi5kcm9wZG93bi1pbWcge1xuICAgIHdpZHRoOiAxMDBweDtcbn1cblxuLmRpc2FibGVkIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMTY1Mjg1OTQ7XG4gICAgY29sb3I6ICNmZmY7XG4gICAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbiAgICBib3JkZXI6IG5vbmU7XG59XG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDYwMHB4KSB7XG4gICAgLmltYWdlIHtcbiAgICAgICAgd2lkdGg6IDIwMHB4O1xuICAgIH1cbiAgICAuYm94IHtcbiAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgfVxuICAgIC5jYXJkLWJvZHkgLmJveCB7XG4gICAgICAgIC5ib3gtYm9keSB7XG4gICAgICAgICAgICB3aWR0aDogYXV0bztcbiAgICAgICAgfVxuICAgIH1cbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ExternalLinkComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-external-link',
templateUrl: './external-link.component.html',
styleUrls: ['./external-link.component.scss']
}]
}], function () { return [{ type: _users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_4__["CentralBuilderService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"] }, { type: _users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__["CustomFormService"] }, { type: _users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__["UsersService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_9__["ActivatedRoute"] }]; }, null); })();
/***/ }),
/***/ "SUKM":
/*!*****************************************************************************!*\
!*** ./src/app/users/pages/gamification/challenges/challenges.component.ts ***!
\*****************************************************************************/
/*! exports provided: ChallengesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChallengesComponent", function() { return ChallengesComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _challenges_overview_challenges_overview_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./challenges-overview/challenges-overview.component */ "WWan");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _challenges_overview_manage_challenges_manage_challenges_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./challenges-overview/manage-challenges/manage-challenges.component */ "3UN2");
/* harmony import */ var _challenges_overview_view_challanges_view_challanges_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./challenges-overview/view-challanges/view-challanges.component */ "ji1A");
/* harmony import */ var _add_edit_challenges_add_edit_challenges_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./add-edit-challenges/add-edit-challenges.component */ "p826");
/* harmony import */ var _challenges_log_challenges_log_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./challenges-log/challenges-log.component */ "pKXl");
function ChallengesComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "challenges-overview", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ViewEvent", function ChallengesComponent_ng_template_6_Template_challenges_overview_ViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r4.userView($event); })("EditEvent", function ChallengesComponent_ng_template_6_Template_challenges_overview_EditEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.userEdit($event); })("isManage", function ChallengesComponent_ng_template_6_Template_challenges_overview_isManage_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.manageForm($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ChallengesComponent_ng_template_10_manage_challenges_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "manage-challenges", 11);
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("manageId", ctx_r8.manageId);
} }
function ChallengesComponent_ng_template_10_view_challanges_1_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "view-challanges", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function ChallengesComponent_ng_template_10_view_challanges_1_Template_view_challanges_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r11.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("challangesId", ctx_r9.userId)("challangesData", ctx_r9.userViewData);
} }
function ChallengesComponent_ng_template_10_add_edit_challenges_2_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "add-edit-challenges", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function ChallengesComponent_ng_template_10_add_edit_challenges_2_Template_add_edit_challenges_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r13.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("isUserEdited", ctx_r10.isUserEdited)("challangesId", ctx_r10.userId)("challangesData", ctx_r10.userEditData);
} }
function ChallengesComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ChallengesComponent_ng_template_10_manage_challenges_0_Template, 1, 1, "manage-challenges", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ChallengesComponent_ng_template_10_view_challanges_1_Template, 1, 2, "view-challanges", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ChallengesComponent_ng_template_10_add_edit_challenges_2_Template, 1, 3, "add-edit-challenges", 10);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.viewType === "manage");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.viewType === "view");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.viewType === "edit");
} }
function ChallengesComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "challenges-log", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ViewEvent", function ChallengesComponent_ng_template_14_Template_challenges_log_ViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.userView($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
class ChallengesComponent {
constructor() {
this.activeId = 1;
this.userId = null;
this.viewType = '';
this.userViewData = null;
this.userEditData = null;
}
ngOnInit() {
}
userEdit(data) {
this.activeId = 2;
this.isUserEdited = true;
this.viewType = 'edit';
this.userId = data._id;
this.userEditData = data;
}
userView(data) {
this.activeId = 2;
this.viewType = 'view';
this.isUserView = true;
this.userId = data._id;
this.userViewData = data;
}
manageForm(data) {
this.viewType = 'manage';
this.isFormManaged = true;
this.manageId = data;
this.activeId = 2;
}
overViewLogEvent(value) {
this.manageId = null;
setTimeout(() => {
this.isFormManaged = false;
}, 200);
this.isUserEdited = false;
this.isUserView = false;
this.viewType = '';
this.userId = null;
}
overViewEvent(value) {
this.activeId = 1;
this.isFormManaged = false;
this.manageId = null;
this.isUserEdited = false;
this.isUserView = false;
this.userId = null;
this.viewType = '';
}
}
ChallengesComponent.ɵfac = function ChallengesComponent_Factory(t) { return new (t || ChallengesComponent)(); };
ChallengesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ChallengesComponent, selectors: [["app-challenges"]], decls: 16, vars: 6, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [3, "ViewEvent", "EditEvent", "isManage"], [3, "manageId", 4, "ngIf"], [3, "challangesId", "challangesData", "overViewEvent", 4, "ngIf"], [3, "isUserEdited", "challangesId", "challangesData", "overViewEvent", 4, "ngIf"], [3, "manageId"], [3, "challangesId", "challangesData", "overViewEvent"], [3, "isUserEdited", "challangesId", "challangesData", "overViewEvent"], [3, "ViewEvent"]], template: function ChallengesComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ChallengesComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ChallengesComponent_Template_a_click_4_listener($event) { return ctx.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ChallengesComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ChallengesComponent_Template_a_click_8_listener() { return !ctx.isUserView ? ctx.viewType = "edit" : false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ChallengesComponent_ng_template_10_Template, 3, 3, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ChallengesComponent_Template_a_click_12_listener($event) { return ctx.overViewLogEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "LOG");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ChallengesComponent_ng_template_14_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.isUserEdited ? "EDIT" : ctx.isFormManaged ? "MANAGE" : ctx.isUserView ? "VIEW" : "ADD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _challenges_overview_challenges_overview_component__WEBPACK_IMPORTED_MODULE_2__["ChallengesOverviewComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _challenges_overview_manage_challenges_manage_challenges_component__WEBPACK_IMPORTED_MODULE_4__["ManageChallengesComponent"], _challenges_overview_view_challanges_view_challanges_component__WEBPACK_IMPORTED_MODULE_5__["ViewChallangesComponent"], _add_edit_challenges_add_edit_challenges_component__WEBPACK_IMPORTED_MODULE_6__["AddEditChallengesComponent"], _challenges_log_challenges_log_component__WEBPACK_IMPORTED_MODULE_7__["ChallengesLogComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvZ2FtaWZpY2F0aW9uL2NoYWxsZW5nZXMvY2hhbGxlbmdlcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLHNCQUFBO0FBQ0o7QUFBSTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7QUFFTjtBQUFNO0VBQ0UsY0FBQTtBQUVSO0FBQ007RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBQ1IiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9nYW1pZmljYXRpb24vY2hhbGxlbmdlcy9jaGFsbGVuZ2VzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdi10YWJzIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgIC5uYXYtbGluayB7XG4gICAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgICAgYm9yZGVyOiBub25lO1xuICAgICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgXG4gICAgICAmOmhvdmVyIHtcbiAgICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICB9XG4gIFxuICAgICAgJi5hY3RpdmUge1xuICAgICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICAgIH1cbiAgICB9XG4gIH0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ChallengesComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-challenges',
templateUrl: './challenges.component.html',
styleUrls: ['./challenges.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "Sy1n":
/*!**********************************!*\
!*** ./src/app/app.component.ts ***!
\**********************************/
/*! exports provided: AppComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "tyNb");
class AppComponent {
constructor() {
this.JWT_TOKEN = 'usersToken';
}
ngOnInit() {
if (window !== window.top) {
return window.top.location.href = 'https://netroc6.win/404';
}
}
}
AppComponent.ɵfac = function AppComponent_Factory(t) { return new (t || AppComponent)(); };
AppComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: AppComponent, selectors: [["app-root"]], decls: 1, vars: 0, template: function AppComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "router-outlet");
} }, directives: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterOutlet"]], styles: [".ng-select.custom[_ngcontent-%COMP%] {\n border: 0px;\n min-height: 0px;\n border-radius: 0;\n}\n\n.ng-select.custom[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] {\n min-height: 0px;\n border-radius: 0;\n color: #333;\n background-color: #fff;\n border: none !important;\n border-bottom: 2px solid #d2d2d2 !important;\n min-height: 36px;\n align-items: center;\n}\n\n.ng-dropdown-panel[_ngcontent-%COMP%] {\n width: auto !important;\n}\n\nng-dropdown-panel[_ngcontent-%COMP%] {\n width: auto !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvYXBwLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsV0FBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtBQUNGOztBQUNBO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsV0FBQTtFQUNBLHNCQUFBO0VBQ0EsdUJBQUE7RUFDQSwyQ0FBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7QUFFRjs7QUFBQTtFQUNFLHNCQUFBO0FBR0Y7O0FBREE7RUFDRSxzQkFBQTtBQUlGIiwiZmlsZSI6InNyYy9hcHAvYXBwLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5nLXNlbGVjdC5jdXN0b20ge1xuICBib3JkZXI6MHB4O1xuICBtaW4taGVpZ2h0OiAwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDA7XG59XG4ubmctc2VsZWN0LmN1c3RvbSAubmctc2VsZWN0LWNvbnRhaW5lciAge1xuICBtaW4taGVpZ2h0OiAwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDA7XG4gIGNvbG9yOiAjMzMzO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IG5vbmUgIWltcG9ydGFudDtcbiAgYm9yZGVyLWJvdHRvbTogMnB4IHNvbGlkICNkMmQyZDIgIWltcG9ydGFudDtcbiAgbWluLWhlaWdodDogMzZweDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbn1cbi5uZy1kcm9wZG93bi1wYW5lbCB7XG4gIHdpZHRoOiBhdXRvICFpbXBvcnRhbnQ7XG59XG5uZy1kcm9wZG93bi1wYW5lbCB7XG4gIHdpZHRoOiBhdXRvICFpbXBvcnRhbnQ7XG59XG5cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AppComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "T0L9":
/*!**********************************************************!*\
!*** ./src/app/shared/dynamic-questions/fields/files.ts ***!
\**********************************************************/
/*! exports provided: FilesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FilesComponent", function() { return FilesComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
function FilesComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("hovered", function FilesComponent_div_1_Template_div_hovered_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r2.toggleHover($event); })("dropped", function FilesComponent_div_1_Template_div_dropped_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r4.field.onUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Drag a file here or ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function FilesComponent_div_1_Template_input_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.field.onUpload($event.target.files); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " browse ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " to upload. ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("hovering", ctx_r0.isHovering);
} }
function FilesComponent_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r1.field.value, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
// text,email,tel,textarea,password,
class FilesComponent {
constructor() {
this.field = {};
}
get isValid() { return this.form.controls[this.field.name].valid; }
get isDirty() { return this.form.controls[this.field.name].dirty; }
toggleHover() {
}
ngOnChange() {
// this.field.value.
}
}
FilesComponent.ɵfac = function FilesComponent_Factory(t) { return new (t || FilesComponent)(); };
FilesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FilesComponent, selectors: [["files"]], inputs: { field: "field", form: "form" }, decls: 3, vars: 3, consts: [[3, "formGroup"], ["class", "drop-container dropzone", "dropZone", "", 3, "hovering", "hovered", "dropped", 4, "ngIf"], [4, "ngIf"], ["dropZone", "", 1, "drop-container", "dropzone", 3, "hovered", "dropped"], [1, "m-0"], [1, "upload-button"], ["type", "file", "multiple", "", 3, "change"], [1, "card"], [1, "card-img-top", 3, "src"]], template: function FilesComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FilesComponent_div_1_Template, 7, 2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FilesComponent_div_2_Template, 3, 1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.field.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.field.value);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"]], styles: [".drop-container[_ngcontent-%COMP%] {\n background: #fff;\n border-radius: 6px;\n height: 150px;\n width: 100%;\n box-shadow: 1px 2px 20px hsla(0,0%,4%,.1);\n display: flex;\n align-items: center;\n justify-content: center;\n border: 2px dashed #c0c4c7;\n }\n p[_ngcontent-%COMP%] {\n font-size: 16px;\n font-weight: 400;\n color: #c0c4c7;\n }\n .upload-button[_ngcontent-%COMP%] {\n display: inline-block;\n border: none;\n outline: none;\n cursor: pointer;\n color: #5754a3;\n }\n .upload-button[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n display: none;\n }\n .dropzone[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n border-radius: 5px;\n background: white;\n margin: 10px 0;\n }\n .dropzone.hovering[_ngcontent-%COMP%] {\n border: 2px solid #f16624;\n color: #dadada !important;\n }\n progress[_ngcontent-%COMP%]::-webkit-progress-value {\n transition: width 0.1s ease;\n }"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FilesComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'files',
template: `
`,
styles: [
`
.drop-container {
background: #fff;
border-radius: 6px;
height: 150px;
width: 100%;
box-shadow: 1px 2px 20px hsla(0,0%,4%,.1);
display: flex;
align-items: center;
justify-content: center;
border: 2px dashed #c0c4c7;
}
p {
font-size: 16px;
font-weight: 400;
color: #c0c4c7;
}
.upload-button {
display: inline-block;
border: none;
outline: none;
cursor: pointer;
color: #5754a3;
}
.upload-button input {
display: none;
}
.dropzone {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
border-radius: 5px;
background: white;
margin: 10px 0;
}
.dropzone.hovering {
border: 2px solid #f16624;
color: #dadada !important;
}
progress::-webkit-progress-value {
transition: width 0.1s ease;
}
`
]
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "T5ea":
/*!******************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/indent-draft-list/indent-draft-list.ts ***!
\******************************************************************************************************/
/*! exports provided: IndentDraftListComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndentDraftListComponent", function() { return IndentDraftListComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
function IndentDraftListComponent_th_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](header_r3);
} }
function IndentDraftListComponent_tr_23_td_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const header_r7 = ctx.$implicit;
const submission_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r6.getSubmissionValue(submission_r4, header_r7), " ");
} }
const _c0 = function (a0) { return { "error-row": a0 }; };
function IndentDraftListComponent_tr_23_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, IndentDraftListComponent_tr_23_td_1_Template, 2, 1, "td", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function IndentDraftListComponent_tr_23_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const i_r5 = ctx.index; const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.openConfirmationDialog(i_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Delete");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const submission_r4 = ctx.$implicit;
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](3, _c0, submission_r4.isError));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.tableHeaders);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r1.isDataSubmitted);
} }
function IndentDraftListComponent_div_24_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Are you sure you want to delete this submission?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function IndentDraftListComponent_div_24_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.deleteSubmission(ctx_r11.submissionToDelete); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function IndentDraftListComponent_div_24_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r13.closeConfirmationDialog(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
class IndentDraftListComponent {
constructor(customFormService, toastService) {
this.customFormService = customFormService;
this.toastService = toastService;
this.submissionList = [];
this.customFormId = [];
this.totalSubmission = 0;
this.errorSubmission = 0;
this.showCreateIndent = false;
this.tableHeaders = [];
this.showConfirmation = false;
this.submissionToDelete = null;
this.isDataSubmitted = false;
this.onSave = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
}
ngOnInit() { }
ngOnChanges(changes) {
if (changes.submissionList) {
this.submissionList = changes.submissionList.currentValue;
this.totalSubmission = this.submissionList.length;
this.errorSubmission = this.submissionList.filter((submission) => submission.isError).length;
this.generateTableHeaders();
}
}
submitAll() {
// Handle submission logic
const payload = this.submissionList.map((submission) => {
const questionAnswer = submission.finalAnswers.filter((answer) => answer.isQuestion);
const staffInfo = submission.finalAnswers.find((answer) => answer.title === 'Staff Id');
return {
staffId: staffInfo ? staffInfo.value : '',
answers: questionAnswer,
isError: submission.isError,
};
});
this.customFormService
.multipleBooking({
bookingList: payload,
customFormId: this.customFormId,
})
.subscribe(({ success, totalFailed, totalSuccess }) => {
if (success) {
sweetalert2__WEBPACK_IMPORTED_MODULE_1___default.a.fire({
title: 'Data submitted successfully!',
text: `Success Count: ${totalSuccess}, Error Count: ${totalFailed}`,
icon: 'success',
showCancelButton: false,
confirmButtonText: `Close`,
}).then((result) => {
// this.submissionList = [];
this.isDataSubmitted = true;
this.onSave.emit({ isDataSubmitted: this.isDataSubmitted });
});
}
else {
this.toastService.error('Something went wrong');
}
}, (error) => {
var _a, _b;
this.toastService.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Something went wrong');
});
}
generateTableHeaders() {
const headersSet = new Set();
this.submissionList.forEach((submission) => {
submission.finalAnswers.forEach((answer) => {
headersSet.add(answer.title.replace(/<[^>]+>/g, '').trim());
});
});
this.tableHeaders = Array.from(headersSet);
}
getSubmissionValue(submission, header) {
const answer = submission.finalAnswers.find((ans) => ans.title.replace(/<[^>]+>/g, '').trim() === header);
return answer ? answer.value : 'N/A';
}
goBack() {
this.showCreateIndent = false;
}
openConfirmationDialog(index) {
this.submissionToDelete = index;
this.showConfirmation = true;
}
closeConfirmationDialog() {
this.showConfirmation = false;
this.submissionToDelete = null;
}
deleteSubmission(index) {
if (index !== null) {
this.submissionList.splice(index, 1);
}
this.closeConfirmationDialog();
}
}
IndentDraftListComponent.ɵfac = function IndentDraftListComponent_Factory(t) { return new (t || IndentDraftListComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_2__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"])); };
IndentDraftListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: IndentDraftListComponent, selectors: [["indent-draft-list"]], inputs: { submissionList: "submissionList", customFormId: "customFormId" }, outputs: { onSave: "onSave" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 25, vars: 6, consts: [[1, "submission-list-container"], [1, "header"], [1, "row", "d-flex"], [1, "stat-item"], [1, "stat-label"], [1, "stat-value"], [1, "submit-all-btn", "btn", "btn-success", 3, "disabled", "click"], [1, "dynamic-submission-table-container"], [1, "dynamic-table"], ["class", "card-header bg-theme", 4, "ngFor", "ngForOf"], [1, "card-header", "bg-theme"], [3, "ngClass", 4, "ngFor", "ngForOf"], ["class", "confirmation-dialog", 4, "ngIf"], [3, "ngClass"], [4, "ngFor", "ngForOf"], [1, "delete-btn", "btn", "btn-danger", 3, "disabled", "click"], [1, "confirmation-dialog"], [1, "confirmation-content"], [1, "confirmation-buttons"], [1, "confirm-btn", 3, "click"], [1, "cancel-btn", 3, "click"]], template: function IndentDraftListComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Submission");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Missing PUDO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "button", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function IndentDraftListComponent_Template_button_click_13_listener() { return ctx.submitAll(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Submit All");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "table", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, IndentDraftListComponent_th_19_Template, 2, 1, "th", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "th", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, IndentDraftListComponent_tr_23_Template, 5, 5, "tr", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, IndentDraftListComponent_div_24_Template, 9, 0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.totalSubmission);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.errorSubmission);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.isDataSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.tableHeaders);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.submissionList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showConfirmation);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgClass"]], styles: [".submission-list-container[_ngcontent-%COMP%] {\n padding: 16px;\n}\n.header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n}\n.submission-summary[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n margin-right: 16px;\n font-size: 18px;\n}\n.submit-all-btn[_ngcontent-%COMP%] {\n background-color: green;\n color: white;\n border: none;\n padding: 8px 16px;\n cursor: pointer;\n}\n.submission-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n}\n.submission-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .submission-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n}\n.error-row[_ngcontent-%COMP%] {\n background-color: #f8d7da;\n}\n.delete-btn[_ngcontent-%COMP%] {\n background-color: red;\n color: white;\n border: none;\n padding: 4px 8px;\n cursor: pointer;\n}\n.dynamic-submission-table-container[_ngcontent-%COMP%] {\n padding: 4px;\n}\n.dynamic-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n}\n.dynamic-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dynamic-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n}\n.dynamic-table[_ngcontent-%COMP%] tr.error-row[_ngcontent-%COMP%] {\n background-color: #f8d7da;\n \n}\n.delete-btn[_ngcontent-%COMP%] {\n background-color: red;\n color: white;\n border: none;\n padding: 4px 8px;\n cursor: pointer;\n}\n.dynamic-submission-table-container[_ngcontent-%COMP%] {\n position: relative;\n}\n.dynamic-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n}\n.dynamic-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .dynamic-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n border: 1px solid #ddd;\n padding: 8px;\n text-align: left;\n}\n.dynamic-table[_ngcontent-%COMP%] tr.error-row[_ngcontent-%COMP%] {\n background-color: #f8d7da;\n \n}\n.delete-btn[_ngcontent-%COMP%] {\n background-color: red;\n color: white;\n border: none;\n padding: 4px 8px;\n cursor: pointer;\n}\n.confirmation-dialog[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 1000;\n}\n.confirmation-content[_ngcontent-%COMP%] {\n background-color: white;\n padding: 20px;\n border-radius: 5px;\n text-align: center;\n width: 300px;\n}\n.confirmation-buttons[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-around;\n margin-top: 20px;\n}\n.confirm-btn[_ngcontent-%COMP%], .cancel-btn[_ngcontent-%COMP%] {\n padding: 10px 20px;\n border: none;\n cursor: pointer;\n}\n.confirm-btn[_ngcontent-%COMP%] {\n background-color: green;\n color: white;\n}\n.cancel-btn[_ngcontent-%COMP%] {\n background-color: gray;\n color: white;\n}\n.stat-item[_ngcontent-%COMP%] {\n text-align: center;\n margin: 0 10px;\n}\n.stat-label[_ngcontent-%COMP%] {\n font-weight: bold;\n margin-bottom: 5px;\n}\n.stat-value[_ngcontent-%COMP%] {\n font-size: 20px;\n color: #a52a2a;\n}\nbutton[disabled][_ngcontent-%COMP%] {\n cursor: not-allowed;\n \n pointer-events: none;\n \n opacity: 0.65;\n \n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2luZGVudC1kcmFmdC1saXN0L2luZGVudC1kcmFmdC1saXN0LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0NBQUE7QUFDQTtFQUNFLGFBQUE7QUFDRjtBQUVBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0VBQ0EsbUJBQUE7RUFDQSxtQkFBQTtBQUNGO0FBRUE7RUFDRSxrQkFBQTtFQUNBLGVBQUE7QUFDRjtBQUVBO0VBQ0UsdUJBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0EsZUFBQTtBQUNGO0FBRUE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7QUFDRjtBQUVBO0VBQ0Usc0JBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFDRjtBQUVBO0VBQ0UseUJBQUE7QUFDRjtBQUVBO0VBQ0UscUJBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtBQUNGO0FBRUE7RUFDRSxZQUFBO0FBQ0Y7QUFFQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtBQUNGO0FBRUE7RUFDRSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtBQUNGO0FBRUE7RUFDRSx5QkFBQTtFQUEyQix3Q0FBQTtBQUU3QjtBQUNBO0VBQ0UscUJBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0EsZUFBQTtBQUVGO0FBQUE7RUFDRSxrQkFBQTtBQUdGO0FBQUE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7QUFHRjtBQUFBO0VBQ0Usc0JBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFHRjtBQUFBO0VBQ0UseUJBQUE7RUFBMkIsd0NBQUE7QUFJN0I7QUFEQTtFQUNFLHFCQUFBO0VBQ0EsWUFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7QUFJRjtBQURBO0VBQ0UsZUFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsUUFBQTtFQUNBLFNBQUE7RUFDQSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLG9DQUFBO0VBQ0EsYUFBQTtBQUlGO0FBREE7RUFDRSx1QkFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtBQUlGO0FBREE7RUFDRSxhQUFBO0VBQ0EsNkJBQUE7RUFDQSxnQkFBQTtBQUlGO0FBREE7RUFDRSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0FBSUY7QUFEQTtFQUNFLHVCQUFBO0VBQ0EsWUFBQTtBQUlGO0FBREE7RUFDRSxzQkFBQTtFQUNBLFlBQUE7QUFJRjtBQURBO0VBQ0Usa0JBQUE7RUFDQSxjQUFBO0FBSUY7QUFEQTtFQUNFLGlCQUFBO0VBQ0Esa0JBQUE7QUFJRjtBQURBO0VBQ0UsZUFBQTtFQUNBLGNBQUE7QUFJRjtBQUZBO0VBQ0UsbUJBQUE7RUFBcUIsb0RBQUE7RUFDckIsb0JBQUE7RUFBc0IsNkNBQUE7RUFDdEIsYUFBQTtFQUFlLGdFQUFBO0FBUWpCIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2luZGVudC1kcmFmdC1saXN0L2luZGVudC1kcmFmdC1saXN0LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBzdWJtaXNzaW9uLWxpc3QuY29tcG9uZW50LmNzcyAqL1xuLnN1Ym1pc3Npb24tbGlzdC1jb250YWluZXIge1xuICBwYWRkaW5nOiAxNnB4O1xufVxuXG4uaGVhZGVyIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBtYXJnaW4tYm90dG9tOiAxNnB4O1xufVxuXG4uc3VibWlzc2lvbi1zdW1tYXJ5IHNwYW4ge1xuICBtYXJnaW4tcmlnaHQ6IDE2cHg7XG4gIGZvbnQtc2l6ZTogMThweDtcbn1cblxuLnN1Ym1pdC1hbGwtYnRuIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogZ3JlZW47XG4gIGNvbG9yOiB3aGl0ZTtcbiAgYm9yZGVyOiBub25lO1xuICBwYWRkaW5nOiA4cHggMTZweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uc3VibWlzc2lvbi10YWJsZSB7XG4gIHdpZHRoOiAxMDAlO1xuICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlO1xufVxuXG4uc3VibWlzc2lvbi10YWJsZSB0aCwgLnN1Ym1pc3Npb24tdGFibGUgdGQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjZGRkO1xuICBwYWRkaW5nOiA4cHg7XG4gIHRleHQtYWxpZ246IGxlZnQ7XG59XG5cbi5lcnJvci1yb3cge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjhkN2RhO1xufVxuXG4uZGVsZXRlLWJ0biB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJlZDtcbiAgY29sb3I6IHdoaXRlO1xuICBib3JkZXI6IG5vbmU7XG4gIHBhZGRpbmc6IDRweCA4cHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLmR5bmFtaWMtc3VibWlzc2lvbi10YWJsZS1jb250YWluZXIge1xuICBwYWRkaW5nOiA0cHg7XG59XG5cbi5keW5hbWljLXRhYmxlIHtcbiAgd2lkdGg6IDEwMCU7XG4gIGJvcmRlci1jb2xsYXBzZTogY29sbGFwc2U7XG59XG5cbi5keW5hbWljLXRhYmxlIHRoLCAuZHluYW1pYy10YWJsZSB0ZCB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNkZGQ7XG4gIHBhZGRpbmc6IDhweDtcbiAgdGV4dC1hbGlnbjogbGVmdDtcbn1cblxuLmR5bmFtaWMtdGFibGUgdHIuZXJyb3Itcm93IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y4ZDdkYTsgLyogTGlnaHQgcmVkIGJhY2tncm91bmQgZm9yIGVycm9yIHJvd3MgKi9cbn1cblxuLmRlbGV0ZS1idG4ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZWQ7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgYm9yZGVyOiBub25lO1xuICBwYWRkaW5nOiA0cHggOHB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG4uZHluYW1pYy1zdWJtaXNzaW9uLXRhYmxlLWNvbnRhaW5lciB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbn1cblxuLmR5bmFtaWMtdGFibGUge1xuICB3aWR0aDogMTAwJTtcbiAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTtcbn1cblxuLmR5bmFtaWMtdGFibGUgdGgsIC5keW5hbWljLXRhYmxlIHRkIHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2RkZDtcbiAgcGFkZGluZzogOHB4O1xuICB0ZXh0LWFsaWduOiBsZWZ0O1xufVxuXG4uZHluYW1pYy10YWJsZSB0ci5lcnJvci1yb3cge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjhkN2RhOyAvKiBMaWdodCByZWQgYmFja2dyb3VuZCBmb3IgZXJyb3Igcm93cyAqL1xufVxuXG4uZGVsZXRlLWJ0biB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJlZDtcbiAgY29sb3I6IHdoaXRlO1xuICBib3JkZXI6IG5vbmU7XG4gIHBhZGRpbmc6IDRweCA4cHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLmNvbmZpcm1hdGlvbi1kaWFsb2cge1xuICBwb3NpdGlvbjogZml4ZWQ7XG4gIHRvcDogMDtcbiAgbGVmdDogMDtcbiAgcmlnaHQ6IDA7XG4gIGJvdHRvbTogMDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgei1pbmRleDogMTAwMDtcbn1cblxuLmNvbmZpcm1hdGlvbi1jb250ZW50IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG4gIHBhZGRpbmc6IDIwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB3aWR0aDogMzAwcHg7XG59XG5cbi5jb25maXJtYXRpb24tYnV0dG9ucyB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xuICBtYXJnaW4tdG9wOiAyMHB4O1xufVxuXG4uY29uZmlybS1idG4sIC5jYW5jZWwtYnRuIHtcbiAgcGFkZGluZzogMTBweCAyMHB4O1xuICBib3JkZXI6IG5vbmU7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLmNvbmZpcm0tYnRuIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogZ3JlZW47XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuLmNhbmNlbC1idG4ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiBncmF5O1xuICBjb2xvcjogd2hpdGU7XG59XG5cbi5zdGF0LWl0ZW0ge1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIG1hcmdpbjogMCAxMHB4O1xufVxuXG4uc3RhdC1sYWJlbCB7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBtYXJnaW4tYm90dG9tOiA1cHg7XG59XG5cbi5zdGF0LXZhbHVlIHtcbiAgZm9udC1zaXplOiAyMHB4O1xuICBjb2xvcjogI2E1MmEyYTtcbn1cbmJ1dHRvbltkaXNhYmxlZF0ge1xuICBjdXJzb3I6IG5vdC1hbGxvd2VkOyAvKiBDaGFuZ2VzIHRoZSBjdXJzb3IgdG8gdGhlIGRlZmF1bHQgXCJub3QtYWxsb3dlZFwiICovXG4gIHBvaW50ZXItZXZlbnRzOiBub25lOyAvKiBQcmV2ZW50cyBhbnkgaW50ZXJhY3Rpb24gd2l0aCB0aGUgYnV0dG9uICovXG4gIG9wYWNpdHk6IDAuNjU7IC8qIE9wdGlvbmFsOiBNYWtlcyB0aGUgYnV0dG9uIGxvb2sgZGlzYWJsZWQgKHNlbWktdHJhbnNwYXJlbnQpICovXG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](IndentDraftListComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'indent-draft-list',
templateUrl: './indent-draft-list.html',
styleUrls: ['./indent-draft-list.scss'],
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_2__["CustomFormService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }]; }, { submissionList: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], customFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], onSave: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "TF/K":
/*!*************************************************************!*\
!*** ./src/app/shared/custom-validator/custom-validator.ts ***!
\*************************************************************/
/*! exports provided: MustMatch, CustomValidators */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MustMatch", function() { return MustMatch; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomValidators", function() { return CustomValidators; });
// custom validator to check that two fields match
function MustMatch(controlName, matchingControlName) {
return (formGroup) => {
const control = formGroup.controls[controlName];
const matchingControl = formGroup.controls[matchingControlName];
if (matchingControl.errors && !matchingControl.errors.mustMatch) {
// return if another validator has already found an error on the matchingControl
return;
}
// set error on matchingControl if validation fails
if (control.value !== matchingControl.value) {
matchingControl.setErrors({ mustMatch: true });
}
else {
matchingControl.setErrors(null);
}
};
}
class CustomValidators {
static patternValidator(regex, error) {
return (control) => {
if (!control.value) {
// if control is empty return no error
return null;
}
// test the value of the control against the regexp supplied
const valid = regex.test(control.value);
// if true, return no error (no error), else return error passed in the second parameter
return valid ? null : error;
};
}
}
/***/ }),
/***/ "TR14":
/*!*********************************************************************************!*\
!*** ./src/app/users/pages/auth/password-expired/password-expired.component.ts ***!
\*********************************************************************************/
/*! exports provided: PasswordExpiredComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PasswordExpiredComponent", function() { return PasswordExpiredComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/custom-validator/custom-validator */ "TF/K");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var recheck__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recheck */ "0MsR");
/* harmony import */ var recheck__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(recheck__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../service/auth/auth.service */ "PxIJ");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
function PasswordExpiredComponent_p_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter your Staff ID and Mobile Number to receive OTP ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_p_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter a new password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_13_div_1_div_4_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Company Name is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_13_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordExpiredComponent_form_13_div_1_div_4_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r9.f.companyId.errors.required);
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
function PasswordExpiredComponent_form_13_div_1_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Company Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("blur", function PasswordExpiredComponent_form_13_div_1_Template_input_blur_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.f.companyId.valid && ctx_r11.getCompanyId(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, PasswordExpiredComponent_form_13_div_1_div_4_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](2, _c0, ctx_r5.submitted && ctx_r5.f.companyId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.submitted && ctx_r5.f.companyId.errors);
} }
function PasswordExpiredComponent_form_13_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Staff id is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_13_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordExpiredComponent_form_13_div_6_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r6.f.staffId.errors.required);
} }
function PasswordExpiredComponent_form_13_div_7_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Enter a Valid Email");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_13_div_7_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Email is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_13_div_7_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordExpiredComponent_form_13_div_7_div_6_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.f.email.errors.required);
} }
function PasswordExpiredComponent_form_13_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, PasswordExpiredComponent_form_13_div_7_span_5_Template, 2, 0, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, PasswordExpiredComponent_form_13_div_7_div_6_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](3, _c0, ctx_r7.submitted1 && ctx_r7.f.email.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r7.email.invalid && ctx_r7.email.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r7.submitted1 && ctx_r7.f.email.errors);
} }
function PasswordExpiredComponent_form_13_div_8_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Enter a Valid Phone number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_13_div_8_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Mobile Number is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_13_div_8_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordExpiredComponent_form_13_div_8_div_6_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r18.f.mobile.errors.required);
} }
const _c1 = function (a0, a1) { return [a0, a1]; };
function PasswordExpiredComponent_form_13_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Mobile number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "ngx-intl-tel-input", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, PasswordExpiredComponent_form_13_div_8_span_5_Template, 2, 0, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, PasswordExpiredComponent_form_13_div_8_div_6_Template, 2, 1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("cssClass", "custom form-control")("preferredCountries", ctx_r8.preferredCountries)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c0, ctx_r8.submitted1 && ctx_r8.f.mobile.errors))("enableAutoCountrySelect", true)("enablePlaceholder", true)("searchCountryFlag", true)("searchCountryField", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](17, _c1, ctx_r8.SearchCountryField.Iso2, ctx_r8.SearchCountryField.Name))("selectFirstCountry", false)("selectedCountryISO", ctx_r8.CountryISO.Singapore)("maxLength", 15)("phoneValidation", true)("separateDialCode", ctx_r8.separateDialCode)("numberFormat", ctx_r8.PhoneNumberFormat.National);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.phone.invalid && ctx_r8.phone.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.submitted1 && ctx_r8.f.mobile.errors);
} }
const _c2 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function PasswordExpiredComponent_form_13_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function PasswordExpiredComponent_form_13_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.onRequestRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordExpiredComponent_form_13_div_1_Template, 5, 4, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "input", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, PasswordExpiredComponent_form_13_div_6_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, PasswordExpiredComponent_form_13_div_7_Template, 7, 5, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, PasswordExpiredComponent_form_13_div_8_Template, 7, 20, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordExpiredComponent_form_13_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.submitForgotPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordExpiredComponent_form_13_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.navigateToLogin(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.forgetPasswordForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.companyName == "xforce");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](8, _c0, ctx_r2.submitted1 && ctx_r2.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.submitted1 && ctx_r2.f.staffId.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.otpSentFor === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.otpSentFor === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r2.isLoadingOnRequestRestPassword);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](10, _c2, ctx_r2.isLoadingOnRequestRestPassword, !ctx_r2.isLoadingOnRequestRestPassword));
} }
function PasswordExpiredComponent_form_14_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " OTP is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_14_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordExpiredComponent_form_14_div_5_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r24.otp.otp.errors.required);
} }
function PasswordExpiredComponent_form_14_Template(rf, ctx) { if (rf & 1) {
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Enter OTP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, PasswordExpiredComponent_form_14_div_5_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordExpiredComponent_form_14_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r26.onSubmitOtp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordExpiredComponent_form_14_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r28.goBack(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r3.otpVerifyForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](5, _c0, ctx_r3.submitted2 && ctx_r3.otp.otp.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.submitted2 && ctx_r3.otp.otp.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r3.isLoadingOtpSubmit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](7, _c2, ctx_r3.isLoadingOtpSubmit, !ctx_r3.isLoadingOtpSubmit));
} }
function PasswordExpiredComponent_form_15_div_5_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordExpiredComponent_form_15_div_5_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r36); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r35.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_6_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordExpiredComponent_form_15_div_6_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r37.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_7_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one numeric letter is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_7_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one special character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_7_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one Capital character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one Small character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_7_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" Minimum Length Should be ", ctx_r44.passwordRestForm.get("password").errors.length, " Characters ");
} }
function PasswordExpiredComponent_form_15_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordExpiredComponent_form_15_div_7_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, PasswordExpiredComponent_form_15_div_7_div_2_Template, 2, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, PasswordExpiredComponent_form_15_div_7_div_3_Template, 2, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, PasswordExpiredComponent_form_15_div_7_div_4_Template, 2, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, PasswordExpiredComponent_form_15_div_7_div_5_Template, 2, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, PasswordExpiredComponent_form_15_div_7_div_6_Template, 2, 1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.hasNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.hasSpecialCharacters);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.hasCapitalCase);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.hasSmallCase);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r31.passwordRestForm.get("password").errors.minlength);
} }
function PasswordExpiredComponent_form_15_div_12_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordExpiredComponent_form_15_div_12_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r45.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_13_Template(rf, ctx) { if (rf & 1) {
const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PasswordExpiredComponent_form_15_div_13_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r48); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r47.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_14_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Confirm Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_14_small_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password doesn't Match ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PasswordExpiredComponent_form_15_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, PasswordExpiredComponent_form_15_div_14_small_1_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, PasswordExpiredComponent_form_15_div_14_small_2_Template, 2, 0, "small", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r34.passwordRestForm.get("confirmPassword").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r34.passwordRestForm.get("confirmPassword").errors.mustMatch);
} }
function PasswordExpiredComponent_form_15_Template(rf, ctx) { if (rf & 1) {
const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function PasswordExpiredComponent_form_15_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r52); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r51.onRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, PasswordExpiredComponent_form_15_div_5_Template, 2, 0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, PasswordExpiredComponent_form_15_div_6_Template, 2, 0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, PasswordExpiredComponent_form_15_div_7_Template, 7, 6, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Confirm Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, PasswordExpiredComponent_form_15_div_12_Template, 2, 0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, PasswordExpiredComponent_form_15_div_13_Template, 2, 0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, PasswordExpiredComponent_form_15_div_14_Template, 3, 2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, " Reset Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r4.passwordRestForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx_r4.isPasswordVisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](13, _c0, ctx_r4.submitted3 && ctx_r4.passwordRestForm.get("password").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r4.isPasswordVisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.isPasswordVisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.passwordRestForm.get("password").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx_r4.isPasswordVisibleAlt ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c0, ctx_r4.submitted3 && ctx_r4.passwordRestForm.get("confirmPassword").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r4.isPasswordVisibleAlt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.isPasswordVisibleAlt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.passwordRestForm.get("confirmPassword").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r4.isLoadingResetPassword);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](17, _c2, ctx_r4.isLoading, !ctx_r4.isLoadingResetPassword));
} }
class PasswordExpiredComponent {
constructor(router, auth, toastService, companyService, formBuilder, route) {
this.router = router;
this.auth = auth;
this.toastService = toastService;
this.companyService = companyService;
this.formBuilder = formBuilder;
this.route = route;
this.restPasswordState = 'initRest';
this.isLoadingOnRequestRestPassword = false;
this.validators = [];
this.CountryISO = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["CountryISO"];
this.isPasswordVisibleAlt = false;
this.isPasswordVisible = false;
this.PhoneNumberFormat = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["PhoneNumberFormat"];
this.preferredCountries = [
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["CountryISO"].UnitedStates,
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["CountryISO"].UnitedKingdom,
];
this.SearchCountryField = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["SearchCountryField"];
this.isLoadingOtpSubmit = false;
this.isLoadingResetPassword = false;
this.submitted3 = false;
}
ngOnInit() {
this.initForm();
this.getPasswordSetting();
this.route.params
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["tap"])((value) => (this.companyName = value.name)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((v) => v.name), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["switchMap"])((name) => this.auth.fetchCompanyId(name)))
.subscribe((res) => {
this.forgetPasswordForm.patchValue({
companyId: res.data._id,
});
});
const urlParam = this.route.params
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((v) => v.name))
.subscribe((val) => {
this.companyName = val;
this.getCompanyId();
});
}
getCompanyId() {
if (this.companyName != 'xforce' && this.companyName != undefined) {
const urlCompanyName = this.auth
.fetchCompanyId(this.companyName)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
urlCompanyName.unsubscribe();
}))
.subscribe((res) => {
this.forgetPasswordForm.patchValue({
companyId: res.data._id,
});
}, (error) => { });
}
else {
if (this.f.companyId.value) {
const urlxforce = this.auth
.fetchCompanyId(this.forgetPasswordForm.controls.companyId.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
urlxforce.unsubscribe();
}))
.subscribe((res) => {
this.xforceCompanyId = res.data._id;
}, (error) => { });
}
}
}
get phone() {
return this.forgetPasswordForm.get('mobile');
}
get email() {
return this.forgetPasswordForm.get('email');
}
get f() {
return this.forgetPasswordForm.controls;
}
get otp() {
return this.otpForm.controls;
}
get restPassword() {
return this.passwordRestForm.controls;
}
initForm() {
this.forgetPasswordForm = this.formBuilder.group({
staffId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
companyId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
mobile: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.otpForm = this.formBuilder.group({
token: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
companyId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
staffId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
/* this.passwordRestForm = this.formBuilder.group({
password: ['', Validators.required],
confirmPassword: ['', Validators.required],
token: ['', Validators.required],
});*/
this.otpVerifyForm = this.formBuilder.group({
token: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
otp: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
}
onRequestRestPassword() {
// if (!this.forgetPasswordForm.valid) {
// this.submitted1 = true;
// console.log('Hello')
// return;
// }
if (this.otpSentFor === 1) {
const data = {
// companyId: this.forgetPasswordForm.value.companyId,
staffId: this.forgetPasswordForm.value.staffId,
email: this.forgetPasswordForm.value.email,
countryCode: '',
// primaryMobileNumber: '',
pathName: "sats"
};
const sub = this.auth
.requestForgetPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b;
this.isLoadingOnRequestRestPassword = false;
this.toastService.success(res.data.message);
// this.forgetPasswordForm.reset();
this.otpVerifyForm.patchValue({
token: (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.token,
});
this.otpToken = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.token;
this.restPasswordState = 'otpRest';
}, (error) => {
console.log(error);
this.isLoadingOnRequestRestPassword = false;
});
}
else if (this.otpSentFor === 2) {
this.isLoadingOnRequestRestPassword = true;
const { number } = this.forgetPasswordForm.get('mobile').value;
const data = {
// companyId: this.forgetPasswordForm.value.companyId,
staffId: this.forgetPasswordForm.value.staffId,
// email: '',
countryCode: this.forgetPasswordForm.value.mobile.dialCode,
primaryMobileNumber: parseInt(number.replace(/[^0-9]/g, ''), 10).toString(),
pathName: "sats"
};
const sub = this.auth
.requestForgetPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b;
this.isLoadingOnRequestRestPassword = false;
this.toastService.success(res.data.message);
// this.forgetPasswordForm.reset();
this.otpToken = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.token;
this.otpVerifyForm.patchValue({
token: (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.token,
});
this.restPasswordState = 'otpRest';
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
this.isLoadingOnRequestRestPassword = false;
});
}
}
resetPasswordForm() {
this.passwordRestForm = this.formBuilder.group({
password: ['', [...this.validators, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
confirmPassword: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
token: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
}, {
validator: Object(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["MustMatch"])('password', 'confirmPassword'),
});
}
onSubmitOtp() {
if (!this.otpVerifyForm.valid) {
this.toastService.error('Please Enter the OTP');
return;
}
this.isLoadingOtpSubmit = true;
let data = { token: this.otpVerifyForm.get('token').value, otp: this.otpVerifyForm.get('otp').value, forgotPassword: true };
const sub = this.auth
.verifyOTP(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoadingOtpSubmit = false;
this.restPasswordState = 'passwordRest';
// this.otpToken = res.data?.token;
this.toastService.success('OTP verified successfully');
// this.getValidatorFnArray(res.data.pwdSettings.pwdSettings);
}, (error) => {
var _a;
this.isLoadingOtpSubmit = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
goBack() {
this.restPasswordState = 'initRest';
}
submitForgotPassword() {
}
navigateToLogin() {
this.router.navigate(['/users/login/', this.companyName]);
}
getValidatorFnArray(setting) {
var _a, _b, _c, _d;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const validators = [];
if ((_a = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _a === void 0 ? void 0 : _a.lowerCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(/[a-z]/, {
hasSmallCase: true,
}));
}
if ((_b = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _b === void 0 ? void 0 : _b.specialChar) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/, {
hasSpecialCharacters: true,
}));
}
if ((_c = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _c === void 0 ? void 0 : _c.upperCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(/[A-Z]/, {
hasCapitalCase: true,
}));
}
if ((_d = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _d === void 0 ? void 0 : _d.numbers) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(/\d/, {
hasNumber: true,
}));
}
if (setting === null || setting === void 0 ? void 0 : setting.charLength) {
const len = setting.charLength;
let test = `^.{${len},22}`;
let recheckResp = yield recheck__WEBPACK_IMPORTED_MODULE_6__["check"](test, "");
if (recheckResp.status === 'safe') {
const regex = new RegExp(test);
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(regex, {
minlength: true,
length: setting.charLength,
}));
}
}
this.validators.push(...validators);
this.resetPasswordForm();
});
}
getPasswordSetting() {
const sub = this.companyService
.getPasswordSetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b, _c, _d, _e;
this.getValidatorFnArray((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.pageSettingData) === null || _b === void 0 ? void 0 : _b.pwdSettings);
this.otpSentFor = (_e = (_d = (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.pageSettingData) === null || _d === void 0 ? void 0 : _d.pwdSettings) === null || _e === void 0 ? void 0 : _e.otpSentFor;
/* if (res.data.pwdSettings.otpSentFor === 2) {
this.f.mobile.setValidators([Validators.required]);
this.f.date.updateValueAndValidity();
} else {
this.f.email.setValidators([Validators.required]);
this.f.time.updateValueAndValidity();
}*/
}, (error) => {
console.log(error);
});
}
onRestPassword() {
this.passwordRestForm.patchValue({
token: this.otpToken,
});
if (!this.passwordRestForm.valid) {
this.submitted3 = true;
return;
}
let data = {
password: this.passwordRestForm.get('confirmPassword').value,
token: this.passwordRestForm.value.token,
};
this.isLoadingResetPassword = true;
const sub = this.auth
.restPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoadingResetPassword = false;
this.toastService.success('Password Updated successfully');
this.passwordRestForm.patchValue({
token: res.data.token,
});
this.auth.logout();
}, (error) => {
this.isLoadingResetPassword = false;
this.toastService.error("Cannot use last 15 used passwords, please use a new password");
});
}
passwordVisible() {
this.isPasswordVisible = !this.isPasswordVisible;
}
confirmPasswordVisible() {
this.isPasswordVisibleAlt = !this.isPasswordVisibleAlt;
}
}
PasswordExpiredComponent.ɵfac = function PasswordExpiredComponent_Factory(t) { return new (t || PasswordExpiredComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["ActivatedRoute"])); };
PasswordExpiredComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: PasswordExpiredComponent, selectors: [["app-password-expired"]], decls: 16, vars: 5, consts: [[1, "d-flex", "login-main", "flex-sm-row", "flex-column"], [1, "flex-fill", "min-w50", "d-sm-block", "d-none"], [1, "mw-100", "bg-banner"], [1, "flex-fill", "bg"], [1, "d-flex", "align-items-center", "h-100", "min-h35"], [1, "d-flex", "justify-content-center", "min-w100"], [1, "login-body", "min-w50", "card"], [1, "forgot-password-header"], [1, "text-center"], [4, "ngIf"], [1, "card-body"], [3, "formGroup", "ngSubmit", 4, "ngIf"], [3, "formGroup", 4, "ngIf"], [3, "formGroup", "ngSubmit"], ["class", "form-group", 4, "ngIf"], [1, "form-group"], ["for", "exampleInputEmail1"], ["type", "text", "formControlName", "staffId", "maxlength", "40", "aria-describedby", "emailHelp", "placeholder", "Enter Staff ID", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", "ml-2", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-red-back", "pl-3", "pr-3", "float-right", 3, "click"], [1, "font-weight-500"], ["type", "text", "formControlName", "companyId", "placeholder", "Enter Company Name", 1, "form-control", 3, "ngClass", "blur"], [1, "invalid-feedback"], ["for", "exampleInputPassword1"], ["type", "email", "maxlength", "40", "placeholder", "Enter Email", "formControlName", "email", 1, "form-control", 3, "ngClass"], [1, "error-container"], ["formControlName", "mobile", "customPlaceholder", "Please Enter your mobile number", 3, "cssClass", "preferredCountries", "ngClass", "enableAutoCountrySelect", "enablePlaceholder", "searchCountryFlag", "searchCountryField", "selectFirstCountry", "selectedCountryISO", "maxLength", "phoneValidation", "separateDialCode", "numberFormat"], ["class", "invalid-feedback mobile-error", 4, "ngIf"], [1, "invalid-feedback", "mobile-error"], [3, "formGroup"], ["type", "text", "formControlName", "otp", "maxlength", "6", "aria-describedby", "emailHelp", "placeholder", "Enter OTP", 1, "form-control", 3, "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", "ml-3", 3, "disabled", "click"], ["type", "submit", 1, "btn", "btn-sm", "btn-back", "float-right", 3, "click"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], ["placeholder", " Password", "formControlName", "password", 1, "form-control", 3, "type", "ngClass"], ["class", "eye-slash", 4, "ngIf"], [1, "pb-2", "form-bg"], ["placeholder", " Confirm Password", "formControlName", "confirmPassword", 1, "form-control", 3, "type", "ngClass"], ["class", "eye-slash-alt", 4, "ngIf"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", 3, "disabled"], [1, "eye-slash"], ["aria-hidden", "true", 1, "fa", "fa-eye-slash", "fa-lg", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-eye", "fa-lg", 3, "click"], [1, "eye-slash-alt"]], template: function PasswordExpiredComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h3", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Password Expired");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, PasswordExpiredComponent_p_10_Template, 2, 0, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, PasswordExpiredComponent_p_11_Template, 2, 0, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, PasswordExpiredComponent_form_13_Template, 15, 13, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, PasswordExpiredComponent_form_14_Template, 12, 10, "form", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, PasswordExpiredComponent_form_15_Template, 19, 20, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "initRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "passwordRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "initRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "otpRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "passwordRest" && ctx.passwordRestForm);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgClass"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["NgxIntlTelInputComponent"]], styles: [".login-main[_ngcontent-%COMP%] .min-w50[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n min-width: 50%;\n}\n.login-main[_ngcontent-%COMP%] .bg-banner[_ngcontent-%COMP%] {\n background-image: url('background.jpg');\n background-repeat: no-repeat;\n background-size: cover;\n min-height: 100vh;\n min-width: 100%;\n}\n.login-main[_ngcontent-%COMP%] .min-h35[_ngcontent-%COMP%] {\n min-height: 100vh;\n}\n.flex-fill.bg[_ngcontent-%COMP%] {\n background-image: url('loginBg.jpg');\n}\n.forgot-password-header[_ngcontent-%COMP%] {\n width: 450px;\n text-align: center;\n}\n.eye-slash[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -25px;\n cursor: pointer;\n}\n.eye-slash-alt[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -25px;\n cursor: pointer;\n}\n.mobile-error[_ngcontent-%COMP%] {\n margin-top: -15px;\n}\n.error-container[_ngcontent-%COMP%] {\n color: #f44336;\n font-weight: 600;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC9wYXNzd29yZC1leHBpcmVkL3Bhc3N3b3JkLWV4cGlyZWQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0k7RUFDRSx1QkFBQTtFQUNBLFNBQUE7RUFDQSxjQUFBO0FBQU47QUFHSTtFQUNFLHVDQUFBO0VBQ0EsNEJBQUE7RUFDQSxzQkFBQTtFQUNBLGlCQUFBO0VBQ0EsZUFBQTtBQUROO0FBR0k7RUFDRSxpQkFBQTtBQUROO0FBSUU7RUFDRSxvQ0FBQTtBQURKO0FBSUU7RUFDRSxZQUFBO0VBQ0Esa0JBQUE7QUFESjtBQUlFO0VBQ0UsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLGlCQUFBO0VBQ0EsZUFBQTtBQURKO0FBSUU7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0FBREo7QUFJRTtFQUNFLGlCQUFBO0FBREo7QUFJRTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtBQURKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC9wYXNzd29yZC1leHBpcmVkL3Bhc3N3b3JkLWV4cGlyZWQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubG9naW4tbWFpbiB7XG4gICAgLm1pbi13NTAge1xuICAgICAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG4gICAgICBib3JkZXI6IDA7XG4gICAgICBtaW4td2lkdGg6IDUwJTtcbiAgICB9XG4gIFxuICAgIC5iZy1iYW5uZXIge1xuICAgICAgYmFja2dyb3VuZC1pbWFnZTogdXJsKFwiLi4vLi4vLi4vLi4vLi4vYXNzZXRzL2ltYWdlcy9iYWNrZ3JvdW5kLmpwZ1wiKTtcbiAgICAgIGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG4gICAgICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuICAgICAgbWluLWhlaWdodDogMTAwdmg7XG4gICAgICBtaW4td2lkdGg6IDEwMCU7XG4gICAgfVxuICAgIC5taW4taDM1IHtcbiAgICAgIG1pbi1oZWlnaHQ6IDEwMHZoO1xuICAgIH1cbiAgfVxuICAuZmxleC1maWxsLmJnIHtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoXCIuLi8uLi8uLi8uLi8uLi9hc3NldHMvaW1hZ2VzL2xvZ2luQmcuanBnXCIpO1xuICB9XG4gIFxuICAuZm9yZ290LXBhc3N3b3JkLWhlYWRlciB7XG4gICAgd2lkdGg6IDQ1MHB4O1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgfVxuICBcbiAgLmV5ZS1zbGFzaCB7XG4gICAgd2lkdGg6IDIwcHg7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHJpZ2h0OiAzMHB4O1xuICAgIG1hcmdpbi10b3A6IC0yNXB4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgfVxuICBcbiAgLmV5ZS1zbGFzaC1hbHQge1xuICAgIHdpZHRoOiAyMHB4O1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICByaWdodDogMzBweDtcbiAgICBtYXJnaW4tdG9wOiAtMjVweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbiAgXG4gIC5tb2JpbGUtZXJyb3J7XG4gICAgbWFyZ2luLXRvcDogLTE1cHg7XG4gIH1cbiAgXG4gIC5lcnJvci1jb250YWluZXJ7XG4gICAgY29sb3I6ICNmNDQzMzY7XG4gICAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgfSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](PasswordExpiredComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-password-expired',
templateUrl: './password-expired.component.html',
styleUrls: ['./password-expired.component.scss']
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"] }, { type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__["CompanySetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["ActivatedRoute"] }]; }, null); })();
/***/ }),
/***/ "TRD8":
/*!**************************************************************************!*\
!*** ./src/app/users/service/central-builder/central-builder.service.ts ***!
\**************************************************************************/
/*! exports provided: CentralBuilderService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CentralBuilderService", function() { return CentralBuilderService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class CentralBuilderService {
constructor(http, storageService) {
this.http = http;
this.storageService = storageService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getAllModules(data) {
return this.http.get(`${this.baseUrl}/centralBuilder/readCentralBuilder/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllNonLinedModules(isFromNotification = false) {
if (isFromNotification) {
return this.http.get(`${this.baseUrl}/centralBuilder/read?nonLinkedModules=true`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
return this.http.get(`${this.baseUrl}/centralBuilder/read?nonLinkedModules=true`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSingleQuestions(id) {
return this.http.get(`${this.baseUrl}/centralBuilder/readOne/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteModule(id) {
return this.http.get(`${this.baseUrl}/centralBuilder/remove/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateModule(data, id) {
return this.http.post(`${this.baseUrl}/centralBuilder/updateModule`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createModules(data) {
return this.http.post(`${this.baseUrl}/centralBuilder/create`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createQuestion(data) {
return this.http.post(`${this.baseUrl}/centralBuilder/questionsUpdate`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
editAnswers(data) {
return this.http.post(`${this.baseUrl}/common/questionModule/customFormQuestionsUpdate`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
editAnswersAdminOnly(data) {
return this.http.post(`${this.baseUrl}/common/questionModule/resCustomFormQuestions`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
submitAnswers(data) {
return this.http.post(`${this.baseUrl}/common/questionModule/resCustomFormQuestions`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
submitExternalAnswers(data) {
return this.http.post(`${this.baseUrl}/external/resQuestions`, data, {}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteQuestion(data) {
return this.http.post(`${this.baseUrl}/centralBuilder/removeQuestion`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getNominateUser(data) {
return this.http.post(`${this.baseUrl}/common/challenge/getChannelOrBoardsUsers`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createSection(data) {
return this.http.post(`${this.baseUrl}/centralBuilder/section/add`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateSection(data) {
return this.http.post(`${this.baseUrl}/centralBuilder/section/update`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteSection(data) {
return this.http.post(`${this.baseUrl}/centralBuilder/section/remove`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
readLookupTable() {
return this.http.get(`${this.baseUrl}/centralBuilder/lookuptable`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
CentralBuilderService.ɵfac = function CentralBuilderService_Factory(t) { return new (t || CentralBuilderService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
CentralBuilderService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: CentralBuilderService, factory: CentralBuilderService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CentralBuilderService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, null); })();
` `;
/***/ }),
/***/ "Tb+D":
/*!***************************************************************!*\
!*** ./src/app/shared/dynamic-questions/dynamic-questions.ts ***!
\***************************************************************/
/*! exports provided: DynamicQuestionBuilderComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicQuestionBuilderComponent", function() { return DynamicQuestionBuilderComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _field_builder_question_builder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./field-builder/question-builder */ "b2wH");
function DynamicQuestionBuilderComponent_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "field-builders", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r1 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r0.gridView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", field_r1)("form", ctx_r0.formGroup);
} }
class DynamicQuestionBuilderComponent {
constructor() {
this.onSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.fields = [];
}
ngOnInit() {
let fieldsCtrls = {};
for (let f of this.fields) {
if ([1, 2, 3, 4, 5].includes(f.type)) {
let opts = {};
for (let opt of f.options) {
opts[opt._id] = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"](opt.value);
}
fieldsCtrls[f.question] = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroup"](opts);
}
else {
fieldsCtrls[f.question] = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"](f.value || '', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required);
}
}
//this.form = new FormGroup(fieldsCtrls);
}
}
DynamicQuestionBuilderComponent.ɵfac = function DynamicQuestionBuilderComponent_Factory(t) { return new (t || DynamicQuestionBuilderComponent)(); };
DynamicQuestionBuilderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DynamicQuestionBuilderComponent, selectors: [["dynamic-question-builder"]], inputs: { fields: "fields", formGroup: "formGroup", gridView: "gridView" }, outputs: { onSubmit: "onSubmit" }, decls: 3, vars: 2, consts: [[1, "form-horizontal", 3, "formGroup"], [1, "row"], [3, "ngClass", 4, "ngFor", "ngForOf"], [3, "ngClass"], [3, "field", "form"]], template: function DynamicQuestionBuilderComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "form", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, DynamicQuestionBuilderComponent_div_2_Template, 2, 3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.formGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.fields);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgClass"], _field_builder_question_builder__WEBPACK_IMPORTED_MODULE_3__["QuestionBuilder"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicQuestionBuilderComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'dynamic-question-builder',
template: `
`,
}]
}], function () { return []; }, { onSubmit: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], fields: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], formGroup: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], gridView: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "TlY0":
/*!******************************************************************************!*\
!*** ./src/app/users/pages/users/locked-account/locked-account.component.ts ***!
\******************************************************************************/
/*! exports provided: LockedAccountComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LockedAccountComponent", function() { return LockedAccountComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _lock_account_overview_lock_account_overview_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lock-account-overview/lock-account-overview.component */ "9DX1");
function LockedAccountComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "lock-account-overview");
} }
class LockedAccountComponent {
constructor() { }
ngOnInit() {
}
}
LockedAccountComponent.ɵfac = function LockedAccountComponent_Factory(t) { return new (t || LockedAccountComponent)(); };
LockedAccountComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LockedAccountComponent, selectors: [["app-locked-account"]], decls: 8, vars: 3, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"]], template: function LockedAccountComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function LockedAccountComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "PASSWORD LOCK");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, LockedAccountComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _lock_account_overview_lock_account_overview_component__WEBPACK_IMPORTED_MODULE_2__["LockAccountOverviewComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvdXNlcnMvbG9ja2VkLWFjY291bnQvbG9ja2VkLWFjY291bnQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxzQkFBQTtBQUNGO0FBQUU7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFFSjtBQUFJO0VBQ0UsY0FBQTtBQUVOO0FBQ0k7RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBQ04iLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy91c2Vycy9sb2NrZWQtYWNjb3VudC9sb2NrZWQtYWNjb3VudC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXYtdGFicyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC5uYXYtbGluayB7XG4gICAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgIHRyYW5zaXRpb246IGNvbG9yIDAuMnM7XG4gICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LockedAccountComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-locked-account',
templateUrl: './locked-account.component.html',
styleUrls: ['./locked-account.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "UEAd":
/*!************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-shift/plan-overview/plan-overview.component.ts ***!
\************************************************************************************************************/
/*! exports provided: PlanOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanOverviewComponent", function() { return PlanOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ng2-charts */ "LPYB");
function PlanOverviewComponent_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanOverviewComponent_div_1_div_5_Template_div_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r8.changeWeek("Prev"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "i", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " chevron_left ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanOverviewComponent_div_1_div_5_Template_div_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.changeWeek("Nxt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "i", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " chevron_right ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r6.currWeek, " ");
} }
const _c0 = function () { return { width: "calc(20.4%)", "border-radius": "6px", height: "36px", margin: "10px", "margin-top": "0", "margin-left": "0", display: "block" }; };
function PlanOverviewComponent_div_1_ngx_skeleton_loader_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 28);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function PlanOverviewComponent_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Select Week");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, PlanOverviewComponent_div_1_div_5_Template, 9, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, PlanOverviewComponent_div_1_ngx_skeleton_loader_6_Template, 1, 2, "ngx-skeleton-loader", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.currWeek);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.currWeek);
} }
const _c1 = function () { return { "border-radius": "6px", height: "300px", width: "45px", margin: "10px", display: "block" }; };
const _c2 = function () { return { "border-radius": "6px", height: "500px", width: "45px", margin: "10px", display: "block" }; };
const _c3 = function () { return { "border-radius": "6px", height: "400px", width: "45px", margin: "10px", display: "block" }; };
const _c4 = function () { return { "border-radius": "6px", height: "450px", width: "45px", margin: "10px", display: "block" }; };
const _c5 = function () { return { "border-radius": "6px", height: "330px", width: "45px", margin: "10px", display: "block" }; };
const _c6 = function () { return { "border-radius": "6px", height: "280px", width: "45px", margin: "10px", display: "block" }; };
function PlanOverviewComponent_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ngx-skeleton-loader", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "ngx-skeleton-loader", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "ngx-skeleton-loader", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ngx-skeleton-loader", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "ngx-skeleton-loader", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "ngx-skeleton-loader", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "ngx-skeleton-loader", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](7, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](8, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](9, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](10, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](11, _c4));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](12, _c5));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](13, _c6));
} }
function PlanOverviewComponent_div_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("chartType", "bar")("datasets", ctx_r2.hrAndShiftChartData)("labels", ctx_r2.hrAndShiftChartLabels)("options", ctx_r2.hrAndShiftChartoptions)("legend", false)("colors", ctx_r2.hrAndShiftChartColors);
} }
function PlanOverviewComponent_button_24_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanOverviewComponent_button_24_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const i_r11 = ctx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.dayViewGraph(i_r11); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r11 = ctx.$implicit;
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("bg-theme", i_r11 === ctx_r3.selectedDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r11.d, " ");
} }
const _c7 = function () { return { "border-radius": "6px", height: "2px", margin: "100px 0", display: "block" }; };
function PlanOverviewComponent_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ngx-skeleton-loader", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c7));
} }
function PlanOverviewComponent_div_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("chartType", "line")("labels", ctx_r5.yAxesLabel)("datasets", ctx_r5.dayChartData)("options", ctx_r5.dayChartOptions)("colors", ctx_r5.dayChartColorOption)("legend", true);
} }
class PlanOverviewComponent {
constructor(planShift) {
this.planShift = planShift;
this.isHour = true;
this.overviewHeaderData = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.currWeek = null;
this.buWeekArr = [];
this.weekCount = 0;
this.rawGraph = [];
this.graphNeed = [];
this.graphNeedAssign = [];
this.graphBooked = [];
this.graphHrNeedAssign = [];
this.graphHrNeed = [];
this.graphHrBooked = [];
this.bookShiftArr = [];
this.openShiftArr = [];
this.assignShiftArr = [];
this.yAxesLabel = [];
this.dayArr = [
{ count: 0, d: 'M', day: 'monday' },
{ count: 1, d: 'T', day: 'tuesday' },
{ count: 2, d: 'W', day: 'wednesday' },
{ count: 3, d: 'T', day: 'thursday' },
{ count: 4, d: 'F', day: 'friday' },
{ count: 5, d: 'S', day: 'saturday' },
{ count: 6, d: 'S', day: 'sunday' },
];
this.graphLoader = true;
this.index = 2;
this.getWeekStartEndDate = function (date, count) {
let datesToReturn = {};
let label = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MMM DD YYYY") + ' to ' + moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count + 6, 'days').format("MMM DD YYYY");
let value = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MM-DD-YYYY");
datesToReturn = { label: label, value: value, key: count };
/* if (count == 0 && $scope.workWeeksDate == undefined) {
$scope.workWeeksDate = value;
}*/
return label;
};
this.hrAndShiftChartoptions = {
responsive: true,
scales: {
xAxes: [
{
maxBarThickness: 40,
gridLines: {
display: false,
},
},
],
},
};
this.hrAndShiftChartLabels = [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday',
];
// CHART COLOR.
this.hrAndShiftChartColors = [
{ backgroundColor: '#0000FF' },
{ backgroundColor: '#a42138' },
{ backgroundColor: '#6BB11E' },
];
this.dayChartData = [
{
label: 'Booked Open Shift',
data: this.bookShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'star',
},
{
label: 'Planned Open Shift',
data: this.openShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'rect',
},
{
label: 'Assign Shift',
data: this.assignShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'circle',
},
];
this.dayChartOptions = {
responsive: true,
borderColor: 'blue',
scales: {
xAxes: [
{
ticks: {
callback: function (value, index, values) {
return index % 4 == 0 ? value : '';
},
color: 'red',
maxRotation: 0,
},
gridLines: {
display: false,
},
},
],
yAxes: [
{
gridLines: {
borderDash: [4, 4],
},
},
],
},
};
this.dayChartColorOption = [
{ borderColor: '#6BB11E', backgroundColor: '#6BB11E' },
{ borderColor: '#a42138', backgroundColor: '#a42138' },
{ borderColor: '#0000FF', backgroundColor: '#0000FF' },
];
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["getGmtOffSet"])();
this.getWeeks();
}
getShiftGraphData() {
this.graphLoader = true;
// this.headerData = {
// one: 0,
// two: 0,
// three: 0,
// four: 0,
// five: 0,
// six: 0,
// };
// this.overviewHeaderData.emit(this.headerData);
this.shiftReadReq = {
businessUnitId: this.bu._id,
startDate: this.startDay,
from: 'plan',
};
this.planShift
.getShiftGraph(this.shiftReadReq)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.graphLoader = false;
}))
.subscribe((res) => {
if (this.page == '2') {
this.shiftRead = this.shift;
}
else {
this.shiftRead = res['data'];
this.headerData = {
one: res['data']['dashboardGraphData'].plannedFlexiHours,
two: res['data']['dashboardGraphData'].plannedFlexiShifts,
three: res['data']['dashboardGraphData'].bookedFlexiHours,
four: res['data']['dashboardGraphData'].bookedFlexiShifts,
five: res['data']['dashboardGraphData'].assignFlexiHours,
six: res['data']['dashboardGraphData'].assignFlexiShifts,
};
this.overviewHeaderData.emit(this.headerData);
}
this.getGraphData();
this.dayViewGraph(this.dayArr[0]);
});
}
getGraphData() {
this.graphNeed = [];
this.graphNeedAssign = [];
this.graphBooked = [];
this.graphHrNeed = [];
this.graphHrNeedAssign = [];
this.graphHrBooked = [];
this.rawGraph = this.shiftRead['graphDataWeb'];
const weekdays = [];
moment__WEBPACK_IMPORTED_MODULE_1__["updateLocale"]('en', {
week: {
dow: 1,
},
});
for (var i = 0; i < 7; i++) {
weekdays.push(moment__WEBPACK_IMPORTED_MODULE_1__(this.StartDate).weekday(i).format('DD-MM-YYYY'));
}
const graphRawData = Object.keys(this.rawGraph).reverse();
for (let prop in weekdays) {
if (graphRawData.includes(weekdays[prop])) {
this.graphNeed.push(this.rawGraph[weekdays[prop]]['numberOfShifts'].need);
this.graphNeedAssign.push(this.rawGraph[weekdays[prop]]['numberOfShifts'].needAssign);
this.graphBooked.push(this.rawGraph[weekdays[prop]]['numberOfShifts'].booked);
this.graphHrNeed.push(this.rawGraph[weekdays[prop]]['totalHours'].need);
this.graphHrNeedAssign.push(this.rawGraph[weekdays[prop]]['totalHours'].needAssign);
this.graphHrBooked.push(this.rawGraph[weekdays[prop]]['totalHours'].booked);
}
else {
this.graphNeed.push(0);
this.graphNeedAssign.push(0);
this.graphBooked.push(0);
this.graphHrNeed.push(0);
this.graphHrNeedAssign.push(0);
this.graphHrBooked.push(0);
}
}
this.changeHrAndNumber(true);
}
getWeeks() {
this.planShift.getWeeks(this.bu._id).subscribe((res) => {
let getDate = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').format("MM-DD-YYYY");
const count = res['data'].noOfWeek;
this.currentWeekCount = count;
if (count > 0) {
for (var i = -count; i <= count; i++) {
let dummyData = this.getWeekStartEndDate(getDate, 7 * (i));
this.buWeekArr.push(dummyData);
//localStorageService.set("WorkWeekList", $scope.myWeekRange);
}
}
//this.buWeekArr = res['data'].noOfWeek;
this.changeWeek('');
});
}
changeWeek(str) {
if (str == 'Nxt') {
this.weekCount =
this.weekCount < this.currentWeekCount
? this.weekCount + 1
: this.currentWeekCount;
}
else if (str == 'Prev') {
this.weekCount =
this.weekCount == -Math.abs(this.currentWeekCount)
? this.weekCount
: this.weekCount - 1;
}
else {
this.weekCount = 0;
}
this.currWeek =
this.buWeekArr[this.currentWeekCount + this.weekCount];
let startDaystr = this.currWeek.slice(0, 11);
let date = moment__WEBPACK_IMPORTED_MODULE_1__(startDaystr).format('MM-DD-YYYY');
this.StartDate = moment__WEBPACK_IMPORTED_MODULE_1__(startDaystr);
this.startDay = date + ` 00:00:00 ${this.gmtOffset}`;
let endDayString = moment__WEBPACK_IMPORTED_MODULE_1__(startDaystr)
.add(6, 'days')
.format('MM-DD-YYYY');
this.endDay = endDayString + ` 00:00:00 ${this.gmtOffset}`;
this.getShiftGraphData();
}
changeHrAndNumber(value) {
this.isHour = value;
if (value === true) {
this.hrAndShiftChartData = [
{
data: this.graphHrNeedAssign,
},
{
data: this.graphHrNeed,
},
{
data: this.graphHrBooked,
},
];
this.index = 2;
}
else {
this.hrAndShiftChartData = [
{
data: this.graphNeedAssign,
},
{
data: this.graphNeed,
},
{
data: this.graphBooked,
},
];
this.index = 1;
}
this.dayViewGraph(this.dayArr[0]);
}
// Day View Chart
dayViewGraph(i) {
this.bookShiftArr = [];
this.openShiftArr = [];
this.assignShiftArr = [];
this.yAxesLabel = [];
this.selectedDay = i;
const weeklyStaffGraphData = this.shiftRead['weeklyStaffGraphData'];
const bookShift = weeklyStaffGraphData.staffAppliedData[i.day];
for (let i in bookShift) {
this.bookShiftArr.push(bookShift[i][this.index]);
this.yAxesLabel.push(moment__WEBPACK_IMPORTED_MODULE_1__(bookShift[i][0]).format('HH:mm'));
}
const openShift = weeklyStaffGraphData.staffNeedData[i.day];
for (let i in openShift) {
this.openShiftArr.push(openShift[i][this.index]);
}
const assignShift = weeklyStaffGraphData.staffNeedDataAssing[i.day];
for (let i in assignShift) {
this.assignShiftArr.push(assignShift[i][this.index]);
}
this.dayChartData = [
{
label: 'Booked Open Shift',
data: this.bookShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'star',
},
{
label: 'Planned Open Shift',
data: this.openShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'rect',
},
{
label: 'Assign Shift',
data: this.assignShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'circle',
},
];
}
}
PlanOverviewComponent.ɵfac = function PlanOverviewComponent_Factory(t) { return new (t || PlanOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"])); };
PlanOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: PlanOverviewComponent, selectors: [["app-plan-overview"]], inputs: { isPlan: "isPlan", bu: "bu", shift: "shift", page: "page" }, outputs: { overviewHeaderData: "overviewHeaderData" }, decls: 27, vars: 10, consts: [[1, "card", "mb-3"], ["class", "row", 4, "ngIf"], [1, "card-header", "bg-theme"], [1, "m-0"], [1, "card-body"], [1, "col-md-12", "flexDisplay"], [1, "red"], [1, "floatButtons"], ["type", "button", 1, "btn", 3, "ngClass", "click"], ["type", "button", 1, "btn", "ml-2", 3, "ngClass", "click"], ["class", "d-flex align-items-baseline justify-content-between", 4, "ngIf"], ["class", "hrAndShiftChart", 4, "ngIf"], [1, "card"], [1, "card-header", "flexi-header", "header"], [1, "col-md-12", "mb-2", "no-padding"], ["class", "dayButton", 3, "bg-theme", "click", 4, "ngFor", "ngForOf"], ["class", "dayChart", 4, "ngIf"], [1, "row"], [1, "col-md-12"], [1, "form-group", "ml-3", "mt-2"], ["for", "", 1, "font-weight-500"], ["class", "d-flex", 4, "ngIf"], ["count", "1", 3, "theme", 4, "ngIf"], [1, "d-flex"], ["title", "Previous Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-left", 3, "click"], [1, "material-icons"], [1, "weekInput", "d-flex", "align-items-center"], ["title", "Next Week", 1, "weekbtn", "d-flex", "justify-content-center", "align-items-center", "rounded-right", 3, "click"], ["count", "1", 3, "theme"], [1, "d-flex", "align-items-baseline", "justify-content-between"], [1, "hrAndShiftChart"], ["baseChart", "", 3, "chartType", "datasets", "labels", "options", "legend", "colors"], [1, "dayButton", 3, "click"], [1, "dayChart"], ["count", "5", 3, "theme"], ["baseChart", "", 3, "chartType", "labels", "datasets", "options", "colors", "legend"]], template: function PlanOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, PlanOverviewComponent_div_1_Template, 7, 2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "PLANNED SHIFTS OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanOverviewComponent_Template_button_click_12_listener() { return ctx.changeHrAndNumber(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Total Shift Hrs ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanOverviewComponent_Template_button_click_14_listener() { return ctx.changeHrAndNumber(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Total Number of Shifts ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, PlanOverviewComponent_div_16_Template, 8, 14, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, PlanOverviewComponent_div_17_Template, 2, 6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "CHOOSE FOR DAY VIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, PlanOverviewComponent_button_24_Template, 2, 3, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, PlanOverviewComponent_div_25_Template, 2, 2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, PlanOverviewComponent_div_26_Template, 2, 6, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isPlan);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.bu.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.isHour ? "Hours" : "Shifts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isHour ? "bg-theme" : "btn-outline-info");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isHour ? "btn-outline-info" : "bg-theme");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.graphLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.graphLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.dayArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.graphLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.graphLoader);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_6__["NgxSkeletonLoaderComponent"], ng2_charts__WEBPACK_IMPORTED_MODULE_7__["BaseChartDirective"]], styles: [".btn-default[_ngcontent-%COMP%] {\n border-color: #adadad;\n border-radius: 4px;\n margin-left: 0.25rem;\n}\n\n.floatButtons[_ngcontent-%COMP%] {\n float: right;\n}\n\n.red[_ngcontent-%COMP%] {\n border-color: #a42138;\n color: #a42138;\n}\n\n.flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-left: 10px;\n font-weight: 500;\n color: #a42138;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover, .dayButton[_ngcontent-%COMP%]:focus {\n outline: none;\n background-color: #a42138;\n color: white !important;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.weekbtn[_ngcontent-%COMP%] {\n width: 36px;\n border: 1px solid #a42138;\n height: 36px;\n text-align: center;\n float: left;\n background: #faacac;\n color: #a42138;\n cursor: pointer;\n transition: all 0.3s;\n}\n\n.weekbtn[_ngcontent-%COMP%]:hover {\n background: #a42138;\n color: #fff;\n}\n\n.weekInput[_ngcontent-%COMP%] {\n height: 36px;\n border-top: 1px solid #a42138;\n border-bottom: 1px solid #a42138;\n text-align: center;\n float: left;\n padding: 5px;\n font-weight: bold;\n padding-left: 15px;\n padding-right: 15px;\n background: #fff;\n}\n\n.loader[_ngcontent-%COMP%] {\n border: 8px solid #f3f3f3;\n border-radius: 50%;\n border-top: 8px solid #a42138;\n border-bottom: 8px solid #a42138;\n width: 100px;\n height: 100px;\n animation: spin 2s linear infinite;\n}\n\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.loadingBox[_ngcontent-%COMP%] {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: 1;\n background: #b39a9abd;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9wbGFuLW92ZXJ2aWV3L3BsYW4tb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0Esb0JBQUE7QUFDRjs7QUFFQTtFQUNFLFlBQUE7QUFDRjs7QUFFQTtFQUNFLHFCQUFBO0VBQ0EsY0FBQTtBQUNGOztBQUlBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBREY7O0FBSUE7RUFDRSxjQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSw2QkFBQTtFQUNBLGtCQUFBO0VBQ0EsdUJBQUE7QUFERjs7QUFJQTs7RUFFRSxhQUFBO0VBQ0EseUJBQUE7RUFDQSx1QkFBQTtBQURGOztBQUlBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0FBREY7O0FBSUE7RUFDRSxVQUFBO0FBREY7O0FBSUE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsbUJBQUE7RUFDQSxjQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0FBREY7O0FBR0U7RUFDRSxtQkFBQTtFQUNBLFdBQUE7QUFESjs7QUFLQTtFQUNFLFlBQUE7RUFDQSw2QkFBQTtFQUNBLGdDQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0FBRkY7O0FBS0E7RUFDRSx5QkFBQTtFQUNFLGtCQUFBO0VBQ0EsNkJBQUE7RUFDQSxnQ0FBQTtFQUNBLFlBQUE7RUFDQSxhQUFBO0VBRUEsa0NBQUE7QUFGSjs7QUFjQTtFQUNFO0lBQ0UsdUJBQUE7RUFIRjtFQUtBO0lBQ0UseUJBQUE7RUFIRjtBQUNGOztBQU1BO0VBQ0UsWUFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxxQkFBQTtBQUpGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9wbGFuLW92ZXJ2aWV3L3BsYW4tb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuYnRuLWRlZmF1bHQge1xuICBib3JkZXItY29sb3I6ICNhZGFkYWQ7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgbWFyZ2luLWxlZnQ6IDAuMjVyZW07XG59XG5cbi5mbG9hdEJ1dHRvbnMge1xuICBmbG9hdDogcmlnaHQ7XG59XG5cbi5yZWQge1xuICBib3JkZXItY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjYTQyMTM4O1xufVxuXG5cblxuLmZsZXhEaXNwbGF5IHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG4uZGF5QnV0dG9uIHtcbiAgaGVpZ2h0OiAyLjVyZW07XG4gIHdpZHRoOiAyLjVyZW07XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgbWFyZ2luLWxlZnQ6IDEwcHg7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIGNvbG9yOiAjYTQyMTM4O1xuICBib3JkZXI6IDFweCBzb2xpZCB0cmFuc3BhcmVudDtcbiAgYm9yZGVyLWNvbG9yOiAjY2NjO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbn1cblxuLmRheUJ1dHRvbjpob3Zlcixcbi5kYXlCdXR0b246Zm9jdXMge1xuICBvdXRsaW5lOiBub25lO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cblxuLmJnLXRoZW1lIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG59XG5cbi5uby1wYWRkaW5nIHtcbiAgcGFkZGluZzogMDtcbn1cblxuLndlZWtidG4ge1xuICB3aWR0aDogMzZweDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2E0MjEzODtcbiAgaGVpZ2h0OiAzNnB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGZsb2F0OiBsZWZ0O1xuICBiYWNrZ3JvdW5kOiAjZmFhY2FjO1xuICBjb2xvcjogI2E0MjEzODtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICB0cmFuc2l0aW9uOiBhbGwgMC4zcztcblxuICAmOmhvdmVyIHtcbiAgICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICAgIGNvbG9yOiAjZmZmO1xuICB9XG59XG5cbi53ZWVrSW5wdXQge1xuICBoZWlnaHQ6IDM2cHg7XG4gIGJvcmRlci10b3A6IDFweCBzb2xpZCAjYTQyMTM4O1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2E0MjEzODtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBmbG9hdDogbGVmdDtcbiAgcGFkZGluZzogNXB4O1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgcGFkZGluZy1sZWZ0OiAxNXB4O1xuICBwYWRkaW5nLXJpZ2h0OiAxNXB4O1xuICBiYWNrZ3JvdW5kOiAjZmZmO1xufVxuXG4ubG9hZGVyIHtcbiAgYm9yZGVyOiA4cHggc29saWQgI2YzZjNmMztcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgYm9yZGVyLXRvcDogOHB4IHNvbGlkICNhNDIxMzg7XG4gICAgYm9yZGVyLWJvdHRvbTogOHB4IHNvbGlkICNhNDIxMzg7XG4gICAgd2lkdGg6IDEwMHB4O1xuICAgIGhlaWdodDogMTAwcHg7XG4gICAgLXdlYmtpdC1hbmltYXRpb246IHNwaW4gMnMgbGluZWFyIGluZmluaXRlO1xuICAgIGFuaW1hdGlvbjogc3BpbiAycyBsaW5lYXIgaW5maW5pdGU7XG59XG5cbkAtd2Via2l0LWtleWZyYW1lcyBzcGluIHtcbiAgMCUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7XG4gIH1cbiAgMTAwJSB7XG4gICAgLXdlYmtpdC10cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgc3BpbiB7XG4gIDAlIHtcbiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgwZGVnKTtcbiAgfVxuICAxMDAlIHtcbiAgICB0cmFuc2Zvcm06IHJvdGF0ZSgzNjBkZWcpO1xuICB9XG59XG5cbi5sb2FkaW5nQm94IHtcbiAgaGVpZ2h0OiAxMDAlO1xuICB3aWR0aDogMTAwJTtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB6LWluZGV4OiAxO1xuICBiYWNrZ3JvdW5kOiAjYjM5YTlhYmQ7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlanOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-plan-overview',
templateUrl: './plan-overview.component.html',
styleUrls: ['./plan-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_4__["ShiftSchedulerService"] }]; }, { isPlan: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], shift: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], page: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], overviewHeaderData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "UICD":
/*!***************************************************************!*\
!*** ./src/app/users/pages/auth/support/support.component.ts ***!
\***************************************************************/
/*! exports provided: SupportComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SupportComponent", function() { return SupportComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/auth/auth.service */ "PxIJ");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
function SupportComponent_div_11_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Name is Required");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SupportComponent_div_11_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Please Enter a Valid Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SupportComponent_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, SupportComponent_div_11_span_1_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, SupportComponent_div_11_span_2_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.name.errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.name.errors.pattern);
} }
function SupportComponent_div_16_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Email is Required");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SupportComponent_div_16_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Please Enter a Valid Email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SupportComponent_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, SupportComponent_div_16_span_1_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, SupportComponent_div_16_span_2_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.emailId.errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.emailId.errors.email);
} }
function SupportComponent_div_21_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Phone is Required");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SupportComponent_div_21_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Please Enter a Valid Phone Number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SupportComponent_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, SupportComponent_div_21_span_1_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, SupportComponent_div_21_span_2_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.phone.errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.phone.errors.pattern);
} }
function SupportComponent_span_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Feedback is Required");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
class SupportComponent {
constructor(router, route, auth, toastService) {
this.router = router;
this.route = route;
this.auth = auth;
this.toastService = toastService;
this.supportForm = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
name: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]('', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern('^[A-Za-z ]{3,26}$')]),
emailId: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]('', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].email]),
phone: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]('', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern('^[6-9][0-9]{9}$')]),
feedback: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"]('', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required)
});
}
get name() {
return this.supportForm.get('name');
}
get emailId() {
return this.supportForm.get('emailId');
}
get phone() {
return this.supportForm.get('phone');
}
get feedback() {
return this.supportForm.get('feedback');
}
ngOnInit() {
this.route.params
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])((value) => this.companyName = value.name), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((v) => v.name), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["switchMap"])((name) => this.auth.fetchCompanyId(name)))
.subscribe((res) => {
this.forgetPasswordForm.patchValue({
companyId: res.data._id,
});
});
}
backToLogin() {
this.router.navigate(['/users/login/', this.companyName]);
}
submitForm() {
const sub = this.auth
.sendSupportQuery(this.supportForm.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.toastService.success('Message Sent Successfully');
this.router.navigate(['/users/login/', this.companyName]);
}, (error) => {
});
}
}
SupportComponent.ɵfac = function SupportComponent_Factory(t) { return new (t || SupportComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
SupportComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SupportComponent, selectors: [["app-support"]], decls: 35, vars: 6, consts: [[1, "p-4", "card-container"], [1, "card", "card-main"], [1, "card-body"], [1, "form-container"], [3, "formGroup"], [1, "form-group"], [1, "form-label"], ["type", "text", "placeholder", "Enter your name here", "formControlName", "name", 1, "form-control", "form-input"], ["class", "error-container", 4, "ngIf"], ["for", "exampleInputPassword1", 1, "form-label"], ["type", "email", "id", "exampleInputPassword1", "formControlName", "emailId", "placeholder", "Enter your Email here", 1, "form-control", "form-input"], ["type", "tel", "id", "exampleInputPassword1", "formControlName", "phone", "placeholder", "Enter your Phone here", 1, "form-control", "form-input"], ["id", "exampleFormControlTextarea1", "rows", "4", "formControlName", "feedback", "placeholder", "Enter your Feedback here", 1, "form-control"], [1, "error-container"], [4, "ngIf"], [1, "justify-content-SB"], [1, "back-button", 3, "click"], [1, "btn", "btn-success", 3, "disabled", "click"]], template: function SupportComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Post your query");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Name*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, SupportComponent_div_11_Template, 3, 2, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Email*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, SupportComponent_div_16_Template, 3, 2, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Phone*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, SupportComponent_div_21_Template, 3, 2, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Feedback*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "textarea", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, SupportComponent_span_27_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SupportComponent_Template_a_click_30_listener() { return ctx.backToLogin(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Back to Login");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "button", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SupportComponent_Template_button_click_33_listener() { return ctx.submitForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "Submit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.supportForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.name.invalid && ctx.name.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.emailId.invalid && ctx.emailId.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.phone.invalid && ctx.phone.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.feedback.invalid && ctx.feedback.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx.supportForm.valid);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_6__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"]], styles: [".card-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100vh;\n text-align: center;\n background-image: url('loginBg.jpg');\n background-size: contain;\n}\n\n.card-main[_ngcontent-%COMP%] {\n width: 450px;\n padding: 30px;\n}\n\n.form-container[_ngcontent-%COMP%] {\n text-align: left;\n}\n\n.form-label[_ngcontent-%COMP%] {\n font-weight: 700;\n font-size: 16px;\n}\n\n.form-input[_ngcontent-%COMP%] {\n height: 40px;\n}\n\n.justify-content-SB[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.back-button[_ngcontent-%COMP%] {\n font-size: 16px;\n cursor: pointer;\n}\n\n.error-container[_ngcontent-%COMP%] {\n color: #f44336;\n font-weight: 600;\n margin-top: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC9zdXBwb3J0L3N1cHBvcnQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLG9DQUFBO0VBQ0Esd0JBQUE7QUFDSjs7QUFFQTtFQUNJLFlBQUE7RUFDQSxhQUFBO0FBQ0o7O0FBR0E7RUFDSSxnQkFBQTtBQUFKOztBQUdBO0VBQ0ksZ0JBQUE7RUFDQSxlQUFBO0FBQUo7O0FBR0E7RUFDSSxZQUFBO0FBQUo7O0FBR0E7RUFDSSxhQUFBO0VBQ0EsOEJBQUE7QUFBSjs7QUFHQTtFQUNJLGVBQUE7RUFDQSxlQUFBO0FBQUo7O0FBR0E7RUFDSSxjQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQUFKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC9zdXBwb3J0L3N1cHBvcnQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuY2FyZC1jb250YWluZXJ7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGhlaWdodDogMTAwdmg7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIGJhY2tncm91bmQtaW1hZ2U6IHVybCgnLi4vLi4vLi4vLi4vLi4vYXNzZXRzL2ltYWdlcy9sb2dpbkJnLmpwZycpO1xuICAgIGJhY2tncm91bmQtc2l6ZTogY29udGFpbjtcbn1cblxuLmNhcmQtbWFpbiB7XG4gICAgd2lkdGg6IDQ1MHB4O1xuICAgIHBhZGRpbmc6IDMwcHg7XG59XG5cblxuLmZvcm0tY29udGFpbmVye1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG59XG5cbi5mb3JtLWxhYmVse1xuICAgIGZvbnQtd2VpZ2h0OiA3MDA7XG4gICAgZm9udC1zaXplOiAxNnB4O1xufVxuXG4uZm9ybS1pbnB1dHtcbiAgICBoZWlnaHQ6IDQwcHg7XG59XG5cbi5qdXN0aWZ5LWNvbnRlbnQtU0J7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5iYWNrLWJ1dHRvbntcbiAgICBmb250LXNpemU6IDE2cHg7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uZXJyb3ItY29udGFpbmVye1xuICAgIGNvbG9yOiAjZjQ0MzM2O1xuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XG4gICAgbWFyZ2luLXRvcDogMTBweDtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SupportComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-support',
templateUrl: './support.component.html',
styleUrls: ['./support.component.scss']
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] }, { type: src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "UOI9":
/*!**********************************************************************************************************!*\
!*** ./src/app/users/pages/communication/board-setup/boards-overview/view-board/view-board.component.ts ***!
\**********************************************************************************************************/
/*! exports provided: ViewBoardComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewBoardComponent", function() { return ViewBoardComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/board-setup/board-setup.service */ "UtxO");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
function ViewBoardComponent_div_26_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewBoardComponent_div_26_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.iconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Upload Form Logo ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewBoardComponent_div_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r1.validateURLImage(ctx_r1.wallCreateForm.get("bannerImage").value), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewBoardComponent_div_112_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Allow nomination only by Administrator");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Limit max number of nomination that can be submitted per user ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "input", 63, 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewBoardComponent_div_112_Template_input_change_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.toggleDisableNumberofNomination(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "span", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Monthly ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " Quarterly ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, " Bi-annually ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](27, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " Yearly ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r2.numberOfNomination ? null : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 4);
} }
function ViewBoardComponent_div_113_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Limit how many times I can nominate each user ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "input", 63, 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewBoardComponent_div_113_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.toggleDisableNominateEachUser(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "span", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Monthly ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, " Quarterly ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, " Bi-annually ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, " Yearly ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r3.limitNomination ? null : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 4);
} }
function ViewBoardComponent_div_128_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r14 = ctx.$implicit;
const index_r15 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroupName", index_r15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", field_r14.get("categoryName").value, " ");
} }
function ViewBoardComponent_div_129_tr_18_ul_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("All Business Units Selected (", item_r17.allBuTokenStaffId, ")");
} }
function ViewBoardComponent_div_129_tr_18_ul_3_li_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const bu_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](bu_r25.orgName ? bu_r25.orgName : bu_r25.name);
} }
function ViewBoardComponent_div_129_tr_18_ul_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewBoardComponent_div_129_tr_18_ul_3_li_1_Template, 2, 1, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r17 == null ? null : item_r17.allBuToken) == false);
} }
function ViewBoardComponent_div_129_tr_18_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r29 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r29.name);
} }
function ViewBoardComponent_div_129_tr_18_ul_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r30 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r30.name);
} }
function ViewBoardComponent_div_129_tr_18_ul_9_li_1_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](current_r31.name);
} }
function ViewBoardComponent_div_129_tr_18_ul_9_li_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewBoardComponent_div_129_tr_18_ul_9_li_1_span_1_Template, 2, 1, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", current_r31.staffId !== "admin001");
} }
function ViewBoardComponent_div_129_tr_18_ul_9_li_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", current_r31.name, "");
} }
function ViewBoardComponent_div_129_tr_18_ul_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewBoardComponent_div_129_tr_18_ul_9_li_1_Template, 2, 1, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewBoardComponent_div_129_tr_18_ul_9_li_2_Template, 2, 1, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r17.firstAdminAddedAsDefault == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r17 == null ? null : item_r17.firstAdminAddedAsDefault) == false || !(item_r17 == null ? null : item_r17.firstAdminAddedAsDefault));
} }
function ViewBoardComponent_div_129_tr_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewBoardComponent_div_129_tr_18_ul_2_Template, 3, 1, "ul", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ViewBoardComponent_div_129_tr_18_ul_3_Template, 2, 1, "ul", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ViewBoardComponent_div_129_tr_18_ul_5_Template, 3, 1, "ul", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ViewBoardComponent_div_129_tr_18_ul_7_Template, 3, 1, "ul", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ViewBoardComponent_div_129_tr_18_ul_9_Template, 3, 2, "ul", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r17 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r17.allBuToken == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r17.businessUnits);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r17.appointments);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r17.user);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r17.admin);
} }
function ViewBoardComponent_div_129_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "SELECTED INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "table", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "APPOINTMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "SELECTED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "SELECTED ADMINISTRATOR");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ViewBoardComponent_div_129_tr_18_Template, 10, 5, "tr", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.userDetails);
} }
class ViewBoardComponent {
constructor(formBuilder, boardService, toastService) {
this.formBuilder = formBuilder;
this.boardService = boardService;
this.toastService = toastService;
this.userDetails = [];
this.boardId = null;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.isNominationOpen = true;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].imageUrl;
}
ngOnInit() {
this.initForm();
this.boardId && this.getFormForEdit(this.boardId);
}
initForm() {
this.wallCreateForm = this.formBuilder.group({
wallName: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
displayType: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
postType: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
isNomineeActive: [true, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
adminResponse: [true, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
postAnonymously: [true, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
isTaskActive: [true, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
quickNavEnabled: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
bannerImage: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
category: this.formBuilder.array([]),
nominationOnlyByAdmin: [true],
nominationPerUser: this.formBuilder.group({
enabled: [true],
submissionLimit: null,
submissionPeriod: null,
}),
maxNomination: this.formBuilder.group({
enabled: [true],
submissionLimit: [''],
submissionPeriod: null,
}),
});
}
get CategorytControl() {
return this.wallCreateForm.get('category');
}
onCancelEdit() {
this.overViewEvent.emit(null);
}
getFormForEdit(data) {
this.userDetails = data.assignUsers;
const control = this.CategorytControl;
data.category.forEach((element) => {
let field = this.formBuilder.group({
categoryName: [element.categoryName, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
});
control.push(field);
});
this.wallCreateForm.patchValue({
wallName: data.wallName,
displayType: data.displayType,
postType: data.postType,
isNomineeActive: data.isNomineeActive,
nominationOnlyByAdmin: data.nominationOnlyByAdmin,
nominationPerUser: Object.assign({}, data.nominationPerUser),
maxNomination: Object.assign({}, data.maxNomination),
adminResponse: data.adminResponse,
postAnonymously: data.postAnonymously,
isTaskActive: data.isTaskActive,
quickNavEnabled: data.quickNavEnabled,
bannerImage: data.bannerImage,
});
}
nominationMenuTrue() {
this.isNominationOpen = true;
}
nominationMenuFalse() {
this.isNominationOpen = false;
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
ViewBoardComponent.ɵfac = function ViewBoardComponent_Factory(t) { return new (t || ViewBoardComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_3__["BoardSetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"])); };
ViewBoardComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewBoardComponent, selectors: [["view-board"]], inputs: { boardId: "boardId" }, outputs: { overViewEvent: "overViewEvent" }, decls: 130, vars: 20, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], ["type", "button", 1, "btn", "pull-right", "btn-outline-light", 3, "click"], [1, "card-body"], [3, "formGroup"], [1, "row"], [1, "col-md-6", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "font-weight-bold"], ["type", "text", "disabled", "", "placeholder", "wall name", "formControlName", "wallName", "required", "", 1, "form-control"], [1, "form-group", "pr-0"], ["type", "checkbox", "disabled", "", "formControlName", "quickNavEnabled"], [4, "ngIf"], [1, "col-3", "mt-1"], ["for", "", 1, "red-label"], [1, "d-flex", "justify-content-between", "p-3", 2, "width", "22vw"], [1, "radio", "radio-danger", "radio-inline", "p-1"], ["disabled", "", "type", "radio", "formControlName", "displayType", "id", "postSubReqTru", 3, "value"], ["for", "postSubReqTru"], ["disabled", "", "type", "radio", "id", "postSubReqFals", "formControlName", "displayType", 3, "value"], ["for", "postSubReqFals"], [1, "d-flex", "justify-content-between", "p-3", 2, "width", "21.5vw"], ["disabled", "", "type", "radio", "formControlName", "postType", "id", "postSubReqTr", 3, "value"], ["for", "postSubReqTr"], ["disabled", "", "type", "radio", "id", "postSubReqFal", "formControlName", "postType", 3, "value"], ["for", "postSubReqFal"], ["for", "", 1, "font-weight-bold"], [1, "d-flex", "justify-content-between", "p-3"], ["disabled", "", "type", "radio", "formControlName", "isTaskActive", "id", "postSubReqT", 3, "value"], ["for", "postSubReqT"], ["disabled", "", "type", "radio", "id", "postSubReqF", "formControlName", "isTaskActive", 3, "value"], ["for", "postSubReqF"], ["disabled", "", "type", "radio", "formControlName", "isNomineeActive", "id", "postSubReq", 3, "value"], ["for", "postSubReq"], ["disabled", "", "type", "radio", "id", "postSubRe", "formControlName", "isNomineeActive", 3, "value"], ["for", "postSubRe"], ["disabled", "", "type", "radio", "formControlName", "adminResponse", "id", "postadminresponsetrue", 3, "value"], ["for", "postadminresponsetrue"], ["disabled", "", "type", "radio", "formControlName", "adminResponse", "id", "postadminresponsefalse", 3, "value"], ["for", "postadminresponsefalse"], ["disabled", "", "type", "radio", "formControlName", "postAnonymously", "id", "isAnonymouslyActivetrue", 3, "value"], ["for", "isAnonymouslyActivetrue"], ["disabled", "", "type", "radio", "formControlName", "postAnonymously", "id", "isAnonymouslyActivefalse", 3, "value"], ["for", "isAnonymouslyActivefalse"], ["formGroupName", "maxNomination", 4, "ngIf"], [1, "card-header", "flexi-header"], [1, "col-md-6"], [1, "pb-2", "font-weight-bold"], ["disabled", "", 1, "btn", "p-1", "ml-1"], ["disabled", "", 1, "dropdown-select", "w-100", "form-control"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap", "margin-top", "25px"], ["formArrayName", "category", 4, "ngFor", "ngForOf"], ["class", "card my-3 w-100", 4, "ngIf"], [1, "custom-file", "mt-0", "w-50", "pt-4", "pb-4", 2, "width", "67px"], ["type", "file", "disabled", "", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "100%", "opacity", "0", 3, "change"], ["for", "b", 1, "custom-file-label"], [1, "image-with-delete-icon", "width-180"], ["width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", 3, "src"], [1, "form-check"], ["disabled", "", "type", "checkbox", "formControlName", "nominationOnlyByAdmin", 1, "form-check-input"], ["for", "exampleCheck1", 1, "form-check-label", "mt-1", "ml-2"], ["formGroupName", "nominationPerUser"], [1, "container", "mt-4", "ml-0", "red-label"], ["disabled", "", "type", "checkbox", "formControlName", "enabled", 3, "change"], ["el", ""], [1, "checkmark"], [1, "justify-content-SB", "col-8", "ml-4"], ["disabled", "", "type", "text", "aria-describedby", "emailHelp", "type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 4) return false;", "placeholder", "Enter Max Submissions", "formControlName", "submissionLimit", 1, "form-control"], ["disabled", "", "type", "radio", "formControlName", "submissionPeriod", 1, "form-check-input", 3, "value"], [1, "form-check-label", "ml-2", "mt-1"], ["formGroupName", "maxNomination"], ["disabled", "", "type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 4) return false;", "aria-describedby", "emailHelp", "placeholder", "Enter Max Submissions", "formControlName", "submissionLimit", 1, "form-control"], ["formArrayName", "category"], [1, "text-items", "list-ui", 3, "formGroupName"], [1, "table-responsive"], [1, "table"], [4, "ngFor", "ngForOf"]], template: function ViewBoardComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "SOCIAL WALL GROUP DETAIL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewBoardComponent_Template_button_click_4_listener() { return ctx.onCancelEdit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Social Wall Group Name (Limit to 100 characters)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " Allow this form to be placed in quick navigation ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Social Icon");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, ViewBoardComponent_div_26_Template, 5, 0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, ViewBoardComponent_div_27_Template, 3, 1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Listing Display Setup");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "input", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, " Consolidated");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](39, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "label", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Separate track");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Post Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](49, "input", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, " Long Wall Post");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](53, "input", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, " Tall Wall Post");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, "Tasking");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](63, "input", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](67, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, " No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, "Nomination");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](77, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "label", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](79, " Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](81, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](85, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](87, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](88, "Admin Response");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](91, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](92, "label", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](93, " Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](95, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](97, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](98, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](99, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](100, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](101, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](102, "Allow posts to be created anonymously?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](104, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](105, "input", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](106, "label", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](107, " Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](108, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](109, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](110, "label", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](111, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](112, ViewBoardComponent_div_112_Template, 30, 5, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](113, ViewBoardComponent_div_113_Template, 25, 5, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](114, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](115, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](116, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](117, "CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](118, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](119, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](120, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](121, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](122, "label", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](123, " Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](124, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](125, "select", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](126, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](127, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](128, ViewBoardComponent_div_128_Template, 3, 2, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](129, ViewBoardComponent_div_129_Template, 19, 1, "div", 52);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.wallCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.wallCreateForm.get("bannerImage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.wallCreateForm.get("bannerImage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.wallCreateForm.value.isNomineeActive);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.wallCreateForm.value.isNomineeActive);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.wallCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.CategorytControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.userDetails.length != 0);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["PatternValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormArrayName"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\n\ninput[type=radio][_ngcontent-%COMP%] {\n margin-right: 10px;\n}\n\n.container[_ngcontent-%COMP%] {\n display: block;\n position: relative;\n padding-left: 35px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n -webkit-user-select: none;\n user-select: none;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n\n\n\n.checkmark[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n height: 20px;\n width: 20px;\n background-color: white;\n border: 2px solid #008000a3;\n border-radius: 5px;\n cursor: not-allowed;\n}\n\n.checkmark[_ngcontent-%COMP%]:hover {\n color: red;\n}\n\n\n\n.container[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%] {\n background-color: white;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%] {\n background-color: white;\n}\n\n\n\n.checkmark[_ngcontent-%COMP%]:after {\n content: \"\";\n position: absolute;\n display: none;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after {\n display: block;\n}\n\n\n\n.container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after {\n left: 7px;\n bottom: 2px;\n width: 10px;\n height: 20px;\n border: solid #008000a3;\n border-width: 0 4px 4px 0;\n transform: rotate(45deg);\n}\n\n.justify-content-SB[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ib2FyZC1zZXR1cC9ib2FyZHMtb3ZlcnZpZXcvdmlldy1ib2FyZC92aWV3LWJvYXJkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBO0VBQ0UscUJBQUE7RUFDQSxVQUFBO0FBQUY7O0FBR0E7RUFDRSxrQkFBQTtBQUFGOztBQUdBO0VBQ0UsY0FBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtFQUNBLGVBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSx5QkFBQTtFQUdBLGlCQUFBO0FBQUY7O0FBR0Esd0NBQUE7O0FBQ0E7RUFDRSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxlQUFBO0VBQ0EsU0FBQTtFQUNBLFFBQUE7QUFBRjs7QUFHQSw2QkFBQTs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsTUFBQTtFQUNBLE9BQUE7RUFDQSxZQUFBO0VBQ0EsV0FBQTtFQUNBLHVCQUFBO0VBQ0EsMkJBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBQUY7O0FBRUE7RUFDRSxVQUFBO0FBQ0Y7O0FBRUEsK0NBQUE7O0FBQ0E7RUFDRSx1QkFBQTtBQUNGOztBQUVBLHdEQUFBOztBQUNBO0VBQ0UsdUJBQUE7QUFDRjs7QUFHQSw2REFBQTs7QUFDQTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtFQUNBLGFBQUE7QUFBRjs7QUFHQSxvQ0FBQTs7QUFDQTtFQUNFLGNBQUE7QUFBRjs7QUFHQSxrQ0FBQTs7QUFDQTtFQUNFLFNBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSx1QkFBQTtFQUNBLHlCQUFBO0VBR0Esd0JBQUE7QUFBRjs7QUFHQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUFGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ib2FyZC1zZXR1cC9ib2FyZHMtb3ZlcnZpZXcvdmlldy1ib2FyZC92aWV3LWJvYXJkLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiXG51bHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICBwYWRkaW5nOiAwO1xufVxuXG5pbnB1dFt0eXBlPVwicmFkaW9cIl0ge1xuICBtYXJnaW4tcmlnaHQ6IDEwcHg7XG59XG5cbi5jb250YWluZXIge1xuICBkaXNwbGF5OiBibG9jaztcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBwYWRkaW5nLWxlZnQ6IDM1cHg7XG4gIG1hcmdpbi1ib3R0b206IDEycHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBmb250LXdlaWdodDogNjAwO1xuICAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lO1xuICAtbW96LXVzZXItc2VsZWN0OiBub25lO1xuICAtbXMtdXNlci1zZWxlY3Q6IG5vbmU7XG4gIHVzZXItc2VsZWN0OiBub25lO1xufVxuXG4vKiBIaWRlIHRoZSBicm93c2VyJ3MgZGVmYXVsdCBjaGVja2JveCAqL1xuLmNvbnRhaW5lciBpbnB1dCB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgb3BhY2l0eTogMDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBoZWlnaHQ6IDA7XG4gIHdpZHRoOiAwO1xufVxuXG4vKiBDcmVhdGUgYSBjdXN0b20gY2hlY2tib3ggKi9cbi5jaGVja21hcmsge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMDtcbiAgbGVmdDogMDtcbiAgaGVpZ2h0OiAyMHB4O1xuICB3aWR0aDogMjBweDtcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG4gIGJvcmRlcjogMnB4IHNvbGlkICMwMDgwMDBhMztcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICBjdXJzb3I6IG5vdC1hbGxvd2VkO1xufVxuLmNoZWNrbWFyazpob3ZlcntcbiAgY29sb3I6IHJlZDtcbn1cblxuLyogT24gbW91c2Utb3ZlciwgYWRkIGEgZ3JleSBiYWNrZ3JvdW5kIGNvbG9yICovXG4uY29udGFpbmVyOmhvdmVyIGlucHV0IH4gLmNoZWNrbWFyayB7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xufVxuXG4vKiBXaGVuIHRoZSBjaGVja2JveCBpcyBjaGVja2VkLCBhZGQgYSBibHVlIGJhY2tncm91bmQgKi9cbi5jb250YWluZXIgaW5wdXQ6Y2hlY2tlZCB+IC5jaGVja21hcmsge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbiAgXG59XG5cbi8qIENyZWF0ZSB0aGUgY2hlY2ttYXJrL2luZGljYXRvciAoaGlkZGVuIHdoZW4gbm90IGNoZWNrZWQpICovXG4uY2hlY2ttYXJrOmFmdGVyIHtcbiAgY29udGVudDogXCJcIjtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4vKiBTaG93IHRoZSBjaGVja21hcmsgd2hlbiBjaGVja2VkICovXG4uY29udGFpbmVyIGlucHV0OmNoZWNrZWQgfiAuY2hlY2ttYXJrOmFmdGVyIHtcbiAgZGlzcGxheTogYmxvY2s7XG59XG5cbi8qIFN0eWxlIHRoZSBjaGVja21hcmsvaW5kaWNhdG9yICovXG4uY29udGFpbmVyIC5jaGVja21hcms6YWZ0ZXIge1xuICBsZWZ0OiA3cHg7XG4gIGJvdHRvbTogMnB4O1xuICB3aWR0aDogMTBweDtcbiAgaGVpZ2h0OiAyMHB4O1xuICBib3JkZXI6IHNvbGlkICMwMDgwMDBhMztcbiAgYm9yZGVyLXdpZHRoOiAwIDRweCA0cHggMDtcbiAgLXdlYmtpdC10cmFuc2Zvcm06IHJvdGF0ZSg0NWRlZyk7XG4gIC1tcy10cmFuc2Zvcm06IHJvdGF0ZSg0NWRlZyk7XG4gIHRyYW5zZm9ybTogcm90YXRlKDQ1ZGVnKTtcbn1cblxuLmp1c3RpZnktY29udGVudC1TQntcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewBoardComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'view-board',
templateUrl: './view-board.component.html',
styleUrls: ['./view-board.component.scss']
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_3__["BoardSetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }]; }, { boardId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "UhSo":
/*!*********************************************!*\
!*** ./src/app/shared/pipes/filter.pipe.ts ***!
\*********************************************/
/*! exports provided: FilterPipe */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FilterPipe", function() { return FilterPipe; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
class FilterPipe {
transform(value, searchTerm) {
if (searchTerm == null) {
return value;
}
return value.filter((search) => {
return (search.userInfo.name.toLowerCase().indexOf(searchTerm.toLowerCase()) >
-1 ||
search.userInfo.staffId
.toLowerCase()
.indexOf(searchTerm.toLowerCase()) > -1);
});
}
}
FilterPipe.ɵfac = function FilterPipe_Factory(t) { return new (t || FilterPipe)(); };
FilterPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "filter", type: FilterPipe, pure: false });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FilterPipe, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
args: [{
name: 'filter',
pure: false,
}]
}], null, null); })();
/***/ }),
/***/ "UtxO":
/*!******************************************************************!*\
!*** ./src/app/users/service/board-setup/board-setup.service.ts ***!
\******************************************************************/
/*! exports provided: BoardSetupService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BoardSetupService", function() { return BoardSetupService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class BoardSetupService {
constructor(http, storageService) {
this.http = http;
this.storageService = storageService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getAllBoardsOverview(data) {
return this.http.get(`${this.baseUrl}/wall/read?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllReportedPosts(data) {
return this.http.get(`${this.baseUrl}/wall/reportedPosts/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllReportedComments(data) {
return this.http.get(`${this.baseUrl}/wall/reportedComments/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllReportedQuestionarie(data) {
return this.http.get(`${this.baseUrl}/wall/getWallPostDetails?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
// getAllReportedQuestionarie(data): Observable {
// return this.http.get(`${this.baseUrl}/wall/?${queryParam(data)}`, {
// headers: this.Headers,
// });
// }
createWall(data) {
return this.http
.post(`${this.baseUrl}/wall/add`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateWall(data, id) {
return this.http
.post(`${this.baseUrl}/wall/update`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportQuestionnire(id) {
return this.http
.post(`${this.baseUrl}/wall/exportWallPost`, { _id: id }, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportWall(id) {
return this.http
.post(`${this.baseUrl}/post/exportWall`, { _id: id })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getOneWall(id) {
return this.http.get(`${this.baseUrl}/wall/${id}`);
}
changeReportedPostStatus(id) {
return this.http.get(`${this.baseUrl}/reportPost/reportComment/${id}`);
}
changeReportedCommentStatus(id) {
return this.http.get(`${this.baseUrl}/reportPost/reportComment/${id}`);
}
deleteEmojies(id) {
return this.http.post(`${this.baseUrl}/common/emoji/remove`, { emojiId: id })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllEmojies() {
return this.http.get(`${this.baseUrl}/common/emoji/getEmojis`);
}
uploadEmojiFile(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http.post(`${this.baseUrl}/common/emoji/uploadEmoji`, formData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateReportedPost(id, data) {
return this.http.post(`${this.baseUrl}/wall/reviewPost`, { postId: id, status: data }, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateReportedComment(data) {
return this.http.post(`${this.baseUrl}/wall/updateStatus`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
BoardSetupService.ɵfac = function BoardSetupService_Factory(t) { return new (t || BoardSetupService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
BoardSetupService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: BoardSetupService, factory: BoardSetupService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BoardSetupService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "Uudl":
/*!***********************************************************************!*\
!*** ./src/app/users/pages/auth/verify-user/verify-user.component.ts ***!
\***********************************************************************/
/*! exports provided: VerifyUserComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerifyUserComponent", function() { return VerifyUserComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var recheck__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! recheck */ "0MsR");
/* harmony import */ var recheck__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(recheck__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var _shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/custom-validator/custom-validator */ "TF/K");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../service/auth/auth.service */ "PxIJ");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _core_service_storage_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../core/service/storage.service */ "8X4c");
/* harmony import */ var _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./../../../service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/dynamic-fields/dynamic-form.component */ "6CZB");
function VerifyUserComponent_form_10_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Mobile Number is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_10_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, VerifyUserComponent_form_10_div_5_small_1_Template, 2, 0, "small", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.f.primaryMobileNumber.errors.required);
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
const _c1 = function (a0, a1) { return [a0, a1]; };
const _c2 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function VerifyUserComponent_form_10_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function VerifyUserComponent_form_10_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r6.onRequestRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Mobile Number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "ngx-intl-tel-input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, VerifyUserComponent_form_10_div_5_Template, 2, 1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r0.registrationForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("cssClass", "custom form-control")("preferredCountries", ctx_r0.preferredCountries)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](16, _c0, ctx_r0.submitted1 && ctx_r0.f.primaryMobileNumber.errors))("enableAutoCountrySelect", true)("enablePlaceholder", true)("searchCountryFlag", true)("searchCountryField", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](18, _c1, ctx_r0.SearchCountryField.Iso2, ctx_r0.SearchCountryField.Name))("selectFirstCountry", false)("selectedCountryISO", ctx_r0.CountryISO.Singapore)("maxLength", 15)("phoneValidation", true)("numberFormat", ctx_r0.PhoneNumberFormat.National);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.submitted1 && ctx_r0.f.primaryMobileNumber.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r0.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](21, _c2, ctx_r0.isLoading, !ctx_r0.isLoading));
} }
function VerifyUserComponent_form_11_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " OTP is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_11_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, VerifyUserComponent_form_11_div_5_small_1_Template, 2, 0, "small", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.otp.otp.errors.required);
} }
function VerifyUserComponent_form_11_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function VerifyUserComponent_form_11_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSubmitOtp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Please Enter the OTP sent to your mobile number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, VerifyUserComponent_form_11_div_5_Template, 2, 1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function VerifyUserComponent_form_11_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.resendOtp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.otpForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](7, _c0, ctx_r1.submitted2 && ctx_r1.otp.otp.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.submitted2 && ctx_r1.otp.otp.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r1.isCoundownStarted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r1.isCoundownStarted ? ctx_r1.counter : "Resend OTP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r1.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](9, _c2, ctx_r1.isLoading, !ctx_r1.isLoading));
} }
function VerifyUserComponent_form_12_div_6_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function VerifyUserComponent_form_12_div_6_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r19.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_7_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function VerifyUserComponent_form_12_div_7_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r21.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_8_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one numeric letter is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_8_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one special character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_8_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one Capital character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_8_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one Small character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_8_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" Minimum Length Should be ", ctx_r28.passwordRestForm.get("password").errors.length, " Characters ");
} }
function VerifyUserComponent_form_12_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, VerifyUserComponent_form_12_div_8_small_1_Template, 2, 0, "small", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, VerifyUserComponent_form_12_div_8_div_2_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, VerifyUserComponent_form_12_div_8_div_3_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, VerifyUserComponent_form_12_div_8_div_4_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, VerifyUserComponent_form_12_div_8_div_5_Template, 2, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, VerifyUserComponent_form_12_div_8_div_6_Template, 2, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.passwordRestForm.get("password").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.passwordRestForm.get("password").errors.hasNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.passwordRestForm.get("password").errors.hasSpecialCharacters);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.passwordRestForm.get("password").errors.hasCapitalCase);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.passwordRestForm.get("password").errors.hasSmallCase);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.passwordRestForm.get("password").errors.minlength);
} }
function VerifyUserComponent_form_12_div_14_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function VerifyUserComponent_form_12_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r30); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r29.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_15_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function VerifyUserComponent_form_12_div_15_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r32); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r31.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_16_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Confirm Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_16_small_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password doesn't Match ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function VerifyUserComponent_form_12_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, VerifyUserComponent_form_12_div_16_small_1_Template, 2, 0, "small", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, VerifyUserComponent_form_12_div_16_small_2_Template, 2, 0, "small", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r18.passwordRestForm.get("confirmPassword").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r18.passwordRestForm.get("confirmPassword").errors.mustMatch);
} }
function VerifyUserComponent_form_12_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function VerifyUserComponent_form_12_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r36); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r35.onRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, VerifyUserComponent_form_12_div_6_Template, 3, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, VerifyUserComponent_form_12_div_7_Template, 3, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, VerifyUserComponent_form_12_div_8_Template, 7, 6, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Confirm Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "input", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, VerifyUserComponent_form_12_div_14_Template, 3, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, VerifyUserComponent_form_12_div_15_Template, 3, 0, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, VerifyUserComponent_form_12_div_16_Template, 3, 2, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, " Reset Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.passwordRestForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx_r2.passwordvisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](13, _c0, ctx_r2.submitted3 && ctx_r2.passwordRestForm.get("password").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.passwordvisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.passwordvisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.passwordRestForm.get("password").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx_r2.passwordvisibleAlt ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c0, ctx_r2.submitted3 && ctx_r2.passwordRestForm.get("confirmPassword").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.passwordvisibleAlt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.passwordvisibleAlt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.passwordRestForm.get("confirmPassword").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r2.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](17, _c2, ctx_r2.isLoading, !ctx_r2.isLoading));
} }
function VerifyUserComponent_form_13_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "dynamic-form-builder", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "button", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function VerifyUserComponent_form_13_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r37.onSubmitCustomField(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " SUBMIT ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r3.form);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("gridView", "col-xs-12 col-sm-12 col-md-12 col-lg-12 ")("formGroup", ctx_r3.form)("fields", ctx_r3.getFields());
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r3.form.invalid)("disabled", ctx_r3.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](7, _c2, ctx_r3.isLoading, !ctx_r3.isLoading));
} }
class VerifyUserComponent {
constructor(router, auth, toastService, storageService, formBuilder, route, pageSetupService) {
this.router = router;
this.auth = auth;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.route = route;
this.pageSetupService = pageSetupService;
this.isLoading = false;
this.submitted1 = false;
this.submitted2 = false;
this.submitted3 = false;
this.passwordvisible = false;
this.passwordvisibleAlt = false;
this.validators = [];
this.separateDialCode = true;
this.SearchCountryField = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["SearchCountryField"];
this.CountryISO = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["CountryISO"];
this.PhoneNumberFormat = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["PhoneNumberFormat"];
this.preferredCountries = [
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["CountryISO"].UnitedStates,
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["CountryISO"].UnitedKingdom,
];
this.fields = [];
this.isCoundownStarted = false;
this.companyId = this.storageService.getByKey('companyId');
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
fields: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](JSON.stringify(this.fields)),
});
this.unsubcribe = this.form.valueChanges.subscribe((update) => {
this.fields = JSON.parse(update.fields);
});
}
ngOnInit() {
this.getPasswordSetup();
this.getProfileInit();
this.initForm();
// this.getLoginFields();
}
getPasswordSetup() {
const sub = this.pageSetupService
.getPasswordSetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.getValidatorFnArray(res.data.pwdSettings);
}, (error) => {
});
}
getProfileInit() {
console.log("inside getProfileInit", this.router);
this.router.navigateByUrl('/users/home');
console.log("after called getProfileInit", this.router);
/*const sub = this.auth
.profileInit()
.pipe(
finalize(() => {
sub.unsubscribe();
})
)
.subscribe((res) => {
if (!!res.data.requiredFields) {
this.getLoginFields(res.data.requiredFields);
}
if (!!res.data.issue) {
this.userVerificationState = res.data.issue;
// this.toastService.error(res.data.message);
if (res.data.issue = 'mobileverify') {
this.otpForm.patchValue({
token: res.data.token
})
}
} else {
this.router.navigateByUrl('/users/home');
}
},
(error: HttpErrorResponse) => {
});*/
}
getFields() {
return this.fields;
}
getLoginFields(fields) {
const data = fields.sort((a, b) => a.indexNum - b.indexNum);
// const modifiedData = data.map((rawProduct) => {
// return {
// disabled: true,
// ...rawProduct
// };
// });
this.fields = data;
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({});
this.fields.forEach((x) => {
if (x.type == 'checkbox') {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({}));
x.options.forEach((o) => {
this.form.get(x.fieldName).addControl(o.key, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](false));
});
}
else {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](x.value || '', x.required ? _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required : null));
}
});
}
onSubmitCustomField() {
this.isLoading = true;
const modifiedData = this.fields.map((rawProduct) => {
return {
fieldId: rawProduct._id,
editable: rawProduct.editable,
};
});
const values = Object.values(this.form.value);
let newOjbect = modifiedData.map((item, i) => Object.assign({}, item, { value: values[i] }));
const data = {
otherFields: newOjbect,
};
const sub = this.auth
.updateProfileInit('missingfields', data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoading = false;
this.getProfileInit();
}, (error) => {
this.isLoading = false;
});
}
initForm() {
this.registrationForm = this.formBuilder.group({
primaryMobileNumber: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.otpForm = this.formBuilder.group({
otp: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
token: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
}
resetPasswordForm() {
this.passwordRestForm = this.formBuilder.group({
password: ['', [...this.validators, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
confirmPassword: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
}, {
validator: Object(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_6__["MustMatch"])('password', 'confirmPassword'),
});
}
get f() {
return this.registrationForm.controls;
}
get otp() {
return this.otpForm.controls;
}
get restPassword() {
return this.passwordRestForm.controls;
}
passwordVisible() {
this.passwordvisible = !this.passwordvisible;
}
confirmPasswordVisible() {
this.passwordvisibleAlt = !this.passwordvisibleAlt;
}
getValidatorFnArray(setting) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const validators = [];
if (setting.charTypes.lowerCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_6__["CustomValidators"].patternValidator(/[a-z]/, {
hasSmallCase: true,
}));
}
if (setting.charTypes.specialChar) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_6__["CustomValidators"].patternValidator(/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/, {
hasSpecialCharacters: true,
}));
}
if (setting.charLength) {
const len = setting.charLength;
let test = `^.{${len},22}`;
let recheckResp = yield recheck__WEBPACK_IMPORTED_MODULE_5__["check"](test, "");
if (recheckResp.status === 'safe') {
let regex = new RegExp(test);
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_6__["CustomValidators"].patternValidator(regex, {
minlength: true,
length: setting.charLength,
}));
}
if (setting.charTypes.upperCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_6__["CustomValidators"].patternValidator(/[A-Z]/, {
hasCapitalCase: true,
}));
}
if (setting.charTypes.numbers) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_6__["CustomValidators"].patternValidator(/\d/, {
hasNumber: true,
}));
}
this.validators.push(...validators);
this.resetPasswordForm();
}
});
}
onRequestRestPassword() {
if (!this.registrationForm.valid) {
this.submitted1 = true;
return;
}
this.isLoading = true;
const { dialCode, number } = this.registrationForm.get('primaryMobileNumber').value;
const data = Object.assign(Object.assign({}, this.registrationForm.value), { countryCode: dialCode, primaryMobileNumber: number });
const sub = this.auth
.updateProfileInit('registration', data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
// this.otpForm.patchValue({
// token: res.data.token,
// });
this.otpToken = res.data.token;
this.isLoading = false;
this.getProfileInit();
// this.registrationForm.reset();
}, (error) => {
this.isLoading = false;
});
}
resendOtp() {
this.startCountdown(60);
const sub = this.auth
.updateProfileInit('resendOtp', {})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.otpForm.patchValue({
token: res.data.token,
});
this.toastService.success('OTP Sent successfully');
}, (error) => {
});
}
startCountdown(seconds) {
this.counter = seconds;
this.isCoundownStarted = true;
const interval = setInterval(() => {
console.log(this.counter);
this.counter--;
if (this.counter < 0) {
this.isCoundownStarted = false;
clearInterval(interval);
}
}, 1000);
}
onSubmitOtp() {
// if (!this.otpForm.valid) {
// this.submitted2 = true;
// this.toastService.error('Please Enter a Valid OTP');
// return;
// }
this.otpForm.patchValue({
token: this.otpToken
});
console.log(this.otpForm.value);
this.isLoading = true;
const sub = this.auth
.updateProfileInit('verification', this.otpForm.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoading = false;
this.getProfileInit();
this.toastService.success('OTP verified successfully');
// this.getValidatorFnArray(res.data.pwdSettings);
this.passwordRestForm.patchValue({
token: res.data.token,
});
}, (error) => {
this.isLoading = false;
});
}
onRestPassword() {
if (!this.passwordRestForm.valid) {
this.submitted3 = true;
return;
}
this.isLoading = true;
const data = {
password: this.passwordRestForm.get('confirmPassword').value,
};
const sub = this.auth
.updateProfileInit('resetpassword', data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoading = false;
this.toastService.success('Password Updated successfully');
this.auth.logout();
}, (error) => {
this.isLoading = false;
this.toastService.error((error.error.error.message).replace('Couldn\'t', 'Can\'t'), '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
}
VerifyUserComponent.ɵfac = function VerifyUserComponent_Factory(t) { return new (t || VerifyUserComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_core_service_storage_service__WEBPACK_IMPORTED_MODULE_10__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_11__["CompanySetupService"])); };
VerifyUserComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: VerifyUserComponent, selectors: [["app-verify-user"]], decls: 14, vars: 4, consts: [[1, "d-flex", "login-main", "flex-sm-row", "flex-column"], [1, "flex-fill", "min-w50", "d-sm-block", "d-none"], [1, "mw-100", "bg-banner"], [1, "flex-fill", "bg"], [1, "d-flex", "align-items-center", "h-100", "min-h35"], [1, "d-flex", "justify-content-center", "min-w100"], [1, "login-body", "min-w50", "card"], [1, "card-body"], [3, "formGroup", "ngSubmit", 4, "ngIf"], [3, "formGroup", 4, "ngIf"], [3, "formGroup", "ngSubmit"], [1, "form-group"], ["for", "exampleInputPassword1"], ["formControlName", "primaryMobileNumber", 3, "cssClass", "preferredCountries", "ngClass", "enableAutoCountrySelect", "enablePlaceholder", "searchCountryFlag", "searchCountryField", "selectFirstCountry", "selectedCountryISO", "maxLength", "phoneValidation", "numberFormat"], ["class", "invalid-feedback", 4, "ngIf"], ["type", "submit", 1, "btn", "btn-sm", "btn-submit", "float-right", 3, "disabled"], [1, "fa", 3, "ngClass"], [1, "invalid-feedback"], [4, "ngIf"], ["for", "exampleInputEmail1"], ["type", "number", "formControlName", "otp", "aria-describedby", "emailHelp", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 20) return false;", "placeholder", "Enter OTP", 1, "form-control", 3, "ngClass"], ["type", "button", 1, "btn", "btn-sm", "btn-back", "float-right", 3, "disabled", "click"], ["type", "submit", 1, "btn", "btn-sm", "btn-back", 3, "disabled"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], [1, "input-group"], ["placeholder", " Password", "formControlName", "password", 1, "form-control", 3, "type", "ngClass"], ["class", "input-group-append", 4, "ngIf"], ["placeholder", " Confirm Password", "formControlName", "confirmPassword", 1, "form-control", 3, "type", "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", 3, "disabled"], [1, "input-group-append"], [1, "input-group-text"], ["aria-hidden", "true", 1, "fa", "fa-eye-slash", "fa-lg", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-eye", "fa-lg", 3, "click"], [3, "formGroup"], [3, "gridView", "formGroup", "fields"], [1, "btn", "btn-submit", 3, "disabled", "click"]], template: function VerifyUserComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "User Verification");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, VerifyUserComponent_form_10_Template, 10, 24, "form", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, VerifyUserComponent_form_11_Template, 12, 12, "form", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, VerifyUserComponent_form_12_Template, 21, 20, "form", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, VerifyUserComponent_form_13_Template, 5, 10, "form", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userVerificationState == "registration");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userVerificationState == "mobileverify");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userVerificationState == "resetpassword" && ctx.passwordRestForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userVerificationState == "missingfields");
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["NgxIntlTelInputComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_3__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["PatternValidator"], _shared_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_13__["DynamicFormBuilderComponent"]], styles: [".login-main[_ngcontent-%COMP%] .min-w50[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n min-width: 50%;\n}\n.login-main[_ngcontent-%COMP%] .bg-banner[_ngcontent-%COMP%] {\n background-image: url('background.jpg');\n background-repeat: no-repeat;\n background-size: cover;\n min-height: 100vh;\n min-width: 100%;\n}\n.login-main[_ngcontent-%COMP%] .min-h35[_ngcontent-%COMP%] {\n min-height: 100vh;\n}\n.flex-fill.bg[_ngcontent-%COMP%] {\n background-image: url('loginBg.jpg');\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC92ZXJpZnktdXNlci92ZXJpZnktdXNlci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFRTtFQUNFLHVCQUFBO0VBQ0EsU0FBQTtFQUNBLGNBQUE7QUFESjtBQUlFO0VBQ0UsdUNBQUE7RUFDQSw0QkFBQTtFQUNBLHNCQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0FBRko7QUFJRTtFQUNFLGlCQUFBO0FBRko7QUFLQTtFQUNFLG9DQUFBO0FBRkYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9hdXRoL3ZlcmlmeS11c2VyL3ZlcmlmeS11c2VyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmxvZ2luLW1haW4ge1xuXG4gIC5taW4tdzUwIHtcbiAgICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgICBib3JkZXI6IDA7XG4gICAgbWluLXdpZHRoOiA1MCU7XG4gIH1cblxuICAuYmctYmFubmVyIHtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoJy4uLy4uLy4uLy4uLy4uL2Fzc2V0cy9pbWFnZXMvYmFja2dyb3VuZC5qcGcnKTtcbiAgICBiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuICAgIGJhY2tncm91bmQtc2l6ZTogY292ZXI7XG4gICAgbWluLWhlaWdodDogMTAwdmg7XG4gICAgbWluLXdpZHRoOiAxMDAlO1xuICB9XG4gIC5taW4taDM1e1xuICAgIG1pbi1oZWlnaHQ6IDEwMHZoO1xuICB9XG59XG4uZmxleC1maWxsLmJne1xuICBiYWNrZ3JvdW5kLWltYWdlOiB1cmwoJy4uLy4uLy4uLy4uLy4uL2Fzc2V0cy9pbWFnZXMvbG9naW5CZy5qcGcnKTtcblxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](VerifyUserComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-verify-user',
templateUrl: './verify-user.component.html',
styleUrls: ['./verify-user.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"] }, { type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: _core_service_storage_service__WEBPACK_IMPORTED_MODULE_10__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["ActivatedRoute"] }, { type: _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_11__["CompanySetupService"] }]; }, null); })();
/***/ }),
/***/ "VysZ":
/*!**********************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/stats-display/stats-display.ts ***!
\**********************************************************************************************/
/*! exports provided: StatsDisplayComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatsDisplayComponent", function() { return StatsDisplayComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
function StatsDisplayComponent_div_1_ng_container_1_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 10);
} }
function StatsDisplayComponent_div_1_ng_container_1_ng_template_7_Template(rf, ctx) { }
function StatsDisplayComponent_div_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, StatsDisplayComponent_div_1_ng_container_1_div_6_Template, 1, 0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, StatsDisplayComponent_div_1_ng_container_1_ng_template_7_Template, 0, 0, "ng-template", null, 9, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const status_r3 = ctx.$implicit;
const last_r5 = ctx.last;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](status_r3._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](status_r3.count);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !last_r5);
} }
function StatsDisplayComponent_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, StatsDisplayComponent_div_1_ng_container_1_Template, 9, 3, "ng-container", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.statuses);
} }
function StatsDisplayComponent_div_2_div_6_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r13 = ctx.$implicit;
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r13 == null ? null : data_r13.field);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r12.getWorkflowStatusCount(data_r13 == null ? null : data_r13._id), "");
} }
function StatsDisplayComponent_div_2_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, StatsDisplayComponent_div_2_div_6_div_4_Template, 5, 2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r10 = ctx.$implicit;
const i_r11 = ctx.index;
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r10 == null ? null : item_r10.title);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r9.workflow[i_r11] == null ? null : ctx_r9.workflow[i_r11].workflowStatus);
} }
function StatsDisplayComponent_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "WORKFLOW STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, StatsDisplayComponent_div_2_div_6_Template, 5, 2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.workflow);
} }
class StatsDisplayComponent {
constructor() {
this.totalSubmissions = 0;
this.errorCount = 0;
this.statuses = [];
this.workflow = [];
}
ngOnInit() {
}
ngOnChanges(changes) {
if (changes.totalSubmissions) {
this.totalSubmissions = changes.totalSubmissions.currentValue;
}
if (changes.errorCount) {
this.errorCount = changes.errorCount.currentValue;
}
if (changes.statuses) {
this.statuses = changes.statuses.currentValue;
}
if (changes.workflow) {
this.workflow = changes.workflow.currentValue;
}
}
getWorkflowStatusCount(fieldName) {
var _a, _b;
return ((_b = (_a = this.statuses) === null || _a === void 0 ? void 0 : _a.find(item => item._id == fieldName)) === null || _b === void 0 ? void 0 : _b.count) || 0;
}
}
StatsDisplayComponent.ɵfac = function StatsDisplayComponent_Factory(t) { return new (t || StatsDisplayComponent)(); };
StatsDisplayComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: StatsDisplayComponent, selectors: [["stats-display"]], inputs: { totalSubmissions: "totalSubmissions", errorCount: "errorCount", statuses: "statuses", workflow: "workflow" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 3, vars: 2, consts: [[1, "stats-container"], ["class", "stat-item statuses", 4, "ngIf"], ["class", "card mb-3 w-100", 4, "ngIf"], [1, "stat-item", "statuses"], [4, "ngFor", "ngForOf"], [1, "status-item"], [1, "stat-label"], [1, "stat-value"], ["class", "separator", 4, "ngIf"], ["lastItem", ""], [1, "separator"], [1, "card", "mb-3", "w-100"], [1, "card-header", "flexi-header"], [1, "card-body"], [1, "d-flex", "forms-manage", 2, "padding-right", "1rem"], ["class", "box-item d-flex flex-column mr-2", 4, "ngFor", "ngForOf"], [1, "box-item", "d-flex", "flex-column", "mr-2"], [1, "d-flex", "box-item-status"], ["class", "d-flex flex-column flex-fill align-items-center status", 4, "ngFor", "ngForOf"], [1, "d-flex", "flex-column", "flex-fill", "align-items-center", "status"]], template: function StatsDisplayComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, StatsDisplayComponent_div_1_Template, 2, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, StatsDisplayComponent_div_2_Template, 7, 1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.workflow && ctx.workflow.length === 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.workflow && ctx.workflow.length > 0);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"]], styles: [".stats-container[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n padding: 10px;\n border: 1px solid #ddd;\n background-color: #f9f9f9;\n}\n\n.stat-item[_ngcontent-%COMP%] {\n text-align: center;\n margin: 0 10px;\n}\n\n.stat-label[_ngcontent-%COMP%] {\n font-weight: bold;\n margin-bottom: 5px;\n}\n\n.stat-value[_ngcontent-%COMP%] {\n font-size: 20px;\n color: #a52a2a;\n}\n\n.statuses[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.status-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.separator[_ngcontent-%COMP%] {\n height: 30px;\n width: 1px;\n background-color: #a52a2a;\n margin: 0 10px;\n}\n\n.forms-manage[_ngcontent-%COMP%] .box-item[_ngcontent-%COMP%] .box-item-status[_ngcontent-%COMP%] .status[_ngcontent-%COMP%] {\n padding: 0 1.4rem;\n position: relative;\n}\n\n.forms-manage[_ngcontent-%COMP%] .box-item[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0 0.7rem;\n}\n\n.forms-manage[_ngcontent-%COMP%] {\n margin-bottom: 3rem;\n max-width: 100%;\n overflow-x: auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL3N0YXRzLWRpc3BsYXkvc3RhdHMtZGlzcGxheS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsYUFBQTtFQUNBLG1CQUFBO0VBRUEsYUFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFBRjs7QUFHQTtFQUNFLGtCQUFBO0VBQ0EsY0FBQTtBQUFGOztBQUdBO0VBQ0UsaUJBQUE7RUFDQSxrQkFBQTtBQUFGOztBQUdBO0VBQ0UsZUFBQTtFQUNBLGNBQUE7QUFBRjs7QUFHQTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtBQUFGOztBQUdBO0VBQ0UsYUFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUFBRjs7QUFHQTtFQUNFLFlBQUE7RUFDQSxVQUFBO0VBQ0EseUJBQUE7RUFDQSxjQUFBO0FBQUY7O0FBR0E7RUFDRSxpQkFBQTtFQUNBLGtCQUFBO0FBQUY7O0FBR0E7RUFDRSxzQkFBQTtFQUNBLGlCQUFBO0FBQUY7O0FBR0E7RUFDRSxtQkFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtBQUFGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL3N0YXRzLWRpc3BsYXkvc3RhdHMtZGlzcGxheS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnN0YXRzLWNvbnRhaW5lciB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIC8vIGp1c3RpZnktY29udGVudDogc3BhY2UtYXJvdW5kO1xuICBwYWRkaW5nOiAxMHB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjZGRkO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjlmOWY5O1xufVxuXG4uc3RhdC1pdGVtIHtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBtYXJnaW46IDAgMTBweDtcbn1cblxuLnN0YXQtbGFiZWwge1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgbWFyZ2luLWJvdHRvbTogNXB4O1xufVxuXG4uc3RhdC12YWx1ZSB7XG4gIGZvbnQtc2l6ZTogMjBweDtcbiAgY29sb3I6ICNhNTJhMmE7XG59XG5cbi5zdGF0dXNlcyB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG5cbi5zdGF0dXMtaXRlbSB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG5cbi5zZXBhcmF0b3Ige1xuICBoZWlnaHQ6IDMwcHg7XG4gIHdpZHRoOiAxcHg7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNTJhMmE7XG4gIG1hcmdpbjogMCAxMHB4O1xufVxuXG4uZm9ybXMtbWFuYWdlIC5ib3gtaXRlbSAuYm94LWl0ZW0tc3RhdHVzIC5zdGF0dXMge1xuICBwYWRkaW5nOiAwIDEuNHJlbTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAvLyBtaW4td2lkdGg6IDlyZW07XG59XG4uZm9ybXMtbWFuYWdlIC5ib3gtaXRlbSB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDAgMC43cmVtO1xufVxuXG4uZm9ybXMtbWFuYWdlIHtcbiAgbWFyZ2luLWJvdHRvbTogM3JlbTtcbiAgbWF4LXdpZHRoOiAxMDAlO1xuICBvdmVyZmxvdy14OiBhdXRvO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StatsDisplayComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'stats-display',
templateUrl: './stats-display.html',
styleUrls: ['./stats-display.scss'],
}]
}], function () { return []; }, { totalSubmissions: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], errorCount: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], statuses: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], workflow: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "WWan":
/*!**********************************************************************************************************!*\
!*** ./src/app/users/pages/gamification/challenges/challenges-overview/challenges-overview.component.ts ***!
\**********************************************************************************************************/
/*! exports provided: ChallengesOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChallengesOverviewComponent", function() { return ChallengesOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_pipes_event_publishstatus_pipe__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../shared/pipes/event-publishstatus.pipe */ "S6Fq");
function ChallengesOverviewComponent_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ChallengesOverviewComponent_tbody_37_tr_1_span_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Pending Publication ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ChallengesOverviewComponent_tbody_37_tr_1_span_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Published ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ChallengesOverviewComponent_tbody_37_tr_1_span_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Expired ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ChallengesOverviewComponent_tbody_37_tr_1_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, ChallengesOverviewComponent_tbody_37_tr_1_span_10_Template, 2, 0, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](11, "eventPublishstatus");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, ChallengesOverviewComponent_tbody_37_tr_1_span_12_Template, 2, 0, "span", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "eventPublishstatus");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, ChallengesOverviewComponent_tbody_37_tr_1_span_14_Template, 2, 0, "span", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](15, "eventPublishstatus");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChallengesOverviewComponent_tbody_37_tr_1_Template_button_click_18_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r8); const item_r3 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r7.onViewUser(item_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChallengesOverviewComponent_tbody_37_tr_1_Template_button_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r8); const item_r3 = ctx.$implicit; const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r9.onEditUser(item_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChallengesOverviewComponent_tbody_37_tr_1_Template_button_click_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r8); const item_r3 = ctx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r10.onManage(item_r3._id, item_r3.nonRewardPointSystemEnabled, item_r3.title, item_r3.isTeam); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, " Manage ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 6, item_r3 == null ? null : item_r3.createdAt), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.title);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](8, 8, item_r3.publishEnd));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](11, 10, item_r3.publishStart, item_r3.publishEnd) == "0");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](13, 13, item_r3.publishStart, item_r3.publishEnd) == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](15, 16, item_r3.publishStart, item_r3.publishEnd) == "2");
} }
function ChallengesOverviewComponent_tbody_37_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ChallengesOverviewComponent_tbody_37_tr_1_Template, 24, 19, "tr", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class ChallengesOverviewComponent {
constructor(gamificationService, toastService, tableService) {
this.gamificationService = gamificationService;
this.toastService = toastService;
this.tableService = tableService;
this.userId = null;
this.isTableLoading = false;
this.locAccTableColumn = ['createdAt', 'title', 'publishEnd', 'status', '_id'];
this.viewtableQueryParams = Object.assign(Object.assign({}, src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_6__["tableParam"]), { start: 0 });
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.manageUsers = false;
this.EditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.ViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.isManage = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.usersPTable = {
sortBy: 0,
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.viewtableQueryParams.start = 0;
this.viewtableQueryParams.search.value = input;
this.loadUsers();
});
}
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortBy = column;
this.usersPTable.sortWith = direction;
this.loadUsers();
}
getCurrentDate() {
const currentDate = new Date();
this.todayDate = moment__WEBPACK_IMPORTED_MODULE_5__(currentDate).utc().format();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.viewtableQueryParams.start = +page > 1 ? (page - 1) * this.usersPTable.limit : 0;
this.loadUsers();
}
onLimitChangeUsers() {
this.viewtableQueryParams.start = 0;
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
this.getCurrentDate();
}
onEditUser(data) {
this.EditEvent.emit(data);
}
onViewUser(data) {
this.ViewEvent.emit(data);
}
onManage(id, pointSystem, title, isTeam) {
this.isManage.emit({ id, pointSystem, title, isTeam });
}
loadUsers() {
let tableCol = this.tableService.initializeTableParamsColums(this.locAccTableColumn, [0, 1, 2, 3], [0, 1, 2, 3, 4]) || [];
this.viewtableQueryParams.columns = tableCol;
this.viewtableQueryParams.draw++;
this.viewtableQueryParams.length = this.usersPTable.limit;
this.isTableLoading = true;
this.viewtableQueryParams.search.value = this.usersPTable.search;
this.viewtableQueryParams.order = [{ column: this.usersPTable.sortBy, dir: this.usersPTable.sortWith }];
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.gamificationService
.getChallengesNew(this.viewtableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.isTableLoading = false;
this.usersPTable.data = response === null || response === void 0 ? void 0 : response.data;
this.usersPTable.total = response === null || response === void 0 ? void 0 : response.recordsTotal;
}, (error) => {
this.isTableLoading = false;
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
addCategories(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
});
}
overViewEvent(value) {
this.isUserEdited = false;
this.userId = null;
}
onManageUser(id) {
this.manageUsers = true;
}
}
ChallengesOverviewComponent.ɵfac = function ChallengesOverviewComponent_Factory(t) { return new (t || ChallengesOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__["TableService"])); };
ChallengesOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ChallengesOverviewComponent, selectors: [["challenges-overview"]], viewQuery: function ChallengesOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { EditEvent: "EditEvent", ViewEvent: "ViewEvent", isManage: "isManage" }, decls: 44, vars: 16, consts: [[1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "0", 3, "sort"], ["scope", "col", "sortable", "1", 3, "sort"], ["scope", "col", "sortable", "2", 3, "sort"], ["scope", "col"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [4, "ngFor", "ngForOf"], ["class", "badge badge-info", 4, "ngIf"], ["class", "badge badge-success", 4, "ngIf"], ["class", "badge badge-danger", 4, "ngIf"], [1, "d-flex"], [1, "btn", "btn-info", "btn-sm", "mr-1", 3, "click"], [1, "btn", "btn-success", "btn-sm", "mr-1", 3, "click"], [1, "btn", "btn-warning", "btn-sm", 3, "click"], [1, "badge", "badge-info"], [1, "badge", "badge-success"], [1, "badge", "badge-danger"]], template: function ChallengesOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "CHALLENGES");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ChallengesOverviewComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function ChallengesOverviewComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, ChallengesOverviewComponent_span_21_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ChallengesOverviewComponent_Template_input_search_22_listener() { return ctx.loadUsers(); })("keyup", function ChallengesOverviewComponent_Template_input_keyup_22_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function ChallengesOverviewComponent_Template_input_ngModelChange_22_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "th", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ChallengesOverviewComponent_Template_th_sort_27_listener($event) { return ctx.onSortUsers($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, " DATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "th", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ChallengesOverviewComponent_Template_th_sort_29_listener($event) { return ctx.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, " CHALLENGE TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ChallengesOverviewComponent_Template_th_sort_31_listener($event) { return ctx.onSortUsers($event, "publishEnd"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, " EXPIRE DATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, " STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](37, ChallengesOverviewComponent_tbody_37_Template, 2, 1, "tbody", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](38, "app-skliton-loading-table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "ngb-pagination", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ChallengesOverviewComponent_Template_ngb_pagination_pageChange_43_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function ChallengesOverviewComponent_Template_ngb_pagination_pageChange_43_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_10__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_10__["DefaultValueAccessor"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbPagination"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["DatePipe"], _shared_pipes_event_publishstatus_pipe__WEBPACK_IMPORTED_MODULE_15__["EventPublishstatusPipe"]], styles: [".manage-filter[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvZ2FtaWZpY2F0aW9uL2NoYWxsZW5nZXMvY2hhbGxlbmdlcy1vdmVydmlldy9jaGFsbGVuZ2VzLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtBQUNKOztBQUVBO0VBQ0ksV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7QUFDSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2dhbWlmaWNhdGlvbi9jaGFsbGVuZ2VzL2NoYWxsZW5nZXMtb3ZlcnZpZXcvY2hhbGxlbmdlcy1vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5tYW5hZ2UtZmlsdGVye1xuICAgIGRpc3BsYXk6IGZsZXg7XG59XG5cbi5idG4tc3VibWl0e1xuICAgIGNvbG9yOiAjZmZmO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICMzMzdhYjc7XG4gICAgYm9yZGVyLWNvbG9yOiAjMmU2ZGE0O1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ChallengesOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'challenges-overview',
templateUrl: './challenges-overview.component.html',
styleUrls: ['./challenges-overview.component.scss']
}]
}], function () { return [{ type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__["TableService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}], EditEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], ViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], isManage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "Wf/0":
/*!******************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-news/create-edit-managenews/create-edit-managenews.component.ts ***!
\******************************************************************************************************************/
/*! exports provided: CreateEditManagenewsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEditManagenewsComponent", function() { return CreateEditManagenewsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/stepper */ "xHqg");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! angular-froala-wysiwyg */ "81np");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../shared/angular-date-time-picker/date-time-picker.html/date-time-picker.html.component */ "d4JE");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/material/button */ "bTqV");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var ngx_image_cropper__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ngx-image-cropper */ "rIor");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["myInput"];
const _c1 = ["AddDepartment"];
const _c2 = ["AddImageCropper"];
function CreateEditManagenewsComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, " NEWS CONTENT ");
} }
function CreateEditManagenewsComponent_option_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r14 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r14.value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r14.name, " ");
} }
function CreateEditManagenewsComponent_div_35_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_div_35_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r15.onDeleteIcon("teaser"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r3.validateURLImage(ctx_r3.createNewsForm.get("teaser").get("image").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function CreateEditManagenewsComponent_div_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Please fill up all the fields ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditManagenewsComponent_ng_template_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "CONTENT");
} }
function CreateEditManagenewsComponent_div_62_div_10_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_div_62_div_10_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r18.onDeleteIcon("mainImage"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r17.validateURLImage(ctx_r17.createNewsForm.get("content").get("image").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
const _c3 = function (a0, a1) { return { "fa-spin fa-spinner fa-2x": a0, " fa-plus-circle fa-2x": a1 }; };
function CreateEditManagenewsComponent_div_62_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Content Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_div_62_Template_input_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r20.openImageCropUpload("mainImage"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "label", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "i", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, CreateEditManagenewsComponent_div_62_div_10_Template, 4, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r6.isIconLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](3, _c3, ctx_r6.isIconLoading, !ctx_r6.isIconLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.createNewsForm.get("content").get("image").value);
} }
function CreateEditManagenewsComponent_div_71_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Please fill up all the fields ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditManagenewsComponent_ng_template_79_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "PUBLICATION");
} }
function CreateEditManagenewsComponent_div_103_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "span", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "span", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_div_103_Template_span_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r23); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r22.deleteModuleData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r9.createNewsForm.get("publish").get("moduleData").value == null ? null : ctx_r9.createNewsForm.get("publish").get("moduleData").value.moduleName, " ");
} }
function CreateEditManagenewsComponent_ng_template_131_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "h4", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Article Preview 3.75x6.66(inch) ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_131_Template_button_click_3_listener() { const d_r25 = ctx.dismiss; return d_r25("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](10, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](12, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "span", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, "Authored By ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("src", ctx_r11.createNewsForm.get("content").get("image").value || ctx_r11.teaserUrl, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaView", ctx_r11.editorContent)("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](12, 6, ctx_r11.contentTitle), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", ctx_r11.channelName, " / ", ctx_r11.categoryName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r11.userName);
} }
function CreateEditManagenewsComponent_ng_template_133_div_17_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "button", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r31.toggleContainWithinAspectRatio(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r33.resetImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "refresh");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r34.flipHorizontal(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "swap_horiz");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "button", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r35.flipVertical(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "swap_vert");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "button", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r36.rotateLeft(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "rotate_left");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "button", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_23_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r37.rotateRight(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "rotate_right");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Crop Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "image-cropper", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("imageCropped", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_image_cropper_imageCropped_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r38.imageCropped($event); })("imageLoaded", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_image_cropper_imageLoaded_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r39.imageLoaded(); })("cropperReady", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_image_cropper_cropperReady_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r40.cropperReady($event); })("loadImageFailed", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_image_cropper_loadImageFailed_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r41.loadImageFailed(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](33, "Preview");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](34, "img", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "button", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_37_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r42.zoomOut(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "zoom_out");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "button", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_41_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r43.zoomIn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "zoom_in");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "button", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_div_17_Template_button_click_45_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r44.Upload(ctx_r44.imageCategory); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, " Upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r30.containWithinAspectRatio ? "aspect_ratio" : "image_aspect_ratio");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("imageChangedEvent", ctx_r30.imageChangedEvent)("maintainAspectRatio", true)("containWithinAspectRatio", ctx_r30.containWithinAspectRatio)("aspectRatio", 4 / 3)("cropperMinWidth", 128)("roundCropper", false)("canvasRotation", ctx_r30.canvasRotation)("transform", ctx_r30.transform)("alignImage", "left");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r30.croppedImage, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function CreateEditManagenewsComponent_ng_template_133_Template(rf, ctx) { if (rf & 1) {
const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "h4", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_Template_button_click_3_listener() { const d_r28 = ctx.dismiss; return d_r28("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "input", 83, 84);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditManagenewsComponent_ng_template_133_Template_input_change_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r47); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r46.fileChangeEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "button", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_ng_template_133_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r47); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r48.clear(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "hr", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, CreateEditManagenewsComponent_ng_template_133_div_17_Template, 47, 11, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !!ctx_r13.imageChangedEvent);
} }
class CreateEditManagenewsComponent {
constructor(http, newsService, modelService, formBuilder, tostService) {
this.http = http;
this.newsService = newsService;
this.modelService = modelService;
this.formBuilder = formBuilder;
this.tostService = tostService;
this.listingType = [
{ name: 'No Photo', value: 1 },
{ name: 'Small Photo', value: 2 },
{ name: 'Large Photo', value: 3 }
];
this.channelArray = [];
this.isIconLoading = false;
this.title = 'my-image-cropper';
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl;
this.minDate = {};
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
this.newsData = null;
this.isLinear = false;
this.options = {
key: src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].froalaEditorKey,
videoResponsive: true,
charCounterMax: 150,
videoInsertButtons: ['videoBack', '|', 'videoByURL'],
listAdvancedTypes: true,
toolbarButtons: ['bold', 'italic', 'underline', 'insertLink', 'insertHR', 'insertTable', 'emoticons', 'textColor', 'backgroundColor', 'quote', 'paragraphStyle', 'paragraphFormat', 'inlineStyle', 'outdent', 'indent', 'insertHorizontalRule', 'formatOL', 'formatUL', 'align', 'clearFormatting'],
quickInsertEnabled: false,
attribution: false,
};
this.otheroptions = {
key: src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].froalaEditorKey,
videoResponsive: true,
quickInsertEnabled: false,
videoInsertButtons: ['videoBack', '|', 'videoByURL', 'textColor', 'backgroundColor', 'videoEmbed', 'videoUpload'],
listAdvancedTypes: true,
toolbarButtons: ['undo', 'redo', 'bold', 'italic', 'underline', 'insertLink', 'insertHR', 'insertTable', 'emoticons', 'paragraphStyle', 'quote', 'paragraphFormat', 'strikeThrough', 'inlineStyle', 'subscript', 'superscript', 'fontFamily', 'fontSize', 'color', 'formatBlock', 'blockStyle', 'inlineStyle', 'align', 'insertOrderedList', 'insertUnorderedList', 'outdent', 'indent', 'selectAll', 'createLink', 'insertImage', 'insertVideo', 'table', 'undo', 'redo', 'html', 'save', 'insertHorizontalRule', 'uploadFile', 'removeFormat', 'fullscreen', 'formatOL', 'formatUL', 'clearFormatting'],
videoUploadURL: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl}/notification/uploadContentFiles/`,
requestHeaders: {
Authorization: localStorage.getItem("flexiusersToken")
},
imageUploadParams: { crossorigin: "anonymous" },
requestWithCORS: false,
// Set the image upload URL.
imageUploadURL: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl}/post/uploadContentFiles`,
attribution: false,
// Set request type.
imageUploadMethod: 'POST',
// Allow to upload PNG and JPG.
imageAllowedTypes: ['jpeg', 'jpg', 'png'],
// Set request type.
videoUploadMethod: 'POST',
// Set max video size to 50MB.
videoMaxSize: 50 * 1024 * 1024,
// Allow to upload MP4, WEBM and OGG
videoAllowedTypes: ['webm', 'jpg', 'ogg', 'mp4', 'mov', 'MKV'],
events: {
'video.beforeUpload': function (videos) {
// Return false if you want to stop the video upload.
},
'video.uploaded': function (response) {
// Video was uploaded to the server.
},
'video.inserted': function ($img, response) {
// Video was inserted in the editor.
},
'video.replaced': function ($img, response) {
// Video was replaced in the editor.
},
'video.error': function (error, response) {
},
'image.beforeUpload': function (images) {
// Return false if you want to stop the image upload.
},
'image.uploaded': function (response) {
// Image was uploaded to the server.
},
'image.inserted': function ($img, response) {
// Image was inserted in the editor.
},
'image.replaced': function ($img, response) {
// Image was replaced in the editor.
},
}
};
this.isSubmitted = false;
this.imageChangedEvent = '';
this.croppedImage = '';
this.croppedFilePath = "";
this.canvasRotation = 0;
this.rotation = 0;
this.scale = 1;
this.showCropper = false;
this.containWithinAspectRatio = false;
this.transform = {};
this.userName = localStorage.getItem('flexistaffId');
}
fileChangeEvent(event) {
this.imageChangedEvent = event;
}
imageCropped(event) {
this.croppedImage = event.base64;
this.croppedFilePath = event;
}
imageLoaded() {
this.showCropper = true;
}
cropperReady(sourceImageDimensions) {
}
loadImageFailed() { }
clear(isStatus) {
this.modelService.dismissAll();
this.scale = 1;
this.rotation = 0;
this.canvasRotation = 0;
this.transform = {};
this.croppedImage = '';
this.imageChangedEvent = '';
if (!isStatus)
this.modelService.open(this.AddImageCropper, {
windowClass: 'modal-ui-fix.center-align.xlModal', size: 'lg',
});
}
rotateLeft() {
this.canvasRotation--;
this.flipAfterRotate();
}
rotateRight() {
this.canvasRotation++;
this.flipAfterRotate();
}
flipAfterRotate() {
const flippedH = this.transform.flipH;
const flippedV = this.transform.flipV;
this.transform = Object.assign(Object.assign({}, this.transform), { flipH: flippedV, flipV: flippedH });
}
flipHorizontal() {
this.transform = Object.assign(Object.assign({}, this.transform), { flipH: !this.transform.flipH });
}
flipVertical() {
this.transform = Object.assign(Object.assign({}, this.transform), { flipV: !this.transform.flipV });
}
resetImage() {
this.scale = 1;
this.rotation = 0;
this.canvasRotation = 0;
this.transform = {};
}
zoomOut() {
this.scale -= 0.1;
this.transform = Object.assign(Object.assign({}, this.transform), { scale: this.scale });
}
zoomIn() {
this.scale += 0.1;
this.transform = Object.assign(Object.assign({}, this.transform), { scale: this.scale });
}
toggleContainWithinAspectRatio() {
this.containWithinAspectRatio = !this.containWithinAspectRatio;
}
updateRotation() {
this.transform = Object.assign(Object.assign({}, this.transform), { rotate: this.rotation });
}
ngOnInit() {
const current = new Date();
this.minDate = { year: current.getFullYear(), month: current.getMonth() + 1, day: current.getDate() };
this.firstFormGroup = this.formBuilder.group({
firstCtrl: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]
});
this.secondFormGroup = this.formBuilder.group({
secondCtrl: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]
});
this.thirdFormGroup = this.formBuilder.group({
secondCtrl: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]
});
this.initForm();
this.getModules();
this.getchannels();
this.newsData = this.newsId;
this.newsId = this.newsData ? this.newsData._id : null;
this.newsId && this.getNewsEdit(this.newsData);
}
getNewsEdit(newsObj) {
var _a, _b, _c;
const { teaser, content, publishing, status, postType, channelId } = newsObj;
this.getCategories(newsObj.channelId);
// this.channel = publish.channelId,
// this.category = publish.categoryId,
this.channelName = newsObj.channelId.name;
this.categoryName = newsObj.categoryId.name;
this.createNewsForm.patchValue({
postType: postType,
teaser: {
title: teaser.title,
listingType: teaser.listingType,
image: teaser.image,
},
content: {
title: content.title,
image: content.image,
isTeaserImage: content.isTeaserImage,
content: content.content,
},
publish: {
channelId: newsObj.channelId._id,
categoryId: newsObj.categoryId._id,
startDate: publishing.startDate,
endDate: publishing.endDate,
moduleId: ((_a = newsObj === null || newsObj === void 0 ? void 0 : newsObj.moduleId) === null || _a === void 0 ? void 0 : _a._id) || null,
moduleData: { moduleName: ((_b = newsObj === null || newsObj === void 0 ? void 0 : newsObj.moduleId) === null || _b === void 0 ? void 0 : _b.moduleName) || null, _id: ((_c = newsObj === null || newsObj === void 0 ? void 0 : newsObj.moduleId) === null || _c === void 0 ? void 0 : _c._id) || null }
},
status: status,
});
// const sub = this.newsService
// .getSingleNewsEvents(id)
// .pipe(
// finalize(() => {
// sub.unsubscribe();
// })
// )
// .subscribe(
// ({ data:{teaser,content,publish,status,postType} }: any) => {
// this.getCategories(publish.channelId)
// // this.channel = publish.channelId,
// // this.category = publish.categoryId,
// this.channelName = publish.channelId.name;
// this.categoryName = publish.categoryId.name
// this.createNewsForm.patchValue({
// postType: postType,
// teaser: {
// title: teaser.title,
// listingType: teaser.listingType,
// image: teaser.image,
// },
// content: {
// title: content.title,
// image: content.image,
// isTeaserImage: content.isTeaserImage,
// content: content.content,
// },
// publish: {
// channelId: publish.channelId._id,
// categoryId: publish.categoryId._id,
// startDate: publish.startDate,
// endDate: publish.endDate,
// moduleId: publish.moduleId ? publish.moduleId._id :null,
// },
// status:status,
// });
// },
// (error) => {}
// );
}
getDate(value) {
this.efectiveMinDate = value;
}
deleteModuleData() {
this.createNewsForm.patchValue({
publish: {
moduleData: {
moduleName: null,
_id: null
}
},
});
this.createNewsForm.get('publish').get('moduleId').setValue(null);
}
addModuleData(event) {
this.createNewsForm.patchValue({
publish: {
moduleData: {
moduleName: (event === null || event === void 0 ? void 0 : event.moduleName) || null,
_id: (event === null || event === void 0 ? void 0 : event._id) || null
}
},
});
this.createNewsForm.get('publish').get('moduleId').setValue(null);
}
getchannels() {
const sub = this.newsService
.getAllChannels()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.channelArray = res.data;
});
}
getCategories(channel) {
// this.channel = channel;
this.channelName = channel.name;
// this.categoryName = this.channel.categoryList[0].name;
this.createNewsForm.patchValue({
publish: {
categoryId: null
}
});
if (channel._id) {
const sub = this.newsService
.getAllCategories(channel._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.categoriesArray = res.data;
});
}
}
setCategories(channel) {
this.categoryName = channel.name;
}
getModules() {
const sub = this.newsService
.getnonLinkModules()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data }) => {
this.modulesArray = data.moduleList;
});
}
initForm() {
return (this.createNewsForm = this.formBuilder.group({
postType: 'news',
teaser: this.formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
listingType: 2,
image: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
}),
content: this.formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
image: '',
isTeaserImage: false,
content: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
}),
publish: this.formBuilder.group({
channelId: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
categoryId: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
startDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
moduleId: null,
endDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
moduleData: [{ moduleName: null, _id: null }]
}),
status: 1,
}));
}
onDeleteIcon(key) {
key === 'teaser' ? (this.teaserUrl = null) : (this.mainImageUrl = null);
key === 'teaser'
? this.createNewsForm.get('teaser').patchValue({
image: '',
})
: this.createNewsForm.get('content').patchValue({
image: '',
});
}
dataURLtoFile(dataurl, filename) {
var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[arr.length - 1]), n = bstr.length, u8arr = new Uint8Array(n);
while (n--) {
u8arr[n] = bstr.charCodeAt(n);
}
return new File([u8arr], filename, { type: mime });
}
Upload(key) {
const file = this.dataURLtoFile(this.croppedImage, "croppedImg.png");
const fileUpload = this.newsService
.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
key === 'teaser'
? (this.teaserUrl = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl}${data.data.path}`)
: (this.mainImageUrl = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl}${data.data.path}`);
key === 'teaser'
? this.createNewsForm.get('teaser').patchValue({
image: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl}${data.data.path}`,
})
: this.createNewsForm.get('content').patchValue({
image: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl}${data.data.path}`,
});
key === 'teaser'
? (this.isTeaserLoading = false)
: (this.mainImageLoading = false);
this.tostService.success('Icon Uploaded Successfully');
this.modelService.dismissAll();
this.clear(true);
}, (error) => {
key === 'teaser'
? (this.isTeaserLoading = false)
: (this.mainImageLoading = false);
});
// }
}
preview() {
const { publish: { channelId, categoryId }, content: { content }, } = this.createNewsForm.value;
this.contentTitle = content;
(this.channel = channelId), (this.category = categoryId);
this.modelService.open(this.AddDepartment, {
windowClass: 'modal-ui-fix.center-align',
});
}
openImageCropUpload(value) {
this.imageCategory = value;
this.modelService.open(this.AddImageCropper, {
windowClass: 'modal-ui-fix.center-align.xlModal', size: 'lg',
});
}
saveAsDraft() {
var _a;
if (!this.newsId && !this.minPublicationTimeValidator()) {
return;
}
const { publish: { channelId, categoryId }, } = this.createNewsForm.value;
const data = Object.assign(Object.assign({}, this.createNewsForm.value), {
// status: 'inactive',
userOptions: {
like: false,
comment: false,
share: false,
attendance: false
}, channelId: channelId, categoryId: categoryId, moduleId: (_a = this.createNewsForm.get('publish').get('moduleData').value) === null || _a === void 0 ? void 0 : _a._id, publishing: {
startDate: this.createNewsForm.get('publish').get('startDate').value,
endDate: this.createNewsForm.get('publish').get('endDate').value,
}, isNotifi: true, eventDetails: {}, status: 2 });
this.newsService.createNewsEvents(data).
subscribe((res) => {
this.overViewEvent.emit(null);
this.tostService.success('News Created');
}, (error) => {
this.tostService.error('Please Fill all the fields');
});
}
onCreateNews() {
var _a, _b;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (!this.createNewsForm.valid) {
this.tostService.error('Please Fill the form');
return;
}
if (!this.newsId && !this.minPublicationTimeValidator()) {
return;
}
const { publish: { channelId, categoryId }, } = this.createNewsForm.value;
const data = Object.assign(Object.assign({}, this.createNewsForm.value), { userOptions: {
like: false,
comment: false,
share: false,
attendance: false
}, eventDetails: {}, status: 1, channelId: channelId, categoryId: categoryId, moduleId: (_a = this.createNewsForm.get('publish').get('moduleData').value) === null || _a === void 0 ? void 0 : _a._id, publishing: Object.assign({}, this.createNewsForm.get('publish').value) });
data.publish.moduleId = (_b = this.createNewsForm.get('publish').get('moduleData').value) === null || _b === void 0 ? void 0 : _b._id;
delete data.publishing.categoryId;
delete data.publishing.channelId;
delete data.publishing.moduleId;
delete data.publishing.moduleData;
delete data.publish.moduleData;
if (this.newsId) {
yield sweetalert2__WEBPACK_IMPORTED_MODULE_6___default.a.fire({
title: 'Send Notification!',
text: 'Do you wish to send a notification for this update?',
icon: 'info',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
data['isNotifi'] = 'true';
}
else {
data['isNotifi'] = 'false';
}
});
}
this.newsId ? this.newsService.updateNewsEvents(Object.assign(Object.assign({}, data), { postId: this.newsId })).subscribe((res) => {
this.overViewEvent.emit(null);
this.tostService.success('News updated');
}) :
this.newsService.createNewsEvents(data).subscribe((res) => {
this.overViewEvent.emit(null);
this.tostService.success('News Created');
});
});
}
nextStep(stepIndex) {
this.isSubmitted = true;
if (stepIndex == 1) {
if (this.createNewsForm.controls.teaser.status === 'VALID') {
this.stepper.next();
this.isSubmitted = false;
}
}
else if (stepIndex == 2) {
if (this.createNewsForm.controls.content.status === 'VALID') {
this.stepper.next();
this.isSubmitted = false;
}
}
}
//method to validate publication time
minPublicationTimeValidator() {
const startDateTime = new Date(this.createNewsForm.get('publish.startDate').value);
const endDateTime = new Date(this.createNewsForm.get('publish.endDate').value);
const currentDateTime = new Date();
if (startDateTime <= currentDateTime) {
this.tostService.error('Start time should be greater than current time.');
return false;
}
else if (endDateTime <= startDateTime) {
this.tostService.error('End time should be greater than start time.');
return false;
}
return true;
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
CreateEditManagenewsComponent.ɵfac = function CreateEditManagenewsComponent_Factory(t) { return new (t || CreateEditManagenewsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_8__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"])); };
CreateEditManagenewsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: CreateEditManagenewsComponent, selectors: [["app-create-edit-managenews"]], viewQuery: function CreateEditManagenewsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c2, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_angular_material_stepper__WEBPACK_IMPORTED_MODULE_5__["MatHorizontalStepper"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.myInputVariable = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.AddDepartment = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.AddImageCropper = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.stepper = _t.first);
} }, inputs: { newsId: "newsId" }, outputs: { overViewEvent: "overViewEvent" }, decls: 135, vars: 33, consts: [[3, "linear"], ["stepper", ""], [3, "stepControl"], [3, "formGroup"], ["matStepLabel", ""], [1, "card"], [1, "card-header", "bg-theme"], ["formGroupName", "teaser", 1, "card-body"], [1, "row"], [1, "col-md-4"], [1, "font-weight-bold"], [1, "field-mandatory"], ["formControlName", "listingType", 1, "dropdown-select", "w-100", "form-control"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "row", "mt-4"], [1, "col-md-12"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], ["formControlName", "title", 3, "froalaEditor"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["id", "c", 1, "btn", "custom-file-input", "cursor-pointer", 3, "disabled", "click"], ["for", "i", 1, "custom-file-label"], ["aria-hidden", "true", 1, "fa", 3, "ngClass"], ["class", "col-md-4", 4, "ngIf"], ["class", "col-md-12 p-0", 4, "ngIf"], [1, "btn", "btn-success", "mt-2", 3, "click"], ["formGroupName", "content", 1, "card-body"], [1, "row", "mt-0"], [1, "row", "p-3"], [1, "form-group", "pr-0"], ["type", "checkbox", "formControlName", "isTeaserImage"], ["class", "row mt-4", 4, "ngIf"], ["formControlName", "content", 3, "froalaEditor"], [1, "ml-1"], [1, "btn", "btn-warning", "mt-4", 3, "click"], [1, "btn", "btn-danger", "ml-1", "mt-4", 3, "click"], [1, "card-body"], ["formGroupName", "publish", 1, "col-md-4"], ["bindLabel", "name", "bindValue", "_id", "placeholder", "Channel", "formControlName", "channelId", 3, "items", "searchable", "change"], ["formGroupName", "publish", 1, "row", "mt-4"], ["bindLabel", "name", "bindValue", "_id", "placeholder", "Category", "formControlName", "categoryId", 3, "items", "searchable", "change"], ["bindLabel", "moduleName", "bindValue", "_id", "placeholder", "Module", "formControlName", "moduleId", 3, "items", "searchable", "clearable", "change"], ["class", "col-md-6", 4, "ngIf"], ["formGroupName", "publish"], ["for", "activeEndDate", 1, "pb-2", "font-weight-bold"], ["formControlName", "startDate", 3, "minDate", "sendDate"], ["formControlName", "endDate", 3, "minDate"], [1, "flex-direction", "mt-2"], [1, "btn", "btn-sm", "btn-danger", "ml-3", 3, "click"], [1, "btn", "btn-sm", "btn-success", 3, "disabled", "click"], [1, "btn", "btn-sm", "btn-save", 3, "disabled", "click"], [1, "btn", "preview-button", 3, "click"], ["AddDepartment", ""], ["AddImageCropper", ""], [3, "ngValue"], [1, "image-with-delete-icon", 2, "width", "250px"], ["title", "Delete", 1, "fa", "fa-close", 3, "click"], ["crossorigin", "anonymous", "alt", "Image Preview", 3, "src"], [1, "col-md-12", "p-0"], [1, "text-danger", "font-weight-bold"], [1, "col-md-6"], [1, "labels", "mb-1", "mr-1"], [1, "d-flex"], [1, "material-icons", "bg-danger", "rounded", "btn-close", "ml-2", 3, "click"], [1, "modal-header"], ["id", "modal-basic-title", 1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "smartphone"], [1, "content", "container-scroll"], [1, "pl-2", "pr-2", "content-container", "mt-3"], ["alt", "News Image", "crossorigin", "anonymous", 1, "img-fluid", "rounded", 3, "src"], [3, "froalaView", "innerHTML"], [1, "row", "m-0", "mb-15"], [1, "col-xs-12", "ml-4", "mt-4"], [1, "text-muted", "channel-name"], [1, "row", "m-0"], [1, "d-block", "ng-binding"], ["aria-hidden", "true", 2, "font-size", "30px"], [1, "container"], [1, "row", 2, "margin-top", "5%"], [1, "text-center", "col-md-12"], ["type", "file", "id", "myInput", "accept", "image/png, image/gif, image/jpeg", 1, "text-primary", 3, "change"], ["myInput", ""], [1, "btn", "btn-info", 3, "click"], [1, "horizontal-line"], [4, "ngIf"], [1, "row", "text-center", "p-2", "m-2", "border-1", "bg-wrapper"], [1, "col-md-2"], ["mat-mini-fab", "", "color", "warning", 3, "click"], ["mat-mini-fab", "", "color", "success", 3, "click"], [1, "text-center", "col-5"], ["format", "png", 3, "imageChangedEvent", "maintainAspectRatio", "containWithinAspectRatio", "aspectRatio", "cropperMinWidth", "roundCropper", "canvasRotation", "transform", "alignImage", "imageCropped", "imageLoaded", "cropperReady", "loadImageFailed"], [1, "text-center", "col-7"], [3, "src"], [1, "row", "text-center", "justify-content-center", "pt-4"], [1, "btn", "btn-lg", "btn-success", 3, "click"]], template: function CreateEditManagenewsComponent_Template(rf, ctx) { if (rf & 1) {
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-horizontal-stepper", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "mat-step", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateEditManagenewsComponent_ng_template_4_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "NEWS CONTENT");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Listing type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, CreateEditManagenewsComponent_option_16_Template, 2, 2, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Teaser Title (Limit to 150 Character)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](24, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, "Teaser Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_Template_input_click_32_listener() { return ctx.openImageCropUpload("teaser"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](34, "i", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](35, CreateEditManagenewsComponent_div_35_Template, 4, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](36, CreateEditManagenewsComponent_div_36_Template, 3, 0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_Template_button_click_37_listener() { return ctx.nextStep(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "mat-step", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](41, CreateEditManagenewsComponent_ng_template_41_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, "CONTENT");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "Title (Limit to 150 Character)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](53, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](58, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, " Same as teaser photo");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](62, CreateEditManagenewsComponent_div_62_Template, 11, 6, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](67, "News content");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](69, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](70, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](71, CreateEditManagenewsComponent_div_71_Template, 3, 0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "button", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_Template_button_click_73_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r49); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](74, " Prev ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "button", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_Template_button_click_75_listener() { return ctx.nextStep(2); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](76, "Next");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "mat-step", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](79, CreateEditManagenewsComponent_ng_template_79_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](81, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](82, "PUBLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](85, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](87, "Channel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](89, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](90, "ng-select", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditManagenewsComponent_Template_ng_select_change_90_listener($event) { return ctx.getCategories($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](91, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](93, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](94, "Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](95, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](96, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "ng-select", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditManagenewsComponent_Template_ng_select_change_97_listener($event) { return ctx.setCategories($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](98, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](99, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](100, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](101, "Module");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](102, "ng-select", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditManagenewsComponent_Template_ng_select_change_102_listener($event) { return ctx.addModuleData($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](103, CreateEditManagenewsComponent_div_103_Template, 10, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](104, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](105, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](106, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](107, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](108, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](109, "Publish Date and time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](110, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](111, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](112, "app-date-time-picker", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sendDate", function CreateEditManagenewsComponent_Template_app_date_time_picker_sendDate_112_listener($event) { return ctx.getDate($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](113, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](114, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](115, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](116, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](117, "Expire Date and Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](118, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](119, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](120, "app-date-time-picker", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](121, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](122, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_Template_button_click_122_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r49); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](123, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](124, "button", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_Template_button_click_124_listener() { return ctx.onCreateNews(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](126, "button", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_Template_button_click_126_listener() { return ctx.saveAsDraft(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](127, " Save as Draft ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](128, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditManagenewsComponent_Template_button_click_128_listener() { return ctx.preview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](129, " Preview ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](130, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](131, CreateEditManagenewsComponent_ng_template_131_Template, 23, 8, "ng-template", null, 52, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](133, CreateEditManagenewsComponent_ng_template_133_Template, 18, 1, "ng-template", null, 53, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("linear", ctx.isLinear);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.firstFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.createNewsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.listingType);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx.isTeaserLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](30, _c3, ctx.isTeaserLoading, !ctx.isTeaserLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.createNewsForm.get("teaser").get("image").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isSubmitted && ctx.createNewsForm.controls.teaser.status === "INVALID");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.secondFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.createNewsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.createNewsForm.get("content").get("isTeaserImage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx.otheroptions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isSubmitted && ctx.createNewsForm.controls.content.status === "INVALID");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.thirdFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.createNewsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.channelArray)("searchable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.categoriesArray)("searchable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.modulesArray)("searchable", true)("clearable", ctx.createNewsForm.get("publish").get("moduleId").value ? true : false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.createNewsForm.get("publish").get("moduleData").value == null ? null : ctx.createNewsForm.get("publish").get("moduleData").value.moduleName);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("minDate", ctx.minDate);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("minDate", ctx.efectiveMinDate);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx.createNewsForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.newsId ? "Update News" : " Create News", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !!ctx.newsId);
} }, directives: [_angular_material_stepper__WEBPACK_IMPORTED_MODULE_5__["MatHorizontalStepper"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_5__["MatStep"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_5__["MatStepLabel"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupName"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_13__["FroalaEditorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["CheckboxControlValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_14__["NgSelectComponent"], _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_15__["DateTimePickerComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_x"], angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_13__["FroalaViewDirective"], _angular_material_button__WEBPACK_IMPORTED_MODULE_16__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_17__["MatIcon"], ngx_image_cropper__WEBPACK_IMPORTED_MODULE_18__["ImageCropperComponent"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_19__["SafeHtmlPipe"]], styles: [".smartphone[_ngcontent-%COMP%] {\n position: relative;\n width: 360px;\n height: 640px;\n margin: auto;\n border: 16px black solid;\n border-top-width: 60px;\n border-bottom-width: 60px;\n border-radius: 36px;\n}\n.ck.ck-editor__top[_ngcontent-%COMP%] {\n display: none;\n}\n.ck.ck-content[_ngcontent-%COMP%] {\n border: 1px solid #c4c4c4 !important;\n}\n\n.smartphone[_ngcontent-%COMP%]:before {\n content: \"\";\n display: block;\n width: 60px;\n height: 5px;\n position: absolute;\n top: -30px;\n left: 50%;\n transform: translate(-50%, -50%);\n background: #333;\n border-radius: 10px;\n}\n\n.smartphone[_ngcontent-%COMP%]:after {\n content: \"\";\n display: block;\n width: 35px;\n height: 35px;\n position: absolute;\n left: 50%;\n bottom: -65px;\n transform: translate(-50%, -50%);\n background: #333;\n border-radius: 50%;\n}\n\n.smartphone[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n width: 327px;\n height: 517px;\n background: white;\n}\n.close-icon[_ngcontent-%COMP%] {\n width: 30px;\n float: right;\n margin: 20px;\n}\n.mat-stepper-horizontal[_ngcontent-%COMP%] .mat-horizontal-stepper-header-container {\n background-color: #fff;\n border-radius: 0.25rem;\n margin-bottom: 1rem;\n}\n.mat-stepper-horizontal[_ngcontent-%COMP%] .mat-horizontal-content-container {\n padding: 0;\n}\n.mat-form-field[_ngcontent-%COMP%] {\n margin-top: 16px;\n}\n.text-items[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n}\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n.parent[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-column-gap: 10px;\n grid-row-gap: 10px;\n}\n.child[_ngcontent-%COMP%] {\n height: 20px;\n}\n.wall-name-input[_ngcontent-%COMP%] {\n font-size: 20px;\n}\n.mat-form-field[_ngcontent-%COMP%] {\n margin-top: 16px;\n}\n.text-items[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n}\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n.parent[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-column-gap: 10px;\n grid-row-gap: 10px;\n}\n.child[_ngcontent-%COMP%] {\n height: 20px;\n}\n.criteria-source[_ngcontent-%COMP%] {\n color: #a42138;\n font-weight: 500;\n}\n.criteria-subtext[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n color: black;\n font-weight: 500;\n}\n.criteria-source-radio[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n.flex-direction[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n margin-left: -10px;\n width: 350px;\n}\n.btn-save[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n width: 100px;\n}\n.btn-danger[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n width: auto;\n}\n.btn-add[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n width: auto;\n}\n.btn-success[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n width: auto;\n}\n.btn-warning[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n width: auto;\n}\n.channels-section[_ngcontent-%COMP%] {\n position: relative;\n left: -20px;\n}\n.criteria-radio[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n.reward-points-button[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n border: none;\n}\n.reward-points-button-alt[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n border-color: #a42138;\n width: auto;\n}\n.rewards-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: whitesmoke;\n padding: 10px 20px 10px 20px;\n border-radius: 5px;\n margin-top: 20px;\n}\n.assign-users-buttons[_ngcontent-%COMP%] {\n margin-top: 35px;\n}\n.borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n border: none;\n}\n.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 0;\n}\n.modal-body[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n height: auto;\n}\n.channel-name[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-block;\n border-radius: 4px;\n}\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n}\nimg[_ngcontent-%COMP%] {\n width: 100%;\n height: auto;\n}\n.img-cropper[_ngcontent-%COMP%] {\n float: left;\n width: 70%;\n}\n.cropped-image[_ngcontent-%COMP%] {\n float: right;\n width: 28%;\n}\n.bg-wrapper[_ngcontent-%COMP%] {\n border: 1 solid;\n background: #a42138;\n}\n.container-scroll[_ngcontent-%COMP%] {\n overflow: scroll;\n height: 100%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtbmV3cy9jcmVhdGUtZWRpdC1tYW5hZ2VuZXdzL2NyZWF0ZS1lZGl0LW1hbmFnZW5ld3MuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNEJBQUE7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0VBQ0Esd0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0VBQ0EsbUJBQUE7QUFDRjtBQUNBO0VBQ0UsYUFBQTtBQUVGO0FBQUE7RUFDRSxvQ0FBQTtBQUdGO0FBREEsaURBQUE7QUFDQTtFQUNFLFdBQUE7RUFDQSxjQUFBO0VBQ0EsV0FBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxTQUFBO0VBQ0EsZ0NBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBSUY7QUFEQSwyQ0FBQTtBQUNBO0VBQ0UsV0FBQTtFQUNBLGNBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsU0FBQTtFQUNBLGFBQUE7RUFDQSxnQ0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFJRjtBQURBLDBDQUFBO0FBQ0E7RUFDRSxZQUFBO0VBQ0EsYUFBQTtFQUNBLGlCQUFBO0FBSUY7QUFEQTtFQUNFLFdBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtBQUlGO0FBQUU7RUFDRSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUFHSjtBQUFFO0VBQ0UsVUFBQTtBQUVKO0FBRUE7RUFDRSxnQkFBQTtBQUNGO0FBQ0E7RUFDRSx5QkFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSx1QkFBQTtFQUNBLFlBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0Esd0JBQUE7RUFDQSxxQkFBQTtFQUNBLDBCQUFBO0VBQ0EsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFFRjtBQUFBO0VBQ0UscUJBQUE7QUFHRjtBQURBO0VBQ0UsYUFBQTtFQUNBLHFDQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTtBQUlGO0FBRkE7RUFDRSxZQUFBO0FBS0Y7QUFFQTtFQUNFLGVBQUE7QUFDRjtBQUVBO0VBQ0UsZ0JBQUE7QUFDRjtBQUNBO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0EsdUJBQUE7RUFDQSxZQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTtFQUNBLHdCQUFBO0VBQ0EscUJBQUE7RUFDQSwwQkFBQTtFQUNBLGVBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBRUY7QUFBQTtFQUNFLHFCQUFBO0FBR0Y7QUFEQTtFQUNFLGFBQUE7RUFDQSxxQ0FBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7QUFJRjtBQUZBO0VBQ0UsWUFBQTtBQUtGO0FBRkE7RUFDRSxjQUFBO0VBQ0EsZ0JBQUE7QUFLRjtBQUZBO0VBQ0UsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFLRjtBQUZBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBS0Y7QUFGQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtBQUtGO0FBRkE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFlBQUE7QUFLRjtBQUZBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxXQUFBO0FBS0Y7QUFGQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtFQUNBLHFCQUFBO0VBQ0EsV0FBQTtBQUtGO0FBRkE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFdBQUE7QUFLRjtBQUZBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxXQUFBO0FBS0Y7QUFGQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtBQUtGO0FBRkE7RUFDRSxhQUFBO0VBQ0EsOEJBQUE7QUFLRjtBQUZBO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0EsWUFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSx3QkFBQTtFQUNBLHFCQUFBO0VBQ0EsMEJBQUE7RUFDQSxlQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7QUFLRjtBQUZBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0VBQ0EscUJBQUE7RUFDQSxXQUFBO0FBS0Y7QUFGQTtFQUNFLHlCQUFBO0VBQ0EsaUJBQUE7RUFDQSw0QkFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7QUFLRjtBQUZBO0VBQ0UsZ0JBQUE7QUFLRjtBQUhBOztFQUVFLFlBQUE7QUFNRjtBQUpBOztFQUVFLFVBQUE7QUFPRjtBQUpBO0VBQ0UsYUFBQTtFQUNBLG1CQUFBO0VBQ0EsdUJBQUE7RUFDQSxZQUFBO0FBT0Y7QUFKQTtFQUNFLGVBQUE7QUFPRjtBQUpBO0VBQ0Usb0NBQUE7RUFDQSx1QkFBQTtBQU9GO0FBTEE7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0FBUUY7QUFORTtFQUNFLGtCQUFBO0FBUUo7QUFMRTtFQUNFLGVBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtBQU9KO0FBSEE7RUFDRSxXQUFBO0VBQ0EsWUFBQTtBQU1GO0FBSEE7RUFDRSxXQUFBO0VBQ0EsVUFBQTtBQU1GO0FBSEE7RUFDRSxZQUFBO0VBQ0EsVUFBQTtBQU1GO0FBSEE7RUFDRSxlQUFBO0VBQ0EsbUJBQUE7QUFNRjtBQUhBO0VBQ0UsZ0JBQUE7RUFDQSxZQUFBO0FBTUYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jb21tdW5pY2F0aW9uL21hbmFnZS1uZXdzL2NyZWF0ZS1lZGl0LW1hbmFnZW5ld3MvY3JlYXRlLWVkaXQtbWFuYWdlbmV3cy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qIFRoZSBkZXZpY2Ugd2l0aCBib3JkZXJzICovXG4uc21hcnRwaG9uZSB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgd2lkdGg6IDM2MHB4O1xuICBoZWlnaHQ6IDY0MHB4O1xuICBtYXJnaW46IGF1dG87XG4gIGJvcmRlcjogMTZweCBibGFjayBzb2xpZDtcbiAgYm9yZGVyLXRvcC13aWR0aDogNjBweDtcbiAgYm9yZGVyLWJvdHRvbS13aWR0aDogNjBweDtcbiAgYm9yZGVyLXJhZGl1czogMzZweDtcbn1cbi5jay5jay1lZGl0b3JfX3RvcCB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG4uY2suY2stY29udGVudCB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjNGM0YzQgIWltcG9ydGFudDtcbn1cbi8qIFRoZSBob3Jpem9udGFsIGxpbmUgb24gdGhlIHRvcCBvZiB0aGUgZGV2aWNlICovXG4uc21hcnRwaG9uZTpiZWZvcmUge1xuICBjb250ZW50OiBcIlwiO1xuICBkaXNwbGF5OiBibG9jaztcbiAgd2lkdGg6IDYwcHg7XG4gIGhlaWdodDogNXB4O1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogLTMwcHg7XG4gIGxlZnQ6IDUwJTtcbiAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7XG4gIGJhY2tncm91bmQ6ICMzMzM7XG4gIGJvcmRlci1yYWRpdXM6IDEwcHg7XG59XG5cbi8qIFRoZSBjaXJjbGUgb24gdGhlIGJvdHRvbSBvZiB0aGUgZGV2aWNlICovXG4uc21hcnRwaG9uZTphZnRlciB7XG4gIGNvbnRlbnQ6IFwiXCI7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICB3aWR0aDogMzVweDtcbiAgaGVpZ2h0OiAzNXB4O1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGxlZnQ6IDUwJTtcbiAgYm90dG9tOiAtNjVweDtcbiAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7XG4gIGJhY2tncm91bmQ6ICMzMzM7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbn1cblxuLyogVGhlIHNjcmVlbiAob3IgY29udGVudCkgb2YgdGhlIGRldmljZSAqL1xuLnNtYXJ0cGhvbmUgLmNvbnRlbnQge1xuICB3aWR0aDogMzI3cHg7XG4gIGhlaWdodDogNTE3cHg7XG4gIGJhY2tncm91bmQ6IHdoaXRlO1xufVxuXG4uY2xvc2UtaWNvbiB7XG4gIHdpZHRoOiAzMHB4O1xuICBmbG9hdDogcmlnaHQ7XG4gIG1hcmdpbjogMjBweDtcbn1cblxuLm1hdC1zdGVwcGVyLWhvcml6b250YWwge1xuICAmOjpuZy1kZWVwIC5tYXQtaG9yaXpvbnRhbC1zdGVwcGVyLWhlYWRlci1jb250YWluZXIge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgYm9yZGVyLXJhZGl1czogMC4yNXJlbTtcbiAgICBtYXJnaW4tYm90dG9tOiAxcmVtO1xuICB9XG5cbiAgJjo6bmctZGVlcCAubWF0LWhvcml6b250YWwtY29udGVudC1jb250YWluZXIge1xuICAgIHBhZGRpbmc6IDA7XG4gIH1cbn1cblxuLm1hdC1mb3JtLWZpZWxkIHtcbiAgbWFyZ2luLXRvcDogMTZweDtcbn1cbi50ZXh0LWl0ZW1zIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBsaW5lLWhlaWdodDogMjtcbiAgLyogbWFyZ2luLXJpZ2h0OiAycHg7ICovXG4gIGNvbG9yOiB3aGl0ZTtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTtcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBwYWRkaW5nOiAwLjJlbSAwLjZlbSAwLjNlbTtcbiAgbWFyZ2luOiA1cHggNXB4O1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHBhZGRpbmctcmlnaHQ6IDMzcHg7XG59XG51bCB7XG4gIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbn1cbi5wYXJlbnQge1xuICBkaXNwbGF5OiBncmlkO1xuICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IHJlcGVhdCg0LCAxZnIpO1xuICBncmlkLWNvbHVtbi1nYXA6IDEwcHg7XG4gIGdyaWQtcm93LWdhcDogMTBweDtcbn1cbi5jaGlsZCB7XG4gIGhlaWdodDogMjBweDtcbn1cblxuLy8gc2VsZWN0e1xuLy8gICBoZWlnaHQ6IDMwcHg7XG4vLyB9XG5cbi53YWxsLW5hbWUtaW5wdXQge1xuICBmb250LXNpemU6IDIwcHg7XG59XG5cbi5tYXQtZm9ybS1maWVsZCB7XG4gIG1hcmdpbi10b3A6IDE2cHg7XG59XG4udGV4dC1pdGVtcyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGZvbnQtc2l6ZTogMTNweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgbGluZS1oZWlnaHQ6IDI7XG4gIC8qIG1hcmdpbi1yaWdodDogMnB4OyAqL1xuICBjb2xvcjogd2hpdGU7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmU7XG4gIGJvcmRlci1yYWRpdXM6IDAuMjVlbTtcbiAgcGFkZGluZzogMC4yZW0gMC42ZW0gMC4zZW07XG4gIG1hcmdpbjogNXB4IDVweDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBwYWRkaW5nLXJpZ2h0OiAzM3B4O1xufVxudWwge1xuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG59XG4ucGFyZW50IHtcbiAgZGlzcGxheTogZ3JpZDtcbiAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiByZXBlYXQoNCwgMWZyKTtcbiAgZ3JpZC1jb2x1bW4tZ2FwOiAxMHB4O1xuICBncmlkLXJvdy1nYXA6IDEwcHg7XG59XG4uY2hpbGQge1xuICBoZWlnaHQ6IDIwcHg7XG59XG5cbi5jcml0ZXJpYS1zb3VyY2Uge1xuICBjb2xvcjogI2E0MjEzODtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbn1cblxuLmNyaXRlcmlhLXN1YnRleHQge1xuICBtYXJnaW4tYm90dG9tOiAxcmVtO1xuICBjb2xvcjogYmxhY2s7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG59XG5cbi5jcml0ZXJpYS1zb3VyY2UtcmFkaW8ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5mbGV4LWRpcmVjdGlvbiB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgbWFyZ2luLWxlZnQ6IC0xMHB4O1xuICB3aWR0aDogMzUwcHg7XG59XG5cbi5idG4tc2F2ZSB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzM3YWI3O1xuICBib3JkZXItY29sb3I6ICMyZTZkYTQ7XG4gIHdpZHRoOiAxMDBweDtcbn1cblxuLmJ0bi1kYW5nZXIge1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Q5NTM0ZjtcbiAgYm9yZGVyLWNvbG9yOiAjZDQzZjNhO1xuICB3aWR0aDogYXV0bztcbn1cblxuLmJ0bi1hZGQge1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Q5NTM0ZjtcbiAgYm9yZGVyLWNvbG9yOiAjZDQzZjNhO1xuICB3aWR0aDogYXV0bztcbn1cblxuLmJ0bi1zdWNjZXNzIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICM1Y2I4NWM7XG4gIGJvcmRlci1jb2xvcjogIzRjYWU0YztcbiAgd2lkdGg6IGF1dG87XG59XG5cbi5idG4td2FybmluZyB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjBhZDRlO1xuICBib3JkZXItY29sb3I6ICNlZWEyMzY7XG4gIHdpZHRoOiBhdXRvO1xufVxuXG4uY2hhbm5lbHMtc2VjdGlvbiB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgbGVmdDogLTIwcHg7XG59XG5cbi5jcml0ZXJpYS1yYWRpbyB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuLnJld2FyZC1wb2ludHMtYnV0dG9uIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBsaW5lLWhlaWdodDogMjtcbiAgY29sb3I6IHdoaXRlO1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgdmVydGljYWwtYWxpZ246IGJhc2VsaW5lO1xuICBib3JkZXItcmFkaXVzOiAwLjI1ZW07XG4gIHBhZGRpbmc6IDAuMmVtIDAuNmVtIDAuM2VtO1xuICBtYXJnaW46IDVweCA1cHg7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgcGFkZGluZy1yaWdodDogMzNweDtcbiAgYm9yZGVyOiBub25lO1xufVxuXG4ucmV3YXJkLXBvaW50cy1idXR0b24tYWx0IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG4gIGJvcmRlci1jb2xvcjogI2E0MjEzODtcbiAgd2lkdGg6IGF1dG87XG59XG5cbi5yZXdhcmRzLWhlYWRpbmcge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogd2hpdGVzbW9rZTtcbiAgcGFkZGluZzogMTBweCAyMHB4IDEwcHggMjBweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICBtYXJnaW4tdG9wOiAyMHB4O1xufVxuXG4uYXNzaWduLXVzZXJzLWJ1dHRvbnMge1xuICBtYXJnaW4tdG9wOiAzNXB4O1xufVxuLmJvcmRlcmxlc3MgdGQsXG4uYm9yZGVybGVzcyB0aCB7XG4gIGJvcmRlcjogbm9uZTtcbn1cbi50YWJsZSB0aCxcbi50YWJsZSB0ZCB7XG4gIHBhZGRpbmc6IDA7XG59XG5cbi5tb2RhbC1ib2R5IHtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGhlaWdodDogYXV0bztcbn1cblxuLmNoYW5uZWwtbmFtZSB7XG4gIGZvbnQtc2l6ZTogMTRweDtcbn1cblxuOjpuZy1kZWVwIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tbWFya2VkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzIxOTZmMyAhaW1wb3J0YW50O1xuICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cbi5sYWJlbHMge1xuICBwYWRkaW5nOiA2cHggOHB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcblxuICAudGV4dCB7XG4gICAgbWFyZ2luLWJvdHRvbTogMnB4O1xuICB9XG5cbiAgLmJ0bi1jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIHBhZGRpbmc6IDJweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbn1cblxuaW1nIHtcbiAgd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogYXV0bztcbn1cblxuLmltZy1jcm9wcGVyIHtcbiAgZmxvYXQ6IGxlZnQ7XG4gIHdpZHRoOiA3MCU7XG59XG5cbi5jcm9wcGVkLWltYWdlIHtcbiAgZmxvYXQ6IHJpZ2h0O1xuICB3aWR0aDogMjglO1xufVxuXG4uYmctd3JhcHBlciB7XG4gIGJvcmRlcjogMSBzb2xpZDtcbiAgYmFja2dyb3VuZDogI2E0MjEzODtcbn1cblxuLmNvbnRhaW5lci1zY3JvbGwge1xuICBvdmVyZmxvdzogc2Nyb2xsO1xuICBoZWlnaHQ6IDEwMCU7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](CreateEditManagenewsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
args: [{
selector: 'app-create-edit-managenews',
templateUrl: './create-edit-managenews.component.html',
styleUrls: ['./create-edit-managenews.component.scss'],
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"] }, { type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_8__["NewsEventsService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"] }]; }, { myInputVariable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['myInput']
}], AddDepartment: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['AddDepartment', { static: true }]
}], AddImageCropper: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['AddImageCropper', { static: true }]
}], newsId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
}], stepper: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: [_angular_material_stepper__WEBPACK_IMPORTED_MODULE_5__["MatHorizontalStepper"], { static: false }]
}] }); })();
/***/ }),
/***/ "X+41":
/*!*******************************************************************************************!*\
!*** ./src/app/users/pages/users/create-users/users-overview/users-overview.component.ts ***!
\*******************************************************************************************/
/*! exports provided: UsersOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersOverviewComponent", function() { return UsersOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function UsersOverviewComponent_span_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UsersOverviewComponent_table_19_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UsersOverviewComponent_table_19_tr_14_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const item_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r5.onEditUser(item_r4._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r4 == null ? null : item_r4.name, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4 == null ? null : item_r4.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4 == null ? null : item_r4.appointment == null ? null : item_r4.appointment.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r4 == null ? null : item_r4.businessUnit, " ");
} }
function UsersOverviewComponent_table_19_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function UsersOverviewComponent_table_19_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " USER NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function UsersOverviewComponent_table_19_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " STAFF ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function UsersOverviewComponent_table_19_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " APPOINMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function UsersOverviewComponent_table_19_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " PARENT BUSSINESS UNIT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, UsersOverviewComponent_table_19_tr_14_Template, 13, 4, "tr", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function UsersOverviewComponent_ngx_skeleton_loader_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 25);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
class UsersOverviewComponent {
constructor(userService, toastService, tableService) {
this.userService = userService;
this.toastService = toastService;
this.tableService = tableService;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this.isTableLoading = false;
this.userTableColumn = ['name', 'staffId', 'appointment.name', 'businessUnit', '_id'];
this.tableQueryParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__["tableParam"];
this.EditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'createdBy',
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
filter: {
status: ['active', 'inactive'],
parentBussinessUnitId: [],
},
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.tableQueryParams.start = 0;
this.tableQueryParams.search.value = input;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sort = { key: column, order: direction };
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.tableQueryParams.start = +page > 1 ? (page - 1) * this.usersPTable.limit : 0;
this.loadUsers();
}
onLimitChangeUsers() {
this.usersPTable.page = 1;
this.tableQueryParams.start = 0;
this.loadUsers();
}
ngOnInit() {
this.tableQueryParams.draw = 0;
this.tableQueryParams.search.value = "";
this.loadUsers();
}
onEditUser(id) {
this.EditEvent.emit(id);
}
loadUsers() {
// const { data, total, isLoading, ...rest } = this.usersPTable;
let tableCol = this.tableService.initializeTableParamsColums(this.userTableColumn, [0, 1], [0, 1, 2, 3, 4]) || [];
this.tableQueryParams.columns = tableCol;
this.tableQueryParams.draw++;
this.tableQueryParams.length = this.usersPTable.limit;
this.isTableLoading = true;
const subscribe = this.userService
.getAllViewUsers(this.tableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
// const { count, data } = response.data;
this.usersPTable.data = response.data;
this.usersPTable.total = response === null || response === void 0 ? void 0 : response.recordsFiltered;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
this.isTableLoading = false;
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
UsersOverviewComponent.ɵfac = function UsersOverviewComponent_Factory(t) { return new (t || UsersOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__["TableService"])); };
UsersOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UsersOverviewComponent, selectors: [["users-overview"]], viewQuery: function UsersOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { EditEvent: "EditEvent" }, decls: 28, vars: 15, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body", "table-responsive", "p-0"], [1, "d-flex", "justify-content-between", "m-2"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], ["class", "table", 4, "ngIf"], ["count", "6", 3, "theme", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "font-weight-500"], [1, "btn", "btn-success", "btn-sm", 3, "click"], ["count", "6", 3, "theme"]], template: function UsersOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "select", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function UsersOverviewComponent_Template_select_change_5_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function UsersOverviewComponent_Template_select_ngModelChange_5_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, UsersOverviewComponent_span_17_Template, 2, 0, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function UsersOverviewComponent_Template_input_search_18_listener($event) { return ctx.userssearchInput.next($event); })("keyup", function UsersOverviewComponent_Template_input_keyup_18_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function UsersOverviewComponent_Template_input_ngModelChange_18_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, UsersOverviewComponent_table_19_Template, 15, 1, "table", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, UsersOverviewComponent_ngx_skeleton_loader_20_Template, 1, 2, "ngx-skeleton-loader", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "p", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "b", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "ngb-pagination", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function UsersOverviewComponent_Template_ngb_pagination_pageChange_27_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function UsersOverviewComponent_Template_ngb_pagination_pageChange_27_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.usersPTable.total);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_12__["NgxSkeletonLoaderComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3VzZXJzL2NyZWF0ZS11c2Vycy91c2Vycy1vdmVydmlldy91c2Vycy1vdmVydmlldy5jb21wb25lbnQuc2NzcyJ9 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'users-overview',
templateUrl: './users-overview.component.html',
styleUrls: ['./users-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__["TableService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"]]
}], EditEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "X1Sg":
/*!********************************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/admin-question-form/admin-question-form.component.ts ***!
\********************************************************************************************************************/
/*! exports provided: AdminQuestionFormComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminQuestionFormComponent", function() { return AdminQuestionFormComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/drag-drop */ "5+WD");
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/dialog */ "0IaG");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _my_forms_signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../my-forms/signature-questions/signature-questions.component */ "roDN");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/input */ "qFsG");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/material/button */ "bTqV");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../../../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["adminQuestion"];
const _c1 = ["myImage"];
function AdminQuestionFormComponent_ng_template_0_div_6_div_1_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r9 == null ? null : item_r9.title);
} }
function AdminQuestionFormComponent_ng_template_0_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_6_div_1_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const item_r9 = ctx.$implicit; const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r13.onShowWorkFlowContent(item_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_6_div_1_span_2_Template, 2, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r8.workflow !== undefined && ctx_r8.workflow !== null);
} }
function AdminQuestionFormComponent_ng_template_0_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_6_div_1_Template, 3, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.workflow);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_7_Template(rf, ctx) { if (rf & 1) {
const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "textarea", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_7_Template_textarea_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r39); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r18.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r18.answer)("disabled", !ctx_r20.notAnswered);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_8_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r42 == null ? null : option_r42.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_8_div_1_div_1_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_8_div_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r47); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r18.answer = $event; })("change", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_8_div_1_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r47); const option_r42 = ctx.$implicit; const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r48.setChild(item_r18, option_r42); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r42 = ctx.$implicit;
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r42.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r42._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", item_r18._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r42 == null ? null : option_r42.value)("ngModel", item_r18.answer)("disabled", !ctx_r41.notAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r42.value);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_8_div_1_Template, 5, 7, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18.options);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_9_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r53 == null ? null : option_r53.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_9_div_1_div_1_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_9_div_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r18.answer = $event; })("change", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_9_div_1_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const option_r53 = ctx.$implicit; const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r59.setChild(item_r18, option_r53); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r53 = ctx.$implicit;
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r53.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r53._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", item_r18._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r53 == null ? null : option_r53.value)("ngModel", item_r18.answer)("disabled", !ctx_r52.notAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("for", option_r53._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r53.value);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_9_div_1_Template, 5, 8, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18.options);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
const _r72 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "img", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_img_2_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r72); const i_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r18.selected = i_r65; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", option_r64.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_h5_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "h5", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.percentData[option_r64 == null ? null : option_r64._id], "% answered");
} }
const _c2 = function (a0) { return { "width": a0 }; };
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
const _r79 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_div_4_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r79); const option_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r77.selectPolling(item_r18._id, option_r64); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "img", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](2, _c2, option_r64.imageSrc ? "270px" : "150px"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", "./assets/images/" + (option_r64.answer ? "like1" : "like0") + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_span_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", option_r64.percentage, " %");
} }
const _c3 = function (a0) { return { "pollingSelect": a0 }; };
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_Template(rf, ctx) { if (rf & 1) {
const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_img_2_Template, 1, 1, "img", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_h5_3_Template, 2, 1, "h5", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_div_4_Template, 5, 4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "h4", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_Template_h4_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r85); const i_r65 = ctx.index; const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r18.selected = i_r65; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_span_8_Template, 2, 1, "span", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r64 = ctx.$implicit;
const i_r65 = ctx.index;
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("for", option_r64._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r64.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.percentData) ? item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.percentData[option_r64 == null ? null : option_r64._id] : false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !(item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.percentData));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](7, _c3, item_r18.selected === i_r65));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r64.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r64.percentage);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_div_2_Template, 9, 9, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18.options);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_11_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "img", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r89.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
const _r95 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_11_div_2_div_1_Template, 3, 1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_11_div_2_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r95); const option_r89 = ctx.$implicit; const ctx_r94 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); const item_r18 = ctx_r94.$implicit; const i_r19 = ctx_r94.index; const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r93.setTypeFive(item_r18, option_r89, i_r19, $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r89 = ctx.$implicit;
const index_r90 = ctx.index;
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r89.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", option_r89._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r89._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", (item_r18.answer[index_r90] == null ? null : item_r18.answer[index_r90].selected) == true)("disabled", !ctx_r88.notAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r89.value);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_11_div_2_Template, 5, 6, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18.options);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", item_r18.answer, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_12_Template(rf, ctx) { if (rf & 1) {
const _r101 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_12_div_2_Template, 2, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_12_Template_button_click_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r101); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r100.openDialog($event, item_r18); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Signature");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "mat-icon", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r25.notAnswered);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_13_Template(rf, ctx) { if (rf & 1) {
const _r106 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "textarea", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_13_Template_textarea_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r106); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r18.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("maxlength", !!(item_r18 == null ? null : item_r18.maxlength) ? item_r18 == null ? null : item_r18.maxlength : 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r18.answer)("disabled", !ctx_r26.notAnswered);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_14_Template(rf, ctx) { if (rf & 1) {
const _r110 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "input", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_14_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r110); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r18.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r18.answer)("disabled", !ctx_r27.notAnswered);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
const _r120 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "input", 69, 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_1_Template_input_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r120); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r18.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "ngb-timepicker", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_1_Template_ngb_timepicker_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r120); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r18.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
const ctx_r114 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r18.answer["date"])("disabled", !ctx_r114.notAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r18.answer["time"])("meridian", true)("hourStep", ctx_r114.hourStep)("minuteStep", ctx_r114.minuteStep)("disabled", !ctx_r114.notAnswered);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
const _r128 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "input", 69, 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_2_div_1_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r128); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit; return (item_r18.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r18.answer["date"])("disabled", !ctx_r124.notAnswered);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_2_div_1_Template, 6, 2, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r113 === 1);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
const _r133 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ngb-timepicker", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_3_Template_ngb_timepicker_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r133); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r18.answer["time"] = $event); })("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_3_Template_ngb_timepicker_ngModelChange_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r133); const ctx_r134 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](6); return ctx_r134.timeChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
const ctx_r116 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r18.answer["time"])("meridian", true)("hourStep", ctx_r116.hourStep)("minuteStep", ctx_r116.minuteStep);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_1_Template, 11, 7, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_2_Template, 2, 1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_div_3_Template, 5, 4, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r113 = ctx.$implicit;
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r18.dateTime == null ? null : item_r18.dateTime.length) === 2 && option_r113 === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r18.dateTime == null ? null : item_r18.dateTime.length) === 1 && option_r113 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r113 === 2 && (item_r18.dateTime == null ? null : item_r18.dateTime.length) === 1);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_div_1_Template, 4, 3, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18.dateTime);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_16_ng_option_3_img_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 81);
} if (rf & 2) {
const choice_r139 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", choice_r139.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_16_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_16_ng_option_3_img_1_Template, 1, 1, "img", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r139 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", choice_r139.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", choice_r139.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" \u00A0", choice_r139.value, " ");
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_16_Template(rf, ctx) { if (rf & 1) {
const _r144 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "ng-select", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_16_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r144); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r18.answer = $event; })("change", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_16_Template_ng_select_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r144); const ctx_r146 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); const item_r18 = ctx_r146.$implicit; const i_r19 = ctx_r146.index; const ctx_r145 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r145.setChild(item_r18, item_r18.answer, i_r19); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_16_ng_option_3_Template, 3, 3, "ng-option", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", false)("ngModel", item_r18.answer)("readonly", !ctx_r29.notAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18.options);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_17_span_7_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, ", ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_17_span_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_17_span_7_span_2_Template, 2, 0, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const fileType_r149 = ctx.$implicit;
const index_r150 = ctx.index;
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", fileType_r149.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r18.options == null ? null : item_r18.options.length) != index_r150 + 1);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_17_Template(rf, ctx) { if (rf & 1) {
const _r154 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_17_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r154); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r153 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r153.fileUpload($event, item_r18); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "a", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_17_span_7_Template, 3, 2, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r30.notAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("download", item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.fileName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("href", ctx_r30.safeUrl(item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.url), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.fileName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18 == null ? null : item_r18.options);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_18_Template(rf, ctx) { if (rf & 1) {
const _r159 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "ngb-rating", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("rateChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_18_Template_ngb_rating_rateChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r159); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r18.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("max", item_r18.value)("rate", item_r18.answer);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r163 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", choice_r163._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", choice_r163.name, " ");
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_div_6_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const obj_r165 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", obj_r165 == null ? null : obj_r165.name, " ");
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_div_6_div_3_Template, 3, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18 == null ? null : item_r18.answer);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_Template(rf, ctx) { if (rf & 1) {
const _r169 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r169); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r168 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r168.multiSelect($event, item_r18); })("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r169); const ctx_r171 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r171.user = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_ng_option_4_Template, 2, 2, "ng-option", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_div_6_Template, 4, 1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r32.notAnswered)("multiple", true)("searchable", true)("ngModel", ctx_r32.user)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r32.typeFourteenQuestion);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.answer == null ? null : item_r18.answer.length);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_20_div_2_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r174 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", imagObj_r174.src, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_20_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_20_div_2_div_2_Template, 2, 1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r174 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", imagObj_r174.src);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](imagObj_r174.value);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_20_Template(rf, ctx) { if (rf & 1) {
const _r178 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("cdkDropListDropped", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_20_Template_div_cdkDropListDropped_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r178); const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r177 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r177.drop($event, item_r18); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_20_div_2_Template, 6, 2, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18.images);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_ng_container_6_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const value_r185 = ctx.$implicit;
const j_r186 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("left", value_r185 == null ? null : value_r185.coordinates == null ? null : value_r185.coordinates.x, "%")("top", value_r185 == null ? null : value_r185.coordinates == null ? null : value_r185.coordinates.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](j_r186 + 1);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_ng_container_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_ng_container_6_div_1_Template, 3, 5, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18 == null ? null : item_r18.answer);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r18 == null ? null : item_r18.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
const _c4 = function (a0) { return { "position": a0 }; };
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_Template(rf, ctx) { if (rf & 1) {
const _r191 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_Template_div_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r191); const ctx_r190 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); const item_r18 = ctx_r190.$implicit; const i_r19 = ctx_r190.index; const ctx_r189 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r189.openPopup(item_r18.imageSrc, i_r19); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 101, 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_Template_img_click_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r191); const i_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r192 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r192.onImageClick($event, ctx_r192.viewQuestions, i_r19); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_ng_container_6_Template, 2, 1, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_div_8_Template, 5, 3, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](4, _c4, ctx_r34.isPopupOpen ? "sticky" : "relative"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", item_r18.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r34.isFormSubmitted && (item_r18 == null ? null : item_r18.explanation));
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_22_tr_13_td_5_Template(rf, ctx) { if (rf & 1) {
const _r201 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "img", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_22_tr_13_td_5_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r201); const index_r197 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r199 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r199.conditionQuestionDelete(index_r197); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_22_tr_13_Template(rf, ctx) { if (rf & 1) {
const _r203 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "input", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_22_tr_13_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r203); const field_r196 = ctx.$implicit; return field_r196.value = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_22_tr_13_td_5_Template, 2, 0, "td", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r196 = ctx.$implicit;
const index_r197 = ctx.index;
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
const ctx_r195 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", index_r197 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", field_r196.value)("disabled", !ctx_r195.notAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r18 == null ? null : item_r18.answer.length) >= 1);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "strong", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Spot descriptions");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "table", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "SNO");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "DESCRIPTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_22_tr_13_Template, 6, 4, "tr", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r18.answer);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminQuestionFormComponent_ng_template_0_div_7_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "strong", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_7_Template, 3, 2, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_8_Template, 3, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_9_Template, 3, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_10_Template, 4, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_11_Template, 4, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_12_Template, 7, 2, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_13_Template, 5, 3, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_14_Template, 5, 2, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_15_Template, 3, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_16_Template, 5, 6, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_17_Template, 9, 5, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_18_Template, 4, 2, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_19_Template, 7, 7, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_20_Template, 4, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_21_Template, 9, 6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_22_Template, 14, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, AdminQuestionFormComponent_ng_template_0_div_7_div_7_div_23_Template, 2, 0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r18 = ctx.$implicit;
const i_r19 = ctx.index;
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r19 + 1, ")\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 19, item_r18 == null ? null : item_r18.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r18.type === 16 && (item_r18 == null ? null : item_r18.answer == null ? null : item_r18.answer.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.viewQuestions.length == 0);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_span_11_Template(rf, ctx) { if (rf & 1) {
const _r207 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_span_11_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r207); const ctx_r206 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r206.submit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "submit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r16.notAnswered);
} }
function AdminQuestionFormComponent_ng_template_0_div_7_span_12_Template(rf, ctx) { if (rf & 1) {
const _r209 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_7_span_12_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r209); const ctx_r208 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r208.goToChangeStatus(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Go To Change Status");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminQuestionFormComponent_ng_template_0_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "img", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h3", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, AdminQuestionFormComponent_ng_template_0_div_7_div_7_Template, 24, 21, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, AdminQuestionFormComponent_ng_template_0_div_7_span_11_Template, 3, 1, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, AdminQuestionFormComponent_ng_template_0_div_7_span_12_Template, 3, 0, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r5.selectedModule == null ? null : ctx_r5.selectedModule.welComeAttachement, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r5.selectedModule == null ? null : ctx_r5.selectedModule.welComeMessage, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r5.viewQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r5.selectedModule == null ? null : ctx_r5.selectedModule.Message, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.notAnswered);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r5.notAnswered);
} }
function AdminQuestionFormComponent_ng_template_0_ng_container_9_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r212 = ctx.$implicit;
const i_r213 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("left", item_r212 == null ? null : item_r212.coordinates == null ? null : item_r212.coordinates.x, "%")("top", item_r212 == null ? null : item_r212.coordinates == null ? null : item_r212.coordinates.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](i_r213 + 1);
} }
function AdminQuestionFormComponent_ng_template_0_ng_container_9_Template(rf, ctx) { if (rf & 1) {
const _r215 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_ng_container_9_Template_div_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r215); const ctx_r214 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r214.closePopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "i", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "img", 121, 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_ng_container_9_Template_img_click_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r215); const ctx_r216 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r216.onImageClick($event, ctx_r216.typeSixteenIndex); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AdminQuestionFormComponent_ng_template_0_ng_container_9_div_8_Template, 3, 5, "div", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r6.typeSixteenImageSRC, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r6.typeSixteenImageField);
} }
function AdminQuestionFormComponent_ng_template_0_div_10_Template(rf, ctx) { if (rf & 1) {
const _r219 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_10_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r219); const ctx_r218 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r218.closeSign(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "X");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h1", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Signature");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "canvas", 128, 129);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("touchstart", function AdminQuestionFormComponent_ng_template_0_div_10_Template_canvas_touchstart_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r219); const ctx_r220 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r220.startDrawing($event); })("touchmove", function AdminQuestionFormComponent_ng_template_0_div_10_Template_canvas_touchmove_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r219); const ctx_r221 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r221.moved($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Please sign above");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_10_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r219); const ctx_r222 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r222.clearPad(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "clear");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "button", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminQuestionFormComponent_ng_template_0_div_10_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r219); const ctx_r223 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r223.savePad(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "save");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminQuestionFormComponent_ng_template_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AdminQuestionFormComponent_ng_template_0_div_6_Template, 2, 1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, AdminQuestionFormComponent_ng_template_0_div_7_Template, 13, 6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, AdminQuestionFormComponent_ng_template_0_ng_container_9_Template, 9, 2, "ng-container", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, AdminQuestionFormComponent_ng_template_0_div_10_Template, 16, 0, "div", 5);
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.showWorkFlowContent && ctx_r1.workflow.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.showWorkFlowContent && ctx_r1.hasAdditionalQuestion);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.isPopupOpen);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.signQuestionClicked);
} }
class AdminQuestionFormComponent {
constructor(centralBuilderService, dialogRef, toastService, notificationService, modelService, customFormService, sanitizer) {
this.centralBuilderService = centralBuilderService;
this.dialogRef = dialogRef;
this.toastService = toastService;
this.notificationService = notificationService;
this.modelService = modelService;
this.customFormService = customFormService;
this.sanitizer = sanitizer;
this.questionId = null;
this.customFormId = null;
this.selectedWorkFlowID = null;
this.manageFormId = null;
this.workflowId = null;
this.takeQuestion = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.viewPage = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.formTitleviewPage = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.adminModalClosed = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.formSubmitted = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.showWorkFlowContent = false;
this.questions = [];
this.viewQuestions = [];
this.subMittedAnswer = [];
this.time = { hour: 0o0, minute: 0o0, second: 0o0 };
this.dateTime = { hour: 0o0, minute: 0o0, second: 0o0 };
this.dataTimeOnly = { hour: 0o0, minute: 0o0, second: 0o0 };
this.hourStep = 1;
this.minuteStep = 1;
this.secondStep = 30;
this.secondsArray = ['AM', 'PM'];
this.hourArray = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];
this.minuteArray = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59'];
this.hasParent = question => { var _a; return 0 === ((_a = question === null || question === void 0 ? void 0 : question.conditionalQuestions) === null || _a === void 0 ? void 0 : _a.length); };
this.meridian = true;
this.user = { _id: null, name: null };
this.items = [];
this.isModuleView = false;
this.fileToUpload = null;
this.questionDropDownToClear = null;
this.imagePath = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl;
this.typeSixteenImageField = [];
this.isPopupOpen = false;
}
ngOnInit() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
console.log('tttt', this.workflow);
if (this.questionId) {
this.adminQuestionReference = this.modelService.open(this.adminQuestion, {
windowClass: 'modal-ui-fix right-align',
});
this.adminQuestionReference.result.then((data) => {
}, (error) => {
this.adminModalClosed.emit(true);
});
}
});
}
onShowWorkFlowContent(item) {
var _a, _b, _c;
this.currentSelectedWorkFlow = item;
this.showWorkFlowContent = true;
this.hasAdditionalQuestion = !!((_a = item === null || item === void 0 ? void 0 : item.additionalModuleId) === null || _a === void 0 ? void 0 : _a._id);
if (!this.hasAdditionalQuestion) {
this.goToChangeStatus();
}
else {
this.selectedModuleId = (_b = item === null || item === void 0 ? void 0 : item.additionalModuleId) === null || _b === void 0 ? void 0 : _b._id;
const value = this.getQuestions((_c = item === null || item === void 0 ? void 0 : item.additionalModuleId) === null || _c === void 0 ? void 0 : _c._id);
}
}
getSubMittedAnswer() {
}
toggleMeridian() {
this.meridian = !this.meridian;
}
multiSelect(value, question) {
question.answer = value === null || value === void 0 ? void 0 : value.map(x => {
var _a, _b;
if ((_a = this.typeFourteenQuestion) === null || _a === void 0 ? void 0 : _a.find(qus => qus._id == x)) {
return (_b = this.typeFourteenQuestion) === null || _b === void 0 ? void 0 : _b.find(qus => qus._id == x);
}
});
}
close(modalRef) {
modalRef.close();
}
drop(event, question) {
Object(_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_2__["moveItemInArray"])(question.images, event.previousIndex, event.currentIndex);
this.typeFifteen(question);
}
typeFifteen(question) {
let payload;
payload = question.images.map((data) => {
return { "value": data.value, "_id": data.option, correctAns: false };
});
question.images.map((data, i) => {
if (data.src !== '')
payload[i].imageSrc = data.src;
});
question.answer = payload;
}
back() {
this.takeQuestion.emit(false);
}
openDialog(event, questionid) {
const target = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"](event.currentTarget);
const dialogConfig = new _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__["MatDialogConfig"]();
dialogConfig.backdropClass = 'hideFullScreen';
const modalRef = this.dialogRef.open(_my_forms_signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_5__["SignatureQuestionsComponent"], dialogConfig);
modalRef.componentInstance.takeSignature.subscribe((signURL) => {
this.signatureImg = signURL;
questionid.answer = signURL;
this.close(modalRef);
});
}
setTypeFive(a, b, c, event) {
const ind = this.viewQuestions[c].answer.findIndex((data) => {
return data._id == b._id;
});
if (ind >= 0) {
this.viewQuestions[c].answer[ind].selected = event.target.checked;
}
}
formatHoursTo12(date) {
let hour = date.hour % 12 || 12;
let minute;
if (hour < 10)
hour = '0' + hour;
if (date.minute < 10)
minute = '0' + date.minute;
else
minute = date.minute;
let seconds;
if (date.hour < 12)
seconds = 'am';
else
seconds = 'pm';
const time = hour + "-" + minute + "-" + seconds;
return time;
}
isFormSubmitted() {
this.formSubmitted.emit(this.currentSelectedWorkFlow);
}
goToChangeStatus() {
this.takeQuestion.emit(true);
this.modelService.dismissAll(this.adminQuestion);
this.formSubmitted.emit(this.currentSelectedWorkFlow);
}
submit() {
var _a;
const answers = this.viewQuestions.reduce((prev, question, i) => {
var _a, _b, _c, _d, _e, _f, _g, _h;
let answer = null, _id = question._id, type = question.type;
switch (question.type) {
case 1:
case 6:
case 8:
case 9:
case 14:
case 12:
case 13:
case 16:
case 5:
case 15:
answer = question.answer;
break;
case 2:
case 3:
case 11:
answer = ((_a = question === null || question === void 0 ? void 0 : question.options) === null || _a === void 0 ? void 0 : _a.find(item => item.value == question.answer)) || null;
break;
case 10:
if (-1 !== question.dateTime.indexOf(1) && !!question.answer && !!question.answer.date) {
answer = answer || {};
answer["date"] = question.answer.date ? question.answer.date.split("-").reverse().join("-") : null;
}
if (-1 !== question.dateTime.indexOf(2) &&
!!question.answer &&
!!question.answer.time) {
answer = answer || {};
if (((_b = question === null || question === void 0 ? void 0 : question.answer.time) === null || _b === void 0 ? void 0 : _b.hour) && ((_c = question === null || question === void 0 ? void 0 : question.answer.time) === null || _c === void 0 ? void 0 : _c.minute)) {
answer["time"] = this.convert24hourTo12HourFormat(((_d = question.answer.time) === null || _d === void 0 ? void 0 : _d.hour) + ':' + ((_e = question.answer.time) === null || _e === void 0 ? void 0 : _e.minute));
}
}
if ((-1 !== question.dateTime.indexOf(1) && -1 !== question.dateTime.indexOf(2)) &&
!(!!question.answer && !!question.answer.date && !!((_f = question.answer.time) === null || _f === void 0 ? void 0 : _f.hour) && !!((_g = question.answer.time) === null || _g === void 0 ? void 0 : _g.minute))) {
answer = false;
}
break;
case 4:
answer = (_h = question.options) === null || _h === void 0 ? void 0 : _h.filter(v => v.answer);
if (!answer.length) {
answer = null;
}
break;
default:
answer = false;
break;
}
return prev.concat({ _id, answer, type });
}, []);
if (answers === null || answers === void 0 ? void 0 : answers.some(v => v.type === 9 && !(!!v.answer))) {
this.toastService.error('Please enter valid numeric values');
return;
}
if (answers.some(v => !!!v.answer)) {
this.toastService.error("Answer all questions");
return;
}
let _questions = this.questions.map(v => v._id);
const payload = {
isAdminForm: true,
customFormId: this.customFormId,
answers: answers,
manageFormId: this.manageFormId,
moduleId: {
moduleName: (_a = this.selectedModule) === null || _a === void 0 ? void 0 : _a.moduleName,
questions: this.viewQuestions,
_id: this.selectedModuleId,
},
questions: _questions,
workflowId: this.workflowId
};
answers.length > 0 ? this.centralBuilderService.editAnswersAdminOnly(payload).subscribe((data) => {
this.toastService.success("Form Updated Successfully!!");
this.viewPage.emit(this.customFormId);
this.formTitleviewPage.emit(this.selectedModule.moduleName);
//redirect to manage page
this.takeQuestion.emit(true);
this.modelService.dismissAll(this.adminQuestion);
this.formSubmitted.emit(this.currentSelectedWorkFlow);
}) : '';
}
;
downloadAttachMent(answer) {
let a = document.createElement("a");
document.body.appendChild(a);
a.href = answer === null || answer === void 0 ? void 0 : answer.url;
a.download = answer === null || answer === void 0 ? void 0 : answer.name;
a.click();
document.body.removeChild(a);
}
getQuestions(moduleId) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
let payload = {
"customFormId": this.customFormId,
"moduleId": moduleId,
"moduleType": "customForms",
"trackQns": true
};
this.notificationService
.getModuleQuestions(payload)
.subscribe(({ data }) => {
var _a, _b, _c, _d, _e;
this.isModuleView = true;
this.selectedModule = (data === null || data === void 0 ? void 0 : data.data) || null;
if ((_b = (_a = this.selectedModule) === null || _a === void 0 ? void 0 : _a.questions) === null || _b === void 0 ? void 0 : _b.length) {
this.selectedModule.questions = ((_c = this.selectedModule.questions) === null || _c === void 0 ? void 0 : _c.filter(v => 7 !== v.type)) || [];
}
this.questions = this.selectedModule.questions.filter(v => 7 !== v.type) || [];
this.viewQuestions = this.questions.filter(x => 0 === x.conditionalQuestions.length) || [];
let typeFourteen;
typeFourteen = ((_e = (_d = this.viewQuestions) === null || _d === void 0 ? void 0 : _d.find(item => item.type === 14)) === null || _e === void 0 ? void 0 : _e._id) || null;
const answerPayload = {
isAdminModule: true,
customFormId: this.customFormId,
manageFormId: this.manageFormId,
workflowId: this.workflowId,
moduleId: moduleId
};
this.notificationService.getManageFormAnswers(answerPayload).subscribe((data) => {
var _a, _b, _c, _d, _e, _f, _g;
this.notAnswered = ((_b = (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.notAnswered) ? true : false;
this.subMittedAnswer = (_d = (_c = data === null || data === void 0 ? void 0 : data.data) === null || _c === void 0 ? void 0 : _c.data[0]) === null || _d === void 0 ? void 0 : _d.questionId;
const answers = [];
(_e = this.viewQuestions) === null || _e === void 0 ? void 0 : _e.map((item, index) => {
if (item.type == 5) {
item.options.map((data, index) => {
answers[index] = {
"value": data.value,
"correctAns": false,
"imageSrc": "",
"_id": data === null || data === void 0 ? void 0 : data._id,
"selected": false
};
});
item.answer = answers;
}
if (item.type === 10) {
item.answer = {};
item.answer['date'] = null;
item.answer['time'] = null;
}
});
if (!this.notAnswered) {
(_f = this.viewQuestions) === null || _f === void 0 ? void 0 : _f.map((item, index) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
const url = item === null || item === void 0 ? void 0 : item.answer;
if (item.type === 10) {
item.answer = { date: null, time: null };
const time = (_c = (_b = (_a = this.subMittedAnswer[index]) === null || _a === void 0 ? void 0 : _a.answer) === null || _b === void 0 ? void 0 : _b.time) === null || _c === void 0 ? void 0 : _c.split(':');
item.answer.date = ((_d = this.subMittedAnswer[index]) === null || _d === void 0 ? void 0 : _d.answer.date) ? (_f = (_e = this.subMittedAnswer[index]) === null || _e === void 0 ? void 0 : _e.answer.date) === null || _f === void 0 ? void 0 : _f.split("-").reverse().join("-") : null;
item.answer.time = time ? { hour: parseInt(time[0]), minute: parseInt(time[1]), second: 0 } : null;
}
if (item.type == 8 || item.type == 9 || item.type == 1 || item.type == 13)
item.answer = (_g = this.subMittedAnswer[index]) === null || _g === void 0 ? void 0 : _g.answer;
if (item.type == 2 || item.type == 3) {
const answer = (_h = this.subMittedAnswer[index]) === null || _h === void 0 ? void 0 : _h.answer;
item.answer = typeof answer == 'object' ? answer === null || answer === void 0 ? void 0 : answer.value : answer;
}
if (item.type == 11) {
item.answer = ((_j = this.subMittedAnswer[index]) === null || _j === void 0 ? void 0 : _j.answer) ? typeof ((_k = this.subMittedAnswer[index]) === null || _k === void 0 ? void 0 : _k.answer) === 'object' ? (_m = (_l = this.subMittedAnswer[index]) === null || _l === void 0 ? void 0 : _l.answer) === null || _m === void 0 ? void 0 : _m.value : (_o = this.subMittedAnswer[index]) === null || _o === void 0 ? void 0 : _o.answer : null;
}
if (item.type == 12) {
item.answer = url;
}
if (item.type == 6) {
item.answer = `${((_p = this.subMittedAnswer[index]) === null || _p === void 0 ? void 0 : _p.answer) || ''}`.startsWith(`data:image/png;base64,`) ? (_q = this.subMittedAnswer[index]) === null || _q === void 0 ? void 0 : _q.answer : `data:image/png;base64,${(_r = this.subMittedAnswer[index]) === null || _r === void 0 ? void 0 : _r.answer}`;
}
if (item.type == 5) {
item.answer = (_s = this.subMittedAnswer[index]) === null || _s === void 0 ? void 0 : _s.answer;
/* don't remove this code now as it can be used in future*/
// this.subMittedAnswer[index]?.answer.map((data,index)=>{
// const ind = item.options.findIndex((opt)=>{
// return opt?.value == data?.value
// })
// if(ind >= 0 )
// {
// answers[ind].selected = true
// }
// })
// item.answer = answers
}
if (item.type == 15) {
item.answer = JSON.parse(JSON.stringify((_t = this.subMittedAnswer[index]) === null || _t === void 0 ? void 0 : _t.answer)) || [];
(_u = this.subMittedAnswer[index]) === null || _u === void 0 ? void 0 : _u.answer.map((final, index) => {
item['images'][index] = { "src": (final === null || final === void 0 ? void 0 : final.imageSrc) || "", "value": final === null || final === void 0 ? void 0 : final.value, "option": final._id };
});
}
if (item.type == 4) {
item.answer = (_v = this.subMittedAnswer[index]) === null || _v === void 0 ? void 0 : _v.answer;
this.selectPolling(item === null || item === void 0 ? void 0 : item._id, (_w = this.subMittedAnswer[index]) === null || _w === void 0 ? void 0 : _w.answer[0]);
}
if (item.type === 14) {
typeFourteen = item._id;
item.answer = (_x = this.subMittedAnswer[index]) === null || _x === void 0 ? void 0 : _x.answer;
}
if (item.type == 16) {
this.typeSixteenImageField = item.answer;
}
});
}
else if (this.notAnswered) {
(_g = this.viewQuestions) === null || _g === void 0 ? void 0 : _g.map((item, index) => {
var _a;
if ((item === null || item === void 0 ? void 0 : item.type) == 15) {
item === null || item === void 0 ? void 0 : item.options.map((final, index) => {
item['images'][index] = { "src": (final === null || final === void 0 ? void 0 : final.imageSrc) || "", "value": final === null || final === void 0 ? void 0 : final.value, "option": final._id };
});
}
if ((item === null || item === void 0 ? void 0 : item.type) != 5 && item.type != 10) {
((_a = this.viewQuestions[index]) === null || _a === void 0 ? void 0 : _a.answer) ? this.viewQuestions[index].answer = "" : '';
}
});
}
});
this.getNominateUserType(typeFourteen);
});
return true;
});
}
fileUpload(event, item) {
var _a;
let typeList = ((_a = item.options) === null || _a === void 0 ? void 0 : _a.map(data => { return data.value.toLowerCase(); })) || [];
if (event.target.files && event.target.files.length) {
const file = event.target.files[0];
let fileType = file.name.split('.');
let fileExe = (fileType === null || fileType === void 0 ? void 0 : fileType.length) ? fileType[fileType.length - 1].toLowerCase() : null;
if (fileExe && (typeList === null || typeList === void 0 ? void 0 : typeList.includes(fileExe))) {
var useraddData = new FormData();
useraddData.append("file", file);
const fileUpload = this.customFormService
.uploadFiles(useraddData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_6__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
item.answer = { url: (data === null || data === void 0 ? void 0 : data.filePath) || null, fileName: file.name };
}, (error) => {
this.toastService.error((error === null || error === void 0 ? void 0 : error.message) || 'File upload error');
});
}
else {
this.toastService.error("Only this format are accecpted", typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
// }
}
else {
this.toastService.error("Only this format are accecpted", typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
}
getNominateUserType(questionId) {
let finalData = {
questionId: questionId
};
this.centralBuilderService.getNominateUser(finalData).subscribe((data) => {
this.setDropdown(data.data, questionId);
});
}
setDropdown(data, questionId) {
this.typeFourteenQuestion = (data === null || data === void 0 ? void 0 : data.items) || [];
this.questionIDFourteen = questionId;
}
setChild(question, option, index) {
if (question.type == 11) {
this.selectedModule.questions[index].answer = option;
this.selectedModule.questions[index].isVisibleList = !this.selectedModule.questions[index].isVisibleList;
}
this.checkQuestions(question, option._id);
}
;
checkQuestions(question, a) {
var _a, _b;
let q = question._id;
const filteredQuestions = (_b = (_a = this.questions) === null || _a === void 0 ? void 0 : _a.filter(v => {
var _a;
return !this.hasParent(v) && ((_a = v === null || v === void 0 ? void 0 : v.conditionalQuestions) === null || _a === void 0 ? void 0 : _a.some(c => c.questionId === q && c.optionId === a));
})) === null || _b === void 0 ? void 0 : _b.map(c => {
c["cQuestion"] = q;
c["cOption"] = a;
return JSON.parse(JSON.stringify(c));
});
if (question.type == 5) {
setTimeout(() => {
var _a, _b, _c;
if (!question.options.filter(option => option._id === a)[0].answer) {
let allQuestionsadded = filteredQuestions.map(v => v._id);
let questionsNeedToDelete = (_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.reduce((prev, curr, i) => {
return allQuestionsadded.includes(curr._id) ? prev.concat(i) : prev;
}, []);
questionsNeedToDelete.sort((a, b) => b - a);
questionsNeedToDelete.forEach(v => {
this.viewQuestions.splice(v, 1);
});
}
else {
const index = ((_b = this.viewQuestions) === null || _b === void 0 ? void 0 : _b.findIndex(ques => ques._id == q)) + 1;
this.viewQuestions.splice(index, 0, ...filteredQuestions);
}
this.viewQuestions = (_c = this.viewQuestions) === null || _c === void 0 ? void 0 : _c.reduce((prev, curr, i) => {
const index = prev.findIndex(v => v._id === curr._id);
return -1 === index ? prev.concat(curr) : prev;
}, []);
}, 100);
}
else {
setTimeout(() => {
var _a;
this.viewQuestions = (_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.filter(ques => "cQuestion" in ques ? ques.cQuestion !== q : true);
const index = this.viewQuestions.findIndex(ques => ques._id == q) + 1;
this.viewQuestions.splice(index, 0, ...filteredQuestions);
this.viewQuestions = this.viewQuestions.reduce((prev, curr, i) => {
const index = prev.findIndex(v => v._id === curr._id);
return -1 === index ? prev.concat(curr) : prev;
}, []);
});
}
}
;
selectPolling(questionId, option) {
var _a, _b, _c, _d, _e;
let question = this.questions.find(q => q._id.toString() === questionId.toString());
if (!question.pollingSelectionCount || (1 === question.pollingSelectionCount)) {
(_a = question.options) === null || _a === void 0 ? void 0 : _a.forEach(opt => { var _a, _b; return opt.answer = (((_a = option === null || option === void 0 ? void 0 : option._id) === null || _a === void 0 ? void 0 : _a.toString()) === ((_b = opt === null || opt === void 0 ? void 0 : opt._id) === null || _b === void 0 ? void 0 : _b.toString())); });
}
else if ((((_c = (_b = question.options) === null || _b === void 0 ? void 0 : _b.filter(op => op.answer)) === null || _c === void 0 ? void 0 : _c.length) === (question === null || question === void 0 ? void 0 : question.pollingSelectionCount)) && !(option === null || option === void 0 ? void 0 : option.answer)) {
this.toastService.error('maxinum options reach for this question');
}
else {
question.options.find(op => { var _a, _b; return ((_a = op === null || op === void 0 ? void 0 : op._id) === null || _a === void 0 ? void 0 : _a.toString()) === ((_b = option === null || option === void 0 ? void 0 : option._id) === null || _b === void 0 ? void 0 : _b.toString()); }).answer =
!((_e = (_d = question.options) === null || _d === void 0 ? void 0 : _d.find(op => { var _a, _b; return ((_a = op === null || op === void 0 ? void 0 : op._id) === null || _a === void 0 ? void 0 : _a.toString()) === ((_b = option === null || option === void 0 ? void 0 : option._id) === null || _b === void 0 ? void 0 : _b.toString()); })) === null || _e === void 0 ? void 0 : _e.answer);
}
}
convert24hourTo12HourFormat(time) {
const time_part_array = time.split(":");
let ampm = 'am';
if (time_part_array[0] >= 12) {
ampm = 'pm';
}
if (time_part_array[0] > 12) {
time_part_array[0] = time_part_array[0] - 12;
}
const formatted_time = time_part_array[0] + ':' + time_part_array[1] + ':' + ampm;
return formatted_time;
}
onImageClick(event, viewQuestions, index) {
if (index >= 0 && this.viewQuestions[index].answer != "")
this.typeSixteenImageField = this.viewQuestions[index].answer;
else
this.typeSixteenImageField = [];
const imageElement = event.target;
const imageWidth = imageElement.offsetWidth;
const imageHeight = imageElement.offsetHeight;
const offsetX = event.offsetX;
const offsetY = event.offsetY;
const percentageX = ((offsetX / imageWidth) * 100) - 3.3;
const percentageY = ((offsetY / imageHeight) * 100) - 5.8;
let field = {
value: '',
coordinates: {
x: percentageX,
y: percentageY,
radious: 36,
imgWidth: imageWidth,
imgHeight: imageHeight,
},
};
this.typeSixteenImageField.push(field);
this.viewQuestions[index].answer = this.typeSixteenImageField;
}
openPopup(img, index) {
this.typeSixteenImageField = this.viewQuestions[index].answer;
this.typeSixteenImageSRC = img;
this.typeSixteenIndex = index;
this.isPopupOpen = true;
}
closePopup() {
this.isPopupOpen = false;
}
conditionQuestionDelete(index) {
this.typeSixteenImageField.splice(index, 1);
}
safeUrl(url) {
const safeUrl = this.sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].URL, this.imagePath + '/' + url);
return safeUrl ? this.sanitizer.bypassSecurityTrustUrl(safeUrl.toString()) : null;
}
}
AdminQuestionFormComponent.ɵfac = function AdminQuestionFormComponent_Factory(t) { return new (t || AdminQuestionFormComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_7__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__["MatDialog"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_9__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_11__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_12__["DomSanitizer"])); };
AdminQuestionFormComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AdminQuestionFormComponent, selectors: [["app-admin-question-form"]], viewQuery: function AdminQuestionFormComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.adminQuestion = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.myImage = _t.first);
} }, inputs: { questionId: "questionId", customFormId: "customFormId", selectedWorkFlowID: "selectedWorkFlowID", manageFormId: "manageFormId", workflowId: "workflowId", workflow: "workflow" }, outputs: { takeQuestion: "takeQuestion", viewPage: "viewPage", formTitleviewPage: "formTitleviewPage", adminModalClosed: "adminModalClosed", formSubmitted: "formSubmitted" }, decls: 2, vars: 0, consts: [["adminQuestion", ""], [1, "modal-content"], [1, "modal-body", 2, "padding", "0px", "min-height", "100vh"], [1, "card", "w-100"], [1, "card-body", 2, "word-break", "break-word", "padding", "10px", "height", "max-content"], [4, "ngIf"], ["class", "card", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "btn-block", "btn", "btn-success", "btn-lg", 2, "margin", "2px", "margin-top", "20px", "margin-right", "4px", 3, "click"], [1, "card"], [1, "card-header"], [1, "card-body", "centered-image", "text-center"], ["crossorigin", "anonymous", "width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", 1, "image", 3, "src"], [2, "text-align", "center"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [2, "margin-left", "400px", "margin-top", "20px"], [1, "box", "d-flex", "flex-column"], [1, "topHead", "d-flex"], [1, "mr-1"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["class", "card-body", 4, "ngIf"], ["class", "row imgSrc", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "box-body"], ["matInput", "", "rows", "5", "cols", "100", 3, "ngModel", "disabled", "ngModelChange"], ["class", "box", 4, "ngFor", "ngForOf"], [1, "box"], ["type", "radio", 1, "card-header-flexi", 3, "id", "name", "value", "ngModel", "disabled", "ngModelChange", "change"], ["for", "consolidated"], [1, "card-body"], ["crossorigin", "anonymous", "width", "250px", "height", "320px", "id", "4", "alt", "Image Preview", 3, "src"], ["class", "boxx", 4, "ngFor", "ngForOf"], [1, "boxx"], [3, "for"], ["crossorigin", "anonymous", "width", "250px", "height", "320px", "alt", "Image Preview", 3, "src"], [1, "d-flex", 2, "overflow", "auto"], ["class", "question-radio-inline mr-3", 4, "ngFor", "ngForOf"], [1, "question-radio-inline", "mr-3"], [1, "card", 2, "border-radius", "10px", "width", "min-content", 3, "for"], ["crossorigin", "anonymous", "alt", "", "style", "width: 270px;height: 201px;border-radius: 10px 10px 0px 0px;", 3, "src", "click", 4, "ngIf"], ["class", "text-center color-red padd-05", 4, "ngIf"], ["class", "card-container", "style", "background-color: #6eb96e;display: flex;justify-content: space-between;border-radius: 0px 0px 10px 10px;padding:5px;", 3, "ngStyle", "click", 4, "ngIf"], [2, "text-align", "center", 3, "ngClass", "click"], ["class", "text-success", 4, "ngIf"], ["crossorigin", "anonymous", "alt", "", 2, "width", "270px", "height", "201px", "border-radius", "10px 10px 0px 0px", 3, "src", "click"], [1, "text-center", "color-red", "padd-05"], [1, "card-container", 2, "background-color", "#6eb96e", "display", "flex", "justify-content", "space-between", "border-radius", "0px 0px 10px 10px", "padding", "5px", 3, "ngStyle", "click"], ["crossorigin", "anonymous", "alt", "", "height", "10px", 2, "width", "12%", "min-width", "30px", "height", "1%", "margin", "3px", 3, "src"], [1, "text-success"], [1, "form-group", "d-flex", "flex-column", "answers-options"], ["type", "checkbox", 1, "card-header-flexi", 3, "name", "checked", "id", "disabled", "change"], ["for", "consolidated", 2, "margin-left", "12px"], ["width", "250px", "height", "320px", "id", "4", "alt", "Image Preview", 3, "src"], ["class", "signature-div", 4, "ngIf"], ["mat-raised-button", "", 1, "mat-sign-button", 3, "disabled", "click"], ["aria-hidden", "false", "aria-label", "Example home icon", "fontIcon", "home"], [1, "signature-div"], [1, "signature-img", 3, "src"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "box", "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["rows", "5", 1, "form-control", 3, "ngModel", "maxlength", "disabled", "ngModelChange"], ["type", "number", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["class", "box", 4, "ngIf"], ["class", "box form-group", 4, "ngIf"], ["style", "margin-left: 10px;", "class", "box", 4, "ngIf"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["for", "my-input"], ["id", "my-input", "type", "date", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["myDate", ""], [1, "box", 2, "margin-left", "10px"], [3, "ngModel", "meridian", "hourStep", "minuteStep", "disabled", "ngModelChange"], [1, "box", "form-group"], ["class", "d-flex flex-wrap answers-options", 4, "ngIf"], [3, "ngModel", "meridian", "hourStep", "minuteStep", "ngModelChange"], [1, "box", "form-group", "ng-select-img-container"], ["placeholder", "Select Options", "bindLabel", "name", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "readonly", "ngModelChange", "change"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["crossorigin", "anonymous", "class", "dropdown-img", 3, "src", 4, "ngIf"], ["crossorigin", "anonymous", 1, "dropdown-img", 3, "src"], ["id", "my-input", "type", "file", 1, "form-control-file", 3, "disabled", "change"], [1, "btn", "btn-link", 3, "href", "download"], [1, "d-flex"], [3, "max", "rate", "rateChange"], [1, "row"], [1, "col-md-6"], ["bindLabel", "name", "placeholder", "Select Users", 1, "custom", 3, "disabled", "multiple", "searchable", "ngModel", "clearable", "change", "ngModelChange"], ["class", "row", 4, "ngIf"], [1, "col-md-12"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap"], [1, "text-items", "list-ui", "pr-1"], ["cdkDropList", "", 3, "cdkDropListDropped"], ["cdkDrag", "", 4, "ngFor", "ngForOf"], ["cdkDrag", ""], [1, "img-thumbnail"], ["height", "150px", "width", "150px", "id", "4", "alt", "Image Preview", 3, "src"], [3, "ngStyle"], ["ngbTooltip", "Expand", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-expand"], ["width", "100%", "alt", "Image Preview", 3, "src", "click"], ["myImage", ""], ["class", "circle", 3, "left", "top", 4, "ngFor", "ngForOf"], [1, "circle"], [1, "text"], [1, "row", "imgSrc"], [1, "pb-3"], [1, "table"], [1, "width-10"], [1, "srNo"], ["type", "text", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["class", "cancel-button", 4, "ngIf"], [1, "cancel-button"], ["alt", "", "src", "./assets/images/cancel.png", "height", "20px", "crossorigin", "anonymous", 1, "image", 3, "click"], ["type", "submit", 1, "btn-submit", 3, "disabled", "click"], ["type", "submit", 1, "btn-submit", 3, "click"], [1, "popup-overlay", "zoom-popup-overlay"], [1, "popup", "zoom-image-popup"], ["ngbTooltip", "Exit fullscreen", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-compress"], ["width", "100%", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src", "click"], ["class", "circlePopup", 3, "left", "top", 4, "ngFor", "ngForOf"], [1, "circlePopup"], ["mat-button", "", "color", "link", 2, "float", "right", 3, "click"], ["mat-dialog-title", ""], ["mat-dialog-content", "", 1, "container"], [1, "content"], ["width", "450", "height", "300", 3, "touchstart", "touchmove"], ["canvasel", ""], [1, "child"], ["mat-button", "", "color", "warn", 2, "margin-left", "5px", 3, "click"], ["mat-button", "", "color", "success", 2, "margin-left", "5px", 3, "click"]], template: function AdminQuestionFormComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, AdminQuestionFormComponent_ng_template_0_Template, 11, 4, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_13__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgForOf"], _angular_material_input__WEBPACK_IMPORTED_MODULE_14__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["RadioControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgStyle"], _angular_material_button__WEBPACK_IMPORTED_MODULE_17__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_18__["MatIcon"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_15__["NumberValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbTimepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbRating"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_2__["CdkDropList"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_2__["CdkDrag"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbTooltip"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__["MatDialogTitle"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__["MatDialogContent"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_20__["SafeHtmlPipe"]], styles: [".hideFullScreen[_ngcontent-%COMP%] {\n background: grey;\n position: absolute;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: -1px;\n height: \"500px\";\n width: \"600px\";\n}\n\n.modal-backdrop[_ngcontent-%COMP%] {\n z-index: 1040 !important;\n}\n\n.modal-content[_ngcontent-%COMP%] {\n margin: 2px auto;\n z-index: 1100 !important;\n}\n\n.mat-dialog-overlay[_ngcontent-%COMP%] {\n z-index: 1000000;\n \n}\n\n.mat-dialog-container.mat-dialog-container[_ngcontent-%COMP%] {\n z-index: 1000000;\n \n}\n\n.imgSrc[_ngcontent-%COMP%] {\n padding: 2.5% 3%;\n}\n\n.circle[_ngcontent-%COMP%] {\n position: absolute;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: black;\n border: 2px solid black;\n}\n\n.circlePopup[_ngcontent-%COMP%] {\n position: absolute;\n width: 70px;\n height: 70px;\n border-radius: 50%;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: black;\n border: 2px solid black;\n}\n\n.text[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n.srNo[_ngcontent-%COMP%] {\n width: 20px;\n font-weight: 700;\n text-align: center;\n}\n\n.full-icon[_ngcontent-%COMP%] {\n position: absolute;\n background: white;\n padding: 6px;\n text-align: center;\n border-radius: 6px;\n z-index: 99999999999;\n cursor: pointer;\n width: 50px;\n top: 10px;\n right: 10px;\n border: 1px solid #e9e9e9;\n}\n\n.full-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 25px;\n}\n\n.picturePopup[_ngcontent-%COMP%] {\n margin: auto !important;\n max-width: 80% !important;\n}\n\n.popup-overlay[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1999;\n}\n\n.popup[_ngcontent-%COMP%] {\n background-color: #fff;\n padding: 10px;\n border-radius: 4px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.cancel-button[_ngcontent-%COMP%] {\n position: relative;\n right: 20px;\n top: 10px;\n left: 10px;\n}\n\n.zoom-image-popup[_ngcontent-%COMP%] {\n width: 65%;\n}\n\n.zoom-popup-overlay[_ngcontent-%COMP%] {\n position: fixed;\n right: 0;\n bottom: 0;\n z-index: 1050 !important;\n background-color: rgba(0, 0, 0, 0.5) !important;\n}\n\n.mat-sign-button[_ngcontent-%COMP%] {\n background-color: #0000001a;\n}\n\n.dropdown-img[_ngcontent-%COMP%] {\n width: 100px !important;\n height: 70px !important;\n}\n\nngb-rating[_ngcontent-%COMP%] {\n color: yellow;\n font-size: 50px;\n}\n\n.color-red[_ngcontent-%COMP%] {\n color: #a51f38;\n}\n\n.padd-05[_ngcontent-%COMP%] {\n padding: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2FkbWluLXF1ZXN0aW9uLWZvcm0vYWRtaW4tcXVlc3Rpb24tZm9ybS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxRQUFBO0VBQ0EsVUFBQTtFQUNBLFdBQUE7RUFDQSxVQUFBO0VBQ0EsZUFBQTtFQUNBLGNBQUE7QUFDSjs7QUFDRTtFQUNFLHdCQUFBO0FBRUo7O0FBQUE7RUFDSSxnQkFBQTtFQUNBLHdCQUFBO0FBR0o7O0FBREE7RUFDSSxnQkFBQTtFQUFrQiwrQkFBQTtBQUt0Qjs7QUFIRTtFQUNFLGdCQUFBO0VBQWtCLCtCQUFBO0FBT3RCOztBQUxFO0VBQ0UsZ0JBQUE7QUFRSjs7QUFMRTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLDZCQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0VBQ0EsdUJBQUE7RUFDQSxpQkFBQTtFQUNBLFlBQUE7RUFDQSx1QkFBQTtBQVFKOztBQUxFO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsNkJBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUNBLGlCQUFBO0VBQ0EsWUFBQTtFQUNBLHVCQUFBO0FBUUo7O0FBTEU7RUFDRSxrQkFBQTtBQVFKOztBQUxFO0VBQ0UsV0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFRSjs7QUFORTtFQUNFLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLG9CQUFBO0VBQ0EsZUFBQTtFQUNBLFdBQUE7RUFDQSxTQUFBO0VBQ0EsV0FBQTtFQUNBLHlCQUFBO0FBU0o7O0FBUEk7RUFDRSxlQUFBO0FBU047O0FBTkU7RUFDRSx1QkFBQTtFQUNBLHlCQUFBO0FBU0o7O0FBTkU7RUFDRSxlQUFBO0VBQ0EsTUFBQTtFQUNBLE9BQUE7RUFDQSxXQUFBO0VBQ0Esb0NBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUNBLGFBQUE7QUFTSjs7QUFORTtFQUNFLHNCQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0Esd0NBQUE7QUFTSjs7QUFORTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFNBQUE7RUFDQSxVQUFBO0FBU0o7O0FBUEc7RUFDQyxVQUFBO0FBVUo7O0FBUkU7RUFDRSxlQUFBO0VBQ0EsUUFBQTtFQUNBLFNBQUE7RUFDQSx3QkFBQTtFQUNBLCtDQUFBO0FBV0o7O0FBVEU7RUFDRSwyQkFBQTtBQVlKOztBQVZFO0VBQ0UsdUJBQUE7RUFDQSx1QkFBQTtBQWFKOztBQVhFO0VBQ0UsYUFBQTtFQUNBLGVBQUE7QUFjSjs7QUFaQTtFQUNFLGNBQUE7QUFlRjs7QUFiQTtFQUNFLFlBQUE7QUFnQkYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jZW50cmFsLWJ1aWxkZXIvZm9ybXMvZm9ybS1tYW5hZ2UvYWRtaW4tcXVlc3Rpb24tZm9ybS9hZG1pbi1xdWVzdGlvbi1mb3JtLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmhpZGVGdWxsU2NyZWVuIHtcbiAgICBiYWNrZ3JvdW5kOmdyZXk7XG4gICAgcG9zaXRpb246YWJzb2x1dGU7XG4gICAgdG9wOjBweDtcbiAgICByaWdodDowcHg7XG4gICAgYm90dG9tOjBweDtcbiAgICBsZWZ0OiAtMXB4OztcbiAgICBoZWlnaHQ6ICc1MDBweCc7XG4gICAgd2lkdGg6ICc2MDBweCc7XG4gIH1cbiAgLm1vZGFsLWJhY2tkcm9wIHtcbiAgICB6LWluZGV4OiAxMDQwICFpbXBvcnRhbnQ7XG59XG4ubW9kYWwtY29udGVudCB7XG4gICAgbWFyZ2luOiAycHggYXV0bztcbiAgICB6LWluZGV4OiAxMTAwICFpbXBvcnRhbnQ7XG59XG4ubWF0LWRpYWxvZy1vdmVybGF5IHtcbiAgICB6LWluZGV4OiAxMDAwMDAwOyAvKiBBZGp1c3QgdGhlIHZhbHVlIGFzIG5lZWRlZCAqL1xuICB9XG4gIC5tYXQtZGlhbG9nLWNvbnRhaW5lci5tYXQtZGlhbG9nLWNvbnRhaW5lciB7XG4gICAgei1pbmRleDogMTAwMDAwMDsgLyogQWRqdXN0IHRoZSB2YWx1ZSBhcyBuZWVkZWQgKi9cbiAgfVxuICAuaW1nU3Jje1xuICAgIHBhZGRpbmc6IDIuNSUgMyU7XG4gIH1cblxuICAuY2lyY2xlIHtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgd2lkdGg6IDUwcHg7XG4gICAgaGVpZ2h0OiA1MHB4O1xuICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gICAgY29sb3I6IGJsYWNrO1xuICAgIGJvcmRlcjogMnB4IHNvbGlkIGJsYWNrO1xuICB9XG5cbiAgLmNpcmNsZVBvcHVwe1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICB3aWR0aDogNzBweDtcbiAgICBoZWlnaHQ6IDcwcHg7XG4gICAgYm9yZGVyLXJhZGl1czogNTAlO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBmb250LXdlaWdodDogYm9sZDtcbiAgICBjb2xvcjogYmxhY2s7XG4gICAgYm9yZGVyOiAycHggc29saWQgYmxhY2s7XG4gIH1cblxuICAudGV4dCB7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB9XG5cbiAgLnNyTm97XG4gICAgd2lkdGg6IDIwcHg7XG4gICAgZm9udC13ZWlnaHQ6IDcwMDtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIH1cbiAgLmZ1bGwtaWNvbntcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgYmFja2dyb3VuZDogd2hpdGU7XG4gICAgcGFkZGluZzogNnB4O1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBib3JkZXItcmFkaXVzOiA2cHg7XG4gICAgei1pbmRleDogOTk5OTk5OTk5OTk7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIHdpZHRoOiA1MHB4O1xuICAgIHRvcDogMTBweDtcbiAgICByaWdodDogMTBweDtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjZTllOWU5O1xuXG4gICAgaXtcbiAgICAgIGZvbnQtc2l6ZTogMjVweDtcbiAgICB9XG4gIH1cbiAgLnBpY3R1cmVQb3B1cHtcbiAgICBtYXJnaW46IGF1dG8gIWltcG9ydGFudDtcbiAgICBtYXgtd2lkdGg6IDgwJSAhaW1wb3J0YW50O1xuICB9XG5cbiAgLnBvcHVwLW92ZXJsYXkge1xuICAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgICB0b3A6IDA7XG4gICAgbGVmdDogMDtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgIHotaW5kZXg6IDE5OTk7XG4gIH1cblxuICAucG9wdXAge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgcGFkZGluZzogMTBweDtcbiAgICBib3JkZXItcmFkaXVzOiA0cHg7XG4gICAgYm94LXNoYWRvdzogMCAycHggNHB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcbiAgfVxuXG4gIC5jYW5jZWwtYnV0dG9ue1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICByaWdodDogMjBweDtcbiAgICB0b3A6IDEwcHg7XG4gICAgbGVmdDogMTBweDtcbiAgIH1cbiAgIC56b29tLWltYWdlLXBvcHVwe1xuICAgIHdpZHRoOiA2NSU7XG4gIH1cbiAgLnpvb20tcG9wdXAtb3ZlcmxheXtcbiAgICBwb3NpdGlvbjogZml4ZWQ7XG4gICAgcmlnaHQ6IDA7XG4gICAgYm90dG9tOiAwO1xuICAgIHotaW5kZXg6IDEwNTAgIWltcG9ydGFudDtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSkgIWltcG9ydGFudDtcbiAgfVxuICAubWF0LXNpZ24tYnV0dG9ue1xuICAgIGJhY2tncm91bmQtY29sb3I6ICMwMDAwMDAxYTtcbiAgfVxuICAuZHJvcGRvd24taW1nIHtcbiAgICB3aWR0aDogMTAwcHggIWltcG9ydGFudDtcbiAgICBoZWlnaHQ6IDcwcHggIWltcG9ydGFudDtcbiAgfVxuICBuZ2ItcmF0aW5nIHtcbiAgICBjb2xvcjogeWVsbG93O1xuICAgIGZvbnQtc2l6ZTogNTBweDtcbn1cbi5jb2xvci1yZWR7XG4gIGNvbG9yOiAjYTUxZjM4O1xufVxuLnBhZGQtMDV7XG4gIHBhZGRpbmc6IDVweDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AdminQuestionFormComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-admin-question-form',
templateUrl: './admin-question-form.component.html',
styleUrls: ['./admin-question-form.component.scss']
}]
}], function () { return [{ type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_7__["CentralBuilderService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_3__["MatDialog"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_9__["NotificationService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbModal"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_11__["CustomFormService"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_12__["DomSanitizer"] }]; }, { adminQuestion: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['adminQuestion', { static: true }]
}], questionId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], customFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], selectedWorkFlowID: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], manageFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], workflowId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], workflow: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], takeQuestion: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], viewPage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], formTitleviewPage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], adminModalClosed: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], formSubmitted: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], myImage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['myImage', { static: false }]
}] }); })();
/***/ }),
/***/ "XUB3":
/*!**************************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/point-system/point-system.component.ts ***!
\**************************************************************************************************/
/*! exports provided: PointSystemComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PointSystemComponent", function() { return PointSystemComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
function PointSystemComponent_div_25_div_1_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PointSystemComponent_div_25_div_1_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const icon_r6 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r7.selectIcon(icon_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const icon_r6 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", "./assets/images/c-icons/" + icon_r6 + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function PointSystemComponent_div_25_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PointSystemComponent_div_25_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.expandIcons = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, PointSystemComponent_div_25_div_1_Template, 2, 1, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.iconsList);
} }
function PointSystemComponent_ng_container_29_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PointSystemComponent_ng_container_29_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.activateRecord(ctx_r11.pointObj); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Activate");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r1.pointObj.iconURL || !ctx_r1.pointObj.description || !ctx_r1.pointObj.title);
} }
function PointSystemComponent_ng_container_30_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PointSystemComponent_ng_container_30_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r13.updateRecord(ctx_r13.pointObj); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Update");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} }
function PointSystemComponent_tr_47_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function PointSystemComponent_tr_47_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const item_r15 = ctx.$implicit; return item_r15.isCheckedBox = $event; })("change", function PointSystemComponent_tr_47_Template_input_change_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const item_r15 = ctx.$implicit; const i_r16 = ctx.index; const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r19.onCheckBoxChanges(item_r15, i_r16, $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "img", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r15 = ctx.$implicit;
const i_r16 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "checkBox", i_r16, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("name", "checkName", i_r16, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r15.isCheckedBox);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r15.title);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r15.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", "./assets/images/c-icons/" + item_r15.icon + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("background-color", item_r15.isEnabled ? "#28a745" : "#f0ad4e");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r15.isEnabled ? "Active" : "Inactive");
} }
function PointSystemComponent_div_48_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PointSystemComponent_div_48_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.editRecord(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
class PointSystemComponent {
constructor(companyService, tostService, gamificationService) {
this.companyService = companyService;
this.tostService = tostService;
this.gamificationService = gamificationService;
this.iconsList = [];
this.pointObj = {
title: "",
description: "",
iconURL: "",
ID: "",
arrayIndex: "",
status: false,
isFromEdit: false,
};
this.updatedRecord = [];
this.emptyPointObj = JSON.parse(JSON.stringify(this.pointObj));
this.pointSystems = [];
this.selectedRecord = null;
this.expandIcons = false;
}
ngOnInit() {
this.iconsList = [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69];
this.getPointSystem();
}
trackItem(index, item) {
return item.trackId;
}
selectIcon(icon) {
const index = this.iconsList.findIndex(i => i.toString() === icon.toString());
this.iconsList.splice(index, 1);
if (this.pointObj.iconURL) {
this.iconsList.push(+this.pointObj.iconURL);
this.iconsList = this.uniqueIconList(this.iconsList);
}
this.pointObj.iconURL = icon;
}
getPointSystem() {
this.companyService.getcompanySetting().subscribe((res) => {
var _a;
this.companySettingsId = res.data._id;
this.pointSystems = [...res.data.pointSystems];
(_a = this.pointSystems) === null || _a === void 0 ? void 0 : _a.map((item, index) => {
item.isCheckedBox = false;
item.index = index;
});
}, (error) => {
});
}
onCheckBoxChanges(item, index, e) {
var _a;
(_a = this.pointSystems) === null || _a === void 0 ? void 0 : _a.map((data) => {
data.isCheckedBox = (index == data.index) ? true : false;
});
if (e.target.checked === false) {
this.pointObj.title = '',
this.pointObj.description = '',
this.pointObj.iconURL = '';
this.selectedRecord = null;
}
else {
this.selectedRecord = item;
this.selectedRecord['index'] = index;
}
}
cancelData() {
this.pointObj = JSON.parse(JSON.stringify(this.emptyPointObj));
}
iconUpload(event) {
if (event.target.files && event.target.files.length) {
const file = event.target.files[0];
const fileUpload = this.gamificationService
.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.pointObj.iconURL = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].imageUrl}${data === null || data === void 0 ? void 0 : data.filePath}`;
this.tostService.success('Icon Uploaded Successfully');
});
}
}
updatePointSettings() {
var _a;
let pointSystems = (_a = this.pointSystems) === null || _a === void 0 ? void 0 : _a.filter(item => item.isEnabled == true);
let data = {
pointSystems: pointSystems,
pageId: this.companySettingsId
};
this.companyService.updateCompanySettings(data).subscribe((res) => {
this.getPointSystem();
this.tostService.success('Updated SuccessFully');
}, (error) => {
console.error(error);
});
}
editRecord() {
var _a;
this.pointObj.arrayIndex = this.selectedRecord.index;
this.pointObj.ID = this.selectedRecord._id;
this.pointObj.title = this.selectedRecord.title;
this.pointObj.description = this.selectedRecord.description;
this.pointObj.iconURL = this.selectedRecord.icon;
this.pointObj.status = this.selectedRecord.isEnabled;
this.pointSystems[this.selectedRecord.index].isCheckedBox = false;
this.pointObj.isFromEdit = true;
this.selectedRecord = null;
if (this.pointObj.iconURL) {
let index = (_a = this.iconsList) === null || _a === void 0 ? void 0 : _a.findIndex(item => item == +this.pointObj.iconURL);
this.iconsList.splice(index, 1);
this.iconsList = this.uniqueIconList(this.iconsList);
}
}
uniqueIconList(arr) {
return arr.filter((value, index, self) => {
return self.indexOf(value) === index;
});
}
updateRecord(data) {
this.pointSystems[this.pointObj.arrayIndex].title = data.title;
this.pointSystems[this.pointObj.arrayIndex].description = data.description;
this.pointSystems[this.pointObj.arrayIndex].icon = data.iconURL;
this.pointSystems[this.pointObj.arrayIndex].isEnabled = true;
this.updatedRecord.push(this.pointSystems[this.pointObj.arrayIndex]);
this.pointObj = JSON.parse(JSON.stringify(this.emptyPointObj));
}
activateRecord(data) {
this.pointSystems.push({ title: data.title, icon: data.iconURL, description: data.description, status: true, isEnabled: true });
// this.pointSystems[this.pointObj.arrayIndex].title=data.title;
// this.pointSystems[this.pointObj.arrayIndex].description=data.description;
// this.pointSystems[this.pointObj.arrayIndex].icon=data.iconURL;
// this.pointSystems[this.pointObj.arrayIndex].status=true;
this.pointObj = JSON.parse(JSON.stringify(this.emptyPointObj));
}
}
PointSystemComponent.ɵfac = function PointSystemComponent_Factory(t) { return new (t || PointSystemComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__["GamificationService"])); };
PointSystemComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: PointSystemComponent, selectors: [["app-point-system"]], decls: 54, vars: 11, consts: [[1, "card"], [1, "card-header", "flexi-header"], [1, "card-body"], [1, "justify-content-SB"], [1, "col"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-bold", "red-heading"], ["type", "email", "placeholder", "", "maxlength", "50", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], [1, "col", "mb-2"], ["type", "title", "placeholder", "", "maxlength", "50", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], [2, "display", "flex"], ["alt", "", "height", "99px", 3, "src"], [1, "ddStyle", 3, "click"], ["alt", "", "height", "30px", 2, "vertical-align", "top", 3, "src"], ["id", "iconsContainer", "class", "col-xs-12 col-sm-12 col-md-6 col-lg-4", 3, "click", 4, "ngIf"], [1, "btn", "btn-red-back", "ml-3", 3, "click"], [4, "ngIf"], [1, "row", "mt-3"], [1, "table-responsive"], [1, "table"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "btn", "btn-red-back"], [1, "btn", "btn-add", "ml-2", 3, "click"], ["id", "iconsContainer", 1, "col-xs-12", "col-sm-12", "col-md-6", "col-lg-4", 3, "click"], ["class", "iconitem", 3, "click", 4, "ngFor", "ngForOf"], [1, "iconitem", 3, "click"], ["alt", "img", "height", "45px", 3, "src"], [1, "btn", "btn-add", "ml-3", 3, "disabled", "click"], [1, "btn", "btn-add", "ml-3", 3, "click"], [1, "container"], ["type", "checkbox", 3, "id", "name", "ngModel", "ngModelChange", "change"], [1, "checkmark"], ["alt", "table-img", 1, "table-image", 3, "src"], [1, "badge", "badge-success"]], template: function PointSystemComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "POINT SYSTEM");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Title");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "input", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function PointSystemComponent_Template_input_ngModelChange_10_listener($event) { return ctx.pointObj.title = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function PointSystemComponent_Template_input_ngModelChange_15_listener($event) { return ctx.pointObj.description = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Icon");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "img", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PointSystemComponent_Template_span_click_23_listener() { return ctx.expandIcons = !ctx.expandIcons; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "img", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, PointSystemComponent_div_25_Template, 2, 1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PointSystemComponent_Template_button_click_27_listener() { return ctx.cancelData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, PointSystemComponent_ng_container_29_Template, 3, 1, "ng-container", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](30, PointSystemComponent_ng_container_30_Template, 3, 0, "ng-container", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, "TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](47, PointSystemComponent_tr_47_Template, 15, 9, "tr", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](48, PointSystemComponent_div_48_Template, 3, 0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PointSystemComponent_Template_button_click_52_listener() { return ctx.updatePointSettings(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, "Update");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.pointObj.title)("disabled", ctx.pointObj.status == true ? true : false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.pointObj.description)("disabled", ctx.pointObj.status == true ? true : false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", "./assets/images/c-icons/" + ctx.pointObj.iconURL + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", "./assets/images/c-icons/1.png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.expandIcons);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.pointObj.isFromEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.pointObj.isFromEdit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.pointSystems);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.selectedRecord);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_6__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["CheckboxControlValueAccessor"]], styles: [".table-image[_ngcontent-%COMP%] {\n width: 100px;\n}\n\n.container[_ngcontent-%COMP%] {\n display: block;\n position: relative;\n padding-left: 35px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n -webkit-user-select: none;\n user-select: none;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n\n\n\n.checkmark[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n height: 20px;\n width: 20px;\n background-color: white;\n border: 2px solid #008000a3;\n border-radius: 5px;\n}\n\n\n\n.container[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%] {\n background-color: white;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%] {\n background-color: white;\n}\n\n\n\n.checkmark[_ngcontent-%COMP%]:after {\n content: \"\";\n position: absolute;\n display: none;\n}\n\n\n\n.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after {\n display: block;\n}\n\n\n\n.container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after {\n left: 7px;\n bottom: 2px;\n width: 10px;\n height: 20px;\n border: solid #008000a3;\n border-width: 0 4px 4px 0;\n transform: rotate(45deg);\n}\n\n.upload-container[_ngcontent-%COMP%] {\n width: 30%;\n}\n\n.iconitem[_ngcontent-%COMP%] {\n margin: 3px;\n border: lightgray solid 3px;\n display: inline-block;\n padding: 3px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvcG9pbnQtc3lzdGVtL3BvaW50LXN5c3RlbS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLFlBQUE7QUFDSjs7QUFFQTtFQUNJLGNBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxlQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EseUJBQUE7RUFHQSxpQkFBQTtBQUNKOztBQUVFLHdDQUFBOztBQUNBO0VBQ0Usa0JBQUE7RUFDQSxVQUFBO0VBQ0EsZUFBQTtFQUNBLFNBQUE7RUFDQSxRQUFBO0FBQ0o7O0FBRUUsNkJBQUE7O0FBQ0E7RUFDRSxrQkFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7RUFDQSx1QkFBQTtFQUNBLDJCQUFBO0VBQ0Esa0JBQUE7QUFDSjs7QUFFRSwrQ0FBQTs7QUFDQTtFQUNFLHVCQUFBO0FBQ0o7O0FBRUUsd0RBQUE7O0FBQ0E7RUFDRSx1QkFBQTtBQUNKOztBQUVFLDZEQUFBOztBQUNBO0VBQ0UsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsYUFBQTtBQUNKOztBQUVFLG9DQUFBOztBQUNBO0VBQ0UsY0FBQTtBQUNKOztBQUVFLGtDQUFBOztBQUNBO0VBQ0UsU0FBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLHVCQUFBO0VBQ0EseUJBQUE7RUFHQSx3QkFBQTtBQUNKOztBQUVFO0VBQ0UsVUFBQTtBQUNKOztBQUNFO0VBQ0UsV0FBQTtFQUNBLDJCQUFBO0VBQ0EscUJBQUE7RUFDQSxZQUFBO0FBRUoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9zeXN0ZW0tc2V0dGluZ3MvY29tcGFueS1zZXR1cC9wb2ludC1zeXN0ZW0vcG9pbnQtc3lzdGVtLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnRhYmxlLWltYWdle1xuICAgIHdpZHRoOiAxMDBweDtcbn1cblxuLmNvbnRhaW5lciB7XG4gICAgZGlzcGxheTogYmxvY2s7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIHBhZGRpbmctbGVmdDogMzVweDtcbiAgICBtYXJnaW4tYm90dG9tOiAxMnB4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICBmb250LXNpemU6IDE0cHg7XG4gICAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgICAtd2Via2l0LXVzZXItc2VsZWN0OiBub25lO1xuICAgIC1tb3otdXNlci1zZWxlY3Q6IG5vbmU7XG4gICAgLW1zLXVzZXItc2VsZWN0OiBub25lO1xuICAgIHVzZXItc2VsZWN0OiBub25lO1xuICB9XG5cbiAgLyogSGlkZSB0aGUgYnJvd3NlcidzIGRlZmF1bHQgY2hlY2tib3ggKi9cbiAgLmNvbnRhaW5lciBpbnB1dCB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIG9wYWNpdHk6IDA7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICAgIGhlaWdodDogMDtcbiAgICB3aWR0aDogMDtcbiAgfVxuXG4gIC8qIENyZWF0ZSBhIGN1c3RvbSBjaGVja2JveCAqL1xuICAuY2hlY2ttYXJrIHtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgdG9wOiAwO1xuICAgIGxlZnQ6IDA7XG4gICAgaGVpZ2h0OiAyMHB4O1xuICAgIHdpZHRoOiAyMHB4O1xuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICAgIGJvcmRlcjogMnB4IHNvbGlkICMwMDgwMDBhMztcbiAgICBib3JkZXItcmFkaXVzOiA1cHg7XG4gIH1cblxuICAvKiBPbiBtb3VzZS1vdmVyLCBhZGQgYSBncmV5IGJhY2tncm91bmQgY29sb3IgKi9cbiAgLmNvbnRhaW5lcjpob3ZlciBpbnB1dCB+IC5jaGVja21hcmsge1xuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICB9XG5cbiAgLyogV2hlbiB0aGUgY2hlY2tib3ggaXMgY2hlY2tlZCwgYWRkIGEgYmx1ZSBiYWNrZ3JvdW5kICovXG4gIC5jb250YWluZXIgaW5wdXQ6Y2hlY2tlZCB+IC5jaGVja21hcmsge1xuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICB9XG5cbiAgLyogQ3JlYXRlIHRoZSBjaGVja21hcmsvaW5kaWNhdG9yIChoaWRkZW4gd2hlbiBub3QgY2hlY2tlZCkgKi9cbiAgLmNoZWNrbWFyazphZnRlciB7XG4gICAgY29udGVudDogXCJcIjtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgZGlzcGxheTogbm9uZTtcbiAgfVxuXG4gIC8qIFNob3cgdGhlIGNoZWNrbWFyayB3aGVuIGNoZWNrZWQgKi9cbiAgLmNvbnRhaW5lciBpbnB1dDpjaGVja2VkIH4gLmNoZWNrbWFyazphZnRlciB7XG4gICAgZGlzcGxheTogYmxvY2s7XG4gIH1cblxuICAvKiBTdHlsZSB0aGUgY2hlY2ttYXJrL2luZGljYXRvciAqL1xuICAuY29udGFpbmVyIC5jaGVja21hcms6YWZ0ZXIge1xuICAgIGxlZnQ6IDdweDtcbiAgICBib3R0b206IDJweDtcbiAgICB3aWR0aDogMTBweDtcbiAgICBoZWlnaHQ6IDIwcHg7XG4gICAgYm9yZGVyOiBzb2xpZCAjMDA4MDAwYTM7XG4gICAgYm9yZGVyLXdpZHRoOiAwIDRweCA0cHggMDtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDQ1ZGVnKTtcbiAgICAtbXMtdHJhbnNmb3JtOiByb3RhdGUoNDVkZWcpO1xuICAgIHRyYW5zZm9ybTogcm90YXRlKDQ1ZGVnKTtcbiAgfVxuXG4gIC51cGxvYWQtY29udGFpbmVye1xuICAgIHdpZHRoOiAzMCU7XG4gIH1cbiAgLmljb25pdGVtIHtcbiAgICBtYXJnaW46IDNweDtcbiAgICBib3JkZXI6IGxpZ2h0Z3JheSBzb2xpZCAzcHg7XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIHBhZGRpbmc6IDNweDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PointSystemComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-point-system',
templateUrl: './point-system.component.html',
styleUrls: ['./point-system.component.scss']
}]
}], function () { return [{ type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_3__["CompanySetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__["GamificationService"] }]; }, null); })();
/***/ }),
/***/ "Xf2D":
/*!********************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/shift-scheme/shift-scheme-overview/shift-scheme-overview.component.ts ***!
\********************************************************************************************************************/
/*! exports provided: ShiftSchemeOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShiftSchemeOverviewComponent", function() { return ShiftSchemeOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function ShiftSchemeOverviewComponent_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div");
} }
function ShiftSchemeOverviewComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Not Found!");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ShiftSchemeOverviewComponent_ng_template_7_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](11, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeOverviewComponent_ng_template_7_tr_16_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r7 = ctx.$implicit; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r8.onViewSchemeShift(item_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeOverviewComponent_ng_template_7_tr_16_Template_button_click_18_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r7 = ctx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r10.onEditSchemeShift(item_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeOverviewComponent_ng_template_7_tr_16_Template_button_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r7 = ctx.$implicit; const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.setDeleteItem(item_r7, true); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r7.schemeName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 5, item_r7.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r7.schemeDesc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](11, 7, item_r7.updatedAt));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r7 == null ? null : item_r7.createdBy == null ? null : item_r7.createdBy.name);
} }
function ShiftSchemeOverviewComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "SCHEME NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "CREATION DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "SCHEME DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "LAST MODIFIED AT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "CREATED BY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ShiftSchemeOverviewComponent_ng_template_7_tr_16_Template, 22, 9, "tr", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.paginateData);
} }
const _c0 = function () { return { width: "calc(100% - 40px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function ShiftSchemeOverviewComponent_ngx_skeleton_loader_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ngx-skeleton-loader", 34);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c0));
} }
class ShiftSchemeOverviewComponent {
constructor(buService, toastService) {
this.buService = buService;
this.toastService = toastService;
this.changeActiveScheme = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.changeActiveViewScheme = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.schemeData = '';
this.delete = false;
this.loader = true;
this.paginateData = [];
this.schemeShiftOverviewErr = false;
this.shiftSchemeTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
}
ngOnInit() {
//this.schemeOverview();
this.loadShiftScheme();
}
// schemeOverview() {
// this.buService.getScheme(this.buShiftID, "").subscribe((res) => {
// this.schemeTable = res["data"];
// console.log("schemeTable", this.schemeTable);
// });
// }
loadShiftScheme() {
this.loader = true;
this.buShiftID = localStorage.getItem('flexicompanyId');
const _a = this.shiftSchemeTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.buService
.getScheme(this.buShiftID, rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.loader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { status, data, msg } = response;
this.shiftSchemeTable.data = data;
this.shiftSchemeTable.total = data.length;
this.getPaginateData();
}, (error) => {
this.shiftSchemeTable.data = [];
this.shiftSchemeTable.total = 0;
this.toastService.error('No list found');
this.schemeShiftOverviewErr = true;
});
}
getPaginateData() {
this.paginateData = this.shiftSchemeTable.data
.slice((this.shiftSchemeTable.page - 1) * this.shiftSchemeTable.limit, (this.shiftSchemeTable.page - 1) * this.shiftSchemeTable.limit + this.shiftSchemeTable.limit);
}
onPageChangeShiftScheme(page) {
this.shiftSchemeTable.page = page;
this.getPaginateData();
}
onViewSchemeShift(value) {
this.changeActiveScheme.emit(value);
this.changeActiveViewScheme.emit('view');
}
onEditSchemeShift(value) {
this.changeActiveScheme.emit(value);
this.changeActiveViewScheme.emit('edit');
}
// onViewOrEditClick(value) {
// this.isEdit = value;
// this.changeActive.emit(this.isEdit);
// }
setDeleteItem(i, d) {
this.delete = d;
this.schemeId = i._id;
}
setDelete() {
this.deleteSchemeId = { _id: this.schemeId, status: false };
// this.schemeId = {schemeId: schemeTable}
this.buService.updateScheme(this.deleteSchemeId).subscribe((res) => {
this.delete = false;
// this.schemeOverview();
this.loadShiftScheme();
this.toastService.info('deleted successfully');
});
}
}
ShiftSchemeOverviewComponent.ɵfac = function ShiftSchemeOverviewComponent_Factory(t) { return new (t || ShiftSchemeOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"])); };
ShiftSchemeOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ShiftSchemeOverviewComponent, selectors: [["app-shift-scheme-overview"]], inputs: { buShiftID: "buShiftID" }, outputs: { changeActiveScheme: "changeActiveScheme", changeActiveViewScheme: "changeActiveViewScheme" }, decls: 29, vars: 10, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body", "table-responsive", "p-0"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["thenBlock", ""], ["elseBlock", ""], ["count", "5", 3, "theme", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], ["id", "mmmModal", 1, "modal", 3, "ngClass"], [1, "modal-dialog", 2, "margin-top", "180px", "width", "311px", "height", "200px"], [1, "modal-content", "modalContentBoxGrey"], [1, "modal-body"], [2, "font-size", "17px"], [1, "modal-footer"], [1, "btn", "footer-button", "btn-warning", 3, "click"], [1, "btn", "footer-button", "btn-primary", 2, "margin-right", "80px", 3, "click"], [1, "text-md", "text-black-50", "p-4"], [1, "table", "table-striped"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "font-weight-500"], [1, "d-flex"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "btn", "btn-success", "btn-sm", "ml-1", 3, "click"], [1, "btn", "btn-danger", "btn-sm", "ml-1", 3, "click"], ["count", "5", 3, "theme"]], template: function ShiftSchemeOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "SHIFT SCHEME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ShiftSchemeOverviewComponent_div_4_Template, 1, 0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, ShiftSchemeOverviewComponent_ng_template_5_Template, 2, 0, "ng-template", null, 4, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, ShiftSchemeOverviewComponent_ng_template_7_Template, 17, 1, "ng-template", null, 5, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, ShiftSchemeOverviewComponent_ngx_skeleton_loader_9_Template, 1, 2, "ngx-skeleton-loader", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "p", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "b", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "ngb-pagination", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ShiftSchemeOverviewComponent_Template_ngb_pagination_pageChange_16_listener($event) { return ctx.shiftSchemeTable.page = $event; })("pageChange", function ShiftSchemeOverviewComponent_Template_ngb_pagination_pageChange_16_listener($event) { return ctx.onPageChangeShiftScheme($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "h4", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, " Are you sure, you want to delete this? ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "button", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeOverviewComponent_Template_button_click_25_listener() { return ctx.setDelete(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ShiftSchemeOverviewComponent_Template_button_click_27_listener() { return ctx.delete = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](6);
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.schemeShiftOverviewErr)("ngIfThen", _r1)("ngIfElse", _r3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.shiftSchemeTable.total);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.shiftSchemeTable.total)("page", ctx.shiftSchemeTable.page)("maxSize", 5)("pageSize", ctx.shiftSchemeTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx.delete ? "show-modal" : "");
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbPagination"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgClass"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_7__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_8__["NgxSkeletonLoaderComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DatePipe"]], styles: [".table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n border-top: transparent;\n background-color: #f2f2f2;\n}\n\n.table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.btn[_ngcontent-%COMP%] {\n margin: 0 0.25rem !important;\n}\n\n.btn-danger[_ngcontent-%COMP%] {\n font-size: 12px;\n}\n\n.search[_ngcontent-%COMP%] {\n border-radius: 4px;\n border: none;\n}\n\n.search[_ngcontent-%COMP%]:hover, .search[_ngcontent-%COMP%]:focus, .search[_ngcontent-%COMP%]:active {\n border: none;\n outline: none;\n}\n\n.show-modal[_ngcontent-%COMP%] {\n display: block;\n}\n\n.modal-footer[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n}\n\n.footer-button[_ngcontent-%COMP%] {\n width: 4rem;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9zaGlmdC1zY2hlbWUvc2hpZnQtc2NoZW1lLW92ZXJ2aWV3L3NoaWZ0LXNjaGVtZS1vdmVydmlldy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLHVCQUFBO0VBQ0EseUJBQUE7QUFDSjs7QUFFRTtFQUNFLHNCQUFBO0FBQ0o7O0FBRUU7RUFDRSw0QkFBQTtBQUNKOztBQUVFO0VBQ0UsZUFBQTtBQUNKOztBQUVFO0VBQ0Usa0JBQUE7RUFDQSxZQUFBO0FBQ0o7O0FBRUU7OztFQUdFLFlBQUE7RUFDQSxhQUFBO0FBQ0o7O0FBRUU7RUFDRSxjQUFBO0FBQ0o7O0FBRUU7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7QUFDSjs7QUFFRTtFQUNFLFdBQUE7QUFDSjs7QUFFRTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtBQUNKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9zaGlmdC1zY2hlbWUvc2hpZnQtc2NoZW1lLW92ZXJ2aWV3L3NoaWZ0LXNjaGVtZS1vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50YWJsZSB0aCB7XG4gICAgYm9yZGVyLXRvcDogdHJhbnNwYXJlbnQ7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2YyZjJmMjtcbiAgfVxuICBcbiAgLnRhYmxlIHRyIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICB9XG4gIFxuICAuYnRuIHtcbiAgICBtYXJnaW46IDAgMC4yNXJlbSAhaW1wb3J0YW50O1xuICB9XG4gIFxuICAuYnRuLWRhbmdlciB7XG4gICAgZm9udC1zaXplOiAxMnB4O1xuICB9XG4gIFxuICAuc2VhcmNoIHtcbiAgICBib3JkZXItcmFkaXVzOiA0cHg7XG4gICAgYm9yZGVyOiBub25lO1xuICB9XG4gIFxuICAuc2VhcmNoOmhvdmVyLFxuICAuc2VhcmNoOmZvY3VzLFxuICAuc2VhcmNoOmFjdGl2ZSB7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIG91dGxpbmU6IG5vbmU7XG4gIH1cbiAgXG4gIC5zaG93LW1vZGFsIHtcbiAgICBkaXNwbGF5OiBibG9jaztcbiAgfVxuICBcbiAgLm1vZGFsLWZvb3RlciB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgfVxuICBcbiAgLmZvb3Rlci1idXR0b24ge1xuICAgIHdpZHRoOiA0cmVtO1xuICB9XG5cbiAgLmJnLXRoZW1le1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gICAgY29sb3I6ICNmZmY7XG4gIH0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ShiftSchemeOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-shift-scheme-overview',
templateUrl: './shift-scheme-overview.component.html',
styleUrls: ['./shift-scheme-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_3__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }]; }, { changeActiveScheme: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], changeActiveViewScheme: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], buShiftID: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}] }); })();
/***/ }),
/***/ "YxiC":
/*!****************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-service/create-service/create-service.component.ts ***!
\****************************************************************************************************************/
/*! exports provided: CreateServiceComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateServiceComponent", function() { return CreateServiceComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
const _c0 = function (a0) { return { selected: a0 }; };
function CreateServiceComponent_button_29_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_button_29_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const day_r10 = ctx.$implicit; const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.toggleDay(day_r10.full); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const day_r10 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](3, _c0, ctx_r0.selectedDays.includes(day_r10.full)))("disabled", ctx_r0.disableDayArr.includes(day_r10.full));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", day_r10.short[0], " ");
} }
function CreateServiceComponent_div_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "StandBy Staff Count");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_th_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "th", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const day_r15 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](day_r15.short);
} }
function CreateServiceComponent_div_65_tr_12_span_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("/", i_r16.standBySlot, "");
} }
function CreateServiceComponent_div_65_tr_12_i_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "i", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_i_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "i", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_i_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "i", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_i_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "i", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_i_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "i", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_i_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "i", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_i_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "i", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " check_box ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_button_24_Template(rf, ctx) { if (rf & 1) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_div_65_tr_12_button_24_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r31); const index_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r29.removeDraftTemplate(index_r17); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Remove ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_button_25_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_div_65_tr_12_button_25_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const index_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r32.openConfirmationDialog("Are you sure you want to delete this service from this template?", "SERVICE", index_r17); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_65_tr_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Slot: ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "span", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, CreateServiceComponent_div_65_tr_12_span_8_Template, 2, 1, "span", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, CreateServiceComponent_div_65_tr_12_i_10_Template, 2, 0, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, CreateServiceComponent_div_65_tr_12_i_12_Template, 2, 0, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, CreateServiceComponent_div_65_tr_12_i_14_Template, 2, 0, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, CreateServiceComponent_div_65_tr_12_i_16_Template, 2, 0, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, CreateServiceComponent_div_65_tr_12_i_18_Template, 2, 0, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, CreateServiceComponent_div_65_tr_12_i_20_Template, 2, 0, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, CreateServiceComponent_div_65_tr_12_i_22_Template, 2, 0, "i", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, CreateServiceComponent_div_65_tr_12_button_24_Template, 2, 0, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](25, CreateServiceComponent_div_65_tr_12_button_25_Template, 2, 0, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r16 = ctx.$implicit;
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"]("Time: ", i_r16.serviceStartTime, " To ", i_r16.serviceEndTime, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](i_r16.confirmSlot);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r14.selectedServiceSetup == null ? null : ctx_r14.selectedServiceSetup.standBySlot);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", i_r16.selectedDays.includes("monday"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", i_r16.selectedDays.includes("tuesday"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", i_r16.selectedDays.includes("wednesday"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", i_r16.selectedDays.includes("thursday"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", i_r16.selectedDays.includes("friday"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", i_r16.selectedDays.includes("saturday"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", i_r16.selectedDays.includes("sunday"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r14.isTemplateSelected);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r14.isTemplateSelected);
} }
function CreateServiceComponent_div_65_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "table", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Timing/Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, CreateServiceComponent_div_65_th_7_Template, 2, 1, "th", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "th", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, CreateServiceComponent_div_65_tr_12_Template, 26, 13, "tr", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.weekDays);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.draftServiceList);
} }
function CreateServiceComponent_ng_container_87_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Auto Schedular Start Date ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "input", 64, 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_ng_container_87_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](10); return _r35.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "i", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, " Auto Schedular End Date ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](21, "input", 69, 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "button", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_ng_container_87_Template_button_click_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](22); return _r36.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "i", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "Day");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](33, "ng-select", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](40, "ng-select", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r3.weekDays)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r3.time)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
} }
function CreateServiceComponent_button_92_Template(rf, ctx) { if (rf & 1) {
const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_button_92_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r41); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r40.updateTemplate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Update Template ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r4.canSaveTemplate());
} }
function CreateServiceComponent_button_93_Template(rf, ctx) { if (rf & 1) {
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_button_93_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r43); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r42.savePlanTemplate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Create Template/Auto-Schedule Service ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.canSaveTemplate());
} }
function CreateServiceComponent_button_94_Template(rf, ctx) { if (rf & 1) {
const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_button_94_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r45); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r44.openConfirmationDialog("Are you sure you want to delete this template?", "TEMPLATE", ""); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Delete Template ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_button_95_Template(rf, ctx) { if (rf & 1) {
const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_button_95_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r47); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r46.openWeekPicker(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Publish Service Manually ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateServiceComponent_div_96_Template(rf, ctx) { if (rf & 1) {
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h4", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_div_96_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r49); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r48.deleteTemplate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_div_96_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r49); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r50.deleteServiceTemplate = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("show", ctx_r8.deleteServiceTemplate);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r8.confirmationMessage, " ");
} }
function CreateServiceComponent_div_97_ng_container_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ng-option", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r52 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r52.label);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r52.label);
} }
function CreateServiceComponent_div_97_Template(rf, ctx) { if (rf & 1) {
const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h4", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Please Select Week ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "ng-select", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, CreateServiceComponent_div_97_ng_container_8_Template, 3, 2, "ng-container", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_div_97_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r53.publishService(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_div_97_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r55.showWeekPicker = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("show", ctx_r9.showWeekPicker);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r9.weekSelectionList)("loading", ctx_r9.weekLoader)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r9.weekSelectionList);
} }
class CreateServiceComponent {
constructor(setupService, formBuilder, toastService) {
this.setupService = setupService;
this.formBuilder = formBuilder;
this.toastService = toastService;
this.tabChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.serviceList = [];
this.templatesList = [];
this.draftServiceList = [];
this.deleteServiceTemplate = false;
this.showWeekPicker = false;
this.weeksLoader = false;
this.selectedDays = [];
this.dayDate = [];
this.disableDayArr = [];
this.time = [];
this.isShowDraft = false;
this.weekDays = [
{ full: 'monday', short: 'Mon' },
{ full: 'tuesday', short: 'Tue' },
{ full: 'wednesday', short: 'Wed' },
{ full: 'thursday', short: 'Thu' },
{ full: 'friday', short: 'Fri' },
{ full: 'saturday', short: 'Sat' },
{ full: 'sunday', short: 'Sun' },
];
this.isTemplateSelected = false;
this.servicesLoder = false;
this.templatesLoder = false;
this.wantToDeleteItem = null;
this.confirmationMessage = '';
this.confirmationBoxType = '';
this.pagination = {
page: 1,
limit: 10,
sort: '{"createdAt": -1}',
};
this.servicesPagination = Object.assign({}, this.pagination);
this.templatesPagination = Object.assign({}, this.pagination);
this.weekSelectionList = [];
}
ngOnInit() {
this.initForm();
this.getServiceNamesAndWeeks();
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["formatGMTOffset"])(Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["getGmtOffSet"])());
this.scheduleTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
this.populateTimeSlots();
}
initForm() {
this.serviceForm = this.formBuilder.group({
serviceName: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
serviceTemplate: [null],
serviceWeek: [null],
confirmSlot: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
standBySlot: [0],
serviceStartTime: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
serviceEndTime: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
isAutoScheduleEnabled: [true, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
autoScheduleConfig: this.formBuilder.group({
autoSchedularStartDate: [null],
autoSchedularEndDate: [null],
day: [null],
autoSchedularTime: [null],
}),
});
}
getServiceNamesAndWeeks() {
var _a;
this.servicesLoder = true;
this.setupService
.getServicesAndWeeks(this.servicesPagination, (_a = this.serviceType) === null || _a === void 0 ? void 0 : _a.serviceTypeName)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => (this.servicesLoder = false)))
.subscribe((response) => {
this.serviceList = [...this.serviceList, ...response.data];
}, () => (this.serviceList = []));
}
loadMoreServiceNames() {
this.servicesPagination.page++;
this.getServiceNamesAndWeeks();
}
onChangeServiceName(selectedServiceSetup) {
if (!selectedServiceSetup)
return;
this.selectedServiceSetup = selectedServiceSetup;
this.templatesList = [];
this.templatesPagination = Object.assign({}, this.pagination);
this.getServiceTemplates();
}
getServiceTemplates() {
this.templatesLoder = true;
this.setupService
.getServiceTemplates(this.templatesPagination, this.selectedServiceSetup._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => (this.templatesLoder = false)))
.subscribe((response) => {
this.templatesList = [...this.templatesList, ...response.data];
}, () => (this.templatesList = []));
}
loadMoreServiceTemplates() {
this.templatesPagination.page++;
this.getServiceTemplates();
}
toggleDay(day) {
const isSelected = this.selectedDays.includes(day);
this.selectedDays = isSelected
? this.selectedDays.filter((d) => d !== day)
: [...this.selectedDays, day];
this.updateDayDate(day, !isSelected);
}
updateDayDate(day, isAdding) {
this.dayDate = isAdding
? [...this.dayDate, { day }]
: this.dayDate.filter((d) => d.day !== day);
}
populateTimeSlots() {
this.time = Array.from({ length: 96 }, (_, i) => moment__WEBPACK_IMPORTED_MODULE_3__({ hour: Math.floor(i / 4), minute: (i % 4) * 15 }).format('HH:mm'));
}
addServiceTemplate() {
const daysArray = this.dayDate.map((item) => item.day);
const draftValueToPush = {
serviceStartTime: this.serviceForm.get('serviceStartTime').value,
serviceEndTime: this.serviceForm.get('serviceEndTime').value,
confirmSlot: this.serviceForm.get('confirmSlot').value,
standBySlot: this.serviceForm.get('standBySlot').value,
days: this.dayDate,
selectedDays: Array.from(new Set(daysArray)),
};
this.draftServiceList.push(draftValueToPush);
this.isShowDraft = true;
this.dayDate = [];
this.resetForm();
this.serviceForm.get('serviceName').disable();
}
savePlanTemplate() {
const payload = this.generateTemplatePayload();
this.setupService
.createTemplate(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => { }))
.subscribe(() => {
this.toastService.success('Service Template saved successfully!');
this.clearServices();
this.tabChange.emit();
}, (err) => {
var _a, _b;
const errorMessage = ((_b = (_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to save service template';
this.toastService.error(errorMessage);
});
}
updateTemplate() {
const payload = this.generateTemplatePayload(this.selectedTemplateId);
this.setupService
.updateTemplate(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => { }))
.subscribe(() => {
this.toastService.success('Service Template updated successfully!');
this.clearServices();
}, (err) => {
var _a, _b;
const errorMessage = ((_b = (_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to update service template';
this.toastService.error(errorMessage);
});
}
generateTemplatePayload(templateId) {
const { isAutoScheduleEnabled, autoScheduleConfig } = this.serviceForm.value;
const { autoSchedularStartDate, autoSchedularEndDate, day, autoSchedularTime, } = autoScheduleConfig;
const payload = {
serviceSetupId: this.selectedServiceSetup._id,
serviceType: this.serviceType.serviceTypeName,
services: this.draftServiceList.map((_a) => {
var { selectedDays } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["selectedDays"]);
return rest;
}),
isScheduled: isAutoScheduleEnabled,
scheduleDay: day || '',
scheduleStartDate: isAutoScheduleEnabled
? this.dateFormat(autoSchedularStartDate)
: '',
scheduleEndDate: isAutoScheduleEnabled
? this.dateFormat(autoSchedularEndDate, true)
: '',
scheduleTime: autoSchedularTime || '',
scheduleTimeZone: isAutoScheduleEnabled ? this.scheduleTimeZone : '',
timezone: this.gmtOffset,
};
if (templateId) {
payload.templateId = templateId;
}
return payload;
}
prefillServiceTemplate(selectedItem) {
const isAutoScheduleEnabled = selectedItem.isScheduled;
this.selectedTemplateId = selectedItem._id;
const autoSchedularStartDate = isAutoScheduleEnabled
? this.parseDate(selectedItem.scheduleStartDate)
: '';
const autoSchedularEndDate = isAutoScheduleEnabled
? this.parseDate(selectedItem.scheduleEndDate)
: '';
const autoSchedularTime = selectedItem.scheduleTime;
this.serviceForm.patchValue({
isAutoScheduleEnabled: isAutoScheduleEnabled,
autoScheduleConfig: {
autoSchedularStartDate,
autoSchedularEndDate,
day: selectedItem.scheduleDay || '',
autoSchedularTime,
},
});
this.draftServiceList = selectedItem.services.map((service) => ({
serviceStartTime: service.serviceStartTime,
serviceEndTime: service.serviceEndTime,
confirmSlot: service.confirmSlot,
standBySlot: service.standBySlot,
days: service.days,
selectedDays: service.days.map((d) => d.day.toLowerCase()),
}));
this.selectedServiceSetup = selectedItem.serviceSetup;
const serviceNameControl = this.serviceForm.get('serviceName');
serviceNameControl.setValue(this.selectedServiceSetup);
serviceNameControl.disable();
this.isTemplateSelected = true;
this.isShowDraft = true;
}
canSaveTemplate() {
const autoScheduleConfig = this.serviceForm.get('autoScheduleConfig');
const isAutoScheduleEnabled = this.serviceForm.get('isAutoScheduleEnabled').value;
if (this.draftServiceList.length === 0)
return false;
if (isAutoScheduleEnabled) {
return (autoScheduleConfig.get('autoSchedularStartDate').value &&
autoScheduleConfig.get('autoSchedularEndDate').value &&
autoScheduleConfig.get('day').value &&
autoScheduleConfig.get('autoSchedularTime').value);
}
return true;
}
clearServices() {
this.selectedServiceSetup = {};
this.serviceForm.reset({ isAutoScheduleEnabled: true, standBySlot: 0 });
this.draftServiceList = [];
this.templatesList = [];
this.isShowDraft = false;
this.isTemplateSelected = false;
this.serviceForm.enable();
}
resetForm() {
if (this.isTemplateSelected) {
this.serviceForm.patchValue({
confirmSlot: null,
standBySlot: 0,
serviceStartTime: null,
serviceEndTime: null,
});
}
else {
this.serviceForm.reset({
standBySlot: 0,
isAutoScheduleEnabled: true,
serviceName: this.selectedServiceSetup,
});
}
this.dayDate = [];
this.selectedDays = [];
}
removeDraftTemplate(index) {
this.draftServiceList.splice(index, 1);
}
deleteTemplate() {
if (this.confirmationBoxType === 'SERVICE' &&
this.wantToDeleteItem !== null) {
this.draftServiceList.splice(this.wantToDeleteItem, 1);
this.wantToDeleteItem = null;
}
else if (this.confirmationBoxType === 'TEMPLATE' &&
this.selectedTemplateId) {
this.setupService.deleteTemplate(this.selectedTemplateId).subscribe(() => {
this.toastService.success('Service Template deleted successfully!');
this.clearServices();
}, (err) => {
var _a, _b;
const errorMessage = ((_b = (_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to delete service template';
this.toastService.error(errorMessage);
});
}
this.deleteServiceTemplate = false;
}
publishService() {
const serviceWeek = this.serviceForm.get('serviceWeek').value;
if (!serviceWeek) {
this.toastService.error('Please Select Service Week');
return;
}
const weekRangeStartsAt = this.formatDate(serviceWeek.label, 0);
const weekRangeEndsAt = this.formatDate(serviceWeek.label, 1);
const payload = {
serviceSetupId: this.selectedServiceSetup._id,
serviceType: this.serviceType.serviceTypeName,
services: this.draftServiceList.map((_a) => {
var { selectedDays } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["selectedDays"]);
return rest;
}),
weekRangeStartsAt,
weekRangeEndsAt,
isScheduled: false,
timezone: this.gmtOffset,
};
if (this.serviceForm.get('serviceTemplate').value) {
payload.templateId = this.selectedTemplateId;
}
this.setupService
.createServices(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => { }))
.subscribe((response) => {
this.toastService.success((response === null || response === void 0 ? void 0 : response.message) || 'Service published successfully!');
this.tabChange.emit();
}, (err) => {
var _a, _b;
const errorMessage = ((_b = (_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) ||
'Failed to publish the service template.';
this.toastService.error(errorMessage);
});
this.showWeekPicker = false;
}
openConfirmationDialog(message, type, index) {
this.confirmationBoxType = type;
this.confirmationMessage = message;
if (type === 'SERVICE')
this.wantToDeleteItem = index;
this.deleteServiceTemplate = true;
}
openWeekPicker() {
this.weeksLoader = true;
const count = this.selectedServiceSetup.serviceViewWeeks || 1;
const startDate = moment__WEBPACK_IMPORTED_MODULE_3__().startOf('isoWeek');
this.weekSelectionList = [];
for (let i = 0; i <= count; i++) {
const weekData = this.getWeekStartEndDate(startDate, 7 * i);
this.weekSelectionList.push(weekData);
}
this.serviceForm.get('serviceWeek').setValue(this.weekSelectionList[0]);
this.weeksLoader = false;
this.showWeekPicker = true;
}
getWeekStartEndDate(date, offset) {
const startOfWeek = date.clone().add(offset, 'days');
const endOfWeek = startOfWeek.clone().add(6, 'days');
return {
label: `${startOfWeek.format('MMM DD')} to ${endOfWeek.format('MMM DD')}`,
value: startOfWeek.format('MM-DD-YYYY'),
key: offset,
};
}
dateFormat(date, isEndOfDay = false) {
const { day, month, year } = date;
const formattedMonth = month.toString().padStart(2, '0');
const formattedDay = day.toString().padStart(2, '0');
const timeOfDay = isEndOfDay ? '23:59:59' : '00:00:00';
const gmtOffset = this.gmtOffset.replace('GMT', '');
return `${year}-${formattedMonth}-${formattedDay}T${timeOfDay}${gmtOffset}`;
}
formatDate(weekLabel, offset) {
const date = this.getDateFromLabel(weekLabel, offset);
return moment__WEBPACK_IMPORTED_MODULE_3__(date).format('MM-DD-YYYY [00:00:00 GMT]ZZ');
}
getDateFromLabel(label, offset) {
const months = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
const day = parseInt(label.slice(4, 6));
const month = months.indexOf(label.slice(0, 3));
const year = new Date().getFullYear();
const baseDate = new Date(year, month, day);
if (offset === 1) {
const endDate = new Date(baseDate);
endDate.setDate(endDate.getDate() + 6);
return endDate;
}
return baseDate;
}
parseDate(dateString) {
const date = new Date(dateString);
return {
year: date.getFullYear(),
month: date.getMonth() + 1,
day: date.getDate(),
};
}
}
CreateServiceComponent.ɵfac = function CreateServiceComponent_Factory(t) { return new (t || CreateServiceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"])); };
CreateServiceComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: CreateServiceComponent, selectors: [["app-create-service"]], inputs: { serviceType: "serviceType" }, outputs: { tabChange: "tabChange" }, decls: 98, vars: 36, consts: [[3, "formGroup"], [1, "card", "mb-3"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body"], [1, "row"], [1, "col", "col-sm-6"], [1, "form-group"], [1, "font-weight-500"], [1, "field-mandatory", "mandatory_Star"], ["bindLabel", "serviceName", "formControlName", "serviceName", "appendTo", "body", "placeholder", "Select Service Name", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "loading", "scrollToEnd", "change"], [1, "col", "col-sm-6", "mt-3"], ["bindLabel", "name", "formControlName", "serviceTemplate", "placeholder", "Select Service Template", 1, "custom", 3, "items", "multiple", "searchable", "loading", "clearable", "closeOnSelect", "change", "scrollToEnd"], [1, "col"], [1, "form-group", "border", "rounded", "p-3"], [1, "mb-2", "mt-1"], ["class", "dayButton m-0 mr-2", 3, "ngClass", "disabled", "click", 4, "ngFor", "ngForOf"], [1, "border", "rounded", "p-3"], [1, "form-group", "row", "mb-2", "mt-3", "align-items-center"], [1, "col-sm-5", "font-weight-500", "text-right"], [1, "col-sm-5"], ["bindLabel", "name", "formControlName", "serviceStartTime", "appendTo", "body", "placeholder", "Start Time", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "name", "formControlName", "serviceEndTime", "appendTo", "body", "placeholder", "End Time", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["type", "number", "formControlName", "confirmSlot", "placeholder", "Confirm Slot", 1, "form-control"], ["class", "form-group row mb-2 mt-3 align-items-center", 4, "ngIf"], [1, "card-footer", "d-flex", "justify-content-center"], [1, "btn", "btn-success", 3, "disabled", "click"], [1, "btn", "btn-danger", "ml-1", 3, "click"], [1, "card"], [1, "card-header", "bg-theme"], ["class", "card-body", 4, "ngIf"], [1, "card", "mt-2"], [1, "auto-schedule", "mt-3"], [1, "form-check", "form-check-inline", "ml-2"], ["type", "radio", "id", "yesCheckin", "formControlName", "isAutoScheduleEnabled", "name", "isAutoScheduleEnabled", 1, "form-check-input", 3, "value"], [1, "form-check-label"], [1, "form-check", "form-check-inline"], ["type", "radio", "id", "noCheckin", "formControlName", "isAutoScheduleEnabled", "name", "isAutoScheduleEnabled", 1, "form-check-input", 3, "value"], ["formGroupName", "autoScheduleConfig"], [4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-center"], ["class", "btn btn-warning ml-1", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-info ml-1", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-danger ml-1", 3, "click", 4, "ngIf"], ["class", "btn btn-success ml-1", 3, "click", 4, "ngIf"], ["class", "modal fade", "style", "display: block", "tabindex", "-1", "aria-labelledby", "confirmationModalLabel", "aria-hidden", "true", 3, "show", 4, "ngIf"], [1, "dayButton", "m-0", "mr-2", 3, "ngClass", "disabled", "click"], ["type", "number", "formControlName", "standBySlot", 1, "form-control"], [1, "table-responsive"], [1, "table", "table-striped"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", 4, "ngFor", "ngForOf"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "text-success"], ["class", "text-danger", 4, "ngIf"], ["class", "material-icons", 4, "ngIf"], ["class", "btn btn-warning ml-1", 3, "click", 4, "ngIf"], [1, "text-danger"], [1, "material-icons"], [1, "btn", "btn-warning", "ml-1", 3, "click"], [1, "col-3"], [1, "input-group"], ["formControlName", "autoSchedularStartDate", "placeholder", "dd-mm-yyyy", "name", "dpStart", "ngbDatepicker", "", 1, "form-control", 2, "max-width", "240px"], ["startDate", "ngbDatepicker"], [1, "input-group-append"], ["type", "button", 1, "btn", "btn-outline-secondary", "calendar", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-calendar"], ["formControlName", "autoSchedularEndDate", "placeholder", "dd-mm-yyyy", "name", "dpEnd", "ngbDatepicker", "", 1, "form-control", 2, "max-width", "240px"], ["endDate", "ngbDatepicker"], ["bindLabel", "full", "bindValue", "full", "formControlName", "day", "appendTo", "body", "placeholder", "Select Day", 1, "custom", "text-capitalize", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "name", "placeholder", "Select Time", "formControlName", "autoSchedularTime", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], [1, "btn", "btn-warning", "ml-1", 3, "disabled", "click"], [1, "btn", "btn-info", "ml-1", 3, "disabled", "click"], [1, "btn", "btn-success", "ml-1", 3, "click"], ["tabindex", "-1", "aria-labelledby", "confirmationModalLabel", "aria-hidden", "true", 1, "modal", "fade", 2, "display", "block"], [1, "modal-dialog", "modal-dialog-centered", 2, "max-width", "400px"], [1, "modal-content"], [1, "modal-body", "text-center"], ["id", "confirmationModalLabel", 1, "modal-title", 2, "font-size", "18px", "color", "#333"], [1, "modal-footer", "justify-content-center"], [1, "btn", "btn-primary", "ml-1", 2, "width", "6rem", 3, "click"], [1, "btn", "btn-danger", "ml-1", 2, "width", "6rem", 3, "click"], [1, "modal-dialog", "modal-dialog-centered", 2, "max-width", "500px"], [1, "modal-body", "text-center", 2, "padding", "20px", "border-radius", "10px"], [1, "form-group", "mt-3"], ["loadingText", "Please wait data is loading...", "bindLabel", "label", "placeholder", "Select Week", "appendTo", "body", "formControlName", "serviceWeek", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect"], [3, "value"]], template: function CreateServiceComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "CREATE SERVICE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Select Service Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "ng-select", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("scrollToEnd", function CreateServiceComponent_Template_ng_select_scrollToEnd_14_listener() { return ctx.loadMoreServiceNames(); })("change", function CreateServiceComponent_Template_ng_select_change_14_listener($event) { return ctx.onChangeServiceName($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "Select Service Template");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "ng-select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateServiceComponent_Template_ng_select_change_20_listener($event) { return ctx.prefillServiceTemplate($event); })("scrollToEnd", function CreateServiceComponent_Template_ng_select_scrollToEnd_20_listener() { return ctx.loadMoreServiceTemplates(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Select Service Day");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, CreateServiceComponent_button_29_Template, 2, 5, "button", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](30, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "Service Start Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](40, "ng-select", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "Service End Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](47, "ng-select", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, "Confirm Staff Count");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](52, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](54, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](55, CreateServiceComponent_div_55_Template, 5, 0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](56, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_Template_button_click_58_listener() { return ctx.addServiceTemplate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](59, " Add Service As Draft ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_Template_button_click_60_listener() { return ctx.resetForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](61, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](63, "h5", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](64, "PLAN SERVICE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](65, CreateServiceComponent_div_65_Template, 13, 2, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "h5", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](68, "Auto Scheduler");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](75, "Do you want to add auto schedule ?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](77, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](79, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](81, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](83, "input", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](85, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](87, CreateServiceComponent_ng_container_87_Template, 41, 10, "ng-container", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](88, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](89, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](90, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateServiceComponent_Template_button_click_90_listener() { return ctx.clearServices(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](91, " Clear Plan ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](92, CreateServiceComponent_button_92_Template, 2, 1, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](93, CreateServiceComponent_button_93_Template, 2, 1, "button", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](94, CreateServiceComponent_button_94_Template, 2, 0, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](95, CreateServiceComponent_button_95_Template, 2, 0, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](96, CreateServiceComponent_div_96_Template, 11, 3, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](97, CreateServiceComponent_div_97_Template, 14, 8, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.serviceForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx.serviceList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("loading", ctx.servicesLoder);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx.templatesList)("multiple", false)("searchable", true)("loading", ctx.templatesLoder)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.weekDays);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx.time)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx.time)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.selectedServiceSetup == null ? null : ctx.selectedServiceSetup.standBySlot);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx.serviceForm.valid || ctx.dayDate.length === 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isShowDraft);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.serviceForm.get("isAutoScheduleEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isTemplateSelected);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTemplateSelected);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isTemplateSelected);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.draftServiceList.length !== 0 && !ctx.serviceForm.get("isAutoScheduleEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.deleteServiceTemplate);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showWeekPicker);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_11__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbInputDatepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["ɵr"]], styles: [".flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.show-modal[_ngcontent-%COMP%] {\n display: block;\n}\n\n.margin-horizontal[_ngcontent-%COMP%] {\n margin: 0 1rem;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.padding-left[_ngcontent-%COMP%] {\n padding-left: 0.5rem;\n}\n\n.checkbox[_ngcontent-%COMP%] {\n height: 20px;\n width: 20px;\n top: 0;\n left: 0;\n}\n\n.dayHeader[_ngcontent-%COMP%] {\n margin: 0.5rem;\n}\n\n.dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-left: 10px;\n font-weight: 500;\n color: #a42138;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover {\n outline: none;\n background-color: #a42138;\n color: #fff;\n}\n\n.dayButton[_ngcontent-%COMP%]:disabled {\n color: #a42138;\n background-color: white;\n cursor: not-allowed;\n opacity: 0.8;\n}\n\n.selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #a42138;\n color: white;\n opacity: 1;\n}\n\n.dayDiv[_ngcontent-%COMP%] {\n border: 1px solid #dfdfdf;\n border-radius: 4px;\n}\n\n.title[_ngcontent-%COMP%] {\n font-weight: 600;\n}\n\n.ph-2[_ngcontent-%COMP%] {\n padding: 0 0.25rem;\n}\n\n.hide[_ngcontent-%COMP%] {\n display: none;\n}\n\n.center-placed[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.btn-clear[_ngcontent-%COMP%] {\n background-color: #ec3636;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n margin-left: 6px;\n cursor: pointer;\n}\n\n.chckhide[_ngcontent-%COMP%] {\n color: #ec3636;\n}\n\n.chckhide[_ngcontent-%COMP%]:first-child {\n display: none;\n}\n\n.btn[_ngcontent-%COMP%]:disabled {\n cursor: not-allowed;\n}\n\n.spinner-border[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\n.mandatory_Star[_ngcontent-%COMP%] {\n font-size: 20px;\n margin-left: 3px;\n}\n\n.modal.show[_ngcontent-%COMP%] {\n display: block;\n background-color: rgba(0, 0, 0, 0.5);\n}\n\n .ng-select.custom .ng-dropdown-panel {\n width: 100% !important;\n overflow-x: auto;\n}\n\n .ng-select.custom .ng-dropdown-panel .ng-dropdown-panel-items {\n display: inline-block;\n min-width: 100%;\n}\n\n .ng-select.custom .ng-option {\n padding-right: 10px;\n white-space: nowrap;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zZXJ2aWNlL2NyZWF0ZS1zZXJ2aWNlL2NyZWF0ZS1zZXJ2aWNlLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxjQUFBO0FBQ0Y7O0FBR0E7RUFDRSxjQUFBO0FBQUY7O0FBR0E7RUFDRSxVQUFBO0FBQUY7O0FBR0E7RUFDRSxvQkFBQTtBQUFGOztBQUdBO0VBQ0UsWUFBQTtFQUNBLFdBQUE7RUFDQSxNQUFBO0VBQ0EsT0FBQTtBQUFGOztBQUdBO0VBQ0UsY0FBQTtBQUFGOztBQUdBO0VBQ0UsY0FBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLGlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0EsNkJBQUE7RUFDQSxrQkFBQTtFQUNBLHVCQUFBO0FBQUY7O0FBRUU7RUFDRSxhQUFBO0VBQ0EseUJBQUE7RUFDQSxXQUFBO0FBQUo7O0FBR0U7RUFDRSxjQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7QUFESjs7QUFLQTtFQUNFLGFBQUE7RUFDQSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxVQUFBO0FBRkY7O0FBS0E7RUFDRSx5QkFBQTtFQUNBLGtCQUFBO0FBRkY7O0FBS0E7RUFDRSxnQkFBQTtBQUZGOztBQUtBO0VBQ0Usa0JBQUE7QUFGRjs7QUFLQTtFQUNFLGFBQUE7QUFGRjs7QUFLQTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtBQUZGOztBQUtBO0VBQ0UseUJBQUE7QUFGRjs7QUFLQTtFQUNFLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0VBQ0EsOEJBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0VBQ0EsdUJBQUE7RUFBQSxrQkFBQTtBQUZGOztBQUlFO0VBQ0UsZUFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7QUFGSjs7QUFNQTtFQUNFLGNBQUE7QUFIRjs7QUFLRTtFQUNFLGFBQUE7QUFISjs7QUFPQTtFQUNFLG1CQUFBO0FBSkY7O0FBT0E7RUFDRSxzQkFBQTtBQUpGOztBQU9BO0VBQ0UsZUFBQTtFQUNBLGdCQUFBO0FBSkY7O0FBUUE7RUFDRSxjQUFBO0VBQ0Esb0NBQUE7QUFMRjs7QUFRQTtFQUNFLHNCQUFBO0VBQ0EsZ0JBQUE7QUFMRjs7QUFRQTtFQUNFLHFCQUFBO0VBQ0EsZUFBQTtBQUxGOztBQVFBO0VBQ0UsbUJBQUE7RUFDQSxtQkFBQTtBQUxGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zZXJ2aWNlL2NyZWF0ZS1zZXJ2aWNlL2NyZWF0ZS1zZXJ2aWNlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZsZXhEaXNwbGF5IHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG4uc2hvdy1tb2RhbCB7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICA7XG59XG5cbi5tYXJnaW4taG9yaXpvbnRhbCB7XG4gIG1hcmdpbjogMCAxcmVtO1xufVxuXG4ubm8tcGFkZGluZyB7XG4gIHBhZGRpbmc6IDA7XG59XG5cbi5wYWRkaW5nLWxlZnQge1xuICBwYWRkaW5nLWxlZnQ6IDAuNXJlbTtcbn1cblxuLmNoZWNrYm94IHtcbiAgaGVpZ2h0OiAyMHB4O1xuICB3aWR0aDogMjBweDtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xufVxuXG4uZGF5SGVhZGVyIHtcbiAgbWFyZ2luOiAwLjVyZW07XG59XG5cbi5kYXlCdXR0b24ge1xuICBoZWlnaHQ6IDIuNXJlbTtcbiAgd2lkdGg6IDIuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBtYXJnaW4tbGVmdDogMTBweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHRyYW5zcGFyZW50O1xuICBib3JkZXItY29sb3I6ICNjY2M7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuXG4gICY6aG92ZXIge1xuICAgIG91dGxpbmU6IG5vbmU7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgICBjb2xvcjogI2ZmZjtcbiAgfVxuXG4gICY6ZGlzYWJsZWQge1xuICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICAgIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gICAgb3BhY2l0eTogMC44O1xuICB9XG59XG5cbi5zZWxlY3RlZCB7XG4gIG91dGxpbmU6IG5vbmU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgb3BhY2l0eTogMTtcbn1cblxuLmRheURpdiB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNkZmRmZGY7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn1cblxuLnRpdGxlIHtcbiAgZm9udC13ZWlnaHQ6IDYwMDtcbn1cblxuLnBoLTIge1xuICBwYWRkaW5nOiAwIDAuMjVyZW07XG59XG5cbi5oaWRlIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmNlbnRlci1wbGFjZWQge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xufVxuXG4uYnRuLWNsZWFyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2VjMzYzNjtcbn1cblxuLmxhYmVscyB7XG4gIHBhZGRpbmc6IDZweCA4cHg7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xuICBmb250LXNpemU6IDE0cHg7XG4gIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgd2lkdGg6IGZpdC1jb250ZW50O1xuXG4gIC5idG4tY2xvc2Uge1xuICAgIGZvbnQtc2l6ZTogMTZweDtcbiAgICBwYWRkaW5nOiAycHg7XG4gICAgbWFyZ2luLWxlZnQ6IDZweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbn1cblxuLmNoY2toaWRlIHtcbiAgY29sb3I6ICNlYzM2MzY7XG5cbiAgJjpmaXJzdC1jaGlsZCB7XG4gICAgZGlzcGxheTogbm9uZTtcbiAgfVxufVxuXG4uYnRuOmRpc2FibGVkIHtcbiAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbn1cblxuLnNwaW5uZXItYm9yZGVyIHtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbn1cblxuLm1hbmRhdG9yeV9TdGFyIHtcbiAgZm9udC1zaXplOiAyMHB4O1xuICBtYXJnaW4tbGVmdDogM3B4O1xuXG59XG5cbi5tb2RhbC5zaG93IHtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbn1cblxuOjpuZy1kZWVwIC5uZy1zZWxlY3QuY3VzdG9tIC5uZy1kcm9wZG93bi1wYW5lbCB7XG4gIHdpZHRoOiAxMDAlICFpbXBvcnRhbnQ7XG4gIG92ZXJmbG93LXg6IGF1dG87XG59XG5cbjo6bmctZGVlcCAubmctc2VsZWN0LmN1c3RvbSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBtaW4td2lkdGg6IDEwMCU7XG59XG5cbjo6bmctZGVlcCAubmctc2VsZWN0LmN1c3RvbSAubmctb3B0aW9uIHtcbiAgcGFkZGluZy1yaWdodDogMTBweDtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CreateServiceComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-create-service',
templateUrl: './create-service.component.html',
styleUrls: ['./create-service.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }]; }, { serviceType: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], tabChange: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "YyPE":
/*!*************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/notification/manage-notification/manage-notification.component.ts ***!
\*************************************************************************************************************/
/*! exports provided: ManageNotificationComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageNotificationComponent", function() { return ManageNotificationComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _notification_overview_notification_overview_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./notification-overview/notification-overview.component */ "7//P");
/* harmony import */ var _create_edit_notification_create_edit_notification_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./create-edit-notification/create-edit-notification.component */ "Hp/k");
function ManageNotificationComponent_div_0_ng_option_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.orgName, " ");
} }
const _c0 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function ManageNotificationComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "NOTIFICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "form", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Bussiness unit (Plan) ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "ng-select", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ManageNotificationComponent_div_0_Template_ng_select_search_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r4.onSeachPlanBuUnit($event); })("scrollToEnd", function ManageNotificationComponent_div_0_Template_ng_select_scrollToEnd_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r6.loadMorePlasnBuUnitItems($event); })("clear", function ManageNotificationComponent_div_0_Template_ng_select_clear_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r7.onClearPlanBuUnitDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, ManageNotificationComponent_div_0_ng_option_11_Template, 2, 2, "ng-option", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageNotificationComponent_div_0_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r5); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onClickView(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "i", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r0.viewNotification);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("closeOnSelect", true)("clearable", true)("loading", ctx_r0.planBuUnitDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.planBuUnitDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r0.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](9, _c0, ctx_r0.isLoading, !ctx_r0.isLoading));
} }
function ManageNotificationComponent_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-notification-overview", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("overViewEvent", function ManageNotificationComponent_div_1_ng_template_6_Template_app_notification_overview_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r12.overViewEvent($event); })("overViewNotification", function ManageNotificationComponent_div_1_ng_template_6_Template_app_notification_overview_overViewNotification_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r14.viewNotificationClick($event); })("editEvent", function ManageNotificationComponent_div_1_ng_template_6_Template_app_notification_overview_editEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r15.notificationEdit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("notificatioNid", ctx_r10.notificatioNid);
} }
function ManageNotificationComponent_div_1_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-create-edit-notification", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("overViewEvent", function ManageNotificationComponent_div_1_ng_template_10_Template_app_create_edit_notification_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r16.overViewEvent($event); })("editEvent", function ManageNotificationComponent_div_1_ng_template_10_Template_app_create_edit_notification_editEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r18.notificationEdit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("notificationEditedId", ctx_r11.notificatioEditid)("notificatioNid", ctx_r11.notificatioNid);
} }
function ManageNotificationComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 15, 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function ManageNotificationComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageNotificationComponent_div_1_Template_a_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.onOverView(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ManageNotificationComponent_div_1_ng_template_6_Template, 1, 1, "ng-template", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "li", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "a", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ManageNotificationComponent_div_1_Template_a_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.onCreateTab(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, ManageNotificationComponent_div_1_ng_template_10_Template, 1, 2, "ng-template", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r1.isNotificationViewEnabled);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r1.isNotificationViewEnabled ? "VIEW" : "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r1.isNotificationEdited ? "EDIT" : "CREATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r9);
} }
class ManageNotificationComponent {
constructor(formBuilder, buUnit, toastService) {
this.formBuilder = formBuilder;
this.buUnit = buUnit;
this.toastService = toastService;
this.isNotificationEdited = false;
this.activeId = 1;
this.isNotificationViewEnabled = false;
this.planBuUnitDropDown = [];
this.isNotificationEndabled = false;
this.isLoading = false;
this.bussinesUnitplanPTable = {
sortBy: 'createdAt',
sortWith: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
}
ngOnInit() {
this.viewNotification = this.formBuilder.group({
bussinessUnit: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.loadBussinessPlanUnit();
}
addParentBussinentUnit(value) {
this.viewNotification.patchValue({
bussinessUnit: {
string: value.businessUnit,
_id: value._id,
},
});
}
deleteparentBussinesUnit() {
this.viewNotification.patchValue({
bussinessUnit: null
});
}
onSeachPlanBuUnit(value) {
this.bussinesUnitplanPTable.limit = 10;
this.bussinesUnitplanPTable.search = value.term;
this.loadBussinessPlanUnit();
}
loadMorePlasnBuUnitItems(value) {
this.bussinesUnitplanPTable.limit = this.bussinesUnitplanPTable.limit + 10;
this.loadBussinessPlanUnit();
}
onClearPlanBuUnitDropdown(value) {
if (value === undefined) {
this.viewNotification.patchValue({
bussinessUnit: null
});
this.bussinesUnitplanPTable.search = '';
this.loadBussinessPlanUnit();
this.planBuUnitDropDown = [];
this.bussinesUnitplanPTable.data = [];
}
}
loadBussinessPlanUnit() {
this.planBuUnitDropDownLoading = true;
const _a = this.bussinesUnitplanPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.buUnit
.getBussinesUnit(rest, true)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.planBuUnitDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, businessUnitList } = response;
this.bussinesUnitplanPTable.data = businessUnitList;
this.planBuUnitDropDown = businessUnitList;
}, (error) => {
this.bussinesUnitplanPTable.data = [];
this.toastService.error('No list found');
});
}
onOverView() {
if (!this.isNotificationViewEnabled) {
this.activeId = 1;
this.notificatioEditid = null;
this.isNotificationEdited = false;
this.isNotificationViewEnabled = false;
}
}
onCreateTab() {
this.isNotificationViewEnabled = false;
}
notificationEdit(id) {
this.activeId = 2;
this.isNotificationEdited = !this.isNotificationEdited;
this.notificatioEditid = id;
this.isNotificationViewEnabled = false;
}
viewNotificationClick($event) {
console.log('viewNotificationClick', $event);
this.isNotificationViewEnabled = $event;
}
onClickView() {
if (!this.viewNotification.valid) {
this.toastService.error('Please Select a Business Unit');
return;
}
this.isLoading = true;
setTimeout(() => {
this.isNotificationEndabled = true;
const { _id } = this.viewNotification.get('bussinessUnit').value;
this.notificatioNid = _id;
this.ngOnInit();
this.isLoading = false;
}, 1500);
}
viewEnable(value) {
this.isNotificationEdited = false;
}
overViewEvent(value) {
this.isOverView = value;
this.isNotificationEndabled = true;
this.isNotificationEdited = false;
// this.isEdited = false
this.activeId = 1;
this.isNotificationViewEnabled = false;
}
}
ManageNotificationComponent.ɵfac = function ManageNotificationComponent_Factory(t) { return new (t || ManageNotificationComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_4__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
ManageNotificationComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ManageNotificationComponent, selectors: [["app-manage-notification"]], decls: 2, vars: 2, consts: [["class", "card my-3", "style", "width: 33.5em; margin: 0 auto", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], [1, "card", "my-3", 2, "width", "33.5em", "margin", "0 auto"], [1, "card-header", "flexi-header", "text-center", "p-4"], [1, "card-body"], ["action", "", 3, "formGroup"], [1, "row", "mb-2"], [1, "col-md-12"], ["bindLabel", "businessUnit", "placeholder", "Bussiness unit (Plan)", "appendTo", "body", "formControlName", "bussinessUnit", 1, "custom", 3, "multiple", "searchable", "closeOnSelect", "clearable", "loading", "search", "scrollToEnd", "clear"], [3, "value", 4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "btn", "btn-submit", "btn-block", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [3, "value"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "disabled", "click"], ["ngbNavContent", ""], ["ngbNavLink", "", 3, "click"], [3, "ngbNavOutlet"], [3, "notificatioNid", "overViewEvent", "overViewNotification", "editEvent"], [3, "notificationEditedId", "notificatioNid", "overViewEvent", "editEvent"]], template: function ManageNotificationComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ManageNotificationComponent_div_0_Template, 16, 12, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ManageNotificationComponent_div_1_Template, 12, 7, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isNotificationEndabled);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isNotificationEndabled);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgClass"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavOutlet"], _notification_overview_notification_overview_component__WEBPACK_IMPORTED_MODULE_10__["NotificationOverviewComponent"], _create_edit_notification_create_edit_notification_component__WEBPACK_IMPORTED_MODULE_11__["CreateEditNotificationComponent"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbm90aWZpY2F0aW9uL21hbmFnZS1ub3RpZmljYXRpb24vbWFuYWdlLW5vdGlmaWNhdGlvbi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxpREFBaUQsZUFBZSxDQUFDLGlDQUFpQyxDQUFDLHVEQUF1RCxlQUFlLENBQUMsMkRBQTJELFFBQVEsQ0FBQyx5Q0FBeUMsQ0FBQyxzQkFBc0IsQ0FBQyxpRUFBaUUseUNBQXlDLENBQUMsa0VBQWtFLDRCQUE0QixDQUFDLDJCQUEyQixDQUFDLCtEQUErRCx5QkFBeUIsQ0FBQyx3QkFBd0IsQ0FBQyx5RUFBeUUsb0JBQW9CLENBQUMsMEVBQTBFLENBQUMsbURBQW1ELHdCQUF3QixDQUFDLHlDQUF5QyxZQUFZLENBQUMsZ0NBQWdDLFVBQVUsQ0FBQyxxQkFBcUIsQ0FBQyxpQkFBaUIsQ0FBQyxxQkFBcUIsQ0FBQyxlQUFlLENBQUMsa0JBQWtCLENBQUMsc0NBQXNDLG1DQUFtQyxDQUFDLG9EQUFvRCxrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxnRUFBZ0Usa0JBQWtCLENBQUMsY0FBYyxDQUFDLG9FQUFvRSxVQUFVLENBQUMsaURBQWlELFdBQVcsQ0FBQywrRUFBK0UsT0FBTyxDQUFDLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxrQkFBa0IsQ0FBQywyRkFBMkYsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsb0dBQW9HLHdCQUF3QixDQUFDLHdCQUF3QixDQUFDLG9IQUFvSCxhQUFhLENBQUMsdUVBQXVFLGVBQWUsQ0FBQyxnQkFBZ0IsQ0FBQyxtRkFBbUYsaUJBQWlCLENBQUMsY0FBYyxDQUFDLGlGQUFpRixjQUFjLENBQUMsaUJBQWlCLENBQUMsd0JBQXdCLENBQUMsaUJBQWlCLENBQUMsZ0JBQWdCLENBQUMsNkZBQTZGLGNBQWMsQ0FBQyxlQUFlLENBQUMsbUdBQW1HLHdCQUF3QixDQUFDLG1IQUFtSCxnQkFBZ0IsQ0FBQywrSEFBK0gsY0FBYyxDQUFDLGlCQUFpQixDQUFDLGlHQUFpRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsZ0dBQWdHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxzR0FBc0csd0JBQXdCLENBQUMscUdBQXFHLDhCQUE4QixDQUFDLGlIQUFpSCw2QkFBNkIsQ0FBQyxpQkFBaUIsQ0FBQyxzR0FBc0csNkJBQTZCLENBQUMsa0hBQWtILGFBQWEsQ0FBQyw4QkFBOEIsQ0FBQyxpRkFBaUYsbUJBQW1CLENBQUMsNkZBQTZGLG1CQUFtQixDQUFDLHVGQUF1RixPQUFPLENBQUMsa0JBQWtCLENBQUMsZ0JBQWdCLENBQUMsbUdBQW1HLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLDZDQUE2QyxhQUFhLENBQUMsNEJBQTRCLG1CQUFtQixDQUFDLHdDQUF3QyxtQkFBbUIsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLGlCQUFpQixDQUFDLHlDQUF5QyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsNkNBQTZDLHFCQUFxQixDQUFDLHVDQUF1Qyx5Q0FBeUMsQ0FBQyxrQkFBa0IsQ0FBQywwQkFBMEIsQ0FBQyxtQkFBbUIscUJBQXFCLENBQUMscUJBQXFCLENBQUMsbUNBQW1DLENBQUMsTUFBTSxDQUFDLG9DQUFvQyxRQUFRLENBQUMsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsd0JBQXdCLENBQUMsZUFBZSxDQUFDLG1GQUFtRiw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyxpQ0FBaUMsV0FBVyxDQUFDLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLDJCQUEyQixDQUFDLGtCQUFrQixDQUFDLGlGQUFpRiwyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQyx1Q0FBdUMsNEJBQTRCLENBQUMsZUFBZSxDQUFDLHVDQUF1Qyx5QkFBeUIsQ0FBQyxlQUFlLENBQUMseURBQXlELHdCQUFnQixDQUFoQixnQkFBZ0IsQ0FBQyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsc0JBQXNCLENBQUMsY0FBYyxDQUFDLDRFQUE0RSxjQUFjLENBQUMsMEVBQTBFLHdCQUF3QixDQUFDLHlLQUF5Syx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsdURBQXVELHFCQUFxQixDQUFDLHNCQUFzQixDQUFDLGdCQUFnQixDQUFDLHFLQUFxSyxVQUFVLENBQUMsd0JBQXdCLENBQUMsdU1BQXVNLGVBQWUsQ0FBQyx3RUFBd0Usd0JBQXdCLENBQUMsVUFBVSxDQUFDLDBFQUEwRSxVQUFVLENBQUMsdUVBQXVFLGlCQUFpQixDQUFDLG1GQUFtRixrQkFBa0IsQ0FBQyxjQUFjLENBQUMscUVBQXFFLGFBQWEsQ0FBQyxlQUFlLENBQUMsaUJBQWlCLENBQUMsaUZBQWlGLGdCQUFnQixDQUFDLGVBQWUsQ0FBQywrQkFBK0IsYUFBYSxDQUFDLGdCQUFnQixDQ0UxNE87RUFDRSxvQ0FBQTtFQUNBLHVCQUFBO0FBQUYsQ0FHQTtFQUNFLHNCQUFBO0FBQUYsQ0FDRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUNKLENBQ0k7RUFDRSxjQUFBO0FBQ04sQ0FFSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFBTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbm90aWZpY2F0aW9uL21hbmFnZS1ub3RpZmljYXRpb24vbWFuYWdlLW5vdGlmaWNhdGlvbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbjo6bmctZGVlcCAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMyMTk2ZjMgIWltcG9ydGFudDtcbiAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG59XG5cbi5uYXYtdGFicyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC5uYXYtbGluayB7XG4gICAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgIHRyYW5zaXRpb246IGNvbG9yIDAuMnM7XG4gICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ManageNotificationComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-manage-notification',
templateUrl: './manage-notification.component.html',
styleUrls: ['./manage-notification.component.scss']
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_4__["BussinessUnitService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "Z/ig":
/*!************************************************************************!*\
!*** ./src/app/users/service/human-resources/leave-planner.service.ts ***!
\************************************************************************/
/*! exports provided: LeavePlannerService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LeavePlannerService", function() { return LeavePlannerService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class LeavePlannerService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getMobileView(data) {
return this.http.post(`${this.baseUrl}/ballot/getMobileViewAtWeb`, data, {
headers: this.Headers,
});
}
getballotdetailsforautoassigned(id) {
return this.http.get(`${this.baseUrl}/ballot/ballotdetailsforautoassigned/${id}`, {
headers: this.Headers,
});
}
getballotdetailsByUsers(id) {
return this.http.get(`${this.baseUrl}/ballot/ballotdetailsbyusers/${id}`, {
headers: this.Headers,
});
}
getOpsGrp() {
const payload = { privilage: true, search: '' };
return this.http.post(`${this.baseUrl}/opsGroup/get`, payload, {
headers: this.Headers,
});
}
getbuPlanBu(data) {
return this.http.post(`${this.baseUrl}/business-unit/read/planbu`, data, {
headers: this.Headers,
});
}
getQuotaByGrp(payload) {
return this.http.post(`${this.baseUrl}/ballot/getquotabyopsgroups`, payload, {
headers: this.Headers,
});
}
getleaveQuota(userId) {
return this.http.get(`${this.baseUrl}/ballot/getballotcalender1/${userId}`, {
headers: this.Headers,
});
}
getSwapOpsGroup(userId) {
return this.http.get(`${this.baseUrl}/ballot/getswapopsgroup/${userId}`, {
headers: this.Headers,
});
}
addOpsquota(payload) {
return this.http.post(`${this.baseUrl}/ballot/addperdayopsquota`, payload, {
headers: this.Headers,
});
}
getcalenderforyear(payload) {
return this.http.post(`${this.baseUrl}/ballot/getcalenderforyear`, payload, {
headers: this.Headers,
});
}
leavePlanner(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/usersbydate`, payload, {
headers: this.Headers,
});
}
leavePlannerBu(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/usersbydate/bu`, payload, {
headers: this.Headers,
});
}
leavemanagement(payload) {
return this.http.post(`${this.baseUrl}/leavemanagement/type/leaveAllocation`, payload, {
headers: this.Headers,
});
}
newLeavePlanner(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/staffleavetype`, payload, {
headers: this.Headers,
});
}
getLeaveType(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/leavetype`, payload, {
headers: this.Headers,
});
}
getstaffleavetype(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/staffleavetype`, payload, {
headers: this.Headers,
});
}
getLeaveTypeBu(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/leavetype/bu`, payload, {
headers: this.Headers,
});
}
getLeaveUserData(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/mobilescreenforleaves`, payload, {
headers: this.Headers,
});
}
getLeaveAllocate(payload) {
return this.http.post(`${this.baseUrl}/leavemanagement/allocatteleave`, payload, {
headers: this.Headers,
});
}
getSwapList(data) {
return this.http.post(`${this.baseUrl}/ballot/getuserslistwithswap`, data, {
headers: this.Headers,
});
}
swapRestrict(id) {
return this.http.post(`${this.baseUrl}/ballot/swaprestricttouser/${id}`, {
headers: this.Headers,
});
}
getBallotUser(payload) {
return this.http.post(`${this.baseUrl}/ballot/user`, payload, {
headers: this.Headers,
});
}
addBallot(payload) {
return this.http.post(`${this.baseUrl}/ballot`, payload, {
headers: this.Headers,
});
}
getBallot(pageNum) {
return this.http.get(`${this.baseUrl}/ballot?page=${pageNum}`, {
headers: this.Headers,
});
}
updataBallot(payload) {
return this.http.post(`${this.baseUrl}/ballot/update`, payload, {
headers: this.Headers,
});
}
extendBallot(id, payload) {
return this.http.post(`${this.baseUrl}/ballot/extendballot/${id}`, payload, {
headers: this.Headers,
});
}
conductAutoBallot(data) {
return this.http.post(`${this.baseUrl}/ballot/auto`, data, {
headers: this.Headers,
});
}
getConsolidatedResult(data) {
return this.http.post(`${this.baseUrl}/ballot/consolidatedresult`, data, {
headers: this.Headers,
});
}
viewBallotRoundDetail(payload) {
return this.http.post(`${this.baseUrl}/ballot/detail`, payload, {
headers: this.Headers,
});
}
allBallotDetail(payload) {
return this.http.post(`${this.baseUrl}/ballot/detail/all`, payload, {
headers: this.Headers,
});
}
resultRelease(payload) {
return this.http.post(`${this.baseUrl}/ballot/resultrelease`, payload, {
headers: this.Headers,
});
}
manageBallot(id) {
return this.http.get(`${this.baseUrl}/ballot/manageballot/${id}`, {
headers: this.Headers,
});
}
getReballot(id) {
return this.http.get(`${this.baseUrl}/ballot/reballot/${id}`, {
headers: this.Headers,
});
}
getAutoAssign(id) {
return this.http.get(`${this.baseUrl}/ballot/autoAssignballot/${id}`, {
headers: this.Headers,
});
}
getAutoAssignStaff(id) {
return this.http.get(`${this.baseUrl}/ballot/datatoautoassignbystaff/${id}`, {
headers: this.Headers,
});
}
getBallotDetailAll(id) {
return this.http.post(`${this.baseUrl}/ballot/detail/all`, id, {
headers: this.Headers,
});
}
updateCancelBallot(id) {
return this.http.post(`${this.baseUrl}/ballot/cancelballot/${id}`, {
headers: this.Headers,
});
}
getExportBallotData(id) {
return this.http.get(`${this.baseUrl}/ballot/exportballotdata/${id}`, {
headers: this.Headers,
});
}
checkOverLap(payload) {
return this.http.post(`${this.baseUrl}/leavemanagement/checkoverlap`, payload, {
headers: this.Headers,
});
}
approveAppliedLeave() {
return this.http.get(`${this.baseUrl}/leavemanagement/appliedLeave/bu`, {
headers: this.Headers,
});
}
leaveApproval(payload) {
return this.http.post(`${this.baseUrl}/leavemanagement/leave/status`, payload, {
headers: this.Headers,
});
}
cancel(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/cancel`, payload, {
headers: this.Headers,
});
}
change(payload) {
return this.http.post(`${this.baseUrl}/leavemanagement/allocateleavechangedate`, payload, {
headers: this.Headers,
});
}
export(payload) {
return this.http.post(`${this.baseUrl}/newleaveplanner/export`, payload, {
headers: this.Headers,
});
}
seeLogs(payload) {
return this.http.post(`${this.baseUrl}/ballot/userleavelogs`, payload, {
headers: this.Headers,
});
}
getBallotAdminList() {
return this.http.get(`${this.baseUrl}/ballot/getballotadmins/`, {
headers: this.Headers,
});
}
}
LeavePlannerService.ɵfac = function LeavePlannerService_Factory(t) { return new (t || LeavePlannerService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"])); };
LeavePlannerService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: LeavePlannerService, factory: LeavePlannerService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LeavePlannerService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "ZAI4":
/*!*******************************!*\
!*** ./src/app/app.module.ts ***!
\*******************************/
/*! exports provided: AppModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app-routing.module */ "vY5A");
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app.component */ "Sy1n");
/* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/platform-browser/animations */ "R1ws");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _users_users_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./users/users.module */ "zrcO");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./shared/shared.module */ "PCNd");
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/cdk/drag-drop */ "5+WD");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! angular2-multiselect-dropdown */ "e/mZ");
/* harmony import */ var _external_link_external_link_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./external-link/external-link.component */ "SPRF");
class AppModule {
}
AppModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: AppModule, bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"]] });
AppModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function AppModule_Factory(t) { return new (t || AppModule)(); }, providers: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["Title"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["DecimalPipe"]], imports: [[
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["NgSelectModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"],
ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrModule"].forRoot({
timeOut: 3000,
positionClass: 'toast-top-left',
preventDuplicates: true,
closeButton: true,
progressBar: false,
}),
_angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClientModule"],
_app_routing_module__WEBPACK_IMPORTED_MODULE_2__["AppRoutingModule"],
_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["BrowserAnimationsModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModule"],
_users_users_module__WEBPACK_IMPORTED_MODULE_9__["UsersModule"],
_shared_shared_module__WEBPACK_IMPORTED_MODULE_11__["SharedModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_12__["DragDropModule"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_14__["AngularMultiSelectModule"]
]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](AppModule, { declarations: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"], _external_link_external_link_component__WEBPACK_IMPORTED_MODULE_15__["ExternalLinkComponent"]], imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["NgSelectModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"], ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClientModule"],
_app_routing_module__WEBPACK_IMPORTED_MODULE_2__["AppRoutingModule"],
_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["BrowserAnimationsModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModule"],
_users_users_module__WEBPACK_IMPORTED_MODULE_9__["UsersModule"],
_shared_shared_module__WEBPACK_IMPORTED_MODULE_11__["SharedModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_12__["DragDropModule"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_14__["AngularMultiSelectModule"]] }); })();
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AppModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
args: [{
declarations: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"], _external_link_external_link_component__WEBPACK_IMPORTED_MODULE_15__["ExternalLinkComponent"]],
imports: [
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["NgSelectModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"],
ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrModule"].forRoot({
timeOut: 3000,
positionClass: 'toast-top-left',
preventDuplicates: true,
closeButton: true,
progressBar: false,
}),
_angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClientModule"],
_app_routing_module__WEBPACK_IMPORTED_MODULE_2__["AppRoutingModule"],
_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_4__["BrowserAnimationsModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModule"],
_users_users_module__WEBPACK_IMPORTED_MODULE_9__["UsersModule"],
_shared_shared_module__WEBPACK_IMPORTED_MODULE_11__["SharedModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_12__["DragDropModule"],
angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_14__["AngularMultiSelectModule"]
],
providers: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["Title"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["DecimalPipe"]],
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_3__["AppComponent"]],
}]
}], null, null); })();
/***/ }),
/***/ "ZFtY":
/*!*****************************************************************************!*\
!*** ./src/app/users/pages/central-builder/my-forms/view/view.component.ts ***!
\*****************************************************************************/
/*! exports provided: ViewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewComponent", function() { return ViewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["submitSection"];
function ViewComponent_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " No Records Found ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewComponent_tr_26_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewComponent_tr_26_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const item_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.openPopupForSubmit(item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Take Action ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 4, item_r4.createdAt, "mediumDate"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r4.formTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r4 == null ? null : item_r4.serviceDateTime, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r4 == null ? null : item_r4.attendanceLabel, " ");
} }
function ViewComponent_ng_template_27_div_14_div_7_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "strong", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "p", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const i_r14 = ctx_r17.index;
const item_r13 = ctx_r17.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", i_r14 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](6, 4, item_r13.question), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r13.questionName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", item_r13.value);
} }
const _c1 = function (a0) { return { "bg-grey": a0 }; };
function ViewComponent_ng_template_27_div_14_div_7_div_2_button_1_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewComponent_ng_template_27_div_14_div_7_div_2_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r22); const item_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r20.markAsAttendance(item_r13.questionId); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "p", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !!(item_r13 == null ? null : item_r13.value))("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](6, _c1, !(item_r13 == null ? null : item_r13.value)));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 4, item_r13.question), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r13 == null ? null : item_r13.value, " ");
} }
function ViewComponent_ng_template_27_div_14_div_7_div_2_button_2_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewComponent_ng_template_27_div_14_div_7_div_2_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); const item_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r24.markAsAttendance(item_r13.questionId); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "p", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !!(item_r13 == null ? null : item_r13.value))("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](6, _c1, !(item_r13 == null ? null : item_r13.value)));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 4, item_r13.question), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r13 == null ? null : item_r13.value, " ");
} }
function ViewComponent_ng_template_27_div_14_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewComponent_ng_template_27_div_14_div_7_div_2_button_1_Template, 4, 8, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewComponent_ng_template_27_div_14_div_7_div_2_button_2_Template, 4, 8, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r13.question.includes("Arrived" || false));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r13.question.includes("Boarded"));
} }
function ViewComponent_ng_template_27_div_14_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewComponent_ng_template_27_div_14_div_7_div_1_Template, 13, 6, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewComponent_ng_template_27_div_14_div_7_div_2_Template, 3, 2, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r13 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r13.type !== 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r13.type === 22);
} }
function ViewComponent_ng_template_27_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "strong", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ViewComponent_ng_template_27_div_14_div_7_Template, 3, 2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const section_r10 = ctx.$implicit;
const i_r11 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", i_r11 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](section_r10 == null ? null : section_r10.sectionName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", section_r10.questions);
} }
function ViewComponent_ng_template_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewComponent_ng_template_27_Template_button_click_8_listener() { const c_r7 = ctx.close; return c_r7("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "i", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ViewComponent_ng_template_27_div_14_Template, 8, 3, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("(", ctx_r3.mainTitle, ")");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.sectionList);
} }
class ViewComponent {
constructor(customFormService, modalService, toastService) {
this.customFormService = customFormService;
this.modalService = modalService;
this.toastService = toastService;
this.customFormId = null;
this.formTitle = null;
this.viewQuestion = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
}
ngOnInit() {
this.customFormService.getSubmittedForms(this.customFormId).subscribe((data) => {
var _a;
this.usersPTable = data === null || data === void 0 ? void 0 : data.data;
this.mainTitle = ((_a = data === null || data === void 0 ? void 0 : data.data[0]) === null || _a === void 0 ? void 0 : _a.formTitle) || "";
});
}
assignValue(value) {
value.data.map((val) => {
var _a, _b;
this.followUP = (val === null || val === void 0 ? void 0 : val.showFormWorkflowStatus) ? (_a = val === null || val === void 0 ? void 0 : val.showFormWorkflowStatus[0]) === null || _a === void 0 ? void 0 : _a.fieldName : (_b = val === null || val === void 0 ? void 0 : val.showFormStatus[0]) === null || _b === void 0 ? void 0 : _b.fieldName;
});
this.usersPTable = value.data;
console.log(this.usersPTable);
}
back() {
this.viewQuestion.emit(null);
}
takeAction() {
}
getSubmittedQuestions(id) {
this.customFormService.getsubmittedFormData(id).subscribe((data) => {
this.customFormId = data === null || data === void 0 ? void 0 : data.customFormId;
this.sectionList = data.sections || [];
});
}
openPopupForSubmit(event) {
this.selectedResponseId = event === null || event === void 0 ? void 0 : event.responseId;
this.getSubmittedQuestions(event === null || event === void 0 ? void 0 : event.responseId);
this.modalService.open(this.submitSection, {
windowClass: 'modal-ui-fix right-align',
});
}
markAsAttendance(questionId) {
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
let payload = {
questionId: questionId,
responseId: this.selectedResponseId,
timeZone: timeZone
};
this.customFormService.markAsAttendnace(payload).subscribe((data) => {
if (data) {
if (!!this.selectedResponseId) {
this.toastService.success('Submitted successfully!');
this.getSubmittedQuestions(this.selectedResponseId);
this.customFormService.getSubmittedForms(this.customFormId).subscribe((data) => {
this.usersPTable = data === null || data === void 0 ? void 0 : data.data;
});
}
}
this.usersPTable = data === null || data === void 0 ? void 0 : data.data;
}, (err) => {
var _a, _b;
console.log(err);
this.toastService.error((_b = (_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
});
}
}
ViewComponent.ɵfac = function ViewComponent_Factory(t) { return new (t || ViewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_1__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"])); };
ViewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewComponent, selectors: [["app-view"]], viewQuery: function ViewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.submitSection = _t.first);
} }, inputs: { customFormId: "customFormId", formTitle: "formTitle" }, outputs: { viewQuestion: "viewQuestion" }, decls: 29, vars: 2, consts: [[1, "card", "mb-3"], [1, "card-header", "flexi-header", "pt-4"], [2, "color", "#fff"], [1, "btn", "btn-warning", "pull-right", 2, "color", "ivory", 3, "click"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 5"], [4, "ngIf"], [4, "ngFor", "ngForOf"], ["submitSection", ""], [2, "text-align", "center", "margin-left", "200px"], [1, "btn", "btn-warning", 3, "click"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], ["type", "button", "aria-label", "Close", 1, "btn", "close-button", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [1, "row"], [1, "col-md-12"], [1, "card-body", 2, "word-break", "break-word", "padding", "5px"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [1, "box", "d-flex", "flex-column"], [1, "d-flex", "card-header", "flexi-header", 2, "color", "#fff"], [1, "mr-1"], [1, "box-heading", "ml-2", "d-flex", 2, "word-break", "break-word"], ["class", "box d-flex flex-column", "style", "padding: 16px", 4, "ngIf"], ["class", "d-flex justify-content-between w-50", "style", "margin: 0 auto", 4, "ngIf"], [1, "box", "d-flex", "flex-column", 2, "padding", "16px"], [1, "d-flex", 2, "height", "20px"], [1, "box-heading", "ml-2", 2, "word-break", "break-word"], [3, "innerHTML"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "form-group", "flex-fill"], ["for", "my-input"], ["id", "my-input", "disabled", "", "type", "text", 1, "form-control", 3, "value"], [1, "d-flex", "justify-content-between", "w-50", 2, "margin", "0 auto"], ["class", "btn btn w-100 m-2", "style", "background-color: green; color: #fff", 3, "disabled", "ngClass", "click", 4, "ngIf"], [1, "btn", "btn", "w-100", "m-2", 2, "background-color", "green", "color", "#fff", 3, "disabled", "ngClass", "click"]], template: function ViewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "FORMS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewComponent_Template_button_click_4_listener() { return ctx.back(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "table", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "th", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "FORM TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "th", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "SERVICE DATE & TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "th", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "ATTENDANCE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "th", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " ACTION ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ViewComponent_div_25_Template, 3, 0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, ViewComponent_tr_26_Template, 13, 7, "tr", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, ViewComponent_ng_template_27_Template, 15, 2, "ng-template", null, 16, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.usersPTable == null ? null : ctx.usersPTable.length) === 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.usersPTable);
} }, directives: [_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgClass"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["DatePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_6__["SafeHtmlPipe"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.card-header-flexi[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n padding: 1rem;\n color: #a42138;\n text-transform: uppercase;\n}.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n margin: 1rem;\n box-shadow: 0px 0px 8px #ccc;\n}.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n padding: 1rem;\n}.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] {\n padding-bottom: 1rem;\n word-wrap: break-word;\n font-weight: 600;\n}.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 1rem;\n}.bg-grey[_ngcontent-%COMP%] {\n background-color: grey;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9teS1mb3Jtcy92aWV3L3ZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsaURBQWlELGVBQWUsQ0FBQyxpQ0FBaUMsQ0FBQyx1REFBdUQsZUFBZSxDQUFDLDJEQUEyRCxRQUFRLENBQUMseUNBQXlDLENBQUMsc0JBQXNCLENBQUMsaUVBQWlFLHlDQUF5QyxDQUFDLGtFQUFrRSw0QkFBNEIsQ0FBQywyQkFBMkIsQ0FBQywrREFBK0QseUJBQXlCLENBQUMsd0JBQXdCLENBQUMseUVBQXlFLG9CQUFvQixDQUFDLDBFQUEwRSxDQUFDLG1EQUFtRCx3QkFBd0IsQ0FBQyx5Q0FBeUMsWUFBWSxDQUFDLGdDQUFnQyxVQUFVLENBQUMscUJBQXFCLENBQUMsaUJBQWlCLENBQUMscUJBQXFCLENBQUMsZUFBZSxDQUFDLGtCQUFrQixDQUFDLHNDQUFzQyxtQ0FBbUMsQ0FBQyxvREFBb0Qsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsZ0VBQWdFLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxvRUFBb0UsVUFBVSxDQUFDLGlEQUFpRCxXQUFXLENBQUMsK0VBQStFLE9BQU8sQ0FBQyxNQUFNLENBQUMsaUJBQWlCLENBQUMsa0JBQWtCLENBQUMsMkZBQTJGLGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLG9HQUFvRyx3QkFBd0IsQ0FBQyx3QkFBd0IsQ0FBQyxvSEFBb0gsYUFBYSxDQUFDLHVFQUF1RSxlQUFlLENBQUMsZ0JBQWdCLENBQUMsbUZBQW1GLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyxpRkFBaUYsY0FBYyxDQUFDLGlCQUFpQixDQUFDLHdCQUF3QixDQUFDLGlCQUFpQixDQUFDLGdCQUFnQixDQUFDLDZGQUE2RixjQUFjLENBQUMsZUFBZSxDQUFDLG1HQUFtRyx3QkFBd0IsQ0FBQyxtSEFBbUgsZ0JBQWdCLENBQUMsK0hBQStILGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyxpR0FBaUcsb0JBQW9CLENBQUMsZUFBZSxDQUFDLGdHQUFnRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsc0dBQXNHLHdCQUF3QixDQUFDLHFHQUFxRyw4QkFBOEIsQ0FBQyxpSEFBaUgsNkJBQTZCLENBQUMsaUJBQWlCLENBQUMsc0dBQXNHLDZCQUE2QixDQUFDLGtIQUFrSCxhQUFhLENBQUMsOEJBQThCLENBQUMsaUZBQWlGLG1CQUFtQixDQUFDLDZGQUE2RixtQkFBbUIsQ0FBQyx1RkFBdUYsT0FBTyxDQUFDLGtCQUFrQixDQUFDLGdCQUFnQixDQUFDLG1HQUFtRyxpQkFBaUIsQ0FBQyxjQUFjLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyw2Q0FBNkMsYUFBYSxDQUFDLDRCQUE0QixtQkFBbUIsQ0FBQyx3Q0FBd0MsbUJBQW1CLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyxpQkFBaUIsQ0FBQyx5Q0FBeUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLDZDQUE2QyxxQkFBcUIsQ0FBQyx1Q0FBdUMseUNBQXlDLENBQUMsa0JBQWtCLENBQUMsMEJBQTBCLENBQUMsbUJBQW1CLHFCQUFxQixDQUFDLHFCQUFxQixDQUFDLG1DQUFtQyxDQUFDLE1BQU0sQ0FBQyxvQ0FBb0MsUUFBUSxDQUFDLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyxtRkFBbUYsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsaUNBQWlDLFdBQVcsQ0FBQywyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQywyQkFBMkIsQ0FBQyxrQkFBa0IsQ0FBQyxpRkFBaUYsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsdUNBQXVDLDRCQUE0QixDQUFDLGVBQWUsQ0FBQyx1Q0FBdUMseUJBQXlCLENBQUMsZUFBZSxDQUFDLHlEQUF5RCx3QkFBZ0IsQ0FBaEIsZ0JBQWdCLENBQUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLHNCQUFzQixDQUFDLGNBQWMsQ0FBQyw0RUFBNEUsY0FBYyxDQUFDLDBFQUEwRSx3QkFBd0IsQ0FBQyx5S0FBeUssd0JBQXdCLENBQUMsZUFBZSxDQUFDLHVEQUF1RCxxQkFBcUIsQ0FBQyxzQkFBc0IsQ0FBQyxnQkFBZ0IsQ0FBQyxxS0FBcUssVUFBVSxDQUFDLHdCQUF3QixDQUFDLHVNQUF1TSxlQUFlLENBQUMsd0VBQXdFLHdCQUF3QixDQUFDLFVBQVUsQ0FBQywwRUFBMEUsVUFBVSxDQUFDLHVFQUF1RSxpQkFBaUIsQ0FBQyxtRkFBbUYsa0JBQWtCLENBQUMsY0FBYyxDQUFDLHFFQUFxRSxhQUFhLENBQUMsZUFBZSxDQUFDLGlCQUFpQixDQUFDLGlGQUFpRixnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsK0JBQStCLGFBQWEsQ0FBQyxnQkFBZ0IsQ0NFMTRPO0VBQ0ksNkJBQUE7RUFDQSxhQUFBO0VBQ0EsY0FBQTtFQUNBLHlCQUFBO0FBQUosQ0FFRTtFQUNFLFlBQUE7RUFDQSw0QkFBQTtBQUNKLENBQUk7RUFDRSxhQUFBO0FBRU4sQ0FBSTtFQUNFLG9CQUFBO0VBQ0EscUJBQUE7RUFDQSxnQkFBQTtBQUVOLENBRE07RUFDRSxlQUFBO0FBR1IsQ0FDRTtFQUNFLHNCQUFBO0FBRUoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jZW50cmFsLWJ1aWxkZXIvbXktZm9ybXMvdmlldy92aWV3LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQ6I2ZmZjtib3JkZXItY29sb3I6I2IzYjNiMyAjY2NjICNkOWQ5ZDl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyOmhvdmVye2JveC1zaGFkb3c6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLWFycm93e3RvcDotMnB4O2JvcmRlci1jb2xvcjp0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjOTk5O2JvcmRlci13aWR0aDowIDVweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvdzpob3Zlcntib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzMzM30ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LWJvdHRvbT4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czowO2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LXRvcD4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItdG9wLXJpZ2h0LXJhZGl1czowO2JvcmRlci10b3AtbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1mb2N1c2VkOm5vdCgubmctc2VsZWN0LW9wZW5lZCk+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWNvbG9yOiMwMDdlZmY7Ym94LXNoYWRvdzppbnNldCAwIDFweCAxcHggcmdiYSgwLDAsMCwwLjA3NSksMCAwIDAgM3B4IHJnYmEoMCwxMjYsMjU1LDAuMSl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXJ7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3QgLm5nLWhhcy12YWx1ZSAubmctcGxhY2Vob2xkZXJ7ZGlzcGxheTpub25lfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXJ7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Ym9yZGVyLXJhZGl1czo0cHg7Ym9yZGVyOjFweCBzb2xpZCAjY2NjO21pbi1oZWlnaHQ6MzZweDthbGlnbi1pdGVtczpjZW50ZXJ9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7YWxpZ24taXRlbXM6Y2VudGVyO3BhZGRpbmctbGVmdDoxMHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVye2hlaWdodDozNnB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHt0b3A6NXB4O2xlZnQ6MDtwYWRkaW5nLWxlZnQ6MTBweDtwYWRkaW5nLXJpZ2h0OjUwcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZy1yaWdodDoxMHB4O3BhZGRpbmctbGVmdDo1MHB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjk7Ym9yZGVyOjFweCBzb2xpZCAjZTZlNmU2fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtbGFiZWx7cGFkZGluZzowIDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctdG9wOjVweDtwYWRkaW5nLWxlZnQ6N3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjdweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtmb250LXNpemU6LjllbTttYXJnaW4tYm90dG9tOjVweDtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Ym9yZGVyLXJhZGl1czoycHg7bWFyZ2luLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle21hcmdpbi1yaWdodDowO21hcmdpbi1sZWZ0OjVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZCAubmctdmFsdWUtbGFiZWx7cGFkZGluZy1sZWZ0OjA7cGFkZGluZy1yaWdodDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse2Rpc3BsYXk6aW5saW5lLWJsb2NrO3BhZGRpbmc6MXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbntkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb246aG92ZXJ7YmFja2dyb3VuZC1jb2xvcjojZDFlOGZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ubGVmdHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZjtib3JkZXItcmlnaHQ6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLnJpZ2h0e2JvcmRlci1sZWZ0OjA7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmc6MCAwIDNweCAzcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgM3B4IDNweCAwfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye3RvcDo1cHg7cGFkZGluZy1ib3R0b206NXB4O3BhZGRpbmctbGVmdDozcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntwYWRkaW5nLXJpZ2h0OjNweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1jbGVhci13cmFwcGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcjpob3ZlciAubmctY2xlYXJ7Y29sb3I6I0QwMDIxQn0ubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggNXB4IDAgMH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNwaW5uZXItem9uZXtwYWRkaW5nOjVweCAwIDAgNXB4fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7d2lkdGg6MjVweDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcjpob3ZlciAubmctYXJyb3d7Ym9yZGVyLXRvcC1jb2xvcjojNjY2fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXIgLm5nLWFycm93e2JvcmRlci1jb2xvcjojOTk5IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O2JvcmRlci1zdHlsZTpzb2xpZDtib3JkZXItd2lkdGg6NXB4IDVweCAyLjVweH0ubmctZHJvcGRvd24tcGFuZWx7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlcjoxcHggc29saWQgI2NjYztib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KTtsZWZ0OjB9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b217dG9wOjEwMCU7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4O2JvcmRlci10b3AtY29sb3I6I2U2ZTZlNjttYXJnaW4tdG9wOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b20gLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246bGFzdC1jaGlsZHtib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czo0cHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3B7Ym90dG9tOjEwMCU7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tY29sb3I6I2U2ZTZlNjttYXJnaW4tYm90dG9tOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3AgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246Zmlyc3QtY2hpbGR7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24taGVhZGVye2JvcmRlci1ib3R0b206MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tZm9vdGVye2JvcmRlci10b3A6MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3Vwe3VzZXItc2VsZWN0Om5vbmU7cGFkZGluZzo4cHggMTBweDtmb250LXdlaWdodDo1MDA7Y29sb3I6cmdiYSgwLDAsMCwwLjU0KTtjdXJzb3I6cG9pbnRlcn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tZGlzYWJsZWR7Y3Vyc29yOmRlZmF1bHR9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLXNlbGVjdGVkLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2ViZjVmZjtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9ue2JhY2tncm91bmQtY29sb3I6I2ZmZjtjb2xvcjpyZ2JhKDAsMCwwLDAuODcpO3BhZGRpbmc6OHB4IDEwcHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWR7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCAubmctb3B0aW9uLWxhYmVsLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZCAubmctb3B0aW9uLWxhYmVse2ZvbnQtd2VpZ2h0OjYwMH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmY7Y29sb3I6IzMzM30ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWRpc2FibGVke2NvbG9yOiNjY2N9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1jaGlsZHtwYWRkaW5nLWxlZnQ6MjJweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1yaWdodDoyMnB4O3BhZGRpbmctbGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse2ZvbnQtc2l6ZTo4MCU7Zm9udC13ZWlnaHQ6NDAwO3BhZGRpbmctcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uIC5uZy10YWctbGFiZWx7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWx7ZGlyZWN0aW9uOnJ0bDt0ZXh0LWFsaWduOnJpZ2h0fVxuIiwiQGltcG9ydCBcIn5Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3NcIjtcblxuLmNhcmQtaGVhZGVyLWZsZXhpIHtcbiAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2NjYztcbiAgICBwYWRkaW5nOiAxcmVtO1xuICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gIH1cbiAgLmNhcmQtYm9keSAuYm94IHtcbiAgICBtYXJnaW46IDFyZW07XG4gICAgYm94LXNoYWRvdzogMHB4IDBweCA4cHggI2NjYztcbiAgICAuYm94LWJvZHkge1xuICAgICAgcGFkZGluZzogMXJlbTtcbiAgICB9XG4gICAgLmJveC1oZWFkaW5nIHtcbiAgICAgIHBhZGRpbmctYm90dG9tOiAxcmVtO1xuICAgICAgd29yZC13cmFwOiBicmVhay13b3JkO1xuICAgICAgZm9udC13ZWlnaHQ6IDYwMDtcbiAgICAgIHNwYW4ge1xuICAgICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgICB9XG4gICAgfVxuICB9XG4gIC5iZy1ncmV5IHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiBncmV5O1xuICB9Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-view',
templateUrl: './view.component.html',
styleUrls: ['./view.component.scss']
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_1__["CustomFormService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }]; }, { customFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], formTitle: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], viewQuestion: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], submitSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['submitSection', { static: true }]
}] }); })();
/***/ }),
/***/ "ZGWl":
/*!****************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-news/news-view/news-view.component.ts ***!
\****************************************************************************************/
/*! exports provided: NewsViewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NewsViewComponent", function() { return NewsViewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function NewsViewComponent_tr_87_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r1 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r1.authorId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](5, 3, item_r1.createdAt, "short"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r1.logDescription);
} }
class NewsViewComponent {
constructor(newsService) {
this.newsService = newsService;
this.newsId = null;
this.newsData = null;
this.ViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl;
this.newsId && this.getEventsview(this.newsId);
}
ngOnInit() {
this.logPtable = {
sortBy: 'desc',
sortWith: 'createdBy',
postId: this.newsId,
data: [],
page: 1,
limit: 10,
search: '',
};
this.newsId && this.getEventsview(this.newsData);
this.newsId && this.getSinglePostLog(this.newsId);
}
getEventsview(newsObj) {
this.eventObject = newsObj;
this.contentTitle = this.eventObject.content.title;
this.eventTitle = this.eventObject.content.content;
// const sub = this.newsService
// .getSingleNewsEvents(id)
// .pipe(
// finalize(() => {
// sub.unsubscribe();
// })
// )
// .subscribe(
// ({data}) => {
// this.eventObject = data
// this.contentTitle = this.eventObject.content.title
// this.eventTitle = this.eventObject.content.content
// // this.eventFormGroup.patchValue({
// // ...event,
// // });
// // this.contentFormGroup.patchValue({
// // ...publish,
// // });
// // this.publicationFormGroup.patchValue({
// // ...event,
// // });
// // this.eventBoardFormGroup.patchValue({
// // ...eventBoard,
// // });
// // this.sessionsForm.patchValue({
// // ...session,
// // });
// // this.adminstrationFormGroup.patchValue({
// // ...admin,
// // });
// },
// (error) => {}
// );
}
onCancelView() {
this.ViewEvent.emit(null);
}
getSinglePostLog(id) {
const _a = this.logPtable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const sub = this.newsService
.getSinglePostLog(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data }) => {
this.logPtable.data = data.data;
}, (error) => { });
}
checkNewsStatus(startDate, endDate) {
if (moment__WEBPACK_IMPORTED_MODULE_3__() < moment__WEBPACK_IMPORTED_MODULE_3__(startDate))
return "Pending Publication";
if (moment__WEBPACK_IMPORTED_MODULE_3__() > moment__WEBPACK_IMPORTED_MODULE_3__(endDate))
return "Expired";
if (moment__WEBPACK_IMPORTED_MODULE_3__() < moment__WEBPACK_IMPORTED_MODULE_3__(endDate))
return "Published";
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
NewsViewComponent.ɵfac = function NewsViewComponent_Factory(t) { return new (t || NewsViewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"])); };
NewsViewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: NewsViewComponent, selectors: [["app-news-view"]], inputs: { newsId: "newsId", newsData: "newsData" }, outputs: { ViewEvent: "ViewEvent" }, decls: 88, vars: 22, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], ["type", "button", 1, "btn", "pull-right", "btn-outline-light", 3, "click"], [1, "card-body"], [1, "row"], [1, "col-md-8"], [1, "card", "my-3", "w-100", "p-3"], [3, "innerHTML"], [1, "row", 2, "overflow", "hidden"], ["width", "100%", "height", "100%", "crossorigin", "anonymous", "alt", "", 3, "src"], [1, "col-md-4"], [1, "custom-header"], [1, "horizontal-line"], [1, "col-10", 2, "display", "flex", "justify-content", "space-between", "flex-direction", "row", "align-items", "center"], ["crossorigin", "anonymous", "alt", "Avatar", 1, "image--cover", 3, "src"], [1, "ng-binding"], [1, "d-block", "text-muted", "ng-binding"], [1, "space-between"], [1, "list-heading", "table-col"], [1, "list-value", "ml-1", "table-col", "text-capitalize"], [1, "card", "my-3"], [1, "card-body", "overflow-auto"], [1, "table"], ["sortable", "Tier 1", 1, "table-col"], ["sortable", "Tier 2", 1, "table-col"], ["sortable", "Tier 3", 1, "table-col"], [4, "ngFor", "ngForOf"], [1, "table-col"]], template: function NewsViewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "NEWS VIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NewsViewComponent_Template_button_click_4_listener() { return ctx.onCancelView(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "p", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](12, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "img", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "p", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](18, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "AUTHOR INFO");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "hr", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "img", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "strong", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "small", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "PUBLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](37, "hr", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "Status");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "Channel");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, "Category");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](54, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](59, "Published On");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](60, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](63, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](65, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](66, "Expire On");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](67, " : ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](70, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](74, "NEWS LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](75, "hr", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "table", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](79, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](81, "USER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](83, "DATE AND TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](84, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](85, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](87, NewsViewComponent_tr_87_Template, 8, 6, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](12, 12, ctx.contentTitle), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", (ctx.eventObject == null ? null : ctx.eventObject.content == null ? null : ctx.eventObject.content.image) ? ctx.validateURLImage(ctx.eventObject.content.image) : null, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](18, 14, ctx.eventTitle), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", (ctx.eventObject == null ? null : ctx.eventObject.authorId == null ? null : ctx.eventObject.authorId.profilePicture) ? ctx.validateURLImage(ctx.eventObject.authorId.profilePicture) : null, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.eventObject == null ? null : ctx.eventObject.authorId == null ? null : ctx.eventObject.authorId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.eventObject == null ? null : ctx.eventObject.authorId == null ? null : ctx.eventObject.authorId.parentBussinessUnitId == null ? null : ctx.eventObject.authorId.parentBussinessUnitId.orgName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", (ctx.eventObject == null ? null : ctx.eventObject.status) !== 2 || (ctx.eventObject == null ? null : ctx.eventObject.status) !== 0 ? ctx.checkNewsStatus(ctx.eventObject == null ? null : ctx.eventObject.publishing.startDate, ctx.eventObject == null ? null : ctx.eventObject.publishing.endDate) : (ctx.eventObject == null ? null : ctx.eventObject.status) !== 2 ? "Draft" : "inActive", "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.eventObject == null ? null : ctx.eventObject.channelId == null ? null : ctx.eventObject.channelId.name, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.eventObject == null ? null : ctx.eventObject.categoryId == null ? null : ctx.eventObject.categoryId.name, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](63, 16, ctx.eventObject == null ? null : ctx.eventObject.publishing.startDate, "short"), "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](70, 19, ctx.eventObject == null ? null : ctx.eventObject.publishing.endDate, "short"), "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.logPtable.data);
} }, directives: [_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_6__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgForOf"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_8__["SafeHtmlPipe"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["DatePipe"]], styles: [".wrapper[_ngcontent-%COMP%] {\n padding: 100px;\n}\n\n.image--cover[_ngcontent-%COMP%] {\n width: 80px;\n height: 80px;\n border-radius: 50%;\n margin-right: 20px;\n}\n\n.list-heading[_ngcontent-%COMP%] {\n color: #a42138;\n width: 150px;\n}\n\n.list-value[_ngcontent-%COMP%] {\n color: #212121;\n}\n\n.custom-header[_ngcontent-%COMP%] {\n color: #a42138;\n padding: 10px;\n}\n\n.horizontal-line[_ngcontent-%COMP%] {\n margin-top: -15px;\n}\n\n.space-between[_ngcontent-%COMP%] {\n display: flex;\n}\n\n@media screen and (max-width: 1280px) {\n .table-col[_ngcontent-%COMP%] {\n font-size: 10px;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtbmV3cy9uZXdzLXZpZXcvbmV3cy12aWV3LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsY0FBQTtBQUNGOztBQUVBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxjQUFBO0VBQ0EsWUFBQTtBQUNGOztBQUVBO0VBQ0UsY0FBQTtBQUNGOztBQUVBO0VBQ0UsY0FBQTtFQUNBLGFBQUE7QUFDRjs7QUFFQTtFQUNFLGlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxhQUFBO0FBQ0Y7O0FBRUE7RUFDRTtJQUNFLGVBQUE7RUFDRjtBQUNGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtbmV3cy9uZXdzLXZpZXcvbmV3cy12aWV3LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLndyYXBwZXIge1xuICBwYWRkaW5nOiAxMDBweDtcbn1cblxuLmltYWdlLS1jb3ZlciB7XG4gIHdpZHRoOiA4MHB4O1xuICBoZWlnaHQ6IDgwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgbWFyZ2luLXJpZ2h0OiAyMHB4O1xufVxuXG4ubGlzdC1oZWFkaW5ne1xuICBjb2xvcjogI2E0MjEzODtcbiAgd2lkdGg6IDE1MHB4O1xufVxuXG4ubGlzdC12YWx1ZXtcbiAgY29sb3I6ICMyMTIxMjE7XG59XG5cbi5jdXN0b20taGVhZGVye1xuICBjb2xvcjogI2E0MjEzODtcbiAgcGFkZGluZzogMTBweDtcbn1cblxuLmhvcml6b250YWwtbGluZXtcbiAgbWFyZ2luLXRvcDogLTE1cHg7XG59XG5cbi5zcGFjZS1iZXR3ZWVue1xuICBkaXNwbGF5OiBmbGV4O1xufVxuXG5AbWVkaWEgIHNjcmVlbiBhbmQgKG1heC13aWR0aDogMTI4MHB4KSB7XG4gIC50YWJsZS1jb2x7XG4gICAgZm9udC1zaXplOiAxMHB4O1xuICB9XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NewsViewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-news-view',
templateUrl: './news-view.component.html',
styleUrls: ['./news-view.component.scss']
}]
}], function () { return [{ type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"] }]; }, { newsId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], newsData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], ViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "ZT52":
/*!**************************************************************!*\
!*** ./src/app/shared/dynamic-questions/fields/checkboxs.ts ***!
\**************************************************************/
/*! exports provided: CheckBoxsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckBoxsComponent", function() { return CheckBoxsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
function CheckBoxsComponent_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const opt_r1 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControlName", opt_r1._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", opt_r1.value, "");
} }
class CheckBoxsComponent {
constructor() {
this.field = {};
}
get isValid() { return this.form.controls[this.field.question].valid; }
get isDirty() { return this.form.controls[this.field.question].dirty; }
}
CheckBoxsComponent.ɵfac = function CheckBoxsComponent_Factory(t) { return new (t || CheckBoxsComponent)(); };
CheckBoxsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CheckBoxsComponent, selectors: [["checkboxs"]], inputs: { field: "field", form: "form" }, decls: 2, vars: 2, consts: [[3, "formGroup"], ["class", "form-check form-check", 4, "ngFor", "ngForOf"], [1, "form-check", "form-check"], [1, "form-check-label"], ["type", "checkbox", "id", "inlineCheckbox1", "value", "option1", 1, "form-check-input", 3, "formControlName"]], template: function CheckBoxsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, CheckBoxsComponent_div_1_Template, 4, 2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.field.options);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CheckBoxsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'checkboxs',
template: `
`
}]
}], null, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "ZlCH":
/*!**************************************************************************!*\
!*** ./src/app/users/pages/admin/users/ops-group/ops-group.component.ts ***!
\**************************************************************************/
/*! exports provided: OpsGroupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OpsGroupComponent", function() { return OpsGroupComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/ops-group/ops-group.service */ "NV6M");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var _ops_overview_ops_overview_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ops-overview/ops-overview.component */ "KF6l");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ops_add_staff_ops_add_staff_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./ops-add-staff/ops-add-staff.component */ "PLrH");
/* harmony import */ var _ops_edit_ops_edit_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./ops-edit/ops-edit.component */ "Jev5");
function OpsGroupComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ops-overview", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("action", function OpsGroupComponent_ng_template_5_Template_ops_overview_action_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.onActionbtn($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function OpsGroupComponent_ng_template_9_app_ops_add_staff_0_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-ops-add-staff", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ChangeTabId", function OpsGroupComponent_ng_template_9_app_ops_add_staff_0_Template_app_ops_add_staff_ChangeTabId_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r9.changeTab($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("viewValue", ctx_r7.view);
} }
function OpsGroupComponent_ng_template_9_app_ops_edit_1_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-ops-edit", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ChangeTabId", function OpsGroupComponent_ng_template_9_app_ops_edit_1_Template_app_ops_edit_ChangeTabId_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r11.changeTab($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("editValue", ctx_r8.edit);
} }
function OpsGroupComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, OpsGroupComponent_ng_template_9_app_ops_add_staff_0_Template, 1, 1, "app-ops-add-staff", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, OpsGroupComponent_ng_template_9_app_ops_edit_1_Template, 1, 1, "app-ops-edit", 17);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.heading != "EDIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.heading == "EDIT");
} }
function OpsGroupComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h4", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Import Leaves");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "i", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Download Sample ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsGroupComponent_ng_template_22_Template_button_click_7_listener() { const modal_r13 = ctx.$implicit; return modal_r13.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "form", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function OpsGroupComponent_ng_template_22_Template_form_ngSubmit_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.uploadImportQuota(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsGroupComponent_ng_template_22_Template_input_change_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.importQuotafile($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsGroupComponent_ng_template_22_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.uploadImportQuota(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsGroupComponent_ng_template_22_Template_button_click_19_listener() { const modal_r13 = ctx.$implicit; return modal_r13.dismiss("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r4.importQuotaForm);
} }
class OpsGroupComponent {
constructor(opsGroupService, modalService, toastrService, fb, gamificationService) {
this.opsGroupService = opsGroupService;
this.modalService = modalService;
this.toastrService = toastrService;
this.fb = fb;
this.gamificationService = gamificationService;
this.changeActiveTab = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.active = 1;
this.closeResult = '';
this.fileToUpload = null;
}
ngOnInit() {
this.heading = 'CREATE';
this.importStaffForm = this.fb.group({
csv: [''],
});
this.importQuotaForm = this.fb.group({
csv: [''],
});
}
changeTab($event) {
this.active = $event;
if ($event === 1) {
this.heading = 'CREATE';
this.view = false;
this.edit = false;
}
}
onActionbtn(event) {
this.heading = event;
this.active = 2;
if (event == 'EDIT') {
this.edit = true;
}
else if (event == 'VIEW') {
this.view = true;
}
}
navChanged1(event) {
if (event.nextId === 1) {
this.view = false;
this.edit = false;
this.heading = 'CREATE';
}
}
importStaff(event) {
let file = event.target.files[0];
if (file && file.type === 'text/csv') {
let fileUpload = this.gamificationService.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.importStaffForm.get('csv').setValue(file);
}, (error) => {
var _a;
this.toastrService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message, error === null || error === void 0 ? void 0 : error.statusText, {
timeOut: 3000,
});
event.target.value = '';
});
}
else {
this.toastrService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["COMMON_MESSAGES"].UPLOAD_ONLY_CSV);
event.target.value = '';
file = null;
event.target.value = '';
}
}
uploadImportStaff() {
this.opsGroupService
.getImportStaff(this.importStaffForm.get('csv').value)
.subscribe((res) => {
console.log('import', res);
});
}
importQuotafile(event) {
let file = event.target.files[0];
if (file && file.type === 'text/csv') {
let fileUpload = this.gamificationService.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.fileToUpload = file;
}, (error) => {
var _a;
this.toastrService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message, error === null || error === void 0 ? void 0 : error.statusText, {
timeOut: 3000,
});
event.target.value = '';
this.fileToUpload = null;
});
}
else {
this.toastrService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["COMMON_MESSAGES"].UPLOAD_ONLY_CSV);
event.target.value = '';
file = null;
event.target.value = '';
}
}
uploadImportQuota() {
this.opsGroupService
.getImportQuota(this.fileToUpload)
.subscribe((res) => {
this.toastrService.info(res.message);
this.modalService.dismissAll();
});
}
open(importQuota) {
this.modalService
.open(importQuota, { ariaLabelledBy: 'modal-basic-title' })
.result.then((result) => {
this.closeResult = `Closed with: ${result}`;
}, (reason) => {
this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
});
}
getDismissReason(reason) {
if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["ModalDismissReasons"].ESC) {
return 'by pressing ESC';
}
else if (reason === _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["ModalDismissReasons"].BACKDROP_CLICK) {
return 'by clicking on a backdrop';
}
else {
return `with: ${reason}`;
}
}
}
OpsGroupComponent.ɵfac = function OpsGroupComponent_Factory(t) { return new (t || OpsGroupComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_4__["OpsGroupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"])); };
OpsGroupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: OpsGroupComponent, selectors: [["app-ops-group"]], outputs: { changeActiveTab: "changeActiveTab" }, decls: 24, vars: 7, consts: [["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "navChange", "activeIdChange"], ["navbr", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [1, "d-flex", "justify-content-end", "flex-grow-1", "nav-item", "pr-2", 3, "ngbNavItem"], [1, "align-self-center", "btn", "btn-warning", "ml-1", 3, "click"], [1, "align-self-center", "ml-1", 3, "formGroup", "ngSubmit"], [1, "bg-info", "header-buttons", "px-1", "rounded"], ["type", "file", "name", "csv", "accept", ".csv", 1, "btn-info", "rounded", 3, "change"], ["type", "submit", 1, "btn", "btn-info", "ml-1"], [1, "fa", "fa-upload"], [1, "align-self-center", "btn", "btn-secondary", "ml-1"], [3, "ngbNavOutlet"], ["importQuota", ""], [3, "action"], [3, "viewValue", "ChangeTabId", 4, "ngIf"], [3, "editValue", "ChangeTabId", 4, "ngIf"], [3, "viewValue", "ChangeTabId"], [3, "editValue", "ChangeTabId"], [1, "modal-header"], ["id", "modal-basic-title", 1, "modal-title"], [1, "d-flex"], ["type", "button", "href", "./assets/leavesSAPFormat.csv", 1, "btn", "btn-secondary", "btn-sm"], [1, "fa", "fa-download"], ["ngbAutofocus", "", "type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [1, "form-group"], [1, "d-flex", "flex-wrap", 3, "formGroup", "ngSubmit"], [1, "bg-info", "header-buttons", "p-2", "mb-2", "rounded", "w-100"], ["type", "button", 1, "btn", "btn-success", "mx-auto", 3, "click"], [1, "modal-footer"], ["type", "button", 1, "btn", "btn-outline-dark", 3, "click"]], template: function OpsGroupComponent_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("navChange", function OpsGroupComponent_Template_ul_navChange_0_listener($event) { return ctx.navChanged1($event); })("activeIdChange", function OpsGroupComponent_Template_ul_activeIdChange_0_listener($event) { return ctx.active = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, OpsGroupComponent_ng_template_5_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, OpsGroupComponent_ng_template_9_Template, 2, 2, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "li", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function OpsGroupComponent_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r20); const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](23); return ctx.open(_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Import Quota ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "form", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngSubmit", function OpsGroupComponent_Template_form_ngSubmit_13_listener() { return ctx.uploadImportStaff(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function OpsGroupComponent_Template_input_change_15_listener($event) { return ctx.importStaff($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "i", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Import Staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "button", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, " Import Staff Error Logs ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, OpsGroupComponent_ng_template_22_Template, 21, 1, "ng-template", null, 14, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.active);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.heading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.importStaffForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormGroupDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _ops_overview_ops_overview_component__WEBPACK_IMPORTED_MODULE_8__["OpsOverviewComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _ops_add_staff_ops_add_staff_component__WEBPACK_IMPORTED_MODULE_10__["OpsAddStaffComponent"], _ops_edit_ops_edit_component__WEBPACK_IMPORTED_MODULE_11__["OpsEditComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgForm"]], styles: [".col-md-3[_ngcontent-%COMP%] {\n max-width: 100%;\n}\n\n.header-buttons[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYWRtaW4vdXNlcnMvb3BzLWdyb3VwL29wcy1ncm91cC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGVBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLG1CQUFBO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9hZG1pbi91c2Vycy9vcHMtZ3JvdXAvb3BzLWdyb3VwLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNvbC1tZC0zIHtcbiAgbWF4LXdpZHRoOiAxMDAlO1xufVxuXG4uaGVhZGVyLWJ1dHRvbnMge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](OpsGroupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-ops-group',
templateUrl: './ops-group.component.html',
styleUrls: ['./ops-group.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_ops_group_ops_group_service__WEBPACK_IMPORTED_MODULE_4__["OpsGroupService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormBuilder"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"] }]; }, { changeActiveTab: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "Zx5L":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/manage-shift/status/status.component.ts ***!
\************************************************************************************************/
/*! exports provided: StatusComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StatusComponent", function() { return StatusComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
function StatusComponent_div_0_tr_22_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function StatusComponent_div_0_tr_22_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const s_r3 = ctx.$implicit; const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r4.changeOverview(false, s_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 4, s_r3.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 6, s_r3.createdAt, "HH:mm "));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](s_r3.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](s_r3.userId.name);
} }
function StatusComponent_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "table", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "th", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "USER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "th", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, StatusComponent_div_0_tr_22_Template, 14, 9, "tr", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx_r0.buId == null ? null : ctx_r0.buId.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.status);
} }
function StatusComponent_div_1_ng_container_43_p_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const s_r11 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 2, s_r11.skillSetId.name), " > ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 4, s_r11.name), " ");
} }
function StatusComponent_div_1_ng_container_43_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, StatusComponent_div_1_ng_container_43_p_1_Template, 4, 6, "p", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r6.shiftDetails == null ? null : ctx_r6.shiftDetails.subSkillSets);
} }
function StatusComponent_div_1_div_48_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, ctx_r7.shiftDetails.splitShiftStartTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, ctx_r7.shiftDetails.splitShiftEndTime, "HH:mm"), " ");
} }
function StatusComponent_div_1_div_77_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Split Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 4, ctx_r8.shiftDetails == null ? null : ctx_r8.shiftDetails.splitShiftStartTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 7, ctx_r8.shiftDetails == null ? null : ctx_r8.shiftDetails.splitShiftEndTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function StatusComponent_div_1_div_78_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "New Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 4, ctx_r9.logDetail == null ? null : ctx_r9.logDetail.newTiming == null ? null : ctx_r9.logDetail.newTiming.start, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 7, ctx_r9.logDetail == null ? null : ctx_r9.logDetail.newTiming == null ? null : ctx_r9.logDetail.newTiming.end, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function StatusComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "LOG DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "General");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function StatusComponent_div_1_Template_div_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.changeOverview(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "input", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](25, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "input", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](27, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "input", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](33, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "Shift Details");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](43, StatusComponent_div_1_ng_container_43_Template, 2, 1, "ng-container", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](46, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](47, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](48, StatusComponent_div_1_div_48_Template, 4, 8, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "h6", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56, "Details of Shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](62, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](67, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](68, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71, "Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](73, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](74, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](75, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](76, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](77, StatusComponent_div_1_div_77_Template, 9, 10, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](78, StatusComponent_div_1_div_78_Template, 9, 10, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](79, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](25, 24, ctx_r1.logDetail.createdAt, "dd-MM-yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](27, 27, ctx_r1.logDetail.createdAt, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r1.logDetail.userId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r1.logDetail.description);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.subSkillSets == null ? null : ctx_r1.shiftDetails.subSkillSets.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](46, 30, ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.startTime, "HH:mm"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](47, 33, ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.staffNeedCount, "/", ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.backUpStaffNeedCount, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r1.buId.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](68, 36, ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.date));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](74, 38, ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.startTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](76, 41, ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.endTime, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.shiftDetails == null ? null : ctx_r1.shiftDetails.isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.logDetail.status !== 11 && ctx_r1.logDetail.status !== 5 && ctx_r1.logDetail.status !== 18 && ctx_r1.logDetail.status !== 19 && ctx_r1.logDetail.status !== 20 && ctx_r1.logDetail.status !== 21 && ctx_r1.logDetail.status !== 22);
} }
class StatusComponent {
constructor(planShiftService) {
this.planShiftService = planShiftService;
this.shiftDetails = null;
this.existingShiftDetails = null;
this.date = [];
this.isOverview = true;
this.shiftDetail = false;
}
ngOnInit() {
}
ngOnChanges() {
this.statusLogShift();
}
statusLogShift() {
this.shiftLog = {
businessUnitId: this.buId._id,
startDate: this.week,
status: 5,
};
this.planShiftService
.getShiftLog(this.shiftLog)
.subscribe((res) => {
this.status = res.data;
// this.BUname = res.data.orgName
});
this.colDate = moment__WEBPACK_IMPORTED_MODULE_1__["utc"](this.date).format("DD-MM-YYYY");
this.colTime = moment__WEBPACK_IMPORTED_MODULE_1__["utc"](this.date).format("HH:MM");
}
changeOverview(value, item) {
this.isOverview = value;
this.logDetail = item;
if (item) {
this.shiftDetails = (item === null || item === void 0 ? void 0 : item.adjustedShift) ? JSON.parse(item.adjustedShift)
: (item === null || item === void 0 ? void 0 : item.existingShift) ? JSON.parse(item.existingShift)
: (item === null || item === void 0 ? void 0 : item.shiftDetails) ? JSON.parse(item.shiftDetails)
: null;
}
else {
this.shiftDetails = null;
}
}
changeShiftDetailsView(value, item) {
this.showShiftDetails = value;
this.shiftDetail = item;
}
}
StatusComponent.ɵfac = function StatusComponent_Factory(t) { return new (t || StatusComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_2__["ShiftSchedulerService"])); };
StatusComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: StatusComponent, selectors: [["app-status"]], inputs: { buId: "buId", week: "week", refreshStatus: "refreshStatus" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 2, vars: 2, consts: [["class", "card", 4, "ngIf"], [1, "card"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body", "p-0"], [1, "table-responsive"], [1, "table", "table-striped", "m-0"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-success", "btn-sm", 3, "click"], [1, "card-header", "flexi-header"], [1, "card-body"], [1, "row", "mb-2", "col-md-12", "flexDisplay"], [1, "col-md-2", "red-heading"], [1, "red-heading", 3, "click"], [1, "col-md-12", "row", "mb-2", "titleHeader", "flexDisplay"], [1, "col-md-3", "no-padding"], [1, "col-md-3", "form-control", 3, "disabled", "value"], [1, "col-md-12", "row", "mb-2"], [1, "col-md-12", "form-control", 3, "disabled", "value"], [1, "row", "mb-2", "col-md-12", "mt-4"], [1, "row"], [1, "col-md-6"], [1, "shiftTab", "selected"], [1, "d-flex", "justify-content-between"], [4, "ngIf"], [1, "d-flex", "justify-content-end", "mt-1"], [1, "badge", "badge-pill", "bg-theme"], [1, "card", "border-0"], [1, "card-header", "bg-theme"], [1, "card-body", "border-theme"], ["placeholder", "Business Unit", 1, "form-control", 3, "disabled", "value"], ["placeholder", "Date", 1, "form-control", 3, "disabled", "value"], [1, "col-md-12", "row", "mb-2", "flexDisplay"], ["placeholder", "Timing", 1, "form-control", "col-md-5", 3, "disabled", "value"], ["placeholder", "Timimg", 1, "form-control", "col-md-5", 3, "disabled", "value"], [1, "col-md-12", "my-2"], ["class", "m-0 red", 4, "ngFor", "ngForOf"], [1, "m-0", "red"]], template: function StatusComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, StatusComponent_div_0_Template, 23, 2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, StatusComponent_div_1_Template, 80, 44, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOverview);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isOverview);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgForm"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["TitleCasePipe"]], styles: [".table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n border-top: transparent;\n background-color: #f2f2f2;\n}\n\n.table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.red-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n padding: 0.75em;\n border-radius: 4px;\n}\n\n.titleHeader[_ngcontent-%COMP%] {\n border-bottom: 1px solid #f2f2f2;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.table-row[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\n.table-row[_ngcontent-%COMP%] div[_ngcontent-%COMP%] {\n font-weight: 700;\n}\n\n.table-shift[_ngcontent-%COMP%] {\n border: 1px solid #f2f2f2;\n display: flex;\n justify-content: space-between;\n border-radius: 6px;\n padding: 0.75rem;\n}\n\n.detailShiftModel[_ngcontent-%COMP%] {\n background-color: #f5f5f5;\n}\n\n.shiftTab[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0.5rem 0.8rem;\n border-radius: 4px;\n min-height: 60px;\n}\n\n.shiftTab.selected[_ngcontent-%COMP%] {\n background-color: #721c2414;\n cursor: pointer;\n border: 1px solid #a73535;\n border-radius: 4px;\n}\n\n.shiftTab[_ngcontent-%COMP%]:hover {\n background-color: #f2f2f2;\n cursor: pointer;\n}\n\n.shiftTab.selectedShift[_ngcontent-%COMP%] {\n background-color: #721c2414;\n cursor: pointer;\n border: 1px solid #a73535;\n border-radius: 4px;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.border-theme[_ngcontent-%COMP%] {\n border: 1px solid #a42138;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n margin: 4px 4px 0 0;\n display: flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNoaWZ0L3N0YXR1cy9zdGF0dXMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx1QkFBQTtFQUNBLHlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxzQkFBQTtBQUNGOztBQUVBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGdDQUFBO0FBQ0Y7O0FBRUE7RUFDRSxVQUFBO0FBQ0Y7O0FBRUE7RUFDRSxhQUFBO0VBQ0Esc0JBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtBQUNGOztBQUNFO0VBQ0UsMkJBQUE7RUFDQSxlQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtBQUNKOztBQUdBO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0FBQUY7O0FBR0E7RUFDRSwyQkFBQTtFQUNBLGVBQUE7RUFDQSx5QkFBQTtFQUNBLGtCQUFBO0FBQUY7O0FBR0E7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUFBRjs7QUFHQTtFQUNFLHlCQUFBO0FBQUY7O0FBR0E7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxtQkFBQTtFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFBRjs7QUFFRTtFQUNFLGtCQUFBO0FBQUo7O0FBR0U7RUFDRSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7QUFESiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL21hbmFnZS1zaGlmdC9zdGF0dXMvc3RhdHVzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnRhYmxlIHRoIHtcbiAgYm9yZGVyLXRvcDogdHJhbnNwYXJlbnQ7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmMmYyZjI7XG59XG5cbi50YWJsZSB0ciB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG59XG5cbi5mbGV4RGlzcGxheSB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuLnJlZC1oZWFkaW5nIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG4gIHBhZGRpbmc6IDAuNzVlbTtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xufVxuXG4udGl0bGVIZWFkZXIge1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2YyZjJmMjtcbn1cblxuLm5vLXBhZGRpbmcge1xuICBwYWRkaW5nOiAwO1xufVxuXG4udGFibGUtcm93IHtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbn1cblxuLnRhYmxlLXJvdyBkaXYge1xuICBmb250LXdlaWdodDogNzAwO1xufVxuXG4udGFibGUtc2hpZnQge1xuICBib3JkZXI6IDFweCBzb2xpZCAjZjJmMmYyO1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgcGFkZGluZzogMC43NXJlbTtcbn1cblxuLmRldGFpbFNoaWZ0TW9kZWwge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjVmNWY1O1xufVxuXG4uc2hpZnRUYWIge1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBwYWRkaW5nOiAwLjVyZW0gMC44cmVtO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIG1pbi1oZWlnaHQ6IDYwcHg7XG5cbiAgJi5zZWxlY3RlZCB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzcyMWMyNDE0O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjYTczNTM1O1xuICAgIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgfVxufVxuXG4uc2hpZnRUYWI6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjJmMmYyO1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5zaGlmdFRhYi5zZWxlY3RlZFNoaWZ0IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzcyMWMyNDE0O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNhNzM1MzU7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn1cblxuLmJnLXRoZW1lIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG59XG5cbi5ib3JkZXItdGhlbWUge1xuICBib3JkZXI6IDFweCBzb2xpZCAjYTQyMTM4O1xufVxuXG4ubGFiZWxzIHtcbiAgcGFkZGluZzogNnB4IDhweDtcbiAgYmFja2dyb3VuZDogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgbWFyZ2luOiA0cHggNHB4IDAgMDtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cbiAgLnRleHQge1xuICAgIG1hcmdpbi1ib3R0b206IDJweDtcbiAgfVxuXG4gIC5idG4tY2xvc2Uge1xuICAgIGZvbnQtc2l6ZTogMTZweDtcbiAgICBwYWRkaW5nOiAycHg7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StatusComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: "app-status",
templateUrl: "./status.component.html",
styleUrls: ["./status.component.scss"],
}]
}], function () { return [{ type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_2__["ShiftSchedulerService"] }]; }, { buId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], week: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], refreshStatus: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "a53x":
/*!********************************************************************!*\
!*** ./src/app/users/pages/user-profile/user-profile.component.ts ***!
\********************************************************************/
/*! exports provided: UserProfileComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserProfileComponent", function() { return UserProfileComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/custom-validator/custom-validator */ "TF/K");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../service/user-service/users.service */ "lGV6");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../service/auth/auth.service */ "PxIJ");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../service/gamification/gamification.service */ "ErXd");
/* harmony import */ var _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../shared/dynamic-fields/dynamic-form.component */ "6CZB");
const _c0 = ["changePasswordProfile"];
const _c1 = ["changeMobileNumber"];
function UserProfileComponent_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "img", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Please wait, data is loading...");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_container_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Uploading...");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} }
function UserProfileComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "Edit");
} }
function UserProfileComponent_ng_template_58_div_8_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " StaffId is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_58_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_58_div_8_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r14.f.staffId.errors.required);
} }
function UserProfileComponent_ng_template_58_div_13_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " StaffId is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_58_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_58_div_13_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.f.staffId.errors.required);
} }
function UserProfileComponent_ng_template_58_div_27_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_58_div_27_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r20.changeRecoveryMobileNumber(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "i", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_58_div_32_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " StaffId is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_58_div_32_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_58_div_32_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r17.f.staffId.errors.required);
} }
const _c2 = function (a0) { return { "is-invalid": a0 }; };
function UserProfileComponent_ng_template_58_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "form", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "User Name");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, UserProfileComponent_ng_template_58_div_8_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Staff Id");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, UserProfileComponent_ng_template_58_div_13_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Password");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](18, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_58_Template_button_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r23.changePasswordState(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "i", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](27, UserProfileComponent_ng_template_58_div_27_Template, 3, 0, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Appoinment");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](32, UserProfileComponent_ng_template_58_div_32_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r5.forgetPasswordForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx_r5.userData == null ? null : ctx_r5.userData.name)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](14, _c2, ctx_r5.submitted1 && ctx_r5.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.submitted1 && ctx_r5.f.staffId.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx_r5.userData == null ? null : ctx_r5.userData.staffId)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](16, _c2, ctx_r5.submitted1 && ctx_r5.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.submitted1 && ctx_r5.f.staffId.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r5.isEmail === 2 ? "Recovery Mobile Number" : "Recovery Email");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("type", ctx_r5.isEmail === 2 ? "email" : "tel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx_r5.isEmail === 1 ? ctx_r5.userData == null ? null : ctx_r5.userData.email : ctx_r5.userData == null ? null : ctx_r5.userData.primaryMobileNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.isEmail === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx_r5.userData == null ? null : ctx_r5.userData.appointmentId == null ? null : ctx_r5.userData.appointmentId.name)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](18, _c2, ctx_r5.submitted1 && ctx_r5.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r5.submitted1 && ctx_r5.f.staffId.errors);
} }
function UserProfileComponent_ng_template_62_div_8_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " StaffId is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_62_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_62_div_8_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r25.f.staffId.errors.required);
} }
function UserProfileComponent_ng_template_62_div_13_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Email is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_62_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_62_div_13_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r26.f.email.errors.required);
} }
function UserProfileComponent_ng_template_62_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "form", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Contact Number");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, UserProfileComponent_ng_template_62_div_8_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "label", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "input", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, UserProfileComponent_ng_template_62_div_13_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "button", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_62_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r30); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r29.onSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r6.forgetPasswordForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](5, _c2, ctx_r6.submitted1 && ctx_r6.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.submitted1 && ctx_r6.f.staffId.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](7, _c2, ctx_r6.submitted1 && ctx_r6.f.email.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.submitted1 && ctx_r6.f.email.errors);
} }
function UserProfileComponent_ng_template_66_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "form", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Roles");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "label", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Bussiness Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r7.forgetPasswordForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx_r7.userData.role == null ? null : ctx_r7.userData.role.name)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](5, _c2, ctx_r7.submitted1 && ctx_r7.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", ctx_r7.userData.parentBussinessUnitId == null ? null : ctx_r7.userData.parentBussinessUnitId.orgName)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](7, _c2, ctx_r7.submitted1 && ctx_r7.f.email.errors));
} }
function UserProfileComponent_ng_template_70_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "dynamic-form-builder", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "button", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_70_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r32); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r31.onSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r8.form);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("gridView", "col-xs-12 col-sm-12 col-md-4 col-lg-4 ")("formGroup", ctx_r8.form)("fields", ctx_r8.getFields());
} }
function UserProfileComponent_ng_template_74_ng_container_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r35 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r35.orgName);
} }
function UserProfileComponent_ng_template_74_ng_container_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r36 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r36.orgName);
} }
function UserProfileComponent_ng_template_74_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Business Unit (Plan)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, UserProfileComponent_ng_template_74_ng_container_7_Template, 2, 1, "ng-container", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Business Unit (View) ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, UserProfileComponent_ng_template_74_ng_container_12_Template, 2, 1, "ng-container", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r9.userData == null ? null : ctx_r9.userData.planBussinessUnitId);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r9.userData == null ? null : ctx_r9.userData.viewBussinessUnitId);
} }
function UserProfileComponent_ng_template_76_i_17_Template(rf, ctx) { if (rf & 1) {
const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_76_i_17_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r44); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r43.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"](ctx_r39.passwordvisible ? "fa fa-eye fa-lg" : "fa fa-eye-slash fa-lg");
} }
function UserProfileComponent_ng_template_76_div_18_div_1_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_76_div_18_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_18_div_1_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
var tmp_0_0 = null;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", (tmp_0_0 = ctx_r45.passwordRestForm.get("password")) == null ? null : tmp_0_0.errors == null ? null : tmp_0_0.errors.required);
} }
function UserProfileComponent_ng_template_76_div_18_div_2_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Atleast one numeric letter is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_76_div_18_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_18_div_2_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
var tmp_0_0 = null;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", (tmp_0_0 = ctx_r46.passwordRestForm.get("password")) == null ? null : tmp_0_0.errors == null ? null : tmp_0_0.errors.hasNumber);
} }
function UserProfileComponent_ng_template_76_div_18_div_3_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Atleast one special character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_76_div_18_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_18_div_3_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
var tmp_0_0 = null;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", (tmp_0_0 = ctx_r47.passwordRestForm.get("password")) == null ? null : tmp_0_0.errors == null ? null : tmp_0_0.errors.hasSpecialCharacters);
} }
function UserProfileComponent_ng_template_76_div_18_div_4_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Atleast one Capital character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_76_div_18_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_18_div_4_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r48.passwordRestForm.get("password").errors == null ? null : ctx_r48.passwordRestForm.get("password").errors.hasCapitalCase);
} }
function UserProfileComponent_ng_template_76_div_18_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Atleast one Small character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_76_div_18_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_18_div_5_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r49.passwordRestForm.get("password").errors == null ? null : ctx_r49.passwordRestForm.get("password").errors.hasSmallCase);
} }
function UserProfileComponent_ng_template_76_div_18_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Min Length Should 8 Charecter ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_76_div_18_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_18_div_6_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r50.passwordRestForm.get("password").errors == null ? null : ctx_r50.passwordRestForm.get("password").errors.minlength);
} }
function UserProfileComponent_ng_template_76_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_18_div_1_Template, 2, 1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, UserProfileComponent_ng_template_76_div_18_div_2_Template, 2, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, UserProfileComponent_ng_template_76_div_18_div_3_Template, 2, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, UserProfileComponent_ng_template_76_div_18_div_4_Template, 2, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, UserProfileComponent_ng_template_76_div_18_div_5_Template, 2, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, UserProfileComponent_ng_template_76_div_18_div_6_Template, 2, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r40.passwordIsInactive === "active");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r40.passwordIsInactive === "active");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r40.passwordIsInactive === "active");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r40.passwordIsInactive === "active");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r40.passwordIsInactive === "active");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r40.passwordIsInactive === "active");
} }
function UserProfileComponent_ng_template_76_i_24_Template(rf, ctx) { if (rf & 1) {
const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_76_i_24_Template_i_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r58); const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r57.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassMap"](ctx_r41.confirmPasswordvisible ? "fa fa-eye fa-lg" : "fa fa-eye-slash fa-lg");
} }
function UserProfileComponent_ng_template_76_div_25_div_1_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Confirm Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_76_div_25_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_25_div_1_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
var tmp_0_0 = null;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", (tmp_0_0 = ctx_r59.passwordRestForm.get("confirmPassword")) == null ? null : tmp_0_0.errors == null ? null : tmp_0_0.errors.required);
} }
function UserProfileComponent_ng_template_76_div_25_div_2_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Password doesn't Match ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_76_div_25_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_25_div_2_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
var tmp_0_0 = null;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", (tmp_0_0 = ctx_r60.passwordRestForm.get("confirmPassword")) == null ? null : tmp_0_0.errors == null ? null : tmp_0_0.errors.mustMatch);
} }
function UserProfileComponent_ng_template_76_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_76_div_25_div_1_Template, 2, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, UserProfileComponent_ng_template_76_div_25_div_2_Template, 2, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r42.passwordIsInactive === "active");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r42.passwordIsInactive === "active");
} }
function UserProfileComponent_ng_template_76_Template(rf, ctx) { if (rf & 1) {
const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "CHANGE PASSWORD");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "button", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_76_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r64); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r63.closeChangePasswordPopUp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "i", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "form", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "input", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, UserProfileComponent_ng_template_76_i_17_Template, 1, 2, "i", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, UserProfileComponent_ng_template_76_div_18_Template, 7, 6, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Confirm Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](24, UserProfileComponent_ng_template_76_i_24_Template, 1, 2, "i", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](25, UserProfileComponent_ng_template_76_div_25_Template, 3, 2, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "button", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_76_Template_button_click_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r64); const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r65.onRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, " Reset Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "button", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_76_Template_button_click_29_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r64); const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r66.closeChangePasswordPopUp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
var tmp_2_0 = null;
var tmp_4_0 = null;
var tmp_6_0 = null;
var tmp_8_0 = null;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r11.passwordRestForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("type", ctx_r11.passwordvisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](9, _c2, ctx_r11.submitted3 && ((tmp_2_0 = ctx_r11.passwordRestForm.get("password")) == null ? null : tmp_2_0.errors)));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.passwordvisible ? "passwordvisible" : "!passwordvisible");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.submitted3 && ((tmp_4_0 = ctx_r11.passwordRestForm.get("password")) == null ? null : tmp_4_0.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("type", ctx_r11.confirmPasswordvisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](11, _c2, ctx_r11.submitted3 && ((tmp_6_0 = ctx_r11.passwordRestForm.get("confirmPassword")) == null ? null : tmp_6_0.errors)));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.confirmPasswordvisible ? "confirmPasswordvisible" : "!confirmPasswordvisible");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r11.submitted3 && ((tmp_8_0 = ctx_r11.passwordRestForm.get("confirmPassword")) == null ? null : tmp_8_0.errors));
} }
function UserProfileComponent_ng_template_78_div_14_div_4_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Mobile Number is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_78_div_14_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_78_div_14_div_4_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r71.recoveryForm.get("recoveryPhoneNumber").errors == null ? null : ctx_r71.recoveryForm.get("recoveryPhoneNumber").errors.required);
} }
function UserProfileComponent_ng_template_78_div_14_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " OTP is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_78_div_14_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, UserProfileComponent_ng_template_78_div_14_div_8_div_2_Template, 3, 0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r72.isVerifyOTP && !ctx_r72.recoveryForm.get("mobileOTP").value);
} }
const _c3 = function (a1) { return { "form-control": 1, "is-invalid": a1 }; };
const _c4 = function (a0, a1) { return [a0, a1]; };
function UserProfileComponent_ng_template_78_div_14_Template(rf, ctx) { if (rf & 1) {
const _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "ngx-intl-tel-input", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, UserProfileComponent_ng_template_78_div_14_div_4_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "button", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_78_div_14_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r76); const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r75.requestForOTP(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Send OTP");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, UserProfileComponent_ng_template_78_div_14_div_8_Template, 3, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("preferredCountries", ctx_r69.preferredCountries)("cssClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](15, _c3, ctx_r69.submitted1 && ctx_r69.recoveryForm.get("recoveryPhoneNumber").errors))("enableAutoCountrySelect", true)("enablePlaceholder", true)("searchCountryFlag", true)("searchCountryField", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](17, _c4, ctx_r69.SearchCountryField == null ? null : ctx_r69.SearchCountryField.Iso2, ctx_r69.SearchCountryField == null ? null : ctx_r69.SearchCountryField.Name))("selectFirstCountry", false)("selectedCountryISO", ctx_r69.CountryISO.India)("maxLength", 15)("tooltipField", ctx_r69.TooltipLabel == null ? null : ctx_r69.TooltipLabel.Name)("phoneValidation", false)("separateDialCode", false)("numberFormat", ctx_r69.PhoneNumberFormat.National);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r69.isSubmittedRecovery && ctx_r69.recoveryForm.get("recoveryPhoneNumber").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r69.recoveryForm.get("token").value);
} }
function UserProfileComponent_ng_template_78_div_15_div_2_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Email is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function UserProfileComponent_ng_template_78_div_15_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, UserProfileComponent_ng_template_78_div_15_div_2_small_1_Template, 2, 0, "small", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r77.recoveryForm.get("recoveryEmail").errors.required);
} }
function UserProfileComponent_ng_template_78_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, UserProfileComponent_ng_template_78_div_15_div_2_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r70.isSubmittedRecovery && ctx_r70.recoveryForm.get("recoveryEmail").errors);
} }
function UserProfileComponent_ng_template_78_Template(rf, ctx) { if (rf & 1) {
const _r80 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_78_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r80); const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r79.closeRecoveryPopUp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "i", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "form", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "label", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, UserProfileComponent_ng_template_78_div_14_Template, 9, 20, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](15, UserProfileComponent_ng_template_78_div_15_Template, 3, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "button", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_78_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r80); const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r81.verifyOTP(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "button", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function UserProfileComponent_ng_template_78_Template_button_click_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r80); const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r82.closeRecoveryPopUp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r13.isEmail === 2 ? "CHANGE MOBILE NUMBER" : "CHANGE EMAIL", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r13.recoveryForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r13.isEmail === 2 ? "Mobile Number" : "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r13.isEmail === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r13.isEmail === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r13.forgetPasswordForm.value.email === "");
} }
class UserProfileComponent {
constructor(userService, auth, modelService, toastService, formBuilder, gamificationService, passwordSettings, companySetupService) {
this.userService = userService;
this.auth = auth;
this.modelService = modelService;
this.toastService = toastService;
this.formBuilder = formBuilder;
this.gamificationService = gamificationService;
this.passwordSettings = passwordSettings;
this.companySetupService = companySetupService;
this.isPasswordReset = false;
this.submitted1 = false;
this.submitted3 = false;
this.isSubmittedRecovery = false;
this.validators = [];
this.fileUploading = false;
this.passwordvisible = false;
this.confirmPasswordvisible = false;
this.separateDialCode = true;
this.SearchCountryField = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__["SearchCountryField"];
this.CountryISO = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__["CountryISO"];
this.PhoneNumberFormat = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__["PhoneNumberFormat"];
this.preferredCountries = [
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__["CountryISO"].UnitedStates,
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__["CountryISO"].UnitedKingdom,
];
this.fields = [];
this.isVerifyOTP = false;
this.isGetProfileLoader = false;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl;
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroup"]({
fields: new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](JSON.stringify(this.fields)),
});
this.unsubcribe = this.form.valueChanges.subscribe((update) => {
this.fields = JSON.parse(update.fields);
});
}
ngOnInit() {
this.initForm();
this.resetPasswordForm();
this.loadProfileDetails();
this.getPasswordSetupDetails();
}
resetPasswordForm() {
this.passwordRestForm = this.formBuilder.group({
password: ['', [...this.validators, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
confirmPassword: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
}, {
validator: Object(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["MustMatch"])('password', 'confirmPassword'),
});
}
initForm() {
this.forgetPasswordForm = this.formBuilder.group({
email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].email]],
profilePicture: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
primaryMobileNumber: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
contactNumber: ['']
});
this.recoveryForm = this.formBuilder.group({
recoveryEmail: [''],
recoveryPhoneNumber: [''],
mobileOTP: [''],
token: ['']
});
}
get f() {
return this.forgetPasswordForm.controls;
}
profileUpload(event) {
if (event.target.files && event.target.files.length) {
const file = event.target.files[0];
this.fileUploading = true;
const fileUpload = this.gamificationService
.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
var _a, _b;
this.forgetPasswordForm.patchValue({
profilePicture: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${(_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.exactPath}`
});
this.fileUploading = false;
this.userData.profilePicture = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${(_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.exactPath}`;
this.onSubmit();
}, (error) => {
this.fileUploading = false;
});
}
}
passwordVisible() {
this.passwordvisible = !this.passwordvisible;
}
confirmPasswordVisible() {
this.confirmPasswordvisible = !this.confirmPasswordvisible;
}
loadProfileDetails() {
this.isGetProfileLoader = true;
const subscribe = this.userService
.getOneUser({ userId: localStorage.getItem('loggedInUserId') })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b, _c, _d, _e, _f, _g;
this.userData = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.data) || null;
this.ID = (_b = response.data) === null || _b === void 0 ? void 0 : _b.data._id;
this.forgetPasswordForm.patchValue({
email: (_c = response.data) === null || _c === void 0 ? void 0 : _c.data.email,
primaryMobileNumber: (_d = response.data) === null || _d === void 0 ? void 0 : _d.data.primaryMobileNumber,
profilePicture: (_e = response.data) === null || _e === void 0 ? void 0 : _e.data.profilePicture,
contactNumber: (_f = response.data) === null || _f === void 0 ? void 0 : _f.data.contactNumber
});
const modifiedData = (_g = response.data) === null || _g === void 0 ? void 0 : _g.data.otherFields.map((rawProduct) => {
return Object.assign({ disabled: rawProduct.editable ? false : true }, rawProduct);
});
this.fields = modifiedData.filter((field) => field.status === 1);
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroup"]({});
this.fields.forEach((x) => {
if (x.type == 'checkbox') {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroup"]({}));
x.options.forEach((o) => {
this.form.get(x.fieldName).addControl(o.key, new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](false));
});
}
else {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](x.value || '', x.required ? _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required : null));
}
});
this.isGetProfileLoader = false;
}, (error) => {
this.isGetProfileLoader = false;
});
}
getFields() {
return this.fields;
}
getValidatorFnArray(setting) {
const validators = [];
if (this.passwordIsInactive === 'inactive') {
if (setting.charTypes.lowerCase) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(null, {
hasSmallCase: false,
}));
}
if (setting.charTypes.specialChar) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(null, {
hasSpecialCharacters: false,
}));
}
if (setting.charTypes.upperCase) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(null, {
hasCapitalCase: false,
}));
}
if (setting.charTypes.numbers) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(null, {
hasNumber: false,
}));
}
if (setting.charTypes.numbers) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(null, {
minlength: false,
}));
}
this.validators.push(...validators);
// this.resetPasswordForm();
}
else {
if (setting.charTypes.lowerCase) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/[a-z]/, {
hasSmallCase: true,
}));
}
if (setting.charTypes.specialChar) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/, {
hasSpecialCharacters: true,
}));
}
if (setting.charTypes.upperCase) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/[A-Z]/, {
hasCapitalCase: true,
}));
}
if (setting.charTypes.numbers) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/\d/, {
hasNumber: true,
}));
}
if (setting.charTypes.numbers) {
validators.push(src_app_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_5__["CustomValidators"].patternValidator(/^.{8,}$/, {
minlength: true,
}));
}
this.validators.push(...validators);
// this.resetPasswordForm();
}
}
changePasswordState(value) {
// this.passwordRestForm?.reset();
this.modelService.open(this.changePasswordProfile, {
windowClass: 'modal-ui-fix right-align',
});
const sub = this.passwordSettings
.getPasswordSetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((Res) => Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
var _a, _b;
const passwordSetting = yield ((_b = (_a = Res.data) === null || _a === void 0 ? void 0 : _a.pageSettingData) === null || _b === void 0 ? void 0 : _b.pwdSettings);
this.getValidatorFnArray(passwordSetting);
this.isPasswordReset = value;
}), (error) => {
});
}
changeRecoveryMobileNumber() {
this.modelService.open(this.changeMobileNumber, {
windowClass: 'modal-ui-fix right-align',
});
this.recoveryForm.reset();
this.recoveryForm.updateValueAndValidity();
if (this.isEmail == 1) {
this.recoveryForm.get('recoveryEmail').setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].email]);
this.recoveryForm.get('recoveryEmail').updateValueAndValidity();
}
else if (this.isEmail == 2) {
this.recoveryForm.get('recoveryPhoneNumber').setValidators([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].email]);
this.recoveryForm.get('recoveryPhoneNumber').updateValueAndValidity();
}
}
closeChangePasswordPopUp() {
this.modelService.dismissAll();
this.submitted3 = false;
}
getPasswordSetupDetails() {
const sub = this.companySetupService
.getPasswordSetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b, _c, _d, _e, _f;
this.passwordIsInactive = ((_c = (_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.pageSettingData) === null || _b === void 0 ? void 0 : _b.pwdSettings) === null || _c === void 0 ? void 0 : _c.status) == 1 ? 'active' : 'inactive';
this.isEmail = (_f = (_e = (_d = res.data) === null || _d === void 0 ? void 0 : _d.pageSettingData) === null || _e === void 0 ? void 0 : _e.pwdSettings) === null || _f === void 0 ? void 0 : _f.otpSentFor;
});
}
onRestPassword() {
if (this.passwordRestForm.invalid) {
this.submitted3 = true;
return;
}
this.passwordRestForm.patchValue({
password: this.passwordRestForm.value.password,
});
this.onSubmit(true);
}
changePhoneNumber(isEmail) {
if (isEmail === 1) {
if (this.forgetPasswordForm.valid) {
this.toastService.success('Email changed Succesfully', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
this.onSubmit();
this.modelService.dismissAll();
}
else {
this.toastService.error('Please Enter Valid Email', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}
}
else if (isEmail === 2) {
if (this.forgetPasswordForm.value.primaryMobileNumber !== null) {
this.toastService.success('Mobile changed Succesfully', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
this.onSubmit();
this.modelService.dismissAll();
}
else {
this.toastService.error('Please Enter a Mobile Number', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}
}
}
onSubmit(passwordUpdate) {
const modifiedData = this.fields.map((rawProduct) => {
return {
fieldId: rawProduct._id,
editable: rawProduct.editable,
};
});
const values = Object.values(this.form.value);
let newObject = modifiedData.map((item, i) => Object.assign({}, item, { value: values[i] }));
const { number } = this.forgetPasswordForm.get('primaryMobileNumber').value;
this.forgetPasswordForm.patchValue({
primaryMobileNumber: number,
profilePicture: this.forgetPasswordForm.value.profilePicture
});
this.userService.setProfileImage(this.forgetPasswordForm.value.profilePicture);
// localStorage.setItem('userProfileImage',this.forgetPasswordForm.value.profilePicture);
const payload = Object.assign(Object.assign({}, this.forgetPasswordForm.value), { otherFields: newObject, userId: localStorage.getItem('loggedInUserId') });
if (passwordUpdate) {
payload.password = this.passwordRestForm.get('password').value;
}
const sub = this.userService
.updateUser(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.toastService.success('Profile Updated Successfully');
if (passwordUpdate) {
this.closeChangePasswordPopUp();
}
this.loadProfileDetails();
}, (error) => {
});
}
requestForOTP() {
var _a, _b;
if (this.recoveryForm.invalid) {
this.isSubmittedRecovery = true;
return true;
}
const payload = {
primaryMobileNumber: (_a = this.recoveryForm.get('recoveryPhoneNumber').value) === null || _a === void 0 ? void 0 : _a.number,
countryCode: (_b = this.recoveryForm.get('recoveryPhoneNumber').value) === null || _b === void 0 ? void 0 : _b.dialCode,
userId: localStorage.getItem('loggedInUserId'),
pathName: "sats"
};
if (this.recoveryForm.valid) {
this.auth.requestForgetPassword(payload).subscribe(response => {
const data = response === null || response === void 0 ? void 0 : response.data;
this.toastService.success(data === null || data === void 0 ? void 0 : data.message);
this.recoveryForm.get('token').setValue(data.token);
}, error => {
this.isSubmittedRecovery = false;
this.toastService.error(error);
});
}
}
verifyOTP() {
this.isVerifyOTP = true;
const payload = {
otp: this.recoveryForm.get('mobileOTP').value,
token: this.recoveryForm.get('token').value,
};
if (payload.otp && payload.token) {
this.auth.verifyOTP(payload).subscribe(response => {
const data = response === null || response === void 0 ? void 0 : response.data;
this.toastService.success(data);
this.loadProfileDetails();
this.closeRecoveryPopUp();
}, error => {
this.isVerifyOTP = false;
this.toastService.error(error);
});
}
}
closeRecoveryPopUp() {
var _a;
this.modelService.dismissAll();
(_a = this.recoveryForm) === null || _a === void 0 ? void 0 : _a.reset();
this.isVerifyOTP = false;
this.isSubmittedRecovery = false;
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
UserProfileComponent.ɵfac = function UserProfileComponent_Factory(t) { return new (t || UserProfileComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_11__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_12__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_12__["CompanySetupService"])); };
UserProfileComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: UserProfileComponent, selectors: [["app-user-profile"]], viewQuery: function UserProfileComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.changePasswordProfile = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.changeMobileNumber = _t.first);
} }, decls: 80, vars: 18, consts: [["class", "loading-class", 4, "ngIf"], [1, "row"], [1, "col-md-4"], [1, "card"], [1, "card-body"], [1, "profile-details", "text-left"], [1, "profile-userpic"], ["type", "file", "accept", "image/*", 3, "change"], ["crossorigin", "anonymous", "alt", "", 1, "img-responsive", 3, "src"], [1, "editProfile"], [4, "ngIf", "ngIfElse"], ["editTab", ""], [1, "profile-usertitle"], [1, "profile-usertitle-name"], [1, "profile-usertitle-job"], [1, "list-group", "text-dark"], [1, "list-group-item", "d-flex", "justify-content-between", "align-items-center"], [1, "text-muted"], [1, "fa", "fa-user"], [1, "text-right"], [1, "fa", "fa-phone"], [1, "fa", "fa-envelope"], [1, "fa", "fa-flag"], [1, "fa", "fa-users"], [1, "col-md-8", "pl-md-0"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["changePasswordProfile", ""], ["changeMobileNumber", ""], [1, "loading-class"], ["src", "./assets/images/loading.gif"], [1, "text-center"], [1, "col-md-6", "col-sm-12"], [3, "formGroup"], [1, "form-group"], ["for", "exampleInputEmail1"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter User Name", "readonly", "", 1, "form-control", 3, "value", "ngClass"], ["class", "invalid-feedback d-block", 4, "ngIf"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter Staff Id", "readonly", "", 1, "form-control", 3, "value", "ngClass"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], [1, "input-group"], ["value", "000000", "type", "password", "readonly", "", 1, "form-control"], [1, "input-group-append"], ["type", "button", 1, "btn", "btn-outline-secondary", "btn-sm", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-edit"], ["readonly", "", 1, "form-control", 3, "value", "type"], ["class", "input-group-append", 4, "ngIf"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter Apoinment", "readonly", "", 1, "form-control", 3, "value", "ngClass"], [1, "invalid-feedback", "d-block"], [4, "ngIf"], [1, "col-md-6"], ["for", "exampleInputContact1"], ["type", "text", "formControlName", "contactNumber", "aria-describedby", "emailHelp", "placeholder", "Enter Contact Number", 1, "form-control", 3, "ngClass"], ["for", "exampleInputPassword1"], ["type", "email", "placeholder", "Enter Email", "formControlName", "email", "required", "", 1, "form-control", 3, "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-submit", "float-right", 3, "click"], ["type", "email", "placeholder", "Enter BussinnesUnit", "readonly", "", 1, "form-control", 3, "value", "ngClass"], [3, "gridView", "formGroup", "fields"], [4, "ngFor", "ngForOf"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter Staff Id", "readonly", "", 1, "form-control", "mb-2", 3, "value"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "0vh"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], ["type", "button", "aria-label", "Close", 1, "btn", "close-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], ["placeholder", "Password", "formControlName", "password", 1, "form-control", 3, "type", "ngClass"], [1, "eye-slash"], ["aria-hidden", "true", 3, "class", "click", 4, "ngIf"], ["for", "exampleInputEmail1", 1, "form-bg"], ["placeholder", " Confirm Password", "formControlName", "confirmPassword", 1, "form-control", 3, "type", "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-submit", "float-right", "m-1", "p-1", 3, "click"], ["type", "submit", 1, "btn", "btn-sm", "btn-clear", "float-right", "m-1", "p-1", 3, "click"], ["aria-hidden", "true", 3, "click"], ["class", "mt-2", 4, "ngIf"], [1, "mt-2"], [1, "modal-body", 2, "padding", "10px", "min-height", "50vh"], ["type", "submit", 1, "btn", "btn-sm", "btn-submit", "float-right", "m-1", "p-1", 3, "disabled", "click"], [1, "d-flex"], ["formControlName", "recoveryPhoneNumber", 3, "preferredCountries", "cssClass", "enableAutoCountrySelect", "enablePlaceholder", "searchCountryFlag", "searchCountryField", "selectFirstCountry", "selectedCountryISO", "maxLength", "tooltipField", "phoneValidation", "separateDialCode", "numberFormat"], [1, "btn", "btn-sm", "btn-primary", "ml-2", 3, "click"], ["type", "text", "formControlName", "mobileOTP", "placeholder", "Enter OTP", 1, "form-control", "col-sm-2"], ["type", "email", "placeholder", "Enter your Email", "formControlName", "recoveryEmail", 1, "form-control"]], template: function UserProfileComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](0, UserProfileComponent_div_0_Template, 4, 0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "input", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function UserProfileComponent_Template_input_change_7_listener($event) { return ctx.profileUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "img", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, UserProfileComponent_ng_container_10_Template, 2, 0, "ng-container", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, UserProfileComponent_ng_template_11_Template, 1, 0, "ng-template", null, 11, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "ul", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "i", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, " Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](27, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, " Phone");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](33, "i", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, " Email");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](39, "i", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, " Parent Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "li", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](45, "i", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, " Ops Group Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "span", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](49, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "ul", 26, 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("activeIdChange", function UserProfileComponent_Template_ul_activeIdChange_53_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "a", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](57, "GENERAL INFO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](58, UserProfileComponent_ng_template_58_Template, 33, 20, "ng-template", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "a", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61, "CONTACT INFO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](62, UserProfileComponent_ng_template_62_Template, 17, 9, "ng-template", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "a", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](65, "OTHER INFO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](66, UserProfileComponent_ng_template_66_Template, 12, 9, "ng-template", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "a", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](69, "CUSTOM FIELDS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](70, UserProfileComponent_ng_template_70_Template, 7, 4, "ng-template", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "a", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](73, "ASSIGNED BUSSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](74, UserProfileComponent_ng_template_74_Template, 13, 2, "ng-template", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](75, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](76, UserProfileComponent_ng_template_76_Template, 31, 13, "ng-template", null, 32, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](78, UserProfileComponent_ng_template_78_Template, 21, 6, "ng-template", null, 33, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](12);
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isGetProfileLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", (ctx.userData == null ? null : ctx.userData.profilePicture) ? ctx.validateURLImage(ctx.userData == null ? null : ctx.userData.profilePicture) : "../assets/images/user1.png", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.fileUploading)("ngIfElse", _r2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.userData == null ? null : ctx.userData.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.userData == null ? null : ctx.userData.role == null ? null : ctx.userData.role.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.primaryMobileNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.email);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.parentBussinessUnitId == null ? null : ctx.userData.parentBussinessUnitId.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.opsGroupName);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngbNavItem", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngbNavOutlet", _r4);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_13__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavOutlet"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RequiredValidator"], _shared_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_14__["DynamicFormBuilderComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_13__["NgForOf"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_4__["NgxIntlTelInputComponent"]], styles: ["input[readonly][_ngcontent-%COMP%] {\n background-color: transparent;\n border: 1px solid #ced4da;\n font-size: 1em;\n}\n\n.content[_ngcontent-%COMP%] {\n flex: 1 0 auto;\n}\n\n.content[_ngcontent-%COMP%] {\n margin-top: 60px;\n}\n\n\n\n.profile[_ngcontent-%COMP%] {\n margin: 20px 0;\n}\n\n\n\n.profile-sidebar[_ngcontent-%COMP%] {\n padding: 20px 0 10px 0;\n background: #fff;\n}\n\n.profile-userpic[_ngcontent-%COMP%] {\n display: inline-block;\n position: relative;\n overflow: hidden;\n border-radius: 50%;\n width: 100%;\n}\n\n.profile-userpic[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n float: none;\n display: block;\n margin: auto;\n width: 40%;\n height: 40%;\n border-radius: 50% !important;\n}\n\n.profile-userpic[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%] {\n position: absolute;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n z-index: 999;\n}\n\n.profile-usertitle[_ngcontent-%COMP%] {\n text-align: center;\n margin-top: 20px;\n}\n\n.editProfile[_ngcontent-%COMP%] {\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n bottom: 0;\n width: 100%;\n text-align: center;\n color: #fff;\n}\n\n.profile-usertitle-name[_ngcontent-%COMP%] {\n color: #5a7391;\n font-size: 16px;\n font-weight: 600;\n margin-bottom: 7px;\n}\n\n.profile-usertitle-job[_ngcontent-%COMP%] {\n text-transform: uppercase;\n color: #5b9bd1;\n font-size: 12px;\n font-weight: 600;\n margin-bottom: 15px;\n}\n\n.profile-userbuttons[_ngcontent-%COMP%] {\n text-align: center;\n margin-top: 10px;\n}\n\n.profile-userbuttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] {\n text-transform: uppercase;\n font-size: 11px;\n font-weight: 600;\n padding: 6px 15px;\n margin-right: 5px;\n}\n\n.profile-userbuttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:last-child {\n margin-right: 0px;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] {\n margin-top: 30px;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] {\n border-bottom: 1px solid #f0f4f7;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child {\n border-bottom: none;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #93a3b5;\n font-size: 14px;\n font-weight: 400;\n cursor: pointer;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n margin-right: 8px;\n font-size: 14px;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n background-color: #fafcfd;\n color: #a42138;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] {\n border-bottom: none;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #f6f9fb;\n border-left: 2px solid #a42138;\n margin-left: -2px;\n}\n\n\n\n.profile-content[_ngcontent-%COMP%] {\n padding: 20px;\n background: #fff;\n min-height: 460px;\n}\n\n.eye-slash[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -25px;\n cursor: pointer;\n z-index: 9;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvdXNlci1wcm9maWxlL3VzZXItcHJvZmlsZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLDZCQUFBO0VBQ0EseUJBQUE7RUFDQSxjQUFBO0FBQ0Y7O0FBRUE7RUFDRSxjQUFBO0FBQ0Y7O0FBRUE7RUFDRSxnQkFBQTtBQUNGOztBQUVBLHNCQUFBOztBQUNBO0VBQ0UsY0FBQTtBQUNGOztBQUVBLG9CQUFBOztBQUNBO0VBQ0Usc0JBQUE7RUFDQSxnQkFBQTtBQUNGOztBQUNBO0VBQ0UscUJBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0FBRUY7O0FBR0E7RUFDRSxXQUFBO0VBQ0EsY0FBQTtFQUNBLFlBQUE7RUFDQSxVQUFBO0VBQ0EsV0FBQTtFQUdBLDZCQUFBO0FBQUY7O0FBR0E7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtFQUNBLFVBQUE7RUFDQSxZQUFBO0FBQUY7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxvQ0FBQTtFQUNBLGtCQUFBO0VBQ0EsU0FBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7QUFDRjs7QUFDQTtFQUNFLGNBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxrQkFBQTtBQUVGOztBQUNBO0VBQ0UseUJBQUE7RUFDQSxjQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7QUFFRjs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsZ0JBQUE7QUFFRjs7QUFDQTtFQUNFLHlCQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsaUJBQUE7RUFDQSxpQkFBQTtBQUVGOztBQUNBO0VBQ0UsaUJBQUE7QUFFRjs7QUFDQTtFQUNFLGdCQUFBO0FBRUY7O0FBQ0E7RUFDRSxnQ0FBQTtBQUVGOztBQUNBO0VBQ0UsbUJBQUE7QUFFRjs7QUFDQTtFQUNFLGNBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxlQUFBO0FBRUY7O0FBQ0E7RUFDRSxpQkFBQTtFQUNBLGVBQUE7QUFFRjs7QUFDQTtFQUNFLHlCQUFBO0VBQ0EsY0FBQTtBQUVGOztBQUNBO0VBQ0UsbUJBQUE7QUFFRjs7QUFDQTtFQUNFLGNBQUE7RUFDQSx5QkFBQTtFQUNBLDhCQUFBO0VBQ0EsaUJBQUE7QUFFRjs7QUFDQSxvQkFBQTs7QUFDQTtFQUNFLGFBQUE7RUFDQSxnQkFBQTtFQUNBLGlCQUFBO0FBRUY7O0FBQ0E7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0VBQ0EsVUFBQTtBQUVGOztBQUNBO0VBQ0Usc0JBQUE7QUFFRjs7QUFERTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUdKOztBQURJO0VBQ0UsY0FBQTtBQUdOOztBQUFJO0VBQ0UsY0FBQTtFQUNBLHNCQUFBO0VBQ0EsNkNBQUE7RUFDQSxnQ0FBQTtBQUVOIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvdXNlci1wcm9maWxlL3VzZXItcHJvZmlsZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlucHV0W3JlYWRvbmx5XSB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2VkNGRhO1xuICBmb250LXNpemU6IDFlbTtcbn1cblxuLmNvbnRlbnQge1xuICBmbGV4OiAxIDAgYXV0bztcbn1cblxuLmNvbnRlbnQge1xuICBtYXJnaW4tdG9wOiA2MHB4O1xufVxuXG4vKiBQcm9maWxlIGNvbnRhaW5lciAqL1xuLnByb2ZpbGUge1xuICBtYXJnaW46IDIwcHggMDtcbn1cblxuLyogUHJvZmlsZSBzaWRlYmFyICovXG4ucHJvZmlsZS1zaWRlYmFyIHtcbiAgcGFkZGluZzogMjBweCAwIDEwcHggMDtcbiAgYmFja2dyb3VuZDogI2ZmZjtcbn1cbi5wcm9maWxlLXVzZXJwaWMge1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICB3aWR0aDogMTAwJTtcbiAgLy8gd2lkdGg6IDgwcHg7XG4gIC8vIGhlaWdodDogODBweDtcbn1cblxuLnByb2ZpbGUtdXNlcnBpYyBpbWcge1xuICBmbG9hdDogbm9uZTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIG1hcmdpbjogYXV0bztcbiAgd2lkdGg6IDQwJTtcbiAgaGVpZ2h0OiA0MCU7XG4gIC13ZWJraXQtYm9yZGVyLXJhZGl1czogNTAlICFpbXBvcnRhbnQ7XG4gIC1tb3otYm9yZGVyLXJhZGl1czogNTAlICFpbXBvcnRhbnQ7XG4gIGJvcmRlci1yYWRpdXM6IDUwJSAhaW1wb3J0YW50O1xufVxuXG4ucHJvZmlsZS11c2VycGljIGlucHV0W3R5cGU9XCJmaWxlXCJdIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIG9wYWNpdHk6IDA7XG4gIHotaW5kZXg6IDk5OTtcbn1cbi5wcm9maWxlLXVzZXJ0aXRsZSB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgbWFyZ2luLXRvcDogMjBweDtcbn1cblxuLmVkaXRQcm9maWxlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGJvdHRvbTogMDtcbiAgd2lkdGg6IDEwMCU7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgY29sb3I6ICNmZmY7XG59XG4ucHJvZmlsZS11c2VydGl0bGUtbmFtZSB7XG4gIGNvbG9yOiAjNWE3MzkxO1xuICBmb250LXNpemU6IDE2cHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1ib3R0b206IDdweDtcbn1cblxuLnByb2ZpbGUtdXNlcnRpdGxlLWpvYiB7XG4gIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gIGNvbG9yOiAjNWI5YmQxO1xuICBmb250LXNpemU6IDEycHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1ib3R0b206IDE1cHg7XG59XG5cbi5wcm9maWxlLXVzZXJidXR0b25zIHtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBtYXJnaW4tdG9wOiAxMHB4O1xufVxuXG4ucHJvZmlsZS11c2VyYnV0dG9ucyAuYnRuIHtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgZm9udC1zaXplOiAxMXB4O1xuICBmb250LXdlaWdodDogNjAwO1xuICBwYWRkaW5nOiA2cHggMTVweDtcbiAgbWFyZ2luLXJpZ2h0OiA1cHg7XG59XG5cbi5wcm9maWxlLXVzZXJidXR0b25zIC5idG46bGFzdC1jaGlsZCB7XG4gIG1hcmdpbi1yaWdodDogMHB4O1xufVxuXG4ucHJvZmlsZS11c2VybWVudSB7XG4gIG1hcmdpbi10b3A6IDMwcHg7XG59XG5cbi5wcm9maWxlLXVzZXJtZW51IHVsIGxpIHtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNmMGY0Zjc7XG59XG5cbi5wcm9maWxlLXVzZXJtZW51IHVsIGxpOmxhc3QtY2hpbGQge1xuICBib3JkZXItYm90dG9tOiBub25lO1xufVxuXG4ucHJvZmlsZS11c2VybWVudSB1bCBsaSBhIHtcbiAgY29sb3I6ICM5M2EzYjU7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgZm9udC13ZWlnaHQ6IDQwMDtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4ucHJvZmlsZS11c2VybWVudSB1bCBsaSBhIGkge1xuICBtYXJnaW4tcmlnaHQ6IDhweDtcbiAgZm9udC1zaXplOiAxNHB4O1xufVxuXG4ucHJvZmlsZS11c2VybWVudSB1bCBsaSBhOmhvdmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZhZmNmZDtcbiAgY29sb3I6ICNhNDIxMzg7XG59XG5cbi5wcm9maWxlLXVzZXJtZW51IHVsIGxpLmFjdGl2ZSB7XG4gIGJvcmRlci1ib3R0b206IG5vbmU7XG59XG5cbi5wcm9maWxlLXVzZXJtZW51IHVsIGxpLmFjdGl2ZSBhIHtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmNmY5ZmI7XG4gIGJvcmRlci1sZWZ0OiAycHggc29saWQgI2E0MjEzODtcbiAgbWFyZ2luLWxlZnQ6IC0ycHg7XG59XG5cbi8qIFByb2ZpbGUgQ29udGVudCAqL1xuLnByb2ZpbGUtY29udGVudCB7XG4gIHBhZGRpbmc6IDIwcHg7XG4gIGJhY2tncm91bmQ6ICNmZmY7XG4gIG1pbi1oZWlnaHQ6IDQ2MHB4O1xufVxuXG4uZXllLXNsYXNoe1xuICB3aWR0aDogMjBweDtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICByaWdodDogMzBweDtcbiAgbWFyZ2luLXRvcDogLTI1cHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgei1pbmRleDogOTtcbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cblxuXG59XG5cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](UserProfileComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
args: [{
selector: 'app-user-profile',
templateUrl: './user-profile.component.html',
styleUrls: ['./user-profile.component.scss'],
}]
}], function () { return [{ type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_7__["UsersService"] }, { type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_10__["ToastrService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"] }, { type: _service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_11__["GamificationService"] }, { type: _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_12__["CompanySetupService"] }, { type: _service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_12__["CompanySetupService"] }]; }, { changePasswordProfile: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['changePasswordProfile', { static: true }]
}], changeMobileNumber: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['changeMobileNumber', { static: true }]
}] }); })();
/***/ }),
/***/ "aD6k":
/*!*******************************************************************************************!*\
!*** ./src/app/users/pages/users/create-users/add-edit-users/add-edit-users.component.ts ***!
\*******************************************************************************************/
/*! exports provided: AddEditUsersComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddEditUsersComponent", function() { return AddEditUsersComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/constants */ "l207");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/admin/service/companyservice/company.service */ "RZ9m");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! angular2-multiselect-dropdown */ "e/mZ");
/* harmony import */ var _shared_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../shared/dynamic-fields/dynamic-form.component */ "6CZB");
const _c0 = ["dropdownBplanRef"];
const _c1 = ["myInput"];
const _c2 = ["AddSubSection"];
function AddEditUsersComponent_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Active");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Inactive");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
} }
function AddEditUsersComponent_ng_option_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r22 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r22.orgName, " ");
} }
function AddEditUsersComponent_div_24_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_div_24_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.deleteparentBussinesUnit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.createUserForm.get("parentBussinessUnitId.string").value, " ");
} }
function AddEditUsersComponent_div_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AddEditUsersComponent_ng_template_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r4.planBuUnit == null ? null : ctx_r4.planBuUnit.length, " selected ");
} }
function AddEditUsersComponent_div_32_Template(rf, ctx) { if (rf & 1) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_div_32_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r29); const index_r27 = ctx.index; const field_r26 = ctx.$implicit; const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r28.deletePlanBuUnitFields(index_r27, field_r26.get("_id").value); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r26 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", field_r26.get("string").value, " ");
} }
function AddEditUsersComponent_div_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AddEditUsersComponent_ng_template_39_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](0);
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r7.viewBuUnit == null ? null : ctx_r7.viewBuUnit.length, " selected ");
} }
function AddEditUsersComponent_div_40_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_div_40_Template_img_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const index_r32 = ctx.index; const field_r31 = ctx.$implicit; const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r33.deleteViewBuUnitFields(index_r32, field_r31.get("_id").value); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r31 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", field_r31.get("string").value, " ");
} }
function AddEditUsersComponent_ng_container_80_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Enter a valid email.");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} }
function AddEditUsersComponent_form_84_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "dynamic-form-builder", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r10.form);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("gridView", "col-xs-12 col-sm-12 col-md-3 col-lg-3 ")("formGroup", ctx_r10.form)("fields", ctx_r10.getFields());
} }
function AddEditUsersComponent_ng_option_96_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r35 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r35.name, " ");
} }
function AddEditUsersComponent_ul_98_img_4_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "img", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_ul_98_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r37.deleteroleFields(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AddEditUsersComponent_ul_98_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AddEditUsersComponent_ul_98_img_4_Template, 1, 0, "img", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", ctx_r12.createUserForm.get("role.string").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r12.createUserForm.get("role.string").value);
} }
function AddEditUsersComponent_ng_option_104_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r39 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r39.name, " ");
} }
function AddEditUsersComponent_ul_106_img_4_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "img", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_ul_106_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r42); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r41.deleteAssignFields(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AddEditUsersComponent_ul_106_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AddEditUsersComponent_ul_106_img_4_Template, 1, 0, "img", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", ctx_r14.createUserForm.get("leaveGroupId.string").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r14.createUserForm.get("leaveGroupId.string").value);
} }
function AddEditUsersComponent_ng_option_112_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r43 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r43.name, " ");
} }
function AddEditUsersComponent_ul_114_img_4_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "img", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_ul_114_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r45.deleteAssignFields(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AddEditUsersComponent_ul_114_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AddEditUsersComponent_ul_114_img_4_Template, 1, 0, "img", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", ctx_r16.createUserForm.get("transportBuId.string").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r16.createUserForm.get("transportBuId.string").value);
} }
function AddEditUsersComponent_span_123_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span", 69);
} }
function AddEditUsersComponent_span_124_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " arrow_upward ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AddEditUsersComponent_div_125_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Please wait, data is loading...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AddEditUsersComponent_ng_template_126_span_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AddEditUsersComponent_ng_template_126_tr_54_Template(rf, ctx) { if (rf & 1) {
const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_ng_template_126_tr_54_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const item_r51 = ctx.$implicit; const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r53.onEditAppoinment(item_r51); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_ng_template_126_tr_54_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const item_r51 = ctx.$implicit; const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r55.onDeleteAppoinment(item_r51._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r51 = ctx.$implicit;
const index_r52 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](index_r52 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r51.name);
} }
function AddEditUsersComponent_ng_template_126_Template(rf, ctx) { if (rf & 1) {
const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "ADD APPOINMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_ng_template_126_Template_button_click_8_listener() { const c_r47 = ctx.close; return c_r47("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "APPOINMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_ng_template_126_Template_button_click_18_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r57.appoinmentCreate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "APPOINMENT LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "select", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AddEditUsersComponent_ng_template_126_Template_select_change_29_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r59.onLimitChangeApoinment(); })("ngModelChange", function AddEditUsersComponent_ng_template_126_Template_select_ngModelChange_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r60.appoinmentPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](41, AddEditUsersComponent_ng_template_126_span_41_Template, 2, 0, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function AddEditUsersComponent_ng_template_126_Template_input_keyup_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r61.apoinmentSearchInput.next($event); })("ngModelChange", function AddEditUsersComponent_ng_template_126_Template_input_ngModelChange_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r62.appoinmentPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "table", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, "S.NO");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "th", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function AddEditUsersComponent_ng_template_126_Template_th_sort_49_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r63.onSortApoinment($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, " APPOINMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "th", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](52, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](54, AddEditUsersComponent_ng_template_126_tr_54_Template, 10, 2, "tr", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "ngb-pagination", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function AddEditUsersComponent_ng_template_126_Template_ngb_pagination_pageChange_59_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r64.appoinmentPTable.page = $event; })("pageChange", function AddEditUsersComponent_ng_template_126_Template_ngb_pagination_pageChange_59_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r58); const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r65.onPageChangeApoinment($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r21.createApoinmentForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r21.createApoinmentForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r21.isAppoinmentEdited ? "Update" : "Add", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r21.appoinmentPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r21.appoinmentPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r21.appoinmentPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r21.appoinmentPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r21.appoinmentPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r21.appoinmentPTable.total)("page", ctx_r21.appoinmentPTable.page)("maxSize", 5)("pageSize", ctx_r21.appoinmentPTable.limit);
} }
const _c3 = function () { return { standalone: true }; };
class AddEditUsersComponent {
constructor(formBuilder, buUnit, toastService, userService, modelService, companyService, roleService, storageService, CustomFieldService) {
this.formBuilder = formBuilder;
this.buUnit = buUnit;
this.toastService = toastService;
this.userService = userService;
this.modelService = modelService;
this.companyService = companyService;
this.roleService = roleService;
this.storageService = storageService;
this.CustomFieldService = CustomFieldService;
this.userId = null;
this.isAppoinmentEdited = false;
this.parentBuUnitDropDown = [];
this.planBuUnitDropDown = [];
this.viewBuUnitDropDown = [];
this.appoinmentDropDown = [];
this.roleDropDown = [];
this.selectedRole = [];
this.selectedLeaveGroup = [];
this.selectedTransportBuId = [];
this.viewBuUnit = null;
this.planBuUnit = null;
this.parentBuUnit = null;
this.parentBuUnitDropDownLoading = false;
this.dropdownSettingsBplan = {};
this.dropdownSettingsBview = {};
this.buUnitDropDownLoading = false;
this.planBuUnitDropDownLoading = false;
this.viewBuUnitDropDownLoading = false;
this.apppoinmentDropDownLoading = false;
this.roleDropDownLoading = false;
this.isUserEdited = false;
this.isUpdateLoading = false;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.apoinmentSearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({
fields: new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](JSON.stringify(this.fields)),
});
this.unsubcribe = this.form.valueChanges.subscribe((update) => {
this.fields = JSON.parse(update.fields);
});
this.initForm();
this.parentbussinesUnitPTable = {
sortBy: 'createdAt',
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
filter: {
type: 'plan',
},
};
this.dropdownSettingsBplan = {
singleSelection: false,
text: 'Bussiness unit (Plan)',
selectAllText: 'Select All',
unSelectAllText: 'UnSelect All',
enableSearchFilter: true,
classes: 'myclass custom-class',
labelKey: 'orgName',
primaryKey: '_id',
badgeShowLimit: 1,
// showCheckbox:true,
lazyLoading: true,
noDataLabel: 'No Data Available',
maxHeight: 250
};
this.dropdownSettingsBview = {
singleSelection: false,
text: 'Business unit (view)',
selectAllText: 'Select All',
unSelectAllText: 'UnSelect All',
enableSearchFilter: true,
classes: 'myclass custom-class',
labelKey: 'orgName',
primaryKey: '_id',
badgeShowLimit: 1,
// showCheckbox:true,
lazyLoading: true,
noDataLabel: 'No Data Available',
maxHeight: 250
};
// this.rolePTable = {
// sortWith: 'createdBy',
// sortBy: 'desc',
// data: [],
// page: 1,
// total: 0,
// limit: 10,
// search: '',
// };
this.bussinesUnitviewPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
filter: {
type: 'view',
},
};
this.bussinesUnitplanPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
filter: {
type: 'plan',
},
};
this.appoinmentPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.CustomFieldPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.apoinmentSearchSubscription = this.apoinmentSearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500))))
.subscribe((input) => {
this.appoinmentPTable.page = 1;
this.loadAppoinment();
});
}
onSortApoinment({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.appoinmentPTable.sortBy = direction;
this.appoinmentPTable.sortWith = column;
direction && this.loadAppoinment();
}
onPageChangeApoinment(page) {
this.appoinmentPTable.page = page;
this.loadAppoinment();
}
onLimitChangeApoinment() {
this.loadAppoinment();
}
ngOnInit() {
this.submitted = true;
this.loadAppoinment();
this.loadAllBusinessUnit();
this.loadRole();
this.displayAssignData();
this.displayTransportBuIdData();
!this.userId && this.getLoginFields();
this.userId && this.getSingleUserEdit(this.userId);
}
loadAllBusinessUnit() {
this.buUnitDropDownLoading = true;
this.buUnit.getBusinessUnitData().subscribe((res) => {
var _a, _b, _c;
this.buUnitDropDownLoading = false;
this.parentBuUnitDropDown = ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.planBussinessUnitId) || [];
this.planBuUnitDropDown = ((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.planBussinessUnitId) || [];
this.viewBuUnitDropDown = ((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.planBussinessUnitId) || [];
}, (error) => {
this.buUnitDropDownLoading = false;
});
}
displayAssignData() {
this.userService.getAssignLeave().subscribe((res) => {
this.assignData = res['data'];
});
}
displayTransportBuIdData() {
this.userService.getTransportBu().subscribe((res) => {
this.transportBuIdData = res['data'];
console.log('this.transportBuIdData', this.transportBuIdData);
});
}
getFields() {
return this.fields;
}
getSingleUserEdit(userId) {
const payload = { "userId": userId };
this.isUserEdited = true;
const sub = this.userService
.getOneUser(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data: { data: { name, staffId, email, appointmentId, contactNumber, allBUAccess, status, role, leaveGroupId, transportBuId, parentBussinessUnitId, planBussinessUnitId, viewBussinessUnitId, otherFields } }, }) => {
var _a;
const fileds = otherFields === null || otherFields === void 0 ? void 0 : otherFields.sort((a, b) => a.indexNum - b.indexNum);
this.fields = fileds;
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({});
(_a = this.fields) === null || _a === void 0 ? void 0 : _a.forEach((x) => {
if (x.type == 'checkbox') {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({}));
x.options.forEach((o) => {
this.form.get(x.fieldName).addControl(o.key, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](false));
});
}
else {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](x.value || '', x.required ? _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required : null));
}
});
const PControl = this.PlanBuUnitFieldsControl;
const VControl = this.ViewBuUnitControl;
this.planBuUnit = planBussinessUnitId;
this.viewBuUnit = viewBussinessUnitId;
planBussinessUnitId === null || planBussinessUnitId === void 0 ? void 0 : planBussinessUnitId.forEach((element) => {
let field = this.formBuilder.group({
string: [
element.orgName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
PControl.push(field);
});
viewBussinessUnitId === null || viewBussinessUnitId === void 0 ? void 0 : viewBussinessUnitId.forEach((element) => {
let field = this.formBuilder.group({
string: [
element.orgName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
VControl.push(field);
});
if (appointmentId) {
this.appoinmentDropDown = [
...this.appoinmentDropDown,
{ _id: appointmentId._id, name: appointmentId.name },
];
}
this.createUserForm.patchValue({
name: name,
staffId: staffId,
email: email,
appointmentId: appointmentId === null || appointmentId === void 0 ? void 0 : appointmentId._id,
contactNumber: contactNumber,
allBUAccess: allBUAccess,
status: status,
role: {
string: role === null || role === void 0 ? void 0 : role.name,
_id: role === null || role === void 0 ? void 0 : role._id,
},
leaveGroupId: {
string: leaveGroupId === null || leaveGroupId === void 0 ? void 0 : leaveGroupId.name,
_id: leaveGroupId === null || leaveGroupId === void 0 ? void 0 : leaveGroupId._id,
},
transportBuId: {
string: transportBuId === null || transportBuId === void 0 ? void 0 : transportBuId.name,
_id: transportBuId === null || transportBuId === void 0 ? void 0 : transportBuId._id,
},
parentBussinessUnitId: {
string: parentBussinessUnitId === null || parentBussinessUnitId === void 0 ? void 0 : parentBussinessUnitId.orgName,
_id: parentBussinessUnitId === null || parentBussinessUnitId === void 0 ? void 0 : parentBussinessUnitId._id,
},
});
this.isUserEdited = false;
}, (error) => {
this.toastService.error('No Data found');
this.isUserEdited = false;
});
}
overview() {
this.overViewEvent.next(null);
}
getLoginFields() {
const _a = this.CustomFieldPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const sub = this.CustomFieldService.getCustomField(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data }) => {
const fileds = data.data.sort((a, b) => a.indexNum - b.indexNum);
this.fields = fileds || [];
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({});
this.fields.forEach((x) => {
if (x.type == 'checkbox') {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({}));
x.options.forEach((o) => {
this.form.get(x.fieldName).addControl(o.key, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](false));
});
}
else {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControl"](x.value || '', x.required ? _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required : null));
}
});
}, (error) => { });
}
addApoinment() {
this.loadAppoinment;
this.modelService.open(this.AddSubSection, {
windowClass: 'modal-ui-fix right-align',
});
}
/// apoinment
onSeachAppoinment(value) {
this.appoinmentPTable.limit = 10;
this.appoinmentPTable.search = value.term;
this.loadAppoinment();
}
loadMoreAppoinmentItems(value) {
this.appoinmentPTable.limit = this.appoinmentPTable.limit + 10;
this.loadAppoinment();
}
onClearAppoinmentDropdown(value) {
if (value === undefined) {
this.createUserForm.patchValue({
appointmentId: null,
});
this.appoinmentPTable.search = '';
this.loadAppoinment();
this.appoinmentDropDown = [];
this.appoinmentPTable.data = [];
}
}
/// plan buunit
onSeachPlanBuUnit(value) {
this.bussinesUnitplanPTable.limit = 10;
this.bussinesUnitplanPTable.search = value.term;
this.loadBussinessPlanUnit();
}
loadMorePlasnBuUnitItems(value) {
this.bussinesUnitplanPTable.limit = this.bussinesUnitplanPTable.limit + 10;
this.loadBussinessPlanUnit();
}
onClearPlanBuUnitDropdown(value) {
if (value === undefined) {
this.createUserForm.patchValue({
parentBussinessUnitId: {
string: null,
_id: null,
},
});
this.bussinesUnitplanPTable.search = '';
this.loadBussinessPlanUnit();
this.planBuUnitDropDown = [];
this.bussinesUnitplanPTable.data = [];
}
}
// view bu unit
onSeachViewBuUnit(value) {
this.bussinesUnitviewPTable.limit = 10;
this.bussinesUnitviewPTable.search = value.term;
this.loadBussinessViewUnit();
}
loadMoreViewBuUnitItems(value) {
this.bussinesUnitviewPTable.limit = this.bussinesUnitviewPTable.limit + 10;
this.loadBussinessViewUnit();
}
onClearViewBuUnitDropdown(value) {
if (value === undefined) {
this.createUserForm.patchValue({
parentBussinessUnitId: {
string: null,
_id: null,
},
});
this.bussinesUnitviewPTable.search = '';
this.loadBussinessViewUnit();
this.viewBuUnitDropDown = [];
this.bussinesUnitviewPTable.data = [];
}
}
///parent bu unit
onSearchParentBuUnit(value) {
this.parentbussinesUnitPTable.limit = 10;
this.parentbussinesUnitPTable.search = value.term;
this.loadParentBussinessUnit();
}
loadMoreParentBuUnitItems(value) {
this.parentbussinesUnitPTable.limit =
this.parentbussinesUnitPTable.limit + 10;
this.loadParentBussinessUnit();
}
onClearParentBuUnitDropdown(value) {
if (value === undefined) {
// this.viewBussinessUnitForm.patchValue({
// bussinessUnit: null,
// });
// this.parentbussinesUnitPTable.search = '';
// this.loadParentBussinessUnit();
// this.parentBuUnitDropDown = [];
// this.parentbussinesUnitPTable.data = [];
}
}
loadRole() {
this.roleDropDownLoading = true;
// const { data, total, ...rest } = this.rolePTable;
const subscribe = this.roleService
.getUserRoles()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.roleDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const res = response === null || response === void 0 ? void 0 : response.data;
// this.rolePTable.data = res?.roles;;
this.roleDropDown = (res === null || res === void 0 ? void 0 : res.roles) || [];
// this.rolePTable.total = res?.roles?.length;
}, (error) => {
// this.rolePTable.data = [];
// this.rolePTable.total = 0;
// this.toastService.error('No list found');
});
}
loadAppoinment() {
this.apppoinmentDropDownLoading = true;
const _a = this.appoinmentPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.userService
.getAppoinments(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.apppoinmentDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.appoinmentPTable.data = data;
this.appoinmentDropDown = data;
this.appoinmentPTable.total = count;
}, (error) => {
this.appoinmentPTable.data = [];
this.appoinmentPTable.total = 0;
this.toastService.error('No list found');
});
}
loadParentBussinessUnit() {
this.parentBuUnitDropDownLoading = true;
const _a = this.parentbussinesUnitPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.buUnit
.getBussinesUnit(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.parentBuUnitDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.parentBuUnitDropDown = data;
}, (error) => {
this.bussinesUnitplanPTable.data = [];
this.toastService.error('No list found');
});
}
loadBussinessViewUnit() {
this.viewBuUnitDropDownLoading = true;
const _a = this.bussinesUnitviewPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.buUnit
.getBussinesUnit(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.viewBuUnitDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.viewBuUnitDropDown = data;
}, (error) => {
this.bussinesUnitviewPTable.data = [];
this.toastService.error('No list found');
});
}
loadBussinessPlanUnit() {
this.planBuUnitDropDownLoading = true;
const _a = this.bussinesUnitplanPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.buUnit
.getBussinesUnit(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.planBuUnitDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.planBuUnitDropDown = data;
}, (error) => {
this.toastService.error('No list found');
});
}
get PlanBuUnitFieldsControl() {
return this.createUserForm.get('planBussinessUnitId');
}
get ViewBuUnitControl() {
return this.createUserForm.get('viewBussinessUnitId');
}
// get AppoinmentsControl(): FormArray {
// return this.createUserForm.get('appointmentId') as FormArray;
// }
get roleControl() {
return this.createUserForm.get('role');
}
deleteparentBussinesUnit() {
this.createUserForm.patchValue({
parentBussinessUnitId: {
string: null,
_id: null,
},
});
}
deselectBussinesUnitPlan(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.PlanBuUnitFieldsControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
Control === null || Control === void 0 ? void 0 : Control.removeAt(index);
// this.toastService.error(`Business unit (Plan) is already removed`);
}
}
});
}
deselectAllBussinesUnitPlan(value) {
const Control = this.PlanBuUnitFieldsControl;
Control === null || Control === void 0 ? void 0 : Control.clear();
}
addAllBussinesUnitPlan(value) {
if (value && (value === null || value === void 0 ? void 0 : value.length) > 0) {
const Control = this.PlanBuUnitFieldsControl;
Control === null || Control === void 0 ? void 0 : Control.clear();
value === null || value === void 0 ? void 0 : value.map(x => {
let field = this.formBuilder.group({
string: [
x.orgName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [x._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
});
// // this.planBuUnit = [];
// // this.dropdownBplanRef.closeDropdown();
}
}
addBussinesUnitPlan(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.PlanBuUnitFieldsControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.toastService.error(`Business unit (Plan) is already added`);
}
else {
let field = this.formBuilder.group({
string: [
value.orgName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
}
}
});
}
deselectAllBussinesUnitView(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.ViewBuUnitControl;
Control === null || Control === void 0 ? void 0 : Control.clear();
});
}
deselectBussinesUnitView(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.ViewBuUnitControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
Control === null || Control === void 0 ? void 0 : Control.removeAt(index);
// this.toastService.error(`Business unit (Plan) is already removed`);
}
}
});
}
addAllBussinesUnitView(value) {
if (value && (value === null || value === void 0 ? void 0 : value.length) > 0) {
const Control = this.ViewBuUnitControl;
Control === null || Control === void 0 ? void 0 : Control.clear();
value === null || value === void 0 ? void 0 : value.map(x => {
let field = this.formBuilder.group({
string: [
x.orgName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [x._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
});
}
}
addBussinesUnitView(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.ViewBuUnitControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.toastService.error(`${value.name} is already added`);
}
else {
let field = this.formBuilder.group({
string: [
value.orgName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
}
}
});
}
addParentBussinentUnit(value) {
if (value) {
this.createUserForm.patchValue({
parentBussinessUnitId: {
string: value.orgName,
_id: value._id,
},
});
this.parentBuUnit = [];
}
}
deletePlanBuUnitFields(index, id) {
var _a;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.PlanBuUnitFieldsControl;
Control.removeAt(index);
const buUnitIndex = yield this.planBuUnit.findIndex((x) => x._id === id);
(_a = this.planBuUnit) === null || _a === void 0 ? void 0 : _a.splice(buUnitIndex, 1);
});
}
addRole(value) {
if (value) {
this.createUserForm.patchValue({
role: {
string: value.name,
_id: value._id,
},
});
this.selectedRole = [];
}
}
addAssignLeave(value) {
if (value) {
this.createUserForm.patchValue({
leaveGroupId: {
string: value.name,
_id: value._id,
},
});
this.selectedLeaveGroup = [];
}
}
addTransportBU(value) {
if (value) {
this.createUserForm.patchValue({
transportBuId: {
string: value.name,
_id: value._id,
},
});
this.selectedTransportBuId = [];
}
}
deleteroleFields(index) {
this.createUserForm.patchValue({
role: {
string: null,
_id: null,
},
});
}
deleteAssignFields(index) {
this.createUserForm.patchValue({
leaveGroupId: {
string: null,
_id: null,
},
});
}
deleteTransportBuFields() {
this.createUserForm.patchValue({
transportBuId: {
string: null,
_id: null,
},
});
}
deleteViewBuUnitFields(index, id) {
var _a;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.ViewBuUnitControl;
Control.removeAt(index);
const buUnitIndex = yield this.viewBuUnit.findIndex((x) => x._id === id);
(_a = this.viewBuUnit) === null || _a === void 0 ? void 0 : _a.splice(buUnitIndex, 1);
});
}
isCheckModel($event) {
this.createUserForm.patchValue({});
}
appoinmentCreate() {
if (this.createApoinmentForm.valid) {
if (!this.isAppoinmentEdited) {
this.userService
.createAppoinment(this.createApoinmentForm.value)
.subscribe((res) => {
this.appoinemtnForm();
this.loadAppoinment();
this.toastService.success('Appoinment Created Succesfully');
}, (error) => {
this.toastService.error('This appointment name already exists');
});
}
else {
const payload = {
appointmentId: this.onAppoinmentEditID,
name: this.createApoinmentForm.get('name').value,
status: this.createApoinmentForm.get('status').value
};
this.userService
.updateAppoinment(payload)
.subscribe((res) => {
this.appoinemtnForm();
this.loadAppoinment();
this.isAppoinmentEdited = false;
this.toastService.success('Appoinment Updated Succesfully');
}, (error) => {
this.toastService.error('This appointment name already exists');
});
}
}
}
onEditAppoinment(item) {
this.isAppoinmentEdited = true;
this.onAppoinmentEditID = item._id;
this.createApoinmentForm.patchValue({
name: item.name,
});
}
onCreateUser() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (!this.createUserForm.valid) {
return this.toastService.error('Please fill up all mandatory fields');
}
this.isUpdateLoading = true;
const PControl = this.PlanBuUnitFieldsControl;
const VControl = this.ViewBuUnitControl;
// const appointmentsControl = this.AppoinmentsControl
let viewBuUnit = yield VControl.value.map((item) => item._id);
let planBuUnit = yield PControl.value.map((item) => item._id);
// let appointmentUnit = await appointmentsControl.value.map((item) => item._id);
const role = Object.values(this.createUserForm.get('role').value);
const leaveGroupId = Object.values(this.createUserForm.get('leaveGroupId').value);
const transportBuId = Object.values(this.createUserForm.get('transportBuId').value);
const parentUnit = Object.values(this.createUserForm.get('parentBussinessUnitId').value);
const modifiedData = this.fields.map((rawProduct) => {
return {
fieldId: rawProduct._id,
editable: rawProduct.editable,
};
});
const values = Object.values(this.form.value);
let newOjbect = modifiedData.map((item, i) => Object.assign({}, item, { value: values[i] }));
const _a = this.createUserForm.value, { status } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["status"]);
const data = Object.assign(Object.assign({}, rest), { status, role: role[1], leaveGroupId: leaveGroupId[1] || null, transportBuId: transportBuId[1] || null, parentBussinessUnitId: parentUnit[1], planBussinessUnitId: [...planBuUnit], viewBussinessUnitId: [...viewBuUnit], otherFields: newOjbect, allBUAccess: this.createUserForm.get('allBUAccess').value ? 1 : 0 });
if (this.userId) {
data['userId'] = this.userId;
this.userService.updateUser(data).subscribe((res) => {
this.submitted = false;
this.initForm();
this.form.reset();
// this.activeId = 1;
this.isUpdateLoading = false;
this.toastService.success(`User Updated`);
this.overViewEvent.emit(null);
}, (error) => {
this.isUpdateLoading = false;
});
}
else {
data['isFlexiStaff'] = 0;
this.userService.createUser(data).subscribe((res) => {
this.initForm();
this.form.reset();
// this.activeId = 1;
this.isUpdateLoading = false;
this.toastService.success(`User Created`);
this.overViewEvent.emit(null);
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
this.isUpdateLoading = false;
});
}
});
}
noWhitespaceValidator(control) {
const isWhitespace = (control.value || '').trim().length === 0;
const isValid = !isWhitespace;
return isValid ? null : { whitespace: true };
}
checkLimit(min, max) {
return (c) => {
if (c.value && (isNaN(c.value) || c.value < min || c.value > max)) {
return { range: true };
}
return null;
};
}
initForm() {
this.createUserForm = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, this.noWhitespaceValidator]],
staffId: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
email: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern(src_app_constants__WEBPACK_IMPORTED_MODULE_6__["EMAIL_PATTERN"])]],
appointmentId: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
status: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
// isFlexiStaff:[0],
staffPassExpiryDate: [""],
contactNumber: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].maxLength(13)]],
allBUAccess: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
role: this.formBuilder.group({
string: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
}),
leaveGroupId: this.formBuilder.group({
string: [''],
_id: [''],
}),
transportBuId: this.formBuilder.group({
string: [''],
_id: [''],
}),
parentBussinessUnitId: this.formBuilder.group({
string: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
}),
planBussinessUnitId: this.formBuilder.array([]),
viewBussinessUnitId: this.formBuilder.array([]),
otherFields: this.formBuilder.array([]),
});
this.appoinemtnForm();
}
get f() {
return this.createUserForm.controls;
}
appoinemtnForm() {
this.createApoinmentForm = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, this.noWhitespaceValidator]],
status: [1],
});
}
onDeleteAppoinment(id) {
const appointId = { appointmentId: id };
const subscribe = this.userService
.deleteAppoinment(appointId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.apppoinmentDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success(`Appointment Deleted`);
this.loadAppoinment();
}, (error) => { });
}
}
AddEditUsersComponent.ɵfac = function AddEditUsersComponent_Factory(t) { return new (t || AddEditUsersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_7__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__["CompanyService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_12__["RoleService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_13__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_14__["CustomFieldService"])); };
AddEditUsersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AddEditUsersComponent, selectors: [["app-add-edit-users"]], viewQuery: function AddEditUsersComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c2, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.dropdownBplanRef = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.myInputVariable = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddSubSection = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { userId: "userId" }, outputs: { overViewEvent: "overViewEvent" }, decls: 128, vars: 68, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [3, "formGroup"], ["class", "row", 4, "ngIf"], [1, "row", "mb-2"], [1, "font-weight-bold", "col-md-3"], [1, "form-group", "col-md-1", "pr-0"], ["type", "checkbox", "id", "active", "formControlName", "allBUAccess"], ["for", "active", 1, "radio-inline", "ml-2"], ["formGroupName", "parentBussinessUnitId", 1, "col-md-3", "mt-2"], [1, "field-mandatory"], ["bindLabel", "name", "placeholder", "Parent Business unit", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect", "loading", "ngModel", "ngModelOptions", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], ["class", "row red-container mt-3 ml-0", 4, "ngIf"], [1, "col-md-3", "mt-2", "angular2-multiselect-dropdown"], ["class", "loader-multiselect-icon", 4, "ngIf"], [3, "data", "ngModel", "settings", "ngModelOptions", "ngModelChange", "onSelect", "onDeSelect", "onSelectAll", "onDeSelectAll"], ["formArrayName", "planBussinessUnitId", "class", "row red-container mt-3 ml-0", 4, "ngFor", "ngForOf"], ["formArrayName", "viewBussinessUnitId", "class", "row red-container mt-3 ml-0", 4, "ngFor", "ngForOf"], [1, "row", "mb-2", "mt-3"], [1, "col-md-3", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], ["type", "text", "placeholder", " Name", "required", "", "formControlName", "name", "maxlength", "40", 1, "form-control"], ["type", "text", "placeholder", "Staff ID", "required", "", "formControlName", "staffId", "maxlength", "40", 1, "form-control"], [1, "col-md-3"], [1, "btn", "p-1", "ml-1", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-plus-circle"], ["bindLabel", "name", "bindValue", "_id", "placeholder", "Select appoinment", "formControlName", "appointmentId", 3, "items", "searchable", "closeOnSelect", "clearable", "multiple", "loading", "search", "scrollToEnd", "clear"], ["for", "exampleInputEmail1", 1, "form-bg"], ["type", "text", "placeholder", "Contact Number", "maxlength", "13", "formControlName", "contactNumber", "pattern", "[+\\d]*", "oninput", "this.value = this.value.replace(/[^+\\d]/g, '')", 1, "form-control"], ["type", "text", "maxlength", "40", "placeholder", "Email", "formControlName", "email", 1, "form-control"], [4, "ngIf"], [3, "formGroup", 4, "ngIf"], ["formGroupName", "role", 1, "col-md-3", "form-group"], ["bindLabel", "name", "placeholder", "Select role", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "loading", "ngModel", "ngModelOptions", "change", "ngModelChange"], [1, "col-md-6", "user-role"], [1, "row", "my-2"], ["formGroupName", "leaveGroupId", 1, "col-md-3", "form-group"], ["formGroupName", "transportBuId", 1, "col-md-3", "form-group"], ["bindLabel", "name", "placeholder", "Select Transport Bu", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "loading", "ngModel", "ngModelOptions", "change", "ngModelChange"], [1, "card-footer"], [1, "d-flex"], [1, "align-items-center", "btn", "btn-outline-dark", "d-flex", 3, "click"], [1, "material-icons", "mr-1"], [1, "align-items-center", "btn-success", "btn", "d-flex", "ml-1", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], ["class", "material-icons ml-1", 4, "ngIf"], ["class", "loading-class", 4, "ngIf"], ["AddSubSection", ""], [1, "row"], [1, "form-group", "col-md-2", "pr-0"], ["type", "radio", "formControlName", "status", 3, "value"], ["for", "std-row", 1, "radio-inline", "ml-2"], ["for", "custom-row", 1, "radio-inline", "ml-2"], [3, "value"], [1, "row", "red-container", "mt-3", "ml-0"], [1, "col-10", "selected-text"], [1, "col-2", "cancel-btn-container"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 3, "click"], [1, "loader-multiselect-icon"], ["formArrayName", "planBussinessUnitId", 1, "row", "red-container", "mt-3", "ml-0"], ["formArrayName", "viewBussinessUnitId", 1, "row", "red-container", "mt-3", "ml-0"], [2, "color", "red", "margin-top", "4px"], [3, "gridView", "formGroup", "fields"], [1, "text-items", "list-ui"], ["class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 3, "click", 4, "ngIf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", 3, "click"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-1"], [1, "material-icons", "ml-1"], [1, "loading-class"], ["src", "./assets/images/loading.gif"], [1, "text-center"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], ["type", "button", "aria-label", "Close", 1, "btn", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-lg"], [1, "col-md-12"], ["for", "exampleInputEmail1"], ["type", "text", "formControlName", "name", "placeholder", "Appoinment", 1, "form-control"], [1, "btn", "btn-add", "pull-right", 3, "disabled", "click"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "name", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"]], template: function AddEditUsersComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AddEditUsersComponent_div_5_Template, 11, 2, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "ALL BU TOKEN");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "ACTIVE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "Business unit (Parent)");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "ng-select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AddEditUsersComponent_Template_ng_select_change_22_listener($event) { return ctx.addParentBussinentUnit($event); })("ngModelChange", function AddEditUsersComponent_Template_ng_select_ngModelChange_22_listener($event) { return ctx.parentBuUnit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, AddEditUsersComponent_ng_option_23_Template, 2, 2, "ng-option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, AddEditUsersComponent_div_24_Template, 5, 1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, " Business unit (Plan) ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, AddEditUsersComponent_div_28_Template, 2, 0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "angular2-multiselect", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AddEditUsersComponent_Template_angular2_multiselect_ngModelChange_29_listener($event) { return ctx.planBuUnit = $event; })("onSelect", function AddEditUsersComponent_Template_angular2_multiselect_onSelect_29_listener($event) { return ctx.addBussinesUnitPlan($event); })("onDeSelect", function AddEditUsersComponent_Template_angular2_multiselect_onDeSelect_29_listener($event) { return ctx.deselectBussinesUnitPlan($event); })("onSelectAll", function AddEditUsersComponent_Template_angular2_multiselect_onSelectAll_29_listener($event) { return ctx.addAllBussinesUnitPlan($event); })("onDeSelectAll", function AddEditUsersComponent_Template_angular2_multiselect_onDeSelectAll_29_listener($event) { return ctx.deselectAllBussinesUnitPlan($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "c-badge");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](31, AddEditUsersComponent_ng_template_31_Template, 1, 1, "ng-template");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](32, AddEditUsersComponent_div_32_Template, 5, 1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, " Business unit (view) ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](36, AddEditUsersComponent_div_36_Template, 2, 0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "angular2-multiselect", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AddEditUsersComponent_Template_angular2_multiselect_ngModelChange_37_listener($event) { return ctx.viewBuUnit = $event; })("onSelect", function AddEditUsersComponent_Template_angular2_multiselect_onSelect_37_listener($event) { return ctx.addBussinesUnitView($event); })("onDeSelect", function AddEditUsersComponent_Template_angular2_multiselect_onDeSelect_37_listener($event) { return ctx.deselectBussinesUnitView($event); })("onSelectAll", function AddEditUsersComponent_Template_angular2_multiselect_onSelectAll_37_listener($event) { return ctx.addAllBussinesUnitView($event); })("onDeSelectAll", function AddEditUsersComponent_Template_angular2_multiselect_onDeSelectAll_37_listener($event) { return ctx.deselectAllBussinesUnitView($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "c-badge");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](39, AddEditUsersComponent_ng_template_39_Template, 1, 1, "ng-template");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](40, AddEditUsersComponent_div_40_Template, 5, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](43, "USER INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, "Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](51, "input", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](55, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](57, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](58, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](60, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](61, " Appoinment ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_Template_button_click_62_listener() { return ctx.addApoinment(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](63, "i", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](65, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "ng-select", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function AddEditUsersComponent_Template_ng_select_search_66_listener($event) { return ctx.onSeachAppoinment($event); })("scrollToEnd", function AddEditUsersComponent_Template_ng_select_scrollToEnd_66_listener($event) { return ctx.loadMoreAppoinmentItems($event); })("clear", function AddEditUsersComponent_Template_ng_select_clear_66_listener($event) { return ctx.onClearAppoinmentDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](67, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](69, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](71, "Contact number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](72, "input", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](74, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](76, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](78, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](79, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](80, AddEditUsersComponent_ng_container_80_Template, 3, 0, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](81, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](83, "CUSTOM FIELD");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](84, AddEditUsersComponent_form_84_Template, 2, 4, "form", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](85, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](87, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](88, "ADDITIONAL USER INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](89, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](90, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](91, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](92, "Roles");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](93, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](94, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](95, "ng-select", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AddEditUsersComponent_Template_ng_select_change_95_listener($event) { return ctx.addRole($event); })("ngModelChange", function AddEditUsersComponent_Template_ng_select_ngModelChange_95_listener($event) { return ctx.selectedRole = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](96, AddEditUsersComponent_ng_option_96_Template, 2, 2, "ng-option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](97, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](98, AddEditUsersComponent_ul_98_Template, 5, 2, "ul", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](99, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](100, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](101, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](102, "Assign Leave Grouping");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](103, "ng-select", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AddEditUsersComponent_Template_ng_select_change_103_listener($event) { return ctx.addAssignLeave($event); })("ngModelChange", function AddEditUsersComponent_Template_ng_select_ngModelChange_103_listener($event) { return ctx.selectedLeaveGroup = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](104, AddEditUsersComponent_ng_option_104_Template, 2, 2, "ng-option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](105, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](106, AddEditUsersComponent_ul_106_Template, 5, 2, "ul", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](107, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](108, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](109, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](110, "Transport BU");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](111, "ng-select", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AddEditUsersComponent_Template_ng_select_change_111_listener($event) { return ctx.addTransportBU($event); })("ngModelChange", function AddEditUsersComponent_Template_ng_select_ngModelChange_111_listener($event) { return ctx.selectedTransportBuId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](112, AddEditUsersComponent_ng_option_112_Template, 2, 2, "ng-option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](113, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](114, AddEditUsersComponent_ul_114_Template, 5, 2, "ul", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](115, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](116, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](117, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_Template_button_click_117_listener() { return ctx.overview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](118, "span", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](119, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](120, "Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](121, "button", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AddEditUsersComponent_Template_button_click_121_listener() { return ctx.onCreateUser(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](122);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](123, AddEditUsersComponent_span_123_Template, 1, 0, "span", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](124, AddEditUsersComponent_span_124_Template, 2, 0, "span", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](125, AddEditUsersComponent_div_125_Template, 4, 0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](126, AddEditUsersComponent_ng_template_126_Template, 60, 17, "ng-template", null, 50, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.userId ? "UPDATE" : "ADD", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.createUserForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("loading", ctx.buUnitDropDownLoading)("ngModel", ctx.parentBuUnit)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](62, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.parentBuUnitDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.createUserForm.get("parentBussinessUnitId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.buUnitDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("data", ctx.planBuUnitDropDown)("ngModel", ctx.planBuUnit)("settings", ctx.dropdownSettingsBplan)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](63, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.PlanBuUnitFieldsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.buUnitDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("data", ctx.planBuUnitDropDown)("ngModel", ctx.viewBuUnit)("settings", ctx.dropdownSettingsBview)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](64, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.ViewBuUnitControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx.appoinmentDropDown)("searchable", true)("closeOnSelect", true)("clearable", true)("multiple", false)("loading", ctx.apppoinmentDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.createUserForm.controls.email.touched && (ctx.createUserForm.controls == null ? null : ctx.createUserForm.controls.email == null ? null : ctx.createUserForm.controls.email.errors == null ? null : ctx.createUserForm.controls.email.errors.pattern));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.fields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.createUserForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("loading", ctx.roleDropDownLoading)("ngModel", ctx.selectedRole)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](65, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.roleDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.createUserForm.get("role.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("loading", ctx.roleDropDownLoading)("ngModel", ctx.selectedLeaveGroup)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](66, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.assignData);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.createUserForm.get("leaveGroupId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("loading", ctx.roleDropDownLoading)("ngModel", ctx.selectedTransportBuId)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](67, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.transportBuIdData);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.createUserForm.get("transportBuId.string").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isUpdateLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.userId ? "Update User" : "Add User", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isUpdateLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isUpdateLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isUserEdited);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_15__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_15__["NgForOf"], angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_18__["AngularMultiSelect"], angular2_multiselect_dropdown__WEBPACK_IMPORTED_MODULE_18__["ɵf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["PatternValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArrayName"], _shared_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_19__["DynamicFormBuilderComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbPagination"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.mat-toolbar[_ngcontent-%COMP%] {\n background: #ffffff; }.c-btn[_ngcontent-%COMP%] {\n background: #fff;\n border: 1px solid #ccc;\n color: #333; }.selected-list[_ngcontent-%COMP%] .c-list[_ngcontent-%COMP%] .c-token[_ngcontent-%COMP%] {\n background: #0079FE; }.selected-list[_ngcontent-%COMP%] .c-list[_ngcontent-%COMP%] .c-token[_ngcontent-%COMP%] .c-label[_ngcontent-%COMP%] {\n color: #fff; }.selected-list[_ngcontent-%COMP%] .c-list[_ngcontent-%COMP%] .c-token[_ngcontent-%COMP%] .c-remove[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n fill: #fff; }.selected-list[_ngcontent-%COMP%] .c-angle-down[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .selected-list[_ngcontent-%COMP%] .c-angle-up[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n fill: #333; }.dropdown-list[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover {\n background: #f5f5f5; }.arrow-up[_ngcontent-%COMP%], .arrow-down[_ngcontent-%COMP%] {\n border-bottom: 15px solid #fff; }.arrow-2[_ngcontent-%COMP%] {\n border-bottom: 15px solid #ccc; }.list-area[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n background: #fff;\n box-shadow: 0px 1px 5px #959595; }.select-all[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc; }.list-filter[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc; }.list-filter[_ngcontent-%COMP%] .c-search[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n fill: #888; }.list-filter[_ngcontent-%COMP%] .c-clear[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n fill: #888; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:focus + label[_ngcontent-%COMP%]:before, .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:hover + label[_ngcontent-%COMP%]:before {\n border-color: #0079FE;\n background-color: #f2f2f2; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] + label[_ngcontent-%COMP%] {\n color: #000; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:before {\n color: #0079FE;\n border: 1px solid #0079FE; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:after {\n background-color: #0079FE; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]:before {\n border-color: #cccccc; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:disabled:checked + label[_ngcontent-%COMP%]:before {\n background-color: #cccccc; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:after {\n border-color: #ffffff; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"radio\"][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before {\n background-color: white; }.pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before {\n background: #0079FE; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:focus + label[_ngcontent-%COMP%]:before, .single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:hover + label[_ngcontent-%COMP%]:before {\n border-color: #0079FE;\n background-color: #f2f2f2; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] + label[_ngcontent-%COMP%] {\n color: #000; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:before {\n color: transparent !important;\n border: 0px solid #0079FE; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:after {\n background-color: transparent !important; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:disabled + label[_ngcontent-%COMP%]:before {\n border-color: #cccccc; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:disabled:checked + label[_ngcontent-%COMP%]:before {\n background-color: #cccccc; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]:after {\n border-color: #0079FE; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"radio\"][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before {\n background-color: white; }.single-select-mode[_ngcontent-%COMP%] .pure-checkbox[_ngcontent-%COMP%] input[type=\"checkbox\"][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before {\n background: none !important; }.selected-item[_ngcontent-%COMP%] {\n background: #e9f4ff; }.btn-iceblue[_ngcontent-%COMP%] {\n background: #0079FE;\n border: 1px solid #ccc;\n color: #fff; }ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}.business-unit-plan[_ngcontent-%COMP%] {\n margin-left: -18px;\n}.user-role[_ngcontent-%COMP%] {\n margin-top: 20px;\n}.justifyContent[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}.red-container[_ngcontent-%COMP%] {\n background-color: #a42138;\n width: 100%;\n height: auto;\n color: white;\n padding: 10px;\n border-radius: 5px;\n font-weight: 500;\n}.cancel-btn-container[_ngcontent-%COMP%] {\n cursor: pointer;\n}.selected-text[_ngcontent-%COMP%] {\n font-size: 100%;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n} .angular2-multiselect-dropdown .selected-list .countplaceholder {\n display: none;\n} .angular2-multiselect-dropdown .selected-list .c-list .c-token .c-remove {\n display: none;\n} .angular2-multiselect-dropdown .selected-list .c-list .c-token {\n background: #a42138;\n color: white;\n} .angular2-multiselect-dropdown .pure-checkbox input[type=checkbox]:checked + label:before {\n background: #a42138;\n} .angular2-multiselect-dropdown .pure-checkbox input[type=checkbox] + label:before {\n color: #a42138;\n border: 1px solid #a42138;\n} .angular2-multiselect-dropdown .selected-item {\n background: none;\n}.loader-multiselect-icon[_ngcontent-%COMP%] {\n width: 90%;\n display: block;\n height: 80px;\n position: absolute;\n margin-top: 0px;\n text-decoration: none;\n pointer-events: none;\n cursor: not-allowed;\n z-index: 100000000000000020;\n}.loader-multiselect-icon[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\n height: 20px;\n line-height: 20px;\n position: relative;\n box-sizing: border-box;\n color: currentColor;\n float: right;\n margin-right: 21px;\n margin-top: 3px;\n}.loader-multiselect-icon[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]::before, .loader-multiselect-icon[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]::after {\n content: \"\";\n}.loader-multiselect-icon[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]::before {\n width: 1.3em;\n height: 1.3em;\n animation: k-i-animation 0.7s linear infinite;\n}.loader-multiselect-icon[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]::before, .loader-multiselect-icon[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]::after {\n position: absolute;\n top: 50%;\n left: 50%;\n display: inline-block;\n content: \"\";\n border-radius: 50%;\n border-width: 0.05em;\n border-style: solid;\n border-color: currentColor;\n border-top-color: transparent;\n border-bottom-color: transparent;\n background-color: transparent;\n}@keyframes k-i-animation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}.loader-multiselect-icon[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]::after {\n margin-top: 0.4em;\n margin-left: 0.4em;\n background: #bdbdbd;\n width: 0.5em;\n height: 0.5em;\n animation: k-loading-animation reverse 1.4s linear infinite;\n}@keyframes k-loading-animation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJub2RlX21vZHVsZXMvYW5ndWxhcjItbXVsdGlzZWxlY3QtZHJvcGRvd24vdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzIiwic3JjL2FwcC91c2Vycy9wYWdlcy91c2Vycy9jcmVhdGUtdXNlcnMvYWRkLWVkaXQtdXNlcnMvYWRkLWVkaXQtdXNlcnMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsaURBQWlELGVBQWUsQ0FBQyxpQ0FBaUMsQ0FBQyx1REFBdUQsZUFBZSxDQUFDLDJEQUEyRCxRQUFRLENBQUMseUNBQXlDLENBQUMsc0JBQXNCLENBQUMsaUVBQWlFLHlDQUF5QyxDQUFDLGtFQUFrRSw0QkFBNEIsQ0FBQywyQkFBMkIsQ0FBQywrREFBK0QseUJBQXlCLENBQUMsd0JBQXdCLENBQUMseUVBQXlFLG9CQUFvQixDQUFDLDBFQUEwRSxDQUFDLG1EQUFtRCx3QkFBd0IsQ0FBQyx5Q0FBeUMsWUFBWSxDQUFDLGdDQUFnQyxVQUFVLENBQUMscUJBQXFCLENBQUMsaUJBQWlCLENBQUMscUJBQXFCLENBQUMsZUFBZSxDQUFDLGtCQUFrQixDQUFDLHNDQUFzQyxtQ0FBbUMsQ0FBQyxvREFBb0Qsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsZ0VBQWdFLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxvRUFBb0UsVUFBVSxDQUFDLGlEQUFpRCxXQUFXLENBQUMsK0VBQStFLE9BQU8sQ0FBQyxNQUFNLENBQUMsaUJBQWlCLENBQUMsa0JBQWtCLENBQUMsMkZBQTJGLGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLG9HQUFvRyx3QkFBd0IsQ0FBQyx3QkFBd0IsQ0FBQyxvSEFBb0gsYUFBYSxDQUFDLHVFQUF1RSxlQUFlLENBQUMsZ0JBQWdCLENBQUMsbUZBQW1GLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyxpRkFBaUYsY0FBYyxDQUFDLGlCQUFpQixDQUFDLHdCQUF3QixDQUFDLGlCQUFpQixDQUFDLGdCQUFnQixDQUFDLDZGQUE2RixjQUFjLENBQUMsZUFBZSxDQUFDLG1HQUFtRyx3QkFBd0IsQ0FBQyxtSEFBbUgsZ0JBQWdCLENBQUMsK0hBQStILGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyxpR0FBaUcsb0JBQW9CLENBQUMsZUFBZSxDQUFDLGdHQUFnRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsc0dBQXNHLHdCQUF3QixDQUFDLHFHQUFxRyw4QkFBOEIsQ0FBQyxpSEFBaUgsNkJBQTZCLENBQUMsaUJBQWlCLENBQUMsc0dBQXNHLDZCQUE2QixDQUFDLGtIQUFrSCxhQUFhLENBQUMsOEJBQThCLENBQUMsaUZBQWlGLG1CQUFtQixDQUFDLDZGQUE2RixtQkFBbUIsQ0FBQyx1RkFBdUYsT0FBTyxDQUFDLGtCQUFrQixDQUFDLGdCQUFnQixDQUFDLG1HQUFtRyxpQkFBaUIsQ0FBQyxjQUFjLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyw2Q0FBNkMsYUFBYSxDQUFDLDRCQUE0QixtQkFBbUIsQ0FBQyx3Q0FBd0MsbUJBQW1CLENBQUMsNkJBQTZCLFVBQVUsQ0FBQyxpQkFBaUIsQ0FBQyx5Q0FBeUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLDZDQUE2QyxxQkFBcUIsQ0FBQyx1Q0FBdUMseUNBQXlDLENBQUMsa0JBQWtCLENBQUMsMEJBQTBCLENBQUMsbUJBQW1CLHFCQUFxQixDQUFDLHFCQUFxQixDQUFDLG1DQUFtQyxDQUFDLE1BQU0sQ0FBQyxvQ0FBb0MsUUFBUSxDQUFDLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyxtRkFBbUYsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsaUNBQWlDLFdBQVcsQ0FBQywyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQywyQkFBMkIsQ0FBQyxrQkFBa0IsQ0FBQyxpRkFBaUYsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsdUNBQXVDLDRCQUE0QixDQUFDLGVBQWUsQ0FBQyx1Q0FBdUMseUJBQXlCLENBQUMsZUFBZSxDQUFDLHlEQUF5RCx3QkFBZ0IsQ0FBaEIsZ0JBQWdCLENBQUMsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLHNCQUFzQixDQUFDLGNBQWMsQ0FBQyw0RUFBNEUsY0FBYyxDQUFDLDBFQUEwRSx3QkFBd0IsQ0FBQyx5S0FBeUssd0JBQXdCLENBQUMsZUFBZSxDQUFDLHVEQUF1RCxxQkFBcUIsQ0FBQyxzQkFBc0IsQ0FBQyxnQkFBZ0IsQ0FBQyxxS0FBcUssVUFBVSxDQUFDLHdCQUF3QixDQUFDLHVNQUF1TSxlQUFlLENBQUMsd0VBQXdFLHdCQUF3QixDQUFDLFVBQVUsQ0FBQywwRUFBMEUsVUFBVSxDQUFDLHVFQUF1RSxpQkFBaUIsQ0FBQyxtRkFBbUYsa0JBQWtCLENBQUMsY0FBYyxDQUFDLHFFQUFxRSxhQUFhLENBQUMsZUFBZSxDQUFDLGlCQUFpQixDQUFDLGlGQUFpRixnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsK0JBQStCLGFBQWEsQ0FBQyxnQkFBZ0IsQ0NBMTRPO0VBQ0UsbUJBQW1CLEVBQUUsQ0FFdkI7RUFDRSxnQkFBZ0I7RUFDaEIsc0JBQXNCO0VBQ3RCLFdBQVcsRUFBRSxDQUVmO0VBQ0UsbUJBQW1CLEVBQUUsQ0FDckI7SUFDRSxXQUFXLEVBQUUsQ0FDZjtJQUNFLFVBQVUsRUFBRSxDQUVoQjtFQUNFLFVBQVUsRUFBRSxDQUVkO0VBQ0UsbUJBQW1CLEVBQUUsQ0FFdkI7RUFDRSw4QkFBOEIsRUFBRSxDQUVsQztFQUNFLDhCQUE4QixFQUFFLENBRWxDO0VBQ0Usc0JBQXNCO0VBQ3RCLGdCQUFnQjtFQUNoQiwrQkFBK0IsRUFBRSxDQUVuQztFQUNFLDZCQUE2QixFQUFFLENBRWpDO0VBQ0UsNkJBQTZCLEVBQUUsQ0FDL0I7SUFDRSxVQUFVLEVBQUUsQ0FDZDtJQUNFLFVBQVUsRUFBRSxDQUVoQjtFQUNFLHFCQUFxQjtFQUNyQix5QkFBeUIsRUFBRSxDQUU3QjtFQUNFLFdBQVcsRUFBRSxDQUVmO0VBQ0UsY0FBYztFQUNkLHlCQUF5QixFQUFFLENBRTdCO0VBQ0UseUJBQXlCLEVBQUUsQ0FFN0I7RUFDRSxxQkFBcUIsRUFBRSxDQUV6QjtFQUNFLHlCQUF5QixFQUFFLENBRTdCO0VBQ0UscUJBQXFCLEVBQUUsQ0FFekI7RUFDRSx1QkFBdUIsRUFBRSxDQUUzQjtFQUNFLG1CQUFtQixFQUFFLENBRXZCO0VBQ0UscUJBQXFCO0VBQ3JCLHlCQUF5QixFQUFFLENBRTdCO0VBQ0UsV0FBVyxFQUFFLENBRWY7RUFDRSw2QkFBNkI7RUFDN0IseUJBQXlCLEVBQUUsQ0FFN0I7RUFDRSx3Q0FBd0MsRUFBRSxDQUU1QztFQUNFLHFCQUFxQixFQUFFLENBRXpCO0VBQ0UseUJBQXlCLEVBQUUsQ0FFN0I7RUFDRSxxQkFBcUIsRUFBRSxDQUV6QjtFQUNFLHVCQUF1QixFQUFFLENBRTNCO0VBQ0UsMkJBQTJCLEVBQUUsQ0FFL0I7RUFDRSxtQkFBbUIsRUFBRSxDQUV2QjtFQUNFLG1CQUFtQjtFQUNuQixzQkFBc0I7RUFDdEIsV0FBVyxFQUFFLENDdkdmO0VBQ0UscUJBQUE7RUFDQSxVQUFBO0FBQUYsQ0FHQTtFQUNFLGtCQUFBO0FBQUYsQ0FHQTtFQUNFLGdCQUFBO0FBQUYsQ0FHQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUFGLENBR0E7RUFDRSx5QkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBQUYsQ0FHQTtFQUNFLGVBQUE7QUFBRixDQUdBO0VBQ0UsZUFBQTtBQUFGLENBR0E7RUFDRSxvQ0FBQTtFQUNBLHVCQUFBO0FBQUYsQ0FPQTtFQUNFLGFBQUE7QUFKRixDQU9BO0VBQ0UsYUFBQTtBQUpGLENBT0E7RUFDRSxtQkFBQTtFQUNBLFlBQUE7QUFKRixDQU9BO0VBQ0UsbUJBQUE7QUFKRixDQU9BO0VBQ0UsY0FBQTtFQUNBLHlCQUFBO0FBSkYsQ0FPQTtFQUNFLGdCQUFBO0FBSkYsQ0FNQTtFQUNFLFVBQUE7RUFDQSxjQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsZUFBQTtFQUNBLHFCQUFBO0VBQ0Esb0JBQUE7RUFDQSxtQkFBQTtFQUNBLDJCQUFBO0FBSEYsQ0FNQTtFQUNJLFlBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7QUFISixDQUtBO0VBQ0ksV0FBQTtBQUZKLENBSUE7RUFDSSxZQUFBO0VBQ0EsYUFBQTtFQUVBLDZDQUFBO0FBREosQ0FHQTtFQUNJLGtCQUFBO0VBQ0EsUUFBQTtFQUNBLFNBQUE7RUFDQSxxQkFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLG9CQUFBO0VBQ0EsbUJBQUE7RUFDQSwwQkFBQTtFQUNBLDZCQUFBO0VBQ0EsZ0NBQUE7RUFDQSw2QkFBQTtBQUFKLENBRUE7RUFBeUI7SUFBa0MsdUJBQUE7RUFJekQ7RUFKZ0Y7SUFBc0MseUJBQUE7RUFRdEg7QUFDRixDQVJBO0VBQ0ksaUJBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSwyREFBQTtBQVVKLENBUkE7RUFBK0I7SUFBa0MsdUJBQUE7RUFjL0Q7RUFkc0Y7SUFBc0MseUJBQUE7RUFrQjVIO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy91c2Vycy9jcmVhdGUtdXNlcnMvYWRkLWVkaXQtdXNlcnMvYWRkLWVkaXQtdXNlcnMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXJ7YmFja2dyb3VuZDojZmZmO2JvcmRlci1jb2xvcjojYjNiM2IzICNjY2MgI2Q5ZDlkOX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzpub25lfS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3d7dG9wOi0ycHg7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICM5OTk7Ym9yZGVyLXdpZHRoOjAgNXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLWFycm93OmhvdmVye2JvcmRlci1jb2xvcjp0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjMzMzfS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZC5uZy1zZWxlY3QtYm90dG9tPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjA7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czowfS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZC5uZy1zZWxlY3QtdG9wPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjA7Ym9yZGVyLXRvcC1sZWZ0LXJhZGl1czowfS5uZy1zZWxlY3Qubmctc2VsZWN0LWZvY3VzZWQ6bm90KC5uZy1zZWxlY3Qtb3BlbmVkKT4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItY29sb3I6IzAwN2VmZjtib3gtc2hhZG93Omluc2V0IDAgMXB4IDFweCByZ2JhKDAsMCwwLDAuMDc1KSwwIDAgMCAzcHggcmdiYSgwLDEyNiwyNTUsMC4xKX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjl9Lm5nLXNlbGVjdCAubmctaGFzLXZhbHVlIC5uZy1wbGFjZWhvbGRlcntkaXNwbGF5Om5vbmV9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lcntjb2xvcjojMzMzO2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXItcmFkaXVzOjRweDtib3JkZXI6MXB4IHNvbGlkICNjY2M7bWluLWhlaWdodDozNnB4O2FsaWduLWl0ZW1zOmNlbnRlcn0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyOmhvdmVye2JveC1zaGFkb3c6MCAxcHggMCByZ2JhKDAsMCwwLDAuMDYpfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcnthbGlnbi1pdGVtczpjZW50ZXI7cGFkZGluZy1sZWZ0OjEwcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDoxMHB4O3BhZGRpbmctbGVmdDowfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7Y29sb3I6Izk5OX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXJ7aGVpZ2h0OjM2cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3RvcDo1cHg7bGVmdDowO3BhZGRpbmctbGVmdDoxMHB4O3BhZGRpbmctcmlnaHQ6NTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjUwcHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOTtib3JkZXI6MXB4IHNvbGlkICNlNmU2ZTZ9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nOjAgNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy10b3A6NXB4O3BhZGRpbmctbGVmdDo3cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctcmlnaHQ6N3B4O3BhZGRpbmctbGVmdDowfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle2ZvbnQtc2l6ZTouOWVtO21hcmdpbi1ib3R0b206NXB4O2JhY2tncm91bmQtY29sb3I6I2ViZjVmZjtib3JkZXItcmFkaXVzOjJweDttYXJnaW4tcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7bWFyZ2luLXJpZ2h0OjA7bWFyZ2luLWxlZnQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVke2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZCAubmctdmFsdWUtbGFiZWx7cGFkZGluZy1sZWZ0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6MDtwYWRkaW5nLXJpZ2h0OjVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtbGFiZWx7ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29ue2Rpc3BsYXk6aW5saW5lLWJsb2NrO3BhZGRpbmc6MXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbjpob3ZlcntiYWNrZ3JvdW5kLWNvbG9yOiNkMWU4ZmZ9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ubGVmdHtib3JkZXItcmlnaHQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1sZWZ0OjFweCBzb2xpZCAjYjhkYmZmO2JvcmRlci1yaWdodDpub25lfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLnJpZ2h0e2JvcmRlci1sZWZ0OjFweCBzb2xpZCAjYjhkYmZmfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MDtib3JkZXItcmlnaHQ6MXB4IHNvbGlkICNiOGRiZmZ9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDAgM3B4IDNweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmc6MCAzcHggM3B4IDB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7dG9wOjVweDtwYWRkaW5nLWJvdHRvbTo1cHg7cGFkZGluZy1sZWZ0OjNweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye3BhZGRpbmctcmlnaHQ6M3B4O3BhZGRpbmctbGVmdDowfS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXJ7Y29sb3I6Izk5OX0ubmctc2VsZWN0IC5uZy1jbGVhci13cmFwcGVyOmhvdmVyIC5uZy1jbGVhcntjb2xvcjojRDAwMjFCfS5uZy1zZWxlY3QgLm5nLXNwaW5uZXItem9uZXtwYWRkaW5nOjVweCA1cHggMCAwfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDAgMCA1cHh9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcnt3aWR0aDoyNXB4O3BhZGRpbmctcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcntwYWRkaW5nLWxlZnQ6NXB4O3BhZGRpbmctcmlnaHQ6MH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyOmhvdmVyIC5uZy1hcnJvd3tib3JkZXItdG9wLWNvbG9yOiM2NjZ9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlciAubmctYXJyb3d7Ym9yZGVyLWNvbG9yOiM5OTkgdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQ7Ym9yZGVyLXN0eWxlOnNvbGlkO2JvcmRlci13aWR0aDo1cHggNXB4IDIuNXB4fS5uZy1kcm9wZG93bi1wYW5lbHtiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Ym9yZGVyOjFweCBzb2xpZCAjY2NjO2JveC1zaGFkb3c6MCAxcHggMCByZ2JhKDAsMCwwLDAuMDYpO2xlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwubmctc2VsZWN0LWJvdHRvbXt0b3A6MTAwJTtib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czo0cHg7Ym9yZGVyLXRvcC1jb2xvcjojZTZlNmU2O21hcmdpbi10b3A6LTFweH0ubmctZHJvcGRvd24tcGFuZWwubmctc2VsZWN0LWJvdHRvbSAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbjpsYXN0LWNoaWxke2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwubmctc2VsZWN0LXRvcHtib3R0b206MTAwJTtib3JkZXItdG9wLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLXRvcC1sZWZ0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1jb2xvcjojZTZlNmU2O21hcmdpbi1ib3R0b206LTFweH0ubmctZHJvcGRvd24tcGFuZWwubmctc2VsZWN0LXRvcCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbjpmaXJzdC1jaGlsZHtib3JkZXItdG9wLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLXRvcC1sZWZ0LXJhZGl1czo0cHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1oZWFkZXJ7Ym9yZGVyLWJvdHRvbToxcHggc29saWQgI2NjYztwYWRkaW5nOjVweCA3cHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1mb290ZXJ7Ym9yZGVyLXRvcDoxcHggc29saWQgI2NjYztwYWRkaW5nOjVweCA3cHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXB7dXNlci1zZWxlY3Q6bm9uZTtwYWRkaW5nOjhweCAxMHB4O2ZvbnQtd2VpZ2h0OjUwMDtjb2xvcjpyZ2JhKDAsMCwwLDAuNTQpO2N1cnNvcjpwb2ludGVyfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1kaXNhYmxlZHtjdXJzb3I6ZGVmYXVsdH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2Y1ZmFmZn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2ZvbnQtd2VpZ2h0OjYwMH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb257YmFja2dyb3VuZC1jb2xvcjojZmZmO2NvbG9yOnJnYmEoMCwwLDAsMC44Nyk7cGFkZGluZzo4cHggMTBweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtjb2xvcjojMzMzO2JhY2tncm91bmQtY29sb3I6I2ViZjVmZn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkIC5uZy1vcHRpb24tbGFiZWwsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2VkIC5uZy1vcHRpb24tbGFiZWx7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2Y1ZmFmZjtjb2xvcjojMzMzfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tZGlzYWJsZWR7Y29sb3I6I2NjY30ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctbGVmdDoyMnB4fVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1jaGlsZHtwYWRkaW5nLXJpZ2h0OjIycHg7cGFkZGluZy1sZWZ0OjB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uIC5uZy10YWctbGFiZWx7Zm9udC1zaXplOjgwJTtmb250LXdlaWdodDo0MDA7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4O3BhZGRpbmctcmlnaHQ6MH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbHtkaXJlY3Rpb246cnRsO3RleHQtYWxpZ246cmlnaHR9XG4iLCIubWF0LXRvb2xiYXIge1xuICBiYWNrZ3JvdW5kOiAjZmZmZmZmOyB9XG5cbi5jLWJ0biB7XG4gIGJhY2tncm91bmQ6ICNmZmY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIGNvbG9yOiAjMzMzOyB9XG5cbi5zZWxlY3RlZC1saXN0IC5jLWxpc3QgLmMtdG9rZW4ge1xuICBiYWNrZ3JvdW5kOiAjMDA3OUZFOyB9XG4gIC5zZWxlY3RlZC1saXN0IC5jLWxpc3QgLmMtdG9rZW4gLmMtbGFiZWwge1xuICAgIGNvbG9yOiAjZmZmOyB9XG4gIC5zZWxlY3RlZC1saXN0IC5jLWxpc3QgLmMtdG9rZW4gLmMtcmVtb3ZlIHN2ZyB7XG4gICAgZmlsbDogI2ZmZjsgfVxuXG4uc2VsZWN0ZWQtbGlzdCAuYy1hbmdsZS1kb3duIHN2ZywgLnNlbGVjdGVkLWxpc3QgLmMtYW5nbGUtdXAgc3ZnIHtcbiAgZmlsbDogIzMzMzsgfVxuXG4uZHJvcGRvd24tbGlzdCB1bCBsaTpob3ZlciB7XG4gIGJhY2tncm91bmQ6ICNmNWY1ZjU7IH1cblxuLmFycm93LXVwLCAuYXJyb3ctZG93biB7XG4gIGJvcmRlci1ib3R0b206IDE1cHggc29saWQgI2ZmZjsgfVxuXG4uYXJyb3ctMiB7XG4gIGJvcmRlci1ib3R0b206IDE1cHggc29saWQgI2NjYzsgfVxuXG4ubGlzdC1hcmVhIHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcbiAgYmFja2dyb3VuZDogI2ZmZjtcbiAgYm94LXNoYWRvdzogMHB4IDFweCA1cHggIzk1OTU5NTsgfVxuXG4uc2VsZWN0LWFsbCB7XG4gIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjY2NjOyB9XG5cbi5saXN0LWZpbHRlciB7XG4gIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjY2NjOyB9XG4gIC5saXN0LWZpbHRlciAuYy1zZWFyY2ggc3ZnIHtcbiAgICBmaWxsOiAjODg4OyB9XG4gIC5saXN0LWZpbHRlciAuYy1jbGVhciBzdmcge1xuICAgIGZpbGw6ICM4ODg7IH1cblxuLnB1cmUtY2hlY2tib3ggaW5wdXRbdHlwZT1cImNoZWNrYm94XCJdOmZvY3VzICsgbGFiZWw6YmVmb3JlLCAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl06aG92ZXIgKyBsYWJlbDpiZWZvcmUge1xuICBib3JkZXItY29sb3I6ICMwMDc5RkU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmMmYyZjI7IH1cblxuLnB1cmUtY2hlY2tib3ggaW5wdXRbdHlwZT1cImNoZWNrYm94XCJdICsgbGFiZWwge1xuICBjb2xvcjogIzAwMDsgfVxuXG4ucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0gKyBsYWJlbDpiZWZvcmUge1xuICBjb2xvcjogIzAwNzlGRTtcbiAgYm9yZGVyOiAxcHggc29saWQgIzAwNzlGRTsgfVxuXG4ucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0gKyBsYWJlbDphZnRlciB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMwMDc5RkU7IH1cblxuLnB1cmUtY2hlY2tib3ggaW5wdXRbdHlwZT1cImNoZWNrYm94XCJdOmRpc2FibGVkICsgbGFiZWw6YmVmb3JlIHtcbiAgYm9yZGVyLWNvbG9yOiAjY2NjY2NjOyB9XG5cbi5wdXJlLWNoZWNrYm94IGlucHV0W3R5cGU9XCJjaGVja2JveFwiXTpkaXNhYmxlZDpjaGVja2VkICsgbGFiZWw6YmVmb3JlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2NjY2NjYzsgfVxuXG4ucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0gKyBsYWJlbDphZnRlciB7XG4gIGJvcmRlci1jb2xvcjogI2ZmZmZmZjsgfVxuXG4ucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwicmFkaW9cIl06Y2hlY2tlZCArIGxhYmVsOmJlZm9yZSB7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlOyB9XG5cbi5wdXJlLWNoZWNrYm94IGlucHV0W3R5cGU9XCJjaGVja2JveFwiXTpjaGVja2VkICsgbGFiZWw6YmVmb3JlIHtcbiAgYmFja2dyb3VuZDogIzAwNzlGRTsgfVxuXG4uc2luZ2xlLXNlbGVjdC1tb2RlIC5wdXJlLWNoZWNrYm94IGlucHV0W3R5cGU9XCJjaGVja2JveFwiXTpmb2N1cyArIGxhYmVsOmJlZm9yZSwgLnNpbmdsZS1zZWxlY3QtbW9kZSAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl06aG92ZXIgKyBsYWJlbDpiZWZvcmUge1xuICBib3JkZXItY29sb3I6ICMwMDc5RkU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmMmYyZjI7IH1cblxuLnNpbmdsZS1zZWxlY3QtbW9kZSAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0gKyBsYWJlbCB7XG4gIGNvbG9yOiAjMDAwOyB9XG5cbi5zaW5nbGUtc2VsZWN0LW1vZGUgLnB1cmUtY2hlY2tib3ggaW5wdXRbdHlwZT1cImNoZWNrYm94XCJdICsgbGFiZWw6YmVmb3JlIHtcbiAgY29sb3I6IHRyYW5zcGFyZW50ICFpbXBvcnRhbnQ7XG4gIGJvcmRlcjogMHB4IHNvbGlkICMwMDc5RkU7IH1cblxuLnNpbmdsZS1zZWxlY3QtbW9kZSAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0gKyBsYWJlbDphZnRlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50ICFpbXBvcnRhbnQ7IH1cblxuLnNpbmdsZS1zZWxlY3QtbW9kZSAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl06ZGlzYWJsZWQgKyBsYWJlbDpiZWZvcmUge1xuICBib3JkZXItY29sb3I6ICNjY2NjY2M7IH1cblxuLnNpbmdsZS1zZWxlY3QtbW9kZSAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl06ZGlzYWJsZWQ6Y2hlY2tlZCArIGxhYmVsOmJlZm9yZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNjY2NjY2M7IH1cblxuLnNpbmdsZS1zZWxlY3QtbW9kZSAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0gKyBsYWJlbDphZnRlciB7XG4gIGJvcmRlci1jb2xvcjogIzAwNzlGRTsgfVxuXG4uc2luZ2xlLXNlbGVjdC1tb2RlIC5wdXJlLWNoZWNrYm94IGlucHV0W3R5cGU9XCJyYWRpb1wiXTpjaGVja2VkICsgbGFiZWw6YmVmb3JlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7IH1cblxuLnNpbmdsZS1zZWxlY3QtbW9kZSAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl06Y2hlY2tlZCArIGxhYmVsOmJlZm9yZSB7XG4gIGJhY2tncm91bmQ6IG5vbmUgIWltcG9ydGFudDsgfVxuXG4uc2VsZWN0ZWQtaXRlbSB7XG4gIGJhY2tncm91bmQ6ICNlOWY0ZmY7IH1cblxuLmJ0bi1pY2VibHVlIHtcbiAgYmFja2dyb3VuZDogIzAwNzlGRTtcbiAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcbiAgY29sb3I6ICNmZmY7IH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5AaW1wb3J0IFwifmFuZ3VsYXIyLW11bHRpc2VsZWN0LWRyb3Bkb3duL3RoZW1lcy9kZWZhdWx0LnRoZW1lLmNzc1wiO1xuXG51bHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICBwYWRkaW5nOiAwO1xufVxuXG4uYnVzaW5lc3MtdW5pdC1wbGFue1xuICBtYXJnaW4tbGVmdDogLTE4cHg7XG59XG5cbi51c2VyLXJvbGV7XG4gIG1hcmdpbi10b3A6IDIwcHg7XG59XG5cbi5qdXN0aWZ5Q29udGVudCB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuLnJlZC1jb250YWluZXJ7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IGF1dG87XG4gIGNvbG9yOiB3aGl0ZTtcbiAgcGFkZGluZzogMTBweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICBmb250LXdlaWdodDogNTAwO1xufVxuXG4uY2FuY2VsLWJ0bi1jb250YWluZXJ7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLnNlbGVjdGVkLXRleHR7XG4gIGZvbnQtc2l6ZTogMTAwJTtcbn1cblxuOjpuZy1kZWVwIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tbWFya2VkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzIxOTZmMyAhaW1wb3J0YW50O1xuICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cblxuLy8gLmFuZ3VsYXIyLW11bHRpc2VsZWN0LWRyb3Bkb3duIC5zZWxlY3RlZC1saXN0IC5jLWxpc3R7XG4vLyAgIGRpc3BsYXk6IG5vbmUgIWltcG9ydGFudDtcbi8vIH1cbi8vIC5hbmd1bGFyMi1tdWx0aXNlbGVjdC1kcm9wZG93biAuY2xlYXItYWxse2Rpc3BsYXk6IG5vbmUgIWltcG9ydGFudDt9XG46Om5nLWRlZXAgLmFuZ3VsYXIyLW11bHRpc2VsZWN0LWRyb3Bkb3duIC5zZWxlY3RlZC1saXN0IC5jb3VudHBsYWNlaG9sZGVyIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuOjpuZy1kZWVwIC5hbmd1bGFyMi1tdWx0aXNlbGVjdC1kcm9wZG93biAuc2VsZWN0ZWQtbGlzdCAuYy1saXN0IC5jLXRva2VuIC5jLXJlbW92ZSB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbjo6bmctZGVlcCAuYW5ndWxhcjItbXVsdGlzZWxlY3QtZHJvcGRvd24gLnNlbGVjdGVkLWxpc3QgLmMtbGlzdCAuYy10b2tlbiB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuOjpuZy1kZWVwIC5hbmd1bGFyMi1tdWx0aXNlbGVjdC1kcm9wZG93biAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPWNoZWNrYm94XTpjaGVja2VkICsgbGFiZWw6YmVmb3JlIHtcbiAgYmFja2dyb3VuZDogI2E0MjEzODtcbn1cblxuOjpuZy1kZWVwIC5hbmd1bGFyMi1tdWx0aXNlbGVjdC1kcm9wZG93biAucHVyZS1jaGVja2JveCBpbnB1dFt0eXBlPWNoZWNrYm94XSArIGxhYmVsOmJlZm9yZSB7XG4gIGNvbG9yOiAjYTQyMTM4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjYTQyMTM4O1xufVxuXG46Om5nLWRlZXAgLmFuZ3VsYXIyLW11bHRpc2VsZWN0LWRyb3Bkb3duIC5zZWxlY3RlZC1pdGVtIHtcbiAgYmFja2dyb3VuZDogbm9uZTtcbn1cbi5sb2FkZXItbXVsdGlzZWxlY3QtaWNvbntcbiAgd2lkdGg6IDkwJTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIGhlaWdodDogODBweDtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBtYXJnaW4tdG9wOiAwcHg7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIGN1cnNvcjogbm90LWFsbG93ZWQ7XG4gIHotaW5kZXg6IDk5OTk5OTk5OTk5OTk5OTk5O1xufVxuXG4ubG9hZGVyLW11bHRpc2VsZWN0LWljb24gPiBzcGFuIHtcbiAgICBoZWlnaHQ6IDIwcHg7XG4gICAgbGluZS1oZWlnaHQ6IDIwcHg7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4gICAgY29sb3I6IGN1cnJlbnRDb2xvcjtcbiAgICBmbG9hdDogcmlnaHQ7XG4gICAgbWFyZ2luLXJpZ2h0OiAyMXB4O1xuICAgIG1hcmdpbi10b3A6IDNweDtcbn1cbi5sb2FkZXItbXVsdGlzZWxlY3QtaWNvbiAgPiBzcGFuOjpiZWZvcmUsIC5sb2FkZXItbXVsdGlzZWxlY3QtaWNvbiAgPiBzcGFuOjphZnRlciB7XG4gICAgY29udGVudDogXCJcIjtcbn1cbi5sb2FkZXItbXVsdGlzZWxlY3QtaWNvbiAgPiBzcGFuOjpiZWZvcmV7XG4gICAgd2lkdGg6IDEuM2VtO1xuICAgIGhlaWdodDogMS4zZW07XG4gICAgLXdlYmtpdC1hbmltYXRpb246IGstaS1hbmltYXRpb24gLjdzIGxpbmVhciBpbmZpbml0ZTtcbiAgICBhbmltYXRpb246IGstaS1hbmltYXRpb24gLjdzIGxpbmVhciBpbmZpbml0ZTtcbn1cbi5sb2FkZXItbXVsdGlzZWxlY3QtaWNvbiA+IHNwYW46OmJlZm9yZSwgLmxvYWRlci1tdWx0aXNlbGVjdC1pY29uID4gc3Bhbjo6YWZ0ZXJ7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHRvcDogNTAlO1xuICAgIGxlZnQ6IDUwJTtcbiAgICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gICAgY29udGVudDogXCJcIjtcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgYm9yZGVyLXdpZHRoOiAuMDVlbTtcbiAgICBib3JkZXItc3R5bGU6IHNvbGlkO1xuICAgIGJvcmRlci1jb2xvcjogY3VycmVudENvbG9yO1xuICAgIGJvcmRlci10b3AtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgIGJvcmRlci1ib3R0b20tY29sb3I6IHRyYW5zcGFyZW50O1xuICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xufVxuQGtleWZyYW1lcyBrLWktYW5pbWF0aW9uezAley13ZWJraXQtdHJhbnNmb3JtOnJvdGF0ZSgwZGVnKTt0cmFuc2Zvcm06cm90YXRlKDBkZWcpfTEwMCV7LXdlYmtpdC10cmFuc2Zvcm06cm90YXRlKDM2MGRlZyk7dHJhbnNmb3JtOnJvdGF0ZSgzNjBkZWcpfX1cbi5sb2FkZXItbXVsdGlzZWxlY3QtaWNvbiA+IHNwYW46OmFmdGVye1xuICAgIG1hcmdpbi10b3A6IC40MGVtO1xuICAgIG1hcmdpbi1sZWZ0OiAuNDBlbTtcbiAgICBiYWNrZ3JvdW5kOiAjYmRiZGJkO1xuICAgIHdpZHRoOiAuNWVtO1xuICAgIGhlaWdodDogLjVlbTtcbiAgICBhbmltYXRpb246IGstbG9hZGluZy1hbmltYXRpb24gcmV2ZXJzZSAxLjRzIGxpbmVhciBpbmZpbml0ZTtcbn1cbkBrZXlmcmFtZXMgay1sb2FkaW5nLWFuaW1hdGlvbnswJXstd2Via2l0LXRyYW5zZm9ybTpyb3RhdGUoMGRlZyk7dHJhbnNmb3JtOnJvdGF0ZSgwZGVnKX0xMDAley13ZWJraXQtdHJhbnNmb3JtOnJvdGF0ZSgzNjBkZWcpO3RyYW5zZm9ybTpyb3RhdGUoMzYwZGVnKX19XG5cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AddEditUsersComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-add-edit-users',
templateUrl: './add-edit-users.component.html',
styleUrls: ['./add-edit-users.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_7__["BussinessUnitService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__["UsersService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbModal"] }, { type: src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__["CompanyService"] }, { type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_12__["RoleService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_13__["StorageService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_14__["CustomFieldService"] }]; }, { userId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], dropdownBplanRef: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['dropdownBplanRef', { static: false }]
}], myInputVariable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['myInput']
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}], AddSubSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddSubSection', { static: true }]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "awjJ":
/*!**********************************************************!*\
!*** ./src/app/users/service/channel/channel.service.ts ***!
\**********************************************************/
/*! exports provided: ChannelService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelService", function() { return ChannelService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class ChannelService {
constructor(http, storageService) {
this.http = http;
this.storageService = storageService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getChannels(data) {
return this.http.get(`${this.baseUrl}/channel/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllCategory(data) {
return this.http.get(`${this.baseUrl}/category/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
exportChannels(channelId, data) {
return this.http.post(`${this.baseUrl}/channel/export`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateChannel(data, id) {
return this.http.post(`${this.baseUrl}/channel/${id}`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createChannels(data) {
return this.http.post(`${this.baseUrl}/channel/`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createCategory(data) {
return this.http.post(`${this.baseUrl}/category/`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateCategory(data, id) {
return this.http.post(`${this.baseUrl}/category`, Object.assign(Object.assign({}, data), { categoryId: id }), {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteCategory(id) {
return this.http.post(`${this.baseUrl}/category/${id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
// getAllPrevileges(): Observable {
// return this.http.get(`${this.baseUrl}/role/privilege/all`)
// }
getOneChannel(id) {
return this.http.get(`${this.baseUrl}/channel/${id}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
ChannelService.ɵfac = function ChannelService_Factory(t) { return new (t || ChannelService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
ChannelService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: ChannelService, factory: ChannelService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ChannelService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "ayS3":
/*!****************************************************!*\
!*** ./src/app/users/pages/home/home.component.ts ***!
\****************************************************/
/*! exports provided: HomeComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomeComponent", function() { return HomeComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../service/user-service/users.service */ "lGV6");
/* harmony import */ var _service_notification_notification_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../service/notification/notification.service */ "S+3j");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function HomeComponent_table_15_tr_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.title);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.subTitle);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 4, item_r4.activeFrom), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 6, item_r4.activeFrom, "hh:mm a"), "");
} }
function HomeComponent_table_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "SUBTITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "DATE & TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, HomeComponent_table_15_tr_10_Template, 9, 9, "tr", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](11, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind3"](11, 1, ctx_r0.notificationTable.data, (ctx_r0.notificationTable.page - 1) * ctx_r0.notificationTable.limit, ctx_r0.notificationTable.page * ctx_r0.notificationTable.limit));
} }
function HomeComponent_p_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Notification found ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function HomeComponent_div_17_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ngb-pagination", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function HomeComponent_div_17_Template_ngb_pagination_pageChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.notificationTable.page = $event; })("pageChange", function HomeComponent_div_17_Template_ngb_pagination_pageChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.onPageChangeballotData($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Showing 1 to ", ctx_r2.notificationTable.total, " of ", ctx_r2.notificationTable.total, " entries");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx_r2.notificationTable.total)("page", ctx_r2.notificationTable.page)("pageSize", ctx_r2.notificationTable.limit);
} }
class HomeComponent {
constructor(users, notificationService) {
this.users = users;
this.notificationService = notificationService;
this.notificationData = [];
this.notificationTable = {
data: [],
page: 1,
total: 0,
limit: 10,
};
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].imageUrl;
this.favIcon = document.querySelector('#favIcon');
}
ngOnInit() {
const faviconLogo = localStorage.getItem("favicon");
this.favIcon.href = !!faviconLogo ? faviconLogo : 'favicon.ico';
this.getUser();
this.getUserData();
}
getUser() {
const sub = this.notificationService
.getMyNotification()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a;
this.notificationTable.data = res.data || [];
console.log(this.notificationTable.data);
this.notificationTable.total = (_a = res.data) === null || _a === void 0 ? void 0 : _a.length;
});
}
getUserData() {
const userData = this.users
.getUserProfile()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
userData.unsubscribe();
}))
.subscribe((res) => {
this.userData = res.data;
if (res.data.profilePicture) {
this.profilePictureLink = res.data.profilePicture;
}
}, (error) => { });
}
//method to pagination
onPageChangeballotData(page) {
this.notificationTable.page = page;
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
HomeComponent.ɵfac = function HomeComponent_Factory(t) { return new (t || HomeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_4__["NotificationService"])); };
HomeComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: HomeComponent, selectors: [["app-home"]], decls: 18, vars: 6, consts: [[1, "card", "mb-3"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "d-flex"], ["crossorigin", "anonymous", "onerror", "this.src='./assets/images/user1.png';", 1, "user-image", "rounded", 3, "src"], [1, "align-self-center", "ml-4"], [1, "font-weight-bold", "m-0"], [1, "font-weight-500", "m-0", "text-muted"], [1, "card"], [1, "card-body", "table-responsive"], ["class", "table border m-0", 4, "ngIf"], ["class", "h5 text-muted m-0", 4, "ngIf"], ["class", "card-footer", 4, "ngIf"], [1, "table", "border", "m-0"], [2, "width", "25%"], [2, "width", "45%"], [4, "ngFor", "ngForOf"], [1, "h5", "text-muted", "m-0"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "pageSize", "pageChange"]], template: function HomeComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "HOME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "img", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "h2", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "p", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "NOTIFICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, HomeComponent_table_15_Template, 12, 5, "table", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, HomeComponent_p_16_Template, 2, 0, "p", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, HomeComponent_div_17_Template, 5, 5, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", ctx.profilePictureLink ? ctx.validateURLImage(ctx.profilePictureLink) : "../assets/images/user1.png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.role == null ? null : ctx.userData.role.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.notificationTable.data == null ? null : ctx.notificationTable.data.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !(ctx.notificationTable == null ? null : ctx.notificationTable.data == null ? null : ctx.notificationTable.data.length));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.notificationTable.total);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbPagination"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["SlicePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["DatePipe"]], styles: [".user-image[_ngcontent-%COMP%] {\n width: 100px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaG9tZS9ob21lLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsWUFBQTtBQUNGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvaG9tZS9ob21lLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnVzZXItaW1hZ2Uge1xuICB3aWR0aDogMTAwcHg7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HomeComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-home',
templateUrl: './home.component.html',
styleUrls: ['./home.component.scss'],
}]
}], function () { return [{ type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }, { type: _service_notification_notification_service__WEBPACK_IMPORTED_MODULE_4__["NotificationService"] }]; }, null); })();
/***/ }),
/***/ "b/se":
/*!**************************************************************************!*\
!*** ./src/app/users/pages/users/create-users/create-users.component.ts ***!
\**************************************************************************/
/*! exports provided: CreateUsersComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateUsersComponent", function() { return CreateUsersComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _users_overview_users_overview_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./users-overview/users-overview.component */ "X+41");
/* harmony import */ var _add_edit_users_add_edit_users_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./add-edit-users/add-edit-users.component */ "aD6k");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
function CreateUsersComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "users-overview", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("EditEvent", function CreateUsersComponent_ng_template_6_Template_users_overview_EditEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r4.userEdit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function CreateUsersComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-add-edit-users", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function CreateUsersComponent_ng_template_10_Template_app_add_edit_users_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("userId", ctx_r2.userId);
} }
function CreateUsersComponent_ng_template_14_div_14_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "i", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateUsersComponent_ng_template_14_div_14_Template_i_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.onDeleteIcon(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r9.IconUrl);
} }
const _c0 = function (a0, a1) { return { "fa-spin fa-spinner fa-2x": a0, " fa-plus-circle fa-2x": a1 }; };
function CreateUsersComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "CREATE USER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "input", 17, 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CreateUsersComponent_ng_template_14_Template_input_change_8_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.iconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Choose File To Upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, CreateUsersComponent_ng_template_14_div_14_Template, 9, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateUsersComponent_ng_template_14_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.createBulkUsers(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](3, _c0, ctx_r3.isLoading, !ctx_r3.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r3.IconUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r3.IconUrl);
} }
class CreateUsersComponent {
constructor(toastService, userService, gamificationService) {
this.toastService = toastService;
this.userService = userService;
this.gamificationService = gamificationService;
this.activeId = 1;
this.userId = null;
this.isLoading = false;
}
ngOnInit() { }
userEdit(id) {
this.activeId = 2;
this.isUserEdited = true;
this.userId = id;
}
overViewEvent(value) {
this.isUserEdited = false;
this.userId = null;
this.activeId = 1;
}
iconUpload(event) {
this.isLoading = true;
if (event.target.files && event.target.files.length) {
this.file = event.target.files[0];
if (this.file && !this.file.type.startsWith('image/')) {
const fileUpload = this.gamificationService.uploadFile(this.file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.IconUrl = this.file.name;
this.isLoading = false;
}, (error) => {
var _a;
this.isLoading = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message, error === null || error === void 0 ? void 0 : error.statusText, {
timeOut: 3000,
});
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_2__["COMMON_MESSAGES"].UPLOAD_ONLY_EXCEL);
event.target.value = '';
this.file = null;
this.isLoading = false;
}
}
else {
this.isLoading = false;
}
}
createBulkUsers() {
const fileUpload = this.userService
.createBulkUser(this.file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.file = null;
this.IconUrl = null;
this.toastService.success('File Uploaded Succesfully');
}, (error) => { });
}
}
CreateUsersComponent.ɵfac = function CreateUsersComponent_Factory(t) { return new (t || CreateUsersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__["GamificationService"])); };
CreateUsersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CreateUsersComponent, selectors: [["app-create-users"]], decls: 16, vars: 6, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], ["ngbNavLink", ""], [3, "ngbNavOutlet"], [3, "EditEvent"], [3, "userId", "overViewEvent"], [1, "card"], [1, "card-header", "bg-theme"], [1, "m-0"], [1, "card-body"], [1, "row"], [1, "col-md-4"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["type", "file", "accept", ".xls,.xlsx,.csv ", "id", "c", 1, "custom-file-input", 3, "change"], ["myInput", ""], ["for", "i", 1, "custom-file-label"], ["aria-hidden", "true", 1, "fa", 2, "margin-right", "10px", 3, "ngClass"], [1, "custom-file-label-text"], ["class", "col-md-4", 4, "ngIf"], [1, "col-4", "mt-2"], [1, "btn", "btn-add", 3, "disabled", "click"], [1, "table", "table-borderless"], [1, "image-with-delete-icon"], ["title", "Delete", 1, "fa", "fa-close", "fa-xs", 3, "click"]], template: function CreateUsersComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function CreateUsersComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CreateUsersComponent_Template_a_click_4_listener($event) { return ctx.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CreateUsersComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, CreateUsersComponent_ng_template_10_Template, 1, 1, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "BULK IMPORT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, CreateUsersComponent_ng_template_14_Template, 19, 6, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.isUserEdited ? "EDIT" : "ADD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_6__["NgbNavOutlet"], _users_overview_users_overview_component__WEBPACK_IMPORTED_MODULE_7__["UsersOverviewComponent"], _add_edit_users_add_edit_users_component__WEBPACK_IMPORTED_MODULE_8__["AddEditUsersComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n.custom-file-label[_ngcontent-%COMP%] text[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n margin-left: 1px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvdXNlcnMvY3JlYXRlLXVzZXJzL2NyZWF0ZS11c2Vycy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHNCQUFBO0FBQ0Y7QUFBRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUVKO0FBQUk7RUFDRSxjQUFBO0FBRU47QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTjtBQUdBO0VBQ0UsYUFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBQUYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy91c2Vycy9jcmVhdGUtdXNlcnMvY3JlYXRlLXVzZXJzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbi5jdXN0b20tZmlsZS1sYWJlbCB0ZXh0IHtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBtYXJnaW4tbGVmdDogMXB4O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CreateUsersComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-create-users',
templateUrl: './create-users.component.html',
styleUrls: ['./create-users.component.scss'],
}]
}], function () { return [{ type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__["GamificationService"] }]; }, null); })();
/***/ }),
/***/ "b2wH":
/*!****************************************************************************!*\
!*** ./src/app/shared/dynamic-questions/field-builder/question-builder.ts ***!
\****************************************************************************/
/*! exports provided: QuestionBuilder */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionBuilder", function() { return QuestionBuilder; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _fields_checkboxs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../fields/checkboxs */ "ZT52");
/* harmony import */ var _fields_dropdowns__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../fields/dropdowns */ "0iAT");
function QuestionBuilder_strong_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "strong", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function QuestionBuilder_checkboxs_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "checkboxs", 7);
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r1.field)("form", ctx_r1.form.get(ctx_r1.field.question));
} }
function QuestionBuilder_checkboxs_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "checkboxs", 7);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r2.field)("form", ctx_r2.form.get(ctx_r2.field.question));
} }
function QuestionBuilder_checkboxs_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "checkboxs", 7);
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r3.field)("form", ctx_r3.form.get(ctx_r3.field.question));
} }
function QuestionBuilder_checkboxs_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "checkboxs", 7);
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r4.field)("form", ctx_r4.form.get(ctx_r4.field.question));
} }
function QuestionBuilder_checkboxs_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "checkboxs", 7);
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r5.field)("form", ctx_r5.form.get(ctx_r5.field.question));
} }
function QuestionBuilder_checkboxs_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "checkboxs", 7);
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r6.field)("form", ctx_r6.form.get(ctx_r6.field.question));
} }
function QuestionBuilder_dropdowns_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "dropdowns", 7);
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r7.field)("form", ctx_r7.form.get(ctx_r7.field.question));
} }
function QuestionBuilder_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r8.field.fieldName, " is required");
} }
class QuestionBuilder {
constructor() {
this.questionTypes = [
{
name: 'Multiple Choices',
type: 1,
},
{
name: 'Check Box',
type: 2,
},
{
name: 'Polling',
type: 3,
},
{
name: 'True or False Options',
type: 4,
},
{
name: 'Signature',
type: 5,
},
{
name: 'Profile Fields',
type: 6,
},
{
name: 'Free Text(Long)',
type: 7,
},
{
name: 'Free Text(Short)',
type: 8,
},
{
name: 'Numeric',
type: 9,
},
{
name: 'Date & Time',
type: 10,
},
{
name: 'DropDown',
type: 11,
},
{
name: 'Attachment',
type: 12,
},
{
name: 'Star Rating',
type: 13,
},
{
name: 'Nominate User',
type: 14,
},
{
name: 'Sequence Type',
type: 15,
},
];
}
get isValid() { return this.form.controls[this.field.question].valid; }
get isDirty() { return this.form.controls[this.field.question].dirty; }
ngOnInit() {
}
}
QuestionBuilder.ɵfac = function QuestionBuilder_Factory(t) { return new (t || QuestionBuilder)(); };
QuestionBuilder.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: QuestionBuilder, selectors: [["field-builders"]], inputs: { field: "field", form: "form" }, decls: 14, vars: 15, consts: [[1, "form-group", 3, "formGroup"], [1, "form-control-label"], ["class", "text-danger", 4, "ngIf"], [3, "ngSwitch"], [3, "field", "form", 4, "ngSwitchCase"], ["class", "alert alert-danger my-1 p-2 fadeInDown animated ", 4, "ngIf"], [1, "text-danger"], [3, "field", "form"], [1, "alert", "alert-danger", "my-1", "p-2", "fadeInDown", "animated"]], template: function QuestionBuilder_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, QuestionBuilder_strong_4_Template, 2, 0, "strong", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, QuestionBuilder_checkboxs_6_Template, 1, 2, "checkboxs", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, QuestionBuilder_checkboxs_7_Template, 1, 2, "checkboxs", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, QuestionBuilder_checkboxs_8_Template, 1, 2, "checkboxs", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, QuestionBuilder_checkboxs_9_Template, 1, 2, "checkboxs", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, QuestionBuilder_checkboxs_10_Template, 1, 2, "checkboxs", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, QuestionBuilder_checkboxs_11_Template, 1, 2, "checkboxs", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, QuestionBuilder_dropdowns_12_Template, 1, 2, "dropdowns", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, QuestionBuilder_div_13_Template, 3, 1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("for", ctx.field.question);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 13, ctx.field.question), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.field.required && ctx.form.get(ctx.field.question).invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx.field.type);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isValid && ctx.isDirty);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitchCase"], _fields_checkboxs__WEBPACK_IMPORTED_MODULE_3__["CheckBoxsComponent"], _fields_dropdowns__WEBPACK_IMPORTED_MODULE_4__["DropDownsComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["TitleCasePipe"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](QuestionBuilder, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'field-builders',
template: `
`
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "c/pr":
/*!********************************************************************************************************!*\
!*** ./src/app/users/pages/communication/channel-setup/channel-overview/channel-overview.component.ts ***!
\********************************************************************************************************/
/*! exports provided: ChannelOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelOverviewComponent", function() { return ChannelOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/channel/channel.service */ "awjJ");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
const _c0 = ["AddSection"];
function ChannelOverviewComponent_div_0_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ChannelOverviewComponent_div_0_table_24_tr_10_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelOverviewComponent_div_0_table_24_tr_10_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r7 = ctx.$implicit; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r8.onViewChannel(item_r7._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelOverviewComponent_div_0_table_24_tr_10_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r7 = ctx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r10.onEditChannel(item_r7._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelOverviewComponent_div_0_table_24_tr_10_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r7 = ctx.$implicit; const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r11.openExportModal(item_r7._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Export ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r7.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r7.status === 1 ? "Active" : "Inactive");
} }
function ChannelOverviewComponent_div_0_table_24_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ChannelOverviewComponent_div_0_table_24_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r12.onSortChannel($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " GROUP NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ChannelOverviewComponent_div_0_table_24_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r14.onSortChannel($event, "status"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " ACTION ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, ChannelOverviewComponent_div_0_table_24_tr_10_Template, 12, 2, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r5.channelPTable.data);
} }
function ChannelOverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "ALL CHANNELS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ChannelOverviewComponent_div_0_Template_select_change_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.onLimitChangeChannel(); })("ngModelChange", function ChannelOverviewComponent_div_0_Template_select_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.channelPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, ChannelOverviewComponent_div_0_span_21_Template, 2, 0, "span", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function ChannelOverviewComponent_div_0_Template_input_search_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.loadUsers(); })("keyup", function ChannelOverviewComponent_div_0_Template_input_keyup_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.channelsearchInput.next($event); })("ngModelChange", function ChannelOverviewComponent_div_0_Template_input_ngModelChange_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.channelPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, ChannelOverviewComponent_div_0_table_24_Template, 11, 1, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "app-skliton-loading-table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ngb-pagination", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ChannelOverviewComponent_div_0_Template_ngb_pagination_pageChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.channelPTable.page = $event; })("pageChange", function ChannelOverviewComponent_div_0_Template_ngb_pagination_pageChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.onPageChangeChannel($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.channelPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.channelPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.channelPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 3)("isTableLoading", ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r0.channelPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r0.channelPTable.total)("page", ctx_r0.channelPTable.page)("maxSize", 5)("pageSize", ctx_r0.channelPTable.limit);
} }
function ChannelOverviewComponent_div_1_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r25 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r25.name, " ");
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("All Business Units Selected (", item_r27.allBuTokenStaffId, ")");
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_3_li_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const buUnit_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](buUnit_r35.name);
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ChannelOverviewComponent_div_1_table_31_tr_12_ul_3_li_1_Template, 2, 1, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.allBuToken == false);
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r40 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r40.name);
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r41 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r41.name);
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_9_li_1_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](current_r42.name);
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_9_li_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ChannelOverviewComponent_div_1_table_31_tr_12_ul_9_li_1_span_1_Template, 2, 1, "span", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", current_r42.staffId !== "admin001");
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_9_li_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const current_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", current_r42.name, "");
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_ul_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ChannelOverviewComponent_div_1_table_31_tr_12_ul_9_li_1_Template, 2, 1, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ChannelOverviewComponent_div_1_table_31_tr_12_ul_9_li_2_Template, 2, 1, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.firstAdminAddedAsDefault == true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r27 == null ? null : item_r27.firstAdminAddedAsDefault) == false || !(item_r27 == null ? null : item_r27.firstAdminAddedAsDefault));
} }
function ChannelOverviewComponent_div_1_table_31_tr_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ChannelOverviewComponent_div_1_table_31_tr_12_ul_2_Template, 3, 1, "ul", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, ChannelOverviewComponent_div_1_table_31_tr_12_ul_3_Template, 2, 1, "ul", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, ChannelOverviewComponent_div_1_table_31_tr_12_ul_5_Template, 3, 1, "ul", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, ChannelOverviewComponent_div_1_table_31_tr_12_ul_7_Template, 3, 1, "ul", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, ChannelOverviewComponent_div_1_table_31_tr_12_ul_9_Template, 3, 2, "ul", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r27 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r27.allBuToken == true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.businessUnits);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.appointments);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.user);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r27.admin);
} }
function ChannelOverviewComponent_div_1_table_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "APPOINTMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "SELECTED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "SELECTED ADMINISTRATOR");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, ChannelOverviewComponent_div_1_table_31_tr_12_Template, 10, 5, "tr", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r24.userDetails == null ? null : ctx_r24.userDetails.assignUsers);
} }
function ChannelOverviewComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "CHANNEL SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelOverviewComponent_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r51); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r50.onViewChannelData = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " BACK ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Channel Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "label", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, " Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "select", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "Category");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, ChannelOverviewComponent_div_1_div_24_Template, 3, 1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, "SELECTED INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](31, ChannelOverviewComponent_div_1_table_31_Template, 13, 1, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](32, "app-skliton-loading-table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx_r1.userDetails == null ? null : ctx_r1.userDetails.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("selected", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.userDetails == null ? null : ctx_r1.userDetails.category);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx_r1.isTableLoading);
} }
function ChannelOverviewComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "EXPORT CHANNEL");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelOverviewComponent_ng_template_2_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r55); const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r54.closeModal(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "p", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Select Report");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "select", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "Readership");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "Comments");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "option", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "Likes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27, "From Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "input", 58, 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("dateSelect", function ChannelOverviewComponent_ng_template_2_Template_input_dateSelect_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r55); const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r56.onStartDateSelect($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "button", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelOverviewComponent_ng_template_2_Template_button_click_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r55); const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](30); return _r52.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](33, "i", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "label", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, "To Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "input", 58, 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("dateSelect", function ChannelOverviewComponent_ng_template_2_Template_input_dateSelect_38_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r55); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r58.onEndDateSelect($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "button", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelOverviewComponent_ng_template_2_Template_button_click_41_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r55); const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](39); return _r53.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](42, "i", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelOverviewComponent_ng_template_2_Template_button_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r55); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r60.onExportItem(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, "Export");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r3.exportsSetupForm);
} }
class ChannelOverviewComponent {
constructor(formbuilder, channelService, toastService, modelService, notificationService) {
this.formbuilder = formbuilder;
this.channelService = channelService;
this.toastService = toastService;
this.modelService = modelService;
this.notificationService = notificationService;
this.ID = '';
this.type = '';
this.startDate = '';
this.endDate = '';
this.isLoading = false;
this.editChannel = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.channelsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.isTableLoading = true;
this.exportsSetupForm = new _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormGroup"]({
type: new _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormControl"]('', _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required),
startDate: new _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormControl"]('', _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required),
endDate: new _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormControl"]('', _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required),
});
// this.config.notFoundText = 'Custom not found';
this.channelPTable = {
sortWith: 'name',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.channelSearchSubscription = this.channelsearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.channelPTable.page = 1;
this.loadChannel();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortChannel({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.channelPTable.sortWith = field;
this.channelPTable.sortBy = direction;
this.loadChannel();
}
onPageChangeChannel(page) {
this.channelPTable.page = page;
this.loadChannel();
}
onLimitChangeChannel() {
this.loadChannel();
}
ngOnInit() {
this.loadChannel();
this.editChannel.emit(null);
}
openExportModal(id) {
this.ID = id;
this.isLoading = false;
this.modelService.open(this.AddSection, {
windowClass: 'modal-ui-fix right-align',
});
}
loadChannel() {
const _a = this.channelPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.channelService
.getChannels(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, data } = response;
this.channelPTable.data = data;
this.channelPTable.total = recordsTotal;
this.isTableLoading = false;
}, (error) => {
this.channelPTable.data = [];
this.channelPTable.total = 0;
this.toastService.error('No list found');
});
}
onEditChannel(id) {
this.editChannel.emit(id);
}
onViewChannel(id) {
this.onViewChannelData = true;
this.channelService.getOneChannel(id).subscribe((res) => {
this.userDetails = res.data;
});
}
closeModal() {
this.modelService.dismissAll();
}
onStartDateSelect(event) {
let year = event.year;
let month = event.month <= 9 ? '0' + event.month : event.month;
let day = event.day <= 9 ? '0' + event.day : event.day;
let finalDate = year + '-' + month + '-' + day;
let date = moment__WEBPACK_IMPORTED_MODULE_6__(finalDate, "YYYY-MM-DD HH:mm:ss Z").format("MM-DD-YYYY") + " " + "00:00:00 GMT" + moment__WEBPACK_IMPORTED_MODULE_6__().format('ZZ');
this.startDate = date.toString();
}
onEndDateSelect(event) {
let year = event.year;
let month = event.month <= 9 ? '0' + event.month : event.month;
let day = event.day <= 9 ? '0' + event.day : event.day;
let finalDate = year + '-' + month + '-' + day;
let date = moment__WEBPACK_IMPORTED_MODULE_6__(finalDate, "YYYY-MM-DD HH:mm:ss Z").format("MM-DD-YYYY") + " " + "00:00:00 GMT" + moment__WEBPACK_IMPORTED_MODULE_6__().format('ZZ');
this.endDate = date.toString();
}
onExportItem() {
let data = {
channelId: this.ID,
type: this.exportsSetupForm.value.type,
startDate: this.startDate,
endDate: this.endDate,
};
if (!data) {
this.toastService.error('Please Fill these fields');
}
this.channelService.exportChannels(this.ID, data).subscribe((res) => {
if ((res === null || res === void 0 ? void 0 : res.status) && (res === null || res === void 0 ? void 0 : res.filePath)) {
this.notificationService.downloadUrl(res === null || res === void 0 ? void 0 : res.filePath).subscribe((content) => {
var a = document.createElement('a');
a.href = 'data:text/csv,' + content;
a.target = '_blank';
a.download = data.type + "_channel_" + new Date() + ".csv";
document.body.appendChild(a);
a.click();
});
}
// window.open(res, "Exported Data");
}, (error) => {
this.toastService.error('No data found');
});
}
ngOnDestroy() {
this.channelSearchSubscription && this.channelSearchSubscription.unsubscribe();
}
}
ChannelOverviewComponent.ɵfac = function ChannelOverviewComponent_Factory(t) { return new (t || ChannelOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_7__["ChannelService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__["NotificationService"])); };
ChannelOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ChannelOverviewComponent, selectors: [["app-channel-overview"]], viewQuery: function ChannelOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddSection = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { editChannel: "editChannel" }, decls: 4, vars: 2, consts: [["class", "card my-3 w-100", 4, "ngIf"], [4, "ngIf"], ["AddSection", ""], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "active-status"], [1, "btn", "btn-submit", "p-2", "m-1", "pl-3", "pr-3", 3, "click"], [1, "btn", "btn-add", "p-2", "m-1", "pl-3", "pr-3", 3, "click"], [1, "btn", "btn-clear", "p-2", "m-1", "pl-3", "pr-3", 3, "click"], [1, "btn", "pull-right", "btn-outline-light", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-angle-left", "fa-lg"], [1, "row"], [1, "col-md-6", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "font-weight-bold"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], [1, "col-md-6"], [1, "pb-2", "font-weight-bold"], [1, "dropdown-select", "w-100", "form-control"], ["value", "", "disabled", ""], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap", "margin-top", "25px"], [1, "text-items", "list-ui"], [1, "modal-content"], [1, "modal-body", 2, "min-height", "auto"], [1, "card", "my-3", 2, "margin", "0 auto"], ["type", "button", "aria-label", "Close", 1, "btn", "close-button", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [3, "formGroup"], [1, "manage-filter"], [1, "form-group", "w-100", "p-3"], [1, "criteria-source", "mt-3"], ["formControlName", "type", 1, "form-control"], ["value", "readership"], ["value", "comments"], ["value", "like"], [1, "form-group", "date-container"], ["for", "fromDate", 1, "pb-2", "font-weight-bold"], [1, "input-group"], ["placeholder", "yyyy-mm-dd", "name", "dp", "ngbDatepicker", "", 1, "form-control", 2, "max-width", "240px", 3, "dateSelect"], ["d", "ngbDatepicker"], [1, "input-group-append"], ["type", "button", 1, "btn", "btn-outline-secondary", "calendar", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-calendar"], ["for", "startDate", 1, "pb-2", "font-weight-bold"], ["c", "ngbDatepicker"], [1, "btn", "btn-success", 3, "click"]], template: function ChannelOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, ChannelOverviewComponent_div_0_Template, 31, 16, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, ChannelOverviewComponent_div_1_Template, 33, 7, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, ChannelOverviewComponent_ng_template_2_Template, 45, 1, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.onViewChannelData);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.onViewChannelData);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormControlName"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbInputDatepicker"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\n\nselect[disabled][_ngcontent-%COMP%] {\n background-color: transparent;\n}\n\ninput[readonly][_ngcontent-%COMP%] {\n background-color: transparent;\n border: 1px solid #ced4da;\n font-size: 1em;\n}\n\n.active-status[_ngcontent-%COMP%] {\n text-transform: capitalize;\n}\n\n.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n\n.card-data[_ngcontent-%COMP%] {\n border: 1px solid #eeeeee;\n width: 100%;\n height: 100vh;\n}\n\n.justify-content-SB[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.date-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.close-button[_ngcontent-%COMP%] {\n box-shadow: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9jaGFubmVsLXNldHVwL2NoYW5uZWwtb3ZlcnZpZXcvY2hhbm5lbC1vdmVydmlldy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQTtFQUNFLHFCQUFBO0VBQ0EsVUFBQTtBQUFGOztBQUVBO0VBQ0UsNkJBQUE7QUFDRjs7QUFFQTtFQUNFLDZCQUFBO0VBQ0EseUJBQUE7RUFDQSxjQUFBO0FBQ0Y7O0FBRUE7RUFDRSwwQkFBQTtBQUNGOztBQUVBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtFQUNBLGFBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUNGOztBQUVBO0VBQ0UsZ0JBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vY2hhbm5lbC1zZXR1cC9jaGFubmVsLW92ZXJ2aWV3L2NoYW5uZWwtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJcbnVse1xuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG4gIHBhZGRpbmc6IDA7XG59XG5zZWxlY3RbZGlzYWJsZWRde1xuICBiYWNrZ3JvdW5kLWNvbG9yOnRyYW5zcGFyZW50O1xuXG59XG5pbnB1dFtyZWFkb25seV17XG4gIGJhY2tncm91bmQtY29sb3I6dHJhbnNwYXJlbnQ7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjZWQ0ZGE7XG4gIGZvbnQtc2l6ZTogMWVtO1xufVxuXG4uYWN0aXZlLXN0YXR1c3tcbiAgdGV4dC10cmFuc2Zvcm06IGNhcGl0YWxpemU7XG59XG5cbi5idG4tc3VibWl0e1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzMzN2FiNztcbiAgYm9yZGVyLWNvbG9yOiAjMmU2ZGE0O1xufVxuXG4uY2FyZC1kYXRhe1xuICBib3JkZXI6IDFweCBzb2xpZCAjZWVlZWVlO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDB2aDtcbn1cblxuLmp1c3RpZnktY29udGVudC1TQntcbiAgZGlzcGxheTogZmxleDtcbn1cblxuLmRhdGUtY29udGFpbmVye1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5jbG9zZS1idXR0b257XG4gIGJveC1zaGFkb3c6IG5vbmU7XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ChannelOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-channel-overview',
templateUrl: './channel-overview.component.html',
styleUrls: ['./channel-overview.component.scss']
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormBuilder"] }, { type: src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_7__["ChannelService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__["NotificationService"] }]; }, { editChannel: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}], AddSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddSection', { static: true }]
}] }); })();
/***/ }),
/***/ "cGxm":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/filter-display/filter-display.ts ***!
\************************************************************************************************/
/*! exports provided: FilterDisplayComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FilterDisplayComponent", function() { return FilterDisplayComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function FilterDisplayComponent_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FilterDisplayComponent_div_7_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FilterDisplayComponent_div_7_Template_input_click_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.changeStatus($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "span", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "OLD SERVICE DATA");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", ctx_r1.dataStatus ? "checked" : "");
} }
const _c0 = function () { return { standalone: true }; };
function FilterDisplayComponent_div_10_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Service Date & Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function FilterDisplayComponent_div_10_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.selectService($event); })("ngModelChange", function FilterDisplayComponent_div_10_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.selectedDateTime = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r2.selectedDateTime)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](7, _c0))("items", ctx_r2.dateTimeOptions);
} }
function FilterDisplayComponent_div_11_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const unit_r14 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", unit_r14._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", unit_r14.name, " ");
} }
function FilterDisplayComponent_div_11_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function FilterDisplayComponent_div_11_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.selectBU($event); })("ngModelChange", function FilterDisplayComponent_div_11_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.selectedBusinessUnit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, FilterDisplayComponent_div_11_option_4_Template, 2, 2, "option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r3.selectedBusinessUnit)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](8, _c0))("items", ctx_r3.businessUnitOptions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.businessUnitOptions);
} }
function FilterDisplayComponent_div_12_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r19 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r19.orgName, " ");
} }
function FilterDisplayComponent_div_12_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Business unit (Plan) ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function FilterDisplayComponent_div_12_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.selectedBusinessUnit = $event; })("search", function FilterDisplayComponent_div_12_Template_ng_select_search_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.onSearchPlanBuUnit($event); })("scrollToEnd", function FilterDisplayComponent_div_12_Template_ng_select_scrollToEnd_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.loadMorePlanBuUnitItems($event); })("clear", function FilterDisplayComponent_div_12_Template_ng_select_clear_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r24.onClearPlanBuUnitDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, FilterDisplayComponent_div_12_ng_option_4_Template, 2, 2, "ng-option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("closeOnSelect", true)("clearable", true)("ngModel", ctx_r4.selectedBusinessUnit)("loading", ctx_r4.planBuUnitDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.planBuUnitDropDown);
} }
function FilterDisplayComponent_button_22_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FilterDisplayComponent_button_22_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r25.exportToExcel(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Export To Excel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FilterDisplayComponent_button_23_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FilterDisplayComponent_button_23_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r27.exportToPDF(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Export To PDF ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FilterDisplayComponent_div_24_option_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r31 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r31.questionId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", option_r31.key, " ");
} }
function FilterDisplayComponent_div_24_div_9_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FilterDisplayComponent_div_24_div_9_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r32.finalExportToPDF(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Export to PDF ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FilterDisplayComponent_div_24_div_9_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r33); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r34.closePopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Close");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r30.groupColumn);
} }
function FilterDisplayComponent_div_24_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Select a column to group the data by.");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Select an option");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "ng-select", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function FilterDisplayComponent_div_24_Template_ng_select_ngModelChange_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r36); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r35.groupColumn = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, FilterDisplayComponent_div_24_option_8_Template, 2, 2, "option", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, FilterDisplayComponent_div_24_div_9_Template, 5, 1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r7.groupColumn)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](9, _c0))("items", ctx_r7.columnList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r7.columnList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r7.componentData == null ? null : ctx_r7.componentData.formSubTypeId);
} }
class FilterDisplayComponent {
constructor(customFromService, buUnit, toastService) {
this.customFromService = customFromService;
this.buUnit = buUnit;
this.toastService = toastService;
this.selectedDateTime = '';
this.selectedBusinessUnit = '';
this.selectedStatus = null;
this.isLoader = false;
this.dateTimeOptions = [];
this.businessUnitOptions = [];
this.statusOptions = ['Active', 'Inactive', 'Pending'];
this.customFormId = null;
this.formName = null;
this.componentData = null;
this.firstRow = null;
this.filterCall = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.exportCall = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.isVisible = false;
this.columnList = [];
this.groupColumn = '';
this.allServiceId = [];
this.planBuUnitDropDown = [];
this.planBuUnitDropDownLoading = false;
this.excludeFilter = ['Submission'];
this.businessUnitPlanPTable = {
sortBy: 'createdAt',
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
filter: {
type: 'plan',
},
};
}
ngOnInit() {
const data = localStorage.getItem("privilegeFlags");
this.privilegeFlags = JSON.parse(data);
if (!this.componentData.formSubTypeId) {
this.loadBusinessPlanUnit();
}
else {
this.loadTwoTierBusinessUnit();
}
setTimeout(() => {
this.clearFilters();
}, 1000);
}
loadTwoTierBusinessUnit() {
this.customFromService
.getTransportBusinessUnit()
.subscribe((data) => {
this.businessUnitOptions = data === null || data === void 0 ? void 0 : data.data;
});
}
editDateTime() {
// Add your logic to edit date and time here
}
exportToExcel() {
this.exportCall.emit({
type: 'CSV',
});
}
finalExportToPDF() {
this.isLoader = true;
this.exportCall.emit({
type: 'PDF',
groupBy: this.groupColumn.questionId,
});
setTimeout(() => {
this.isLoader = false;
this.closePopup();
this.toastService.success("Data exported successfully", 'Success');
}, 100);
}
exportToPDF() {
this.isLoader = true;
if (this.firstRow) {
this.columnList = Object.keys(this.firstRow)
.filter(key => this.firstRow[key].questionId)
.map(key => ({
key: key,
questionId: this.firstRow[key].questionId
}));
this.isVisible = true;
}
else {
this.toastService.error('No data found', 'Error');
}
this.isLoader = false;
}
closePopup() {
this.isVisible = false;
}
changeStatus(event) {
var _a;
this.dataStatus = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.checked;
this.prepareServiceTimeDropDown();
setTimeout(() => {
this.clearFilters();
}, 1000);
}
ngOnChanges(changes) {
var _a;
if (changes.componentData && this.componentData.formSubTypeId) {
this.prepareServiceTimeDropDown();
}
if (changes.statusOptions) {
this.statusOptions = changes.statusOptions.currentValue;
this.statusOptions = (_a = this.statusOptions) === null || _a === void 0 ? void 0 : _a.filter((s) => !this.excludeFilter.includes(s._id));
}
if (changes.firstRow) {
this.firstRow = changes.firstRow.currentValue;
console.log(this.firstRow);
}
}
prepareServiceTimeDropDown() {
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
const fetchServicedata = !this.dataStatus ? this.customFromService.serviceTimeDropDown(this.componentData.formSubTypeId, timeZone) :
this.customFromService.serviceTimeDropDownAll(this.componentData.formSubTypeId, timeZone);
fetchServicedata.subscribe((data) => {
this.dateTimeOptions = data === null || data === void 0 ? void 0 : data.data;
this.selectedDateTime = "";
this.allServiceId = this.dateTimeOptions.map(item => item._id);
if (this.selectedDateTime) {
this.viewResults();
}
});
}
selectService(event) {
this.selectedDateTime = event === null || event === void 0 ? void 0 : event._id;
}
selectBU(event) {
console.log(event);
}
editStatus() {
// Add your logic to edit status here
}
viewResults() {
var _a, _b;
console.log('Selected DateTime:', this.selectedDateTime, this.selectedBusinessUnit, this.selectedStatus);
this.filterCall.emit({
serviceId: this.selectedDateTime ? [this.selectedDateTime] : this.allServiceId,
buId: (_a = this.selectedBusinessUnit) === null || _a === void 0 ? void 0 : _a._id,
status: this.componentData.formSubTypeId ? this.selectedStatus : (_b = this.selectedStatus) === null || _b === void 0 ? void 0 : _b._id,
currentPage: 1
});
// Add your logic to view the results here
}
clearFilters() {
var _a;
this.selectedBusinessUnit = '';
this.selectedStatus = '';
this.selectedDateTime = '';
this.filterCall.emit({
serviceId: this.selectedDateTime ? [this.selectedDateTime] : this.allServiceId,
buId: this.selectedBusinessUnit,
status: (_a = this.selectedStatus) === null || _a === void 0 ? void 0 : _a._id,
currentPage: 1,
isClear: true
});
}
loadBusinessPlanUnit() {
this.planBuUnitDropDownLoading = true;
const _a = this.businessUnitPlanPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const subscribe = this.buUnit
.getBussinesUnit(rest, true)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.planBuUnitDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, businessUnitList } = response;
this.businessUnitPlanPTable.data = businessUnitList;
this.planBuUnitDropDown = businessUnitList;
}, (error) => {
this.businessUnitPlanPTable.data = [];
// this.toastService.error('No list found');
});
}
onSearchPlanBuUnit(value) {
this.businessUnitPlanPTable.limit = 10;
this.businessUnitPlanPTable.search = value.term;
this.loadBusinessPlanUnit();
}
loadMorePlanBuUnitItems(value) {
this.businessUnitPlanPTable.limit = this.businessUnitPlanPTable.limit + 10;
this.loadBusinessPlanUnit();
}
onClearPlanBuUnitDropdown(value) {
if (value === undefined) {
this.businessUnitPlanPTable.search = '';
this.loadBusinessPlanUnit();
this.planBuUnitDropDown = [];
this.businessUnitPlanPTable.data = [];
}
}
}
FilterDisplayComponent.ɵfac = function FilterDisplayComponent_Factory(t) { return new (t || FilterDisplayComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_3__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_4__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
FilterDisplayComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: FilterDisplayComponent, selectors: [["filter-display"]], inputs: { statusOptions: "statusOptions", customFormId: "customFormId", formName: "formName", componentData: "componentData", firstRow: "firstRow" }, outputs: { filterCall: "filterCall", exportCall: "exportCall" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]], decls: 25, vars: 18, consts: [[1, "row", "mb-3"], ["style", "position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1050;background-color: rgba(0, 0, 0, 0.5);overflow: auto;", 4, "ngIf"], [1, "col-md-12"], [1, "card"], [1, "card-header", "bg-theme", "flexi-header", "d-flex", "justify-content-between"], [4, "ngIf"], [1, "card-body"], [1, "row", "d-flex"], ["class", "form-group col-md-3", 4, "ngIf"], [1, "form-group", "col-md-2"], ["for", "status", 1, "font-weight-500"], ["id", "status", "placeholder", "Select", "appendTo", "body", "bindValue", "_id", 1, "custom", "margin", 3, "bindLabel", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "items", "ngModelChange"], [1, "form-group", "col-md-4", "align-self-end", "pull-right"], ["type", "submit", 1, "btn", "btn-success", "m-2", 3, "click"], ["type", "submit", 1, "btn", "btn-danger", "m-2", 3, "click"], ["class", "btn btn-primary ml-1", 3, "click", 4, "ngIf"], ["class", "popup-container", 4, "ngIf"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "700%"], [1, "innerDiv", 2, "position", "absolute", "top", "50%", "left", "50%"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "switch"], ["type", "checkbox", 3, "checked", "click"], [1, "slider", "round"], [1, "font-weight-500", "pl-2"], [1, "form-group", "col-md-3"], [1, "font-weight-500"], ["bindLabel", "value", "bindValue", "_id", "placeholder", "Select", "appendTo", "body", 1, "custom", "margin", 3, "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "items", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select", "appendTo", "body", 1, "custom", "margin", 3, "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "items", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["bindLabel", "businessUnit", "placeholder", "Business unit (Plan)", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "closeOnSelect", "clearable", "ngModel", "loading", "ngModelChange", "search", "scrollToEnd", "clear"], [1, "btn", "btn-primary", "ml-1", 3, "click"], [1, "popup-container"], [1, "card-header", "bg-theme"], [1, "popup-content"], [1, "form-group", "col-md-11"], ["id", "status", "placeholder", "Select", "appendTo", "body", "bindLabel", "key", 1, "custom", "margin", 3, "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "items", "ngModelChange"], ["class", "d-flex justify-content-center pb-4", 4, "ngIf"], [1, "d-flex", "justify-content-center", "pb-4"], [1, "btn", "btn-success", "ml-1", 3, "disabled", "click"], [1, "btn", "btn-danger", "ml-1", 3, "click"]], template: function FilterDisplayComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, FilterDisplayComponent_div_1_Template, 4, 0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, FilterDisplayComponent_div_7_Template, 6, 1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, FilterDisplayComponent_div_10_Template, 4, 8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, FilterDisplayComponent_div_11_Template, 5, 9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, FilterDisplayComponent_div_12_Template, 5, 7, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Status");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "ng-select", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function FilterDisplayComponent_Template_ng_select_ngModelChange_16_listener($event) { return ctx.selectedStatus = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FilterDisplayComponent_Template_button_click_18_listener() { return ctx.viewResults(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "button", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FilterDisplayComponent_Template_button_click_20_listener() { return ctx.clearFilters(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, FilterDisplayComponent_button_22_Template, 2, 0, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, FilterDisplayComponent_button_23_Template, 2, 0, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, FilterDisplayComponent_div_24_Template, 10, 10, "div", 16);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", ctx.formName, " Filters ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.componentData.formSubTypeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.componentData.formSubTypeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.componentData.formSubTypeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.componentData.formSubTypeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("bindLabel", !ctx.componentData.formSubTypeId ? "field" : "_id")("multiple", !!ctx.componentData.formSubTypeId ? false : true)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx.selectedStatus)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](17, _c0))("items", ctx.statusOptions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.privilegeFlags.manageForm || ctx.privilegeFlags.formSupervisor || ctx.privilegeFlags.exportManageFormOnly);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (ctx.privilegeFlags.manageForm || ctx.privilegeFlags.formSupervisor || ctx.privilegeFlags.exportManageFormOnly) && (ctx.componentData == null ? null : ctx.componentData.formSubTypeId));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isVisible);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["ɵr"]], styles: [".stats-container[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-around;\n padding: 10px;\n border: 1px solid #ddd;\n background-color: #f9f9f9;\n}\n\n.stat-item[_ngcontent-%COMP%] {\n text-align: center;\n margin: 0 10px;\n}\n\n.stat-label[_ngcontent-%COMP%] {\n font-weight: bold;\n margin-bottom: 5px;\n}\n\n.stat-value[_ngcontent-%COMP%] {\n font-size: 20px;\n color: #a52a2a;\n}\n\n.statuses[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.status-item[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.separator[_ngcontent-%COMP%] {\n height: 30px;\n width: 1px;\n background-color: #a52a2a;\n margin: 0 10px;\n}\n\n.popup-container[_ngcontent-%COMP%] {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n background-color: white;\n box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);\n height: 150px;\n width: 350px;\n border-radius: 10px;\n z-index: 1000;\n}\n\n.popup-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\n.popup-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n margin-bottom: 10px;\n}\n\n.popup-content[_ngcontent-%COMP%] select[_ngcontent-%COMP%] {\n margin-bottom: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2ZpbHRlci1kaXNwbGF5L2ZpbHRlci1kaXNwbGF5LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLGNBQUE7QUFDRjs7QUFFQTtFQUNFLGlCQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGVBQUE7RUFDQSxjQUFBO0FBQ0Y7O0FBRUE7RUFDRSxhQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSxzQkFBQTtFQUNBLG1CQUFBO0FBQ0Y7O0FBRUE7RUFDRSxZQUFBO0VBQ0EsVUFBQTtFQUNBLHlCQUFBO0VBQ0EsY0FBQTtBQUNGOztBQUdBO0VBQ0UsZUFBQTtFQUNBLFFBQUE7RUFDQSxTQUFBO0VBQ0EsZ0NBQUE7RUFDQSx1QkFBQTtFQUVBLHlDQUFBO0VBQ0EsYUFBQTtFQUNFLFlBQUE7RUFDQSxtQkFBQTtFQUNGLGFBQUE7QUFERjs7QUFJQTtFQUNFLGFBQUE7RUFDQSxzQkFBQTtBQURGOztBQUlBO0VBQ0UsbUJBQUE7QUFERjs7QUFJQTtFQUNFLG1CQUFBO0FBREYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jZW50cmFsLWJ1aWxkZXIvZm9ybXMvZm9ybS1tYW5hZ2UvZmlsdGVyLWRpc3BsYXkvZmlsdGVyLWRpc3BsYXkuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5zdGF0cy1jb250YWluZXIge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWFyb3VuZDtcbiAgcGFkZGluZzogMTBweDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2RkZDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Y5ZjlmOTtcbn1cblxuLnN0YXQtaXRlbSB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgbWFyZ2luOiAwIDEwcHg7XG59XG5cbi5zdGF0LWxhYmVsIHtcbiAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gIG1hcmdpbi1ib3R0b206IDVweDtcbn1cblxuLnN0YXQtdmFsdWUge1xuICBmb250LXNpemU6IDIwcHg7XG4gIGNvbG9yOiAjYTUyYTJhO1xufVxuXG4uc3RhdHVzZXMge1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xufVxuXG4uc3RhdHVzLWl0ZW0ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xufVxuXG4uc2VwYXJhdG9yIHtcbiAgaGVpZ2h0OiAzMHB4O1xuICB3aWR0aDogMXB4O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTUyYTJhO1xuICBtYXJnaW46IDAgMTBweDtcbn1cblxuXG4ucG9wdXAtY29udGFpbmVyIHtcbiAgcG9zaXRpb246IGZpeGVkO1xuICB0b3A6IDUwJTtcbiAgbGVmdDogNTAlO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG4gIC8vIHBhZGRpbmc6IDIwcHg7XG4gIGJveC1zaGFkb3c6IDAgNXB4IDE1cHggcmdiYSgwLCAwLCAwLCAwLjMpO1xuICBoZWlnaHQ6IDE1MHB4O1xuICAgIHdpZHRoOiAzNTBweDtcbiAgICBib3JkZXItcmFkaXVzOiAxMHB4O1xuICB6LWluZGV4OiAxMDAwO1xufVxuXG4ucG9wdXAtY29udGVudCB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG59XG5cbi5wb3B1cC1jb250ZW50IGgyIHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbn1cblxuLnBvcHVwLWNvbnRlbnQgc2VsZWN0IHtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FilterDisplayComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'filter-display',
templateUrl: './filter-display.html',
styleUrls: ['./filter-display.scss'],
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_3__["CustomFormService"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_4__["BussinessUnitService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { statusOptions: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], customFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], formName: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], componentData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], firstRow: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], filterCall: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], exportCall: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "cYTg":
/*!**********************************************************!*\
!*** ./src/app/shared/directive/numberOnly.directive.ts ***!
\**********************************************************/
/*! exports provided: NumberOnlyDirective */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberOnlyDirective", function() { return NumberOnlyDirective; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
// number-only.directive.ts
class NumberOnlyDirective {
onKeyPress(event) {
const char = String.fromCharCode(event.which);
if (!/^[0-9]*$/.test(char)) {
event.preventDefault(); // Prevent non-numeric input
}
}
onInput(event) {
const inputElement = event.target;
inputElement.value = inputElement.value.replace(/[^0-9]/g, ''); // Remove non-numeric characters
}
}
NumberOnlyDirective.ɵfac = function NumberOnlyDirective_Factory(t) { return new (t || NumberOnlyDirective)(); };
NumberOnlyDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NumberOnlyDirective, selectors: [["", "appNumberOnly", ""]], hostBindings: function NumberOnlyDirective_HostBindings(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keypress", function NumberOnlyDirective_keypress_HostBindingHandler($event) { return ctx.onKeyPress($event); })("input", function NumberOnlyDirective_input_HostBindingHandler($event) { return ctx.onInput($event); });
} } });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NumberOnlyDirective, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
args: [{
selector: '[appNumberOnly]'
}]
}], null, { onKeyPress: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"],
args: ['keypress', ['$event']]
}], onInput: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"],
args: ['input', ['$event']]
}] }); })();
/***/ }),
/***/ "cd1d":
/*!***********************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-service/plan-service.component.ts ***!
\***********************************************************************************************/
/*! exports provided: PlanServiceComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlanServiceComponent", function() { return PlanServiceComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _create_service_create_service_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./create-service/create-service.component */ "YxiC");
/* harmony import */ var _plan_service_logs_plan_service_logs_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./plan-service-logs/plan-service-logs.component */ "MQkD");
const _c0 = ["sidemenu"];
function PlanServiceComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "SERVICE TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function PlanServiceComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r3.serviceType = $event; })("scrollToEnd", function PlanServiceComponent_div_0_Template_ng_select_scrollToEnd_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.loadMoreServiceTypes($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "button", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanServiceComponent_div_0_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.cancelSelection(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function PlanServiceComponent_div_0_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.viewClicked(ctx_r7.serviceType); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.serviceTypeList)("searchable", true)("clearable", true)("closeOnSelect", true)("virtualScroll", true)("loading", ctx_r0.serviceTypeLoader)("loadingText", "Loading more...")("ngModel", ctx_r0.serviceType);
} }
function PlanServiceComponent_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-create-service", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("tabChange", function PlanServiceComponent_div_1_ng_template_6_Template_app_create_service_tabChange_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r11.activeId = 2; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("serviceType", ctx_r9.serviceType);
} }
function PlanServiceComponent_div_1_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-plan-service-logs", 22);
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("serviceType", ctx_r10.serviceType);
} }
function PlanServiceComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 13, 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function PlanServiceComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r13.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Create Service");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, PlanServiceComponent_div_1_ng_template_6_Template, 1, 1, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Logs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, PlanServiceComponent_div_1_ng_template_10_Template, 1, 1, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r8);
} }
class PlanServiceComponent {
constructor(setupService, router, route, renderer, toastrService) {
this.setupService = setupService;
this.router = router;
this.route = route;
this.renderer = renderer;
this.toastrService = toastrService;
this.activeId = 1;
this.serviceTypeList = [];
this.serviceType = null;
this.isView = false;
this.serviceTypeLoader = false;
this.pagination = {
page: 1,
limit: 10,
sort: '{"createdAt": -1}',
};
this.router.routeReuseStrategy.shouldReuseRoute = () => false;
this.router.onSameUrlNavigation = 'reload';
}
ngOnInit() {
this.route.data.subscribe((data) => {
this.isView = data.isView;
});
this.getServiceType();
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
getServiceType() {
this.serviceTypeLoader = true;
const subscribe = this.setupService
.getServiceType(this.pagination)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
subscribe.unsubscribe();
this.serviceTypeLoader = false;
}))
.subscribe((response) => {
const { data, totalRecords } = response.data;
this.serviceTypeList = [...this.serviceTypeList, ...data];
}, (error) => {
var _a, _b;
const errorMessage = ((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to load service types';
this.toastrService.error(errorMessage);
});
}
loadMoreServiceTypes() {
this.pagination.page++;
this.getServiceType();
}
viewClicked(serviceType) {
if (serviceType) {
this.serviceType = serviceType;
this.isView = true;
}
else {
this.toastrService.warning('Please select a Service Type', 'Warning');
}
}
cancelSelection() {
this.serviceType = null;
}
ngOnDestroy() {
if (this.routeSub) {
this.routeSub.unsubscribe();
}
}
}
PlanServiceComponent.ɵfac = function PlanServiceComponent_Factory(t) { return new (t || PlanServiceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"])); };
PlanServiceComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: PlanServiceComponent, selectors: [["app-plan-service"]], viewQuery: function PlanServiceComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
} }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "form-group"], [1, "d-block", "text-center"], ["bindLabel", "serviceTypeName", "placeholder", "Select/Search Service type", "appendTo", "body", 1, "custom", 3, "items", "searchable", "clearable", "closeOnSelect", "virtualScroll", "loading", "loadingText", "ngModel", "ngModelChange", "scrollToEnd"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block", 3, "click"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [1, "not-allowed", 3, "ngbNavItem"], ["ngbNavLink", "", 1, "no-click"], [3, "ngbNavOutlet"], [3, "serviceType", "tabChange"], [3, "serviceType"]], template: function PlanServiceComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, PlanServiceComponent_div_0_Template, 14, 8, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, PlanServiceComponent_div_1_Template, 12, 4, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_6__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__["NativeElementInjectorDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbNavOutlet"], _create_service_create_service_component__WEBPACK_IMPORTED_MODULE_10__["CreateServiceComponent"], _plan_service_logs_plan_service_logs_component__WEBPACK_IMPORTED_MODULE_11__["PlanServiceLogsComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3BsYW4tc2VydmljZS9wbGFuLXNlcnZpY2UuY29tcG9uZW50LnNjc3MifQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlanServiceComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-plan-service',
templateUrl: './plan-service.component.html',
styleUrls: ['./plan-service.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__["SetupService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }]; }, { sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sidemenu']
}] }); })();
/***/ }),
/***/ "d4JE":
/*!**********************************************************************************************************!*\
!*** ./src/app/shared/angular-date-time-picker/date-time-picker.html/date-time-picker.html.component.ts ***!
\**********************************************************************************************************/
/*! exports provided: DateTimePickerComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateTimePickerComponent", function() { return DateTimePickerComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _date_time_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../date-time.model */ "kjr7");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @fortawesome/free-regular-svg-icons */ "twK/");
/* harmony import */ var _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @fortawesome/angular-fontawesome */ "6NWb");
function DateTimePickerComponent_ng_template_6_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Please select date first");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function DateTimePickerComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ngb-datepicker", 7, 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DateTimePickerComponent_ng_template_6_Template_ngb_datepicker_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r4.onDateChange($event, _r2); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, DateTimePickerComponent_ng_template_6_span_5_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Then select time : ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "ngb-timepicker", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function DateTimePickerComponent_ng_template_6_Template_ngb_timepicker_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.time = $event; })("ngModelChange", function DateTimePickerComponent_ng_template_6_Template_ngb_timepicker_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.onTimeChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("minDate", ctx_r1.minDate)("maxDate", ctx_r1.maxDate)("ngModel", ctx_r1.datetime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !(ctx_r1.datetime == null ? null : ctx_r1.datetime.day));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.time)("hourStep", ctx_r1.hourStep)("minuteStep", ctx_r1.minuteStep)("disabled", !(ctx_r1.datetime == null ? null : ctx_r1.datetime.day));
} }
const _c0 = function () { return ["far", "calendar"]; };
class DateTimePickerComponent {
constructor(config, inj, library) {
this.config = config;
this.inj = inj;
this.inputDatetimeFormat = 'd/M/yyyy H:mm';
this.hourStep = 1;
this.minuteStep = 15;
this.secondStep = 30;
this.seconds = true;
this.time = { hour: 0, minute: 0 };
this.disabled = false;
this.showTimePickerToggle = false;
this.datetime = new _date_time_model__WEBPACK_IMPORTED_MODULE_4__["DateTimeModel"]();
this.firstTimeAssign = true;
// @ViewChild(NgbDatepicker, { static: true })
// private dp: NgbDatepicker;
this.sendDate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.onTouched = rxjs__WEBPACK_IMPORTED_MODULE_5__["noop"];
this.onChange = rxjs__WEBPACK_IMPORTED_MODULE_5__["noop"];
config.autoClose = 'outside';
config.placement = 'auto';
library.addIcons(_fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_6__["faCalendar"], _fortawesome_free_regular_svg_icons__WEBPACK_IMPORTED_MODULE_6__["faClock"]);
const current = new Date();
this.minDate = {
year: current.getFullYear(),
month: current.getMonth() + 1,
day: current.getDate(),
};
// this.maxDate = { year: current.getFullYear(), month: current.getMonth() + 3, day: current.getDate() }
}
ngOnInit() {
this.ngControl = this.inj.get(_angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControl"]);
}
writeValue(newModel) {
if (newModel) {
this.datetime = Object.assign(this.datetime, _date_time_model__WEBPACK_IMPORTED_MODULE_4__["DateTimeModel"].fromLocalString(newModel));
this.dateString = newModel;
this.setDateStringModel();
}
else {
this.datetime = new _date_time_model__WEBPACK_IMPORTED_MODULE_4__["DateTimeModel"]();
}
}
registerOnChange(fn) {
this.onChange = fn;
}
registerOnTouched(fn) {
this.onTouched = fn;
}
toggleDateTimeState($event) {
this.showTimePickerToggle = !this.showTimePickerToggle;
$event.stopPropagation();
}
setDisabledState(isDisabled) {
this.disabled = isDisabled;
}
onInputChange($event) {
const value = $event.target.value;
const dt = _date_time_model__WEBPACK_IMPORTED_MODULE_4__["DateTimeModel"].fromLocalString(value);
if (dt) {
this.datetime = dt;
this.setDateStringModel();
}
else if (value.trim() === '') {
this.datetime = new _date_time_model__WEBPACK_IMPORTED_MODULE_4__["DateTimeModel"]();
this.dateString = '';
this.onChange(this.dateString);
}
else {
this.onChange(value);
}
}
onDateChange($event, dp) {
const date = new _date_time_model__WEBPACK_IMPORTED_MODULE_4__["DateTimeModel"]($event);
if (!date) {
this.dateString = this.dateString;
return;
}
if (!this.datetime) {
this.datetime = date;
}
this.datetime.year = date.year;
this.datetime.month = date.month;
this.datetime.day = date.day;
const data = {
year: this.datetime.year,
month: this.datetime.month,
day: this.datetime.day,
};
this.sendDate.emit(data);
const adjustedDate = new Date(this.datetime.toString());
if (this.datetime.timeZoneOffset !== adjustedDate.getTimezoneOffset()) {
this.datetime.timeZoneOffset = adjustedDate.getTimezoneOffset();
}
this.setDateStringModel();
}
onTimeChange(event) {
this.datetime.hour = event.hour;
this.datetime.minute = event.minute;
this.datetime.second = event.second;
this.setDateStringModel();
}
setDateStringModel() {
this.dateString = this.datetime.toString();
this.onChange(this.dateString);
if (this.dateString !== null) {
this.firstTimeAssign = false;
}
// if (!this.firstTimeAssign) {
// } else {
// // Skip very first assignment to null done by Angular
// }
}
inputBlur($event) {
this.onTouched();
}
}
DateTimePickerComponent.ɵfac = function DateTimePickerComponent_Factory(t) { return new (t || DateTimePickerComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPopoverConfig"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_7__["FaIconLibrary"])); };
DateTimePickerComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DateTimePickerComponent, selectors: [["app-date-time-picker"]], viewQuery: function DateTimePickerComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPopover"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.popover = _t.first);
} }, inputs: { dateString: "dateString", inputDatetimeFormat: "inputDatetimeFormat", hourStep: "hourStep", minuteStep: "minuteStep", secondStep: "secondStep", seconds: "seconds", disabled: "disabled", minDate: "minDate", maxDate: "maxDate" }, outputs: { sendDate: "sendDate" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
_angular_common__WEBPACK_IMPORTED_MODULE_3__["DatePipe"],
{
provide: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"],
useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => DateTimePickerComponent),
multi: true,
},
])], decls: 8, vars: 10, consts: [[1, "input-group", "mr-2"], ["readonly", "", "placeholder", "dd-mm-yyyy 0:00", 1, "form-control", 3, "ngClass", "ngModel", "blur", "change"], [1, "input-group-append"], ["container", "body", "type", "button", 1, "btn", "btn-outline-secondary", 3, "ngbPopover", "disabled"], [3, "icon"], ["style", "z-index: 999 !important;"], ["calendarContent", ""], ["id", "dp", "name", "datepicker", 3, "minDate", "maxDate", "ngModel", "ngModelChange"], ["dp", ""], [1, "datePicker"], ["class", "errorMessage", 4, "ngIf"], [1, "timepicker"], [1, "time"], ["meridian", "true", 3, "ngModel", "hourStep", "minuteStep", "disabled", "ngModelChange"], [1, "errorMessage"]], template: function DateTimePickerComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("blur", function DateTimePickerComponent_Template_input_blur_1_listener($event) { return ctx.inputBlur($event); })("change", function DateTimePickerComponent_Template_input_change_1_listener($event) { return ctx.onInputChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "fa-icon", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, DateTimePickerComponent_ng_template_6_Template, 12, 8, "ng-template", 5, 6, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", (ctx.ngControl == null ? null : ctx.ngControl.valid) ? "ng-valid" : "ng-invalid")("ngModel", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 6, ctx.dateString, ctx.inputDatetimeFormat));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.disabled);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbPopover", _r0)("disabled", ctx.disabled);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("icon", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](9, _c0));
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPopover"], _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_7__["FaIconComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDatepicker"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbTimepicker"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DatePipe"]], styles: ["input[readonly][_ngcontent-%COMP%] {\n background-color: transparent;\n}\n\n.timepicker[_ngcontent-%COMP%] {\n text-align: center;\n color: #007bff;\n padding-top: 5px;\n font-weight: 400;\n font-size: 13px;\n}\n\n.timepicker[_ngcontent-%COMP%] .time[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n font-size: 13px;\n}\n\n.errorMessage[_ngcontent-%COMP%] {\n font-size: 13px;\n color: red;\n}\n\n.datePicker[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n .ngb-tp-input {\n pointer-events: none;\n background-color: #e9ecef;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvc2hhcmVkL2FuZ3VsYXItZGF0ZS10aW1lLXBpY2tlci9kYXRlLXRpbWUtcGlja2VyLmh0bWwvZGF0ZS10aW1lLXBpY2tlci5odG1sLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNkJBQUE7QUFDRjs7QUFHQTtFQUNHLGtCQUFBO0VBQ0EsY0FBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxlQUFBO0FBQUg7O0FBQ0c7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7RUFDQSxlQUFBO0FBQ0w7O0FBR0E7RUFDRSxlQUFBO0VBQ0EsVUFBQTtBQUFGOztBQUdBO0VBQ0Usa0JBQUE7QUFBRjs7QUFHQztFQUNFLG9CQUFBO0VBQ0EseUJBQUE7QUFBSCIsImZpbGUiOiJzcmMvYXBwL3NoYXJlZC9hbmd1bGFyLWRhdGUtdGltZS1waWNrZXIvZGF0ZS10aW1lLXBpY2tlci5odG1sL2RhdGUtdGltZS1waWNrZXIuaHRtbC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlucHV0W3JlYWRvbmx5XXtcbiAgYmFja2dyb3VuZC1jb2xvcjp0cmFuc3BhcmVudDtcblxufVxuXG4udGltZXBpY2tlciB7XG4gICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICBjb2xvcjogIzAwN2JmZjtcbiAgIHBhZGRpbmctdG9wOiA1cHg7XG4gICBmb250LXdlaWdodDogNDAwO1xuICAgZm9udC1zaXplOiAxM3B4O1xuICAgLnRpbWUge1xuICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgZm9udC1zaXplOiAxM3B4O1xuICAgfVxuIH1cblxuLmVycm9yTWVzc2FnZXtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBjb2xvcjogcmVkO1xufVxuXG4uZGF0ZVBpY2tlciB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cblxuIDo6bmctZGVlcCAubmdiLXRwLWlucHV0IHtcbiAgIHBvaW50ZXItZXZlbnRzOiBub25lO1xuICAgYmFja2dyb3VuZC1jb2xvcjogI2U5ZWNlZjtcbiB9Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DateTimePickerComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-date-time-picker',
templateUrl: './date-time-picker.html.component.html',
styleUrls: ['./date-time-picker.html.component.scss'],
providers: [
_angular_common__WEBPACK_IMPORTED_MODULE_3__["DatePipe"],
{
provide: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NG_VALUE_ACCESSOR"],
useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => DateTimePickerComponent),
multi: true,
},
],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPopoverConfig"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }, { type: _fortawesome_angular_fontawesome__WEBPACK_IMPORTED_MODULE_7__["FaIconLibrary"] }]; }, { dateString: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], inputDatetimeFormat: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], hourStep: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], minuteStep: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], secondStep: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], seconds: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], disabled: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], minDate: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], maxDate: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], sendDate: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], popover: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPopover"], { static: true }]
}] }); })();
/***/ }),
/***/ "dB0Z":
/*!******************************************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/dynamic-table-form/workflow/workflow-status-modal.component.ts ***!
\******************************************************************************************************************************/
/*! exports provided: WorkflowStatusModalComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WorkflowStatusModalComponent", function() { return WorkflowStatusModalComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function WorkflowStatusModalComponent_div_8_div_1_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.title);
} }
function WorkflowStatusModalComponent_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function WorkflowStatusModalComponent_div_8_div_1_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const item_r3 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r7.onShowWorkFlowContent(item_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, WorkflowStatusModalComponent_div_8_div_1_span_2_Template, 2, 1, "span", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.workflow !== undefined && ctx_r2.workflow !== null);
} }
function WorkflowStatusModalComponent_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, WorkflowStatusModalComponent_div_8_div_1_Template, 3, 1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.workflow);
} }
function WorkflowStatusModalComponent_div_9_tr_29_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function WorkflowStatusModalComponent_div_9_tr_29_Template_input_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ques_r11 = ctx.$implicit; const index_r12 = ctx.index; const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r13.isAllSelected($event, ques_r11, index_r12); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ques_r11 = ctx.$implicit;
const index_r12 = ctx.index;
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("background", ques_r11.color);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ques_r11 == null ? null : ques_r11.field, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r9.isAdminTrue)("checked", (ques_r11 == null ? null : ques_r11.status) == true)("ngModel", ctx_r9.selectedCheckBoxIndex === index_r12);
} }
function WorkflowStatusModalComponent_div_9_tbody_65_tr_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ques_r16 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("background", ques_r16.color);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ques_r16 == null ? null : ques_r16.changeMessage, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ques_r16 == null ? null : ques_r16.user == null ? null : ques_r16.user.staffId, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ques_r16 == null ? null : ques_r16.user == null ? null : ques_r16.user.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](10, 6, ques_r16 == null ? null : ques_r16.createdAt, "medium"), " ");
} }
function WorkflowStatusModalComponent_div_9_tbody_65_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, WorkflowStatusModalComponent_div_9_tbody_65_tr_1_Template, 11, 9, "tr", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r10.workFlowLogTableData.data);
} }
function WorkflowStatusModalComponent_div_9_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Form Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Submitted User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Submitted At");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](15, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "WorkFlow Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "table", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " ADDED ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, WorkflowStatusModalComponent_div_9_tr_29_Template, 6, 6, "tr", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "button", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function WorkflowStatusModalComponent_div_9_Template_button_click_33_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.onCloseStatusFrom(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function WorkflowStatusModalComponent_div_9_Template_button_click_35_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r19.onSubmitColumnSettings(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "FORM STATUS LOG");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "select", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function WorkflowStatusModalComponent_div_9_Template_select_change_42_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.onLimitChangeWorkFlow(); })("ngModelChange", function WorkflowStatusModalComponent_div_9_Template_select_ngModelChange_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r21.workFlowLogTableData.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "option", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "option", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "option", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "option", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "option", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](52, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "table", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, " STAFF ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62, " UPDATED BY ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](64, " UPDATED AT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](65, WorkflowStatusModalComponent_div_9_tbody_65_Template, 2, 1, "tbody", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](66, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "ngb-pagination", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function WorkflowStatusModalComponent_div_9_Template_ngb_pagination_pageChange_71_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r22.workFlowLogTableData.page = $event; })("pageChange", function WorkflowStatusModalComponent_div_9_Template_ngb_pagination_pageChange_71_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r23.onPageChangeWorkFlow($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](72, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r1.editFormData == null ? null : ctx_r1.editFormData.title);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r1.selectedWorkFlowData == null ? null : ctx_r1.selectedWorkFlowData.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](15, 18, ctx_r1.selectedWorkFlowData == null ? null : ctx_r1.selectedWorkFlowData.createdAt, "medium"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx_r1.clickedWorkFlowTitle == null ? null : ctx_r1.clickedWorkFlowTitle.title);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.defaultStatusArray);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r1.isAdminTrue || !ctx_r1.workFlowSubmitPayload);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.workFlowLogTableData.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r1.workFlowLogTableData == null ? null : ctx_r1.workFlowLogTableData.data) && ctx_r1.workFlowLogTableData.data.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total records ", ctx_r1.workFlowLogTableData.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx_r1.workFlowLogTableData.total)("page", ctx_r1.workFlowLogTableData.page)("maxSize", 5)("pageSize", ctx_r1.workFlowLogTableData.limit);
} }
class WorkflowStatusModalComponent {
constructor(toastService, customFromService) {
this.toastService = toastService;
this.customFromService = customFromService;
this.workflow = [];
this.defaultStatusArray = [];
this.isAdminTrue = false;
this.closeModal = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.submitColumnSettings = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.showWorkFlowContent = false;
this.loggedUserId = localStorage.getItem('loggedInUserId');
}
// @Output() closeModal = new EventEmitter();
ngOnInit() {
this.workflow = this.editFormData.workflow;
this.selectedWorkFlowData.staffId = this.selectedWorkFlowData['Staff Id'];
this.selectedWorkFlowData.createdAt =
this.selectedWorkFlowData['Submitted At'];
this.loadLogs();
this.workFlowLogTableData = {
sortBy: 'createdBy',
sortWith: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
total: 0,
filter: {
type: 'plan',
},
};
}
onShowWorkFlowContent(workflow) {
var _a;
this.defaultStatusArray = workflow === null || workflow === void 0 ? void 0 : workflow.workflowStatus;
this.clickedWorkFlowTitle = workflow;
this.isAdminTrue = (_a = workflow === null || workflow === void 0 ? void 0 : workflow.admin) === null || _a === void 0 ? void 0 : _a.includes(this.loggedUserId);
this.showWorkFlowContent = true;
}
isAllSelected(event, item, selectedIndex) {
if (event.target.checked) {
this.workFlowSubmitPayload = {
workflowStatus: {
fieldId: this.clickedWorkFlowTitle._id,
fieldStatusId: item._id,
},
_id: this.selectedWorkFlowData._id,
};
}
else {
this.workFlowSubmitPayload = null;
}
}
onCloseStatusFrom(flag = false) {
this.showWorkFlowContent = false;
this.closeModal.emit(flag);
}
loadLogs() {
this.customFromService
.getWorkFlowLogs(this.selectedWorkFlowData._id)
.subscribe((data) => {
this.workFlowLogTableData.data = data === null || data === void 0 ? void 0 : data.data;
this.workFlowLogTableData.total = data === null || data === void 0 ? void 0 : data.recordsTotal;
});
}
onSubmitColumnSettings() {
const subscribe = this.customFromService
.updateWorkflowStatus(this.workFlowSubmitPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe(({ data }) => {
this.toastService.success(data === null || data === void 0 ? void 0 : data.message);
this.onCloseStatusFrom(true);
});
// this.submitColumnSettings.emit(status);
}
}
WorkflowStatusModalComponent.ɵfac = function WorkflowStatusModalComponent_Factory(t) { return new (t || WorkflowStatusModalComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_2__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_3__["CustomFormService"])); };
WorkflowStatusModalComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: WorkflowStatusModalComponent, selectors: [["app-workflow-status-modal"]], inputs: { editFormData: "editFormData", selectedWorkFlowData: "selectedWorkFlowData" }, outputs: { closeModal: "closeModal", submitColumnSettings: "submitColumnSettings" }, decls: 10, vars: 2, consts: [[1, "modal-content"], [1, "modal-body", 2, "padding", "0px", "min-height", "100vh"], [1, "card", "w-100"], [1, "card-header", "flexi-header"], [4, "ngIf"], ["class", "card-body", 4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "btn-block", "btn", "btn-success", "btn-lg", 2, "margin", "2px", "margin-top", "20px", "margin-right", "4px", 3, "click"], [1, "card-body"], [1, "row"], [1, "col-md-12"], [1, "row", 2, "margin-left", "4px"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], ["type", "text", "name", "name", "aria-describedby", "nameHelp", "placeholder", "Enter company name", "maxlength", "20", "disabled", "", 1, "form-control", 3, "value"], [1, "row", 2, "margin-top", "5px", "margin-left", "4px"], ["type", "text", "name", "name", "aria-describedby", "nameHelp", "maxlength", "20", "disabled", "", 1, "form-control", 3, "value"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], [1, "col-md-6"], [1, "d-flex", "justify-content-between"], [1, "btn", "btn-clear", "btn-block", "mr-1", 3, "click"], [1, "btn", "btn-add", "btn-block", 2, "margin", "2px", 3, "disabled", "click"], [1, "row", "mt-2"], [1, "card-header", "flexi-header", "w-100"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "card-footer"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "text-items", "status-workflow-class"], ["type", "checkbox", 3, "disabled", "checked", "ngModel", "change"], [1, "text-items", 2, "word-break", "break-all"]], template: function WorkflowStatusModalComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "CHANGE WORKFLOW STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, WorkflowStatusModalComponent_div_8_Template, 2, 1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, WorkflowStatusModalComponent_div_9_Template, 73, 21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.showWorkFlowContent && ctx.workflow.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showWorkFlowContent);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgForOf"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵangular_packages_forms_forms_x"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbPagination"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["CheckboxControlValueAccessor"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DatePipe"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9mb3Jtcy9mb3JtLW1hbmFnZS9keW5hbWljLXRhYmxlLWZvcm0vd29ya2Zsb3cvd29ya2Zsb3ctc3RhdHVzLW1vZGFsLmNvbXBvbmVudC5zY3NzIn0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](WorkflowStatusModalComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-workflow-status-modal',
templateUrl: './workflow-status-modal.component.html',
styleUrls: ['./workflow-status-modal.component.scss'],
}]
}], function () { return [{ type: ngx_toastr__WEBPACK_IMPORTED_MODULE_2__["ToastrService"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_3__["CustomFormService"] }]; }, { editFormData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], selectedWorkFlowData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], closeModal: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], submitColumnSettings: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "dmX3":
/*!**************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/company-setup.component.ts ***!
\**************************************************************************************/
/*! exports provided: CompanySetupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompanySetupComponent", function() { return CompanySetupComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _home_page_home_page_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./home-page/home-page.component */ "Ia8d");
/* harmony import */ var _password_password_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./password/password.component */ "5B7r");
/* harmony import */ var _usefull_link_usefull_link_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./usefull-link/usefull-link.component */ "O31U");
/* harmony import */ var _quick_links_quick_links_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./quick-links/quick-links.component */ "/WI1");
/* harmony import */ var _others_others_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./others/others.component */ "Rcuu");
/* harmony import */ var _point_system_point_system_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./point-system/point-system.component */ "XUB3");
/* harmony import */ var _my_page_my_page_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./my-page/my-page.component */ "pwIj");
/* harmony import */ var _leavemng_skillset_leavemng_skillset_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./leavemng-skillset/leavemng-skillset.component */ "rIb0");
function CompanySetupComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-home-page");
} }
function CompanySetupComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "password");
} }
function CompanySetupComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-usefull-link");
} }
function CompanySetupComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "quick-links");
} }
function CompanySetupComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-others");
} }
function CompanySetupComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-point-system");
} }
function CompanySetupComponent_ng_template_30_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-my-page");
} }
function CompanySetupComponent_ng_template_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-leavemng-skillset");
} }
class CompanySetupComponent {
constructor() {
this.activeId = 1;
}
ngOnInit() {
if (this.activeId == 1) {
}
else {
}
}
}
CompanySetupComponent.ɵfac = function CompanySetupComponent_Factory(t) { return new (t || CompanySetupComponent)(); };
CompanySetupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: CompanySetupComponent, selectors: [["app-company-setup"]], decls: 36, vars: 10, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"]], template: function CompanySetupComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function CompanySetupComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "HOME PAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, CompanySetupComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "PASSWORD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, CompanySetupComponent_ng_template_10_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "QUICK NAVIGATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, CompanySetupComponent_ng_template_14_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "USEFUL LINKS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, CompanySetupComponent_ng_template_18_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "OTHERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, CompanySetupComponent_ng_template_22_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "POINT SYSTEM");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, CompanySetupComponent_ng_template_26_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "MY PAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](30, CompanySetupComponent_ng_template_30_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "LEAVE MANAGEMENT AND SKILLSET SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, CompanySetupComponent_ng_template_34_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _home_page_home_page_component__WEBPACK_IMPORTED_MODULE_2__["HomePageComponent"], _password_password_component__WEBPACK_IMPORTED_MODULE_3__["PasswordComponent"], _usefull_link_usefull_link_component__WEBPACK_IMPORTED_MODULE_4__["UsefullLinkComponent"], _quick_links_quick_links_component__WEBPACK_IMPORTED_MODULE_5__["QuickLinksComponent"], _others_others_component__WEBPACK_IMPORTED_MODULE_6__["OthersComponent"], _point_system_point_system_component__WEBPACK_IMPORTED_MODULE_7__["PointSystemComponent"], _my_page_my_page_component__WEBPACK_IMPORTED_MODULE_8__["MyPageComponent"], _leavemng_skillset_leavemng_skillset_component__WEBPACK_IMPORTED_MODULE_9__["LeavemngSkillsetComponent"]], styles: [".justify-content-SB[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n}\n\n.update-button[_ngcontent-%COMP%] {\n width: 100px;\n}\n\n.card-body-inline[_ngcontent-%COMP%] {\n padding: 10px;\n display: inline-flex;\n align-items: center;\n}\n\n.justify-content-SB[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n}\n\n.notif-reminder[_ngcontent-%COMP%] {\n color: #a51f38;\n font-weight: 500;\n text-align: left;\n margin-top: 20px;\n margin-bottom: 20px;\n margin-left: 15px;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvY29tcGFueS1zZXR1cC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFdBQUE7RUFDQSxhQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxZQUFBO0FBRUY7O0FBQ0E7RUFDRSxhQUFBO0VBQ0Esb0JBQUE7RUFDQSxtQkFBQTtBQUVGOztBQUNBO0VBQ0UsV0FBQTtFQUNBLGFBQUE7QUFFRjs7QUFDQTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxtQkFBQTtFQUNBLGlCQUFBO0FBRUY7O0FBQ0E7RUFDRSxzQkFBQTtBQUVGOztBQURFO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0FBR0o7O0FBREk7RUFDRSxjQUFBO0FBR047O0FBQUk7RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBRU4iLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9zeXN0ZW0tc2V0dGluZ3MvY29tcGFueS1zZXR1cC9jb21wYW55LXNldHVwLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmp1c3RpZnktY29udGVudC1TQiB7XG4gIHdpZHRoOiAxMDAlO1xuICBkaXNwbGF5OiBmbGV4O1xufVxuLnVwZGF0ZS1idXR0b24ge1xuICB3aWR0aDogMTAwcHg7XG59XG5cbi5jYXJkLWJvZHktaW5saW5lIHtcbiAgcGFkZGluZzogMTBweDtcbiAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG59XG5cbi5qdXN0aWZ5LWNvbnRlbnQtU0Ige1xuICB3aWR0aDogMTAwJTtcbiAgZGlzcGxheTogZmxleDtcbn1cblxuLm5vdGlmLXJlbWluZGVyIHtcbiAgY29sb3I6ICNhNTFmMzg7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIHRleHQtYWxpZ246IGxlZnQ7XG4gIG1hcmdpbi10b3A6IDIwcHg7XG4gIG1hcmdpbi1ib3R0b206IDIwcHg7XG4gIG1hcmdpbi1sZWZ0OiAxNXB4O1xufVxuXG4ubmF2LXRhYnMge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAubmF2LWxpbmsge1xuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIHBhZGRpbmc6IDEycHggMjBweDtcbiAgICB0cmFuc2l0aW9uOiBjb2xvciAwLjJzO1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIH1cblxuICAgICYuYWN0aXZlIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgI2E0MjEzODtcbiAgICAgIGJvcmRlci1ib3R0b206IDNweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CompanySetupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-company-setup',
templateUrl: './company-setup.component.html',
styleUrls: ['./company-setup.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "dvcu":
/*!*************************************************************************!*\
!*** ./src/app/users/pages/notification/schedule/schedule.component.ts ***!
\*************************************************************************/
/*! exports provided: ScheduleComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScheduleComponent", function() { return ScheduleComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function ScheduleComponent_span_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ScheduleComponent_table_28_tr_18_button_16_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ScheduleComponent_table_28_tr_18_button_16_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r5.onEditSchedule(item_r3._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ScheduleComponent_table_28_tr_18_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ScheduleComponent_table_28_tr_18_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r3 = ctx.$implicit; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r8.onViewSchedule(item_r3._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, ScheduleComponent_table_28_tr_18_button_16_Template, 2, 0, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.scheduleType, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.activeFrom, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.activeTo, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.createdBy, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r3.notificationStatus, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r3.notificationStatus !== "Expired" && item_r3.notificationStatus !== "Inactive");
} }
function ScheduleComponent_table_28_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ScheduleComponent_table_28_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ScheduleComponent_table_28_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Schedule ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ScheduleComponent_table_28_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r13.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Active From ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ScheduleComponent_table_28_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Active To ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ScheduleComponent_table_28_Template_th_sort_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Created By ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ScheduleComponent_table_28_Template_th_sort_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Status ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "th", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, " ACTION ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, ScheduleComponent_table_28_tr_18_Template, 17, 7, "tr", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.schedulePTable.data);
} }
// import {environment} fr
class DataTablesResponse {
constructor() {
this.data = [];
}
}
class ScheduleComponent {
constructor(route, toastService, notificationService) {
this.route = route;
this.toastService = toastService;
this.notificationService = notificationService;
this.isLoading = false;
this.isTableLoading = true;
this.scheduleSearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.scheduleView = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.buId = null;
this.schedulePTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.scheduleSearchSubscription = this.scheduleSearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.schedulePTable.page = 1;
this.loadSchedule();
});
// this.route.params.subscribe(params => {
// this.ngOnInit(); // reset and set based on new parameter this time
// });
}
ngOnInit() {
this.loadSchedule();
}
onLimitChangeSchedule() {
this.loadSchedule();
}
loadSchedule() {
const _a = this.schedulePTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const body = {
timeZone: "GMT+0530",
buId: this.buId
};
const subscribe = this.notificationService
.getScheduleNotification(body, rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { totalRecords, data } = response;
this.schedulePTable.data = data;
this.schedulePTable.total = totalRecords;
this.isTableLoading = false;
}, (error) => {
this.schedulePTable.data = [];
this.schedulePTable.total = 0;
this.toastService.error('No list found');
});
}
onSortSchedule({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.schedulePTable.sortWith = !!direction ? column : 'activeTo';
this.schedulePTable.sortBy = !!direction ? direction : 'desc';
this.loadSchedule();
}
onPageChangeSchedule(page) {
this.schedulePTable.page = page;
this.loadSchedule();
}
onViewSchedule(notificationId) {
this.scheduleView.emit({ notificationId, isView: true });
}
onEditSchedule(notificationId) {
this.scheduleView.emit({ notificationId, isView: false });
}
ngOnDestroy() {
this.scheduleSearchSubscription && this.scheduleSearchSubscription.unsubscribe();
}
}
ScheduleComponent.ɵfac = function ScheduleComponent_Factory(t) { return new (t || ScheduleComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_7__["NotificationService"])); };
ScheduleComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ScheduleComponent, selectors: [["app-schedule"]], viewQuery: function ScheduleComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { buId: "buId" }, outputs: { scheduleView: "scheduleView" }, decls: 35, vars: 16, consts: [[1, "tab-content"], [1, "row", "dashboardPanelCon"], [1, "col-xs-12", "col-sm-12", "col-md-12", "col-lg-12"], [1, "panel", "panel-default"], [1, "panel-heading"], [1, "panel-body", "lg-padding"], [1, "table-responsive"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "title", 3, "sort"], ["scope", "col", "sortable", "scheduleType", 3, "sort"], ["scope", "col", "sortable", "activeFrom", 3, "sort"], ["scope", "col", "sortable", "activeTo", 3, "sort"], ["scope", "col", "sortable", "createdBy", 3, "sort"], ["scope", "col", "sortable", "status", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-submit", "p-2", "m-1", "pl-3", "pr-3", 3, "click"], ["class", "btn btn-add p-2 m-1 pl-3 pr-3", 3, "click", 4, "ngIf"], [1, "btn", "btn-add", "p-2", "m-1", "pl-3", "pr-3", 3, "click"]], template: function ScheduleComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Scheduled Push Notification List");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ScheduleComponent_Template_select_change_13_listener() { return ctx.onLimitChangeSchedule(); })("ngModelChange", function ScheduleComponent_Template_select_ngModelChange_13_listener($event) { return ctx.schedulePTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](25, ScheduleComponent_span_25_Template, 2, 0, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function ScheduleComponent_Template_input_keyup_26_listener($event) { return ctx.scheduleSearchInput.next($event); })("ngModelChange", function ScheduleComponent_Template_input_ngModelChange_26_listener($event) { return ctx.schedulePTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, ScheduleComponent_table_28_Template, 19, 1, "table", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](29, "app-skliton-loading-table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "ngb-pagination", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ScheduleComponent_Template_ngb_pagination_pageChange_34_listener($event) { return ctx.schedulePTable.page = $event; })("pageChange", function ScheduleComponent_Template_ngb_pagination_pageChange_34_listener($event) { return ctx.onPageChangeSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.schedulePTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.schedulePTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.schedulePTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 8)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.schedulePTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.schedulePTable.total)("page", ctx.schedulePTable.page)("maxSize", 5)("pageSize", ctx.schedulePTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"]], styles: [".dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #ffffff;\n text-transform: uppercase;\n font-size: 13px;\n font-weight: 500;\n letter-spacing: 0.5px;\n padding: 20px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] {\n padding: 15px 0;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n padding: 10px 20px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading.editHeader[_ngcontent-%COMP%] {\n background-color: #842b3a;\n}\n\n.dashboardPanelCon.userTable.viewUserSection[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] {\n padding-top: 0;\n}\n\n.dashboardPanelCon.userTable.viewUserSection[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .collapseWrapper[_ngcontent-%COMP%] button.closePlane[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #fff;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .customFieldList[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n padding: 10px 20px !important;\n}\n\n.centerAlign[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n vertical-align: middle !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvbm90aWZpY2F0aW9uL3NjaGVkdWxlL3NjaGVkdWxlLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UseUJBQUE7RUFDQSxjQUFBO0VBQ0EseUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxxQkFBQTtFQUNBLGFBQUE7QUFDRjs7QUFDQTtFQUNFLGVBQUE7QUFFRjs7QUFDQTtFQUNFLGtCQUFBO0FBRUY7O0FBQUE7RUFDRSx5QkFBQTtBQUdGOztBQURBO0VBQ0UsY0FBQTtBQUlGOztBQUZBO0VBQ0Usa0JBQUE7QUFLRjs7QUFIQTtFQUNFLFdBQUE7QUFNRjs7QUFKQTtFQUNFLDZCQUFBO0FBT0Y7O0FBTEE7RUFDRSxrQkFBQTtBQVFGOztBQU5BO0VBQ0UsaUNBQUE7QUFTRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL25vdGlmaWNhdGlvbi9zY2hlZHVsZS9zY2hlZHVsZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5kYXNoYm9hcmRQYW5lbENvbiAucGFuZWwgLnBhbmVsLWhlYWRpbmcge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZmZmZjtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBsZXR0ZXItc3BhY2luZzogMC41cHg7XG4gIHBhZGRpbmc6IDIwcHg7XG59XG4uZGFzaGJvYXJkUGFuZWxDb24gLnBhbmVsIC5wYW5lbC1ib2R5IHtcbiAgcGFkZGluZzogMTVweCAwO1xufVxuXG4uZGFzaGJvYXJkUGFuZWxDb24gLnBhbmVsLWJvZHkgLnBhbmVsLWhlYWRpbmcge1xuICBwYWRkaW5nOiAxMHB4IDIwcHg7XG59XG4uZGFzaGJvYXJkUGFuZWxDb24gLnBhbmVsIC5wYW5lbC1oZWFkaW5nLmVkaXRIZWFkZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2IoMTMyLCA0MywgNTgpO1xufVxuLmRhc2hib2FyZFBhbmVsQ29uLnVzZXJUYWJsZS52aWV3VXNlclNlY3Rpb24gLnBhbmVsLWJvZHkge1xuICBwYWRkaW5nLXRvcDogMDtcbn1cbi5kYXNoYm9hcmRQYW5lbENvbi51c2VyVGFibGUudmlld1VzZXJTZWN0aW9uIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuLmRhc2hib2FyZFBhbmVsQ29uIC5jb2xsYXBzZVdyYXBwZXIgYnV0dG9uLmNsb3NlUGxhbmUgaSB7XG4gIGNvbG9yOiAjZmZmO1xufVxuLmRhc2hib2FyZFBhbmVsQ29uIC5jdXN0b21GaWVsZExpc3QgLnBhbmVsIC5wYW5lbC1oZWFkaW5nIHtcbiAgcGFkZGluZzogMTBweCAyMHB4ICFpbXBvcnRhbnQ7XG59XG4uY2VudGVyQWxpZ257XG4gIHRleHQtYWxpZ246IGNlbnRlcjsgXG59XG4udGFibGUgdGJvZHkgdGQge1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlICFpbXBvcnRhbnQ7XG59XG5cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ScheduleComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-schedule',
templateUrl: './schedule.component.html',
styleUrls: ['./schedule.component.scss']
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_5__["ActivatedRoute"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_7__["NotificationService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}], scheduleView: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], buId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}] }); })();
/***/ }),
/***/ "eCJZ":
/*!***********************************************!*\
!*** ./src/app/core/service/table.service.ts ***!
\***********************************************/
/*! exports provided: TableService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TableService", function() { return TableService; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var _model_pagination_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../model/pagination.model */ "PGHV");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
const compare = (v1, v2) => v1 < v2 ? -1 : v1 > v2 ? 1 : 0;
function sort(countries, column, direction) {
if (direction === '' || column === '') {
return countries;
}
else {
return [...countries].sort((a, b) => {
const res = compare(a[column], b[column]);
return direction === 'asc' ? res : -res;
});
}
}
function matches(country, term, pipe) {
return country.name.toLowerCase().includes(term.toLowerCase())
|| pipe.transform(country.area).includes(term)
|| pipe.transform(country.population).includes(term);
}
class TableService {
constructor(pipe) {
this.pipe = pipe;
this._loading$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](true);
this._search$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this._countries$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"]([]);
this._total$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](0);
this._state = {
page: 1,
pageSize: 4,
searchTerm: '',
sortColumn: '',
sortDirection: ''
};
this._search$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(() => this._loading$.next(true)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(200), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(() => this._search()), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(200), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(() => this._loading$.next(false))).subscribe(result => {
this._countries$.next(result.countries);
this._total$.next(result.total);
});
this._search$.next();
}
get countries$() { return this._countries$.asObservable(); }
get total$() { return this._total$.asObservable(); }
get loading$() { return this._loading$.asObservable(); }
get page() { return this._state.page; }
get pageSize() { return this._state.pageSize; }
get searchTerm() { return this._state.searchTerm; }
set page(page) { this._set({ page }); }
set pageSize(pageSize) { this._set({ pageSize }); }
set searchTerm(searchTerm) { this._set({ searchTerm }); }
set sortColumn(sortColumn) { this._set({ sortColumn }); }
set sortDirection(sortDirection) { this._set({ sortDirection }); }
_set(patch) {
Object.assign(this._state, patch);
this._search$.next();
}
_search() {
const { sortColumn, sortDirection, pageSize, page, searchTerm } = this._state;
// 1. sort
let countries = sort(_model_pagination_model__WEBPACK_IMPORTED_MODULE_2__["COUNTRIES"], sortColumn, sortDirection);
// 2. filter
countries = countries.filter(country => matches(country, searchTerm, this.pipe));
const total = countries.length;
// 3. paginate
countries = countries.slice((page - 1) * pageSize, (page - 1) * pageSize + pageSize);
return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])({ countries, total });
}
initializeTableParamsColums(colArray, orderableIndexes = [], searchableIndexes = []) {
let tableColArray = [];
if (colArray && colArray.length > 0) {
colArray.map((item, index) => {
let colJson = { data: '', name: '', searchable: false, orderable: false, search: { value: '', regex: false } };
if (orderableIndexes === null || orderableIndexes === void 0 ? void 0 : orderableIndexes.includes(index)) {
colJson['orderable'] = true;
}
if (searchableIndexes === null || searchableIndexes === void 0 ? void 0 : searchableIndexes.includes(index)) {
colJson['searchable'] = true;
}
colJson.data = item;
tableColArray.push(colJson);
});
}
return tableColArray;
}
}
TableService.ɵfac = function TableService_Factory(t) { return new (t || TableService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DecimalPipe"])); };
TableService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: TableService, factory: TableService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TableService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
args: [{ providedIn: 'root' }]
}], function () { return [{ type: _angular_common__WEBPACK_IMPORTED_MODULE_4__["DecimalPipe"] }]; }, null); })();
/***/ }),
/***/ "eDvd":
/*!*********************************************************!*\
!*** ./src/app/users/layout/design/design.component.ts ***!
\*********************************************************/
/*! exports provided: DesignComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DesignComponent", function() { return DesignComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../service/auth/auth.service */ "PxIJ");
/* harmony import */ var _header_header_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../header/header.component */ "j5Ue");
/* harmony import */ var _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../sidebar/sidebar.component */ "lfFo");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
class DesignComponent {
constructor(router, AuthService) {
this.router = router;
this.AuthService = AuthService;
this.routeSubscribe = router.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])(event => event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__["NavigationEnd"])).subscribe((event) => {
switch (event.url) {
case '/users/bu-unit':
this.activeUrl = 'Business unit';
break;
case '/users/home':
console.log("inside design componenet/user/home route");
this.activeUrl = 'Home';
break;
case '/users/company-setup':
this.activeUrl = 'Company Setup';
break;
case '/users/custom-fields':
this.activeUrl = 'Custom Fields';
break;
case '/users/user-roles':
this.activeUrl = 'User Roles';
break;
case '/users/view-users':
this.activeUrl = 'View Users';
break;
case '/users/create-users':
this.activeUrl = 'Create Users';
break;
case '/users/lock-account':
this.activeUrl = 'Locked Account';
break;
case '/users/rest-password':
this.activeUrl = 'Rest Password';
break;
case '/users/channel-setup':
this.activeUrl = 'Chanel Setup';
break;
case '/users/logs':
this.activeUrl = 'Communication / Logs';
break;
default:
break;
}
});
}
ngOnDestroy() {
this.routeSubscribe.unsubscribe();
}
ngOnInit() {
this.isToggle = false;
}
toggleSideNav() {
this.isToggle = !this.isToggle;
}
}
DesignComponent.ɵfac = function DesignComponent_Factory(t) { return new (t || DesignComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"])); };
DesignComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DesignComponent, selectors: [["app-design"]], decls: 5, vars: 4, consts: [[3, "activeUrl", "toggleSideNav"], [1, "row", "mx-0", "main-content"], [1, "col-sm-2", "px-0", "d-sm-block", "col", 3, "ngClass", "activeUrl", "isToggle", "toggleSideNav"], [1, "col", "page", "scrollbar", "p-3"]], template: function DesignComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "admin-header", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("toggleSideNav", function DesignComponent_Template_admin_header_toggleSideNav_0_listener() { return ctx.toggleSideNav(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "admin-sidebar", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("toggleSideNav", function DesignComponent_Template_admin_sidebar_toggleSideNav_2_listener() { return ctx.toggleSideNav(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "router-outlet");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeUrl", ctx.activeUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isToggle ? "d-block" : "d-none")("activeUrl", ctx.activeUrl)("isToggle", ctx.isToggle);
} }, directives: [_header_header_component__WEBPACK_IMPORTED_MODULE_4__["HeaderComponent"], _sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_5__["SidebarComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgClass"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterOutlet"]], styles: [".page[_ngcontent-%COMP%] {\n max-height: 90vh;\n min-height: calc(100vh - 48px);\n overflow-y: auto;\n overflow-x: hidden;\n background-color: #f2f2f2;\n}\n\n\n\n.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar {\n background-color: #fff;\n width: 14px;\n}\n\n\n\n.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-track {\n background-color: #fff;\n}\n\n.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-track:hover {\n background-color: #f4f4f4;\n}\n\n\n\n.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-thumb {\n background-color: #babac0;\n border-radius: 16px;\n border: 5px solid #fff;\n}\n\n.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover {\n background-color: #a0a0a5;\n border: 4px solid #f4f4f4;\n}\n\n\n\n.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-button {\n display: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvbGF5b3V0L2Rlc2lnbi9kZXNpZ24uY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxnQkFBQTtFQUNBLDhCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxrQkFBQTtFQUNBLHlCQUFBO0FBQ0Y7O0FBRUEsZ0JBQUE7O0FBQ0E7RUFDRSxzQkFBQTtFQUNBLFdBQUE7QUFDRjs7QUFFQSx5REFBQTs7QUFDQTtFQUNFLHNCQUFBO0FBQ0Y7O0FBQ0E7RUFDRSx5QkFBQTtBQUVGOztBQUNBLHFCQUFBOztBQUNBO0VBQ0UseUJBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0FBRUY7O0FBQUE7RUFDRSx5QkFBQTtFQUNBLHlCQUFBO0FBR0Y7O0FBQUEsZ0RBQUE7O0FBQ0E7RUFDRSxhQUFBO0FBR0YiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9sYXlvdXQvZGVzaWduL2Rlc2lnbi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5wYWdlIHtcbiAgbWF4LWhlaWdodDogOTB2aDtcbiAgbWluLWhlaWdodDogY2FsYygxMDB2aCAtIDQ4cHgpO1xuICBvdmVyZmxvdy15OiBhdXRvO1xuICBvdmVyZmxvdy14OiBoaWRkZW47XG4gIGJhY2tncm91bmQtY29sb3I6ICNmMmYyZjI7XG59XG5cbi8qIHRvdGFsIHdpZHRoICovXG4uc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhciB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIHdpZHRoOiAxNHB4O1xufVxuXG4vKiBiYWNrZ3JvdW5kIG9mIHRoZSBzY3JvbGxiYXIgZXhjZXB0IGJ1dHRvbiBvciByZXNpemVyICovXG4uc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhci10cmFjayB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG59XG4uc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhci10cmFjazpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmNGY0ZjQ7XG59XG5cbi8qIHNjcm9sbGJhciBpdHNlbGYgKi9cbi5zY3JvbGxiYXI6Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1iIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2JhYmFjMDtcbiAgYm9yZGVyLXJhZGl1czogMTZweDtcbiAgYm9yZGVyOiA1cHggc29saWQgI2ZmZjtcbn1cbi5zY3JvbGxiYXI6Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1iOmhvdmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2EwYTBhNTtcbiAgYm9yZGVyOiA0cHggc29saWQgI2Y0ZjRmNDtcbn1cblxuLyogc2V0IGJ1dHRvbih0b3AgYW5kIGJvdHRvbSBvZiB0aGUgc2Nyb2xsYmFyKSAqL1xuLnNjcm9sbGJhcjo6LXdlYmtpdC1zY3JvbGxiYXItYnV0dG9uIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DesignComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-design',
templateUrl: './design.component.html',
styleUrls: ['./design.component.scss']
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"] }, { type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] }]; }, null); })();
/***/ }),
/***/ "eJGe":
/*!***************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/notification/my-notification/acknowledged/acknowledged.component.ts ***!
\***************************************************************************************************************/
/*! exports provided: AcknowledgedComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AcknowledgedComponent", function() { return AcknowledgedComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function AcknowledgedComponent_span_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AcknowledgedComponent_table_26_tr_8_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AcknowledgedComponent_table_26_tr_8_Template_tr_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r6 = ctx.$implicit; const index_r7 = ctx.index; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r8.onSelectNotification(item_r6, index_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r6 = ctx.$implicit;
const index_r7 = ctx.index;
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", ctx_r5.selectedIndex === index_r7 ? "active-item" : "inactive-item");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 4, item_r6.title), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r6.subTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](9, 6, item_r6.activeFrom, "dd/MM/yyyy HH:mm"));
} }
function AcknowledgedComponent_table_26_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function AcknowledgedComponent_table_26_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function AcknowledgedComponent_table_26_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortUsers($event, "activeFrom"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "DATE & TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AcknowledgedComponent_table_26_tr_8_Template, 10, 9, "tr", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
function AcknowledgedComponent_div_33_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "NOTIFICATION DETAIL");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](12, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "small", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "p", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](20, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Effective From");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](28, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, "Effective Till");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](35, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "Main Category");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46, "Sub Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](12, 8, ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.activeTo, "short"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.subTitle, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.description, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](28, 11, ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.effectiveFrom), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](35, 13, ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.effectiveTo), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.subCategory == null ? null : ctx_r2.notificationViewData.subCategory.categoryId == null ? null : ctx_r2.notificationViewData.subCategory.categoryId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.notificationViewData == null ? null : ctx_r2.notificationViewData.subCategory == null ? null : ctx_r2.notificationViewData.subCategory.name, " ");
} }
function AcknowledgedComponent_ng_template_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "NOTIFICATION DETAIL");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "No Data Availabale");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
class AcknowledgedComponent {
constructor(notificationService, toastService, storageService, formBuilder) {
this.notificationService = notificationService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.isTableLoading = true;
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'activeFrom',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
// this.usersPTable.sort = { key: column, order: direction as any };
this.usersPTable.sortWith = field;
this.usersPTable.sortBy = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
onSelectNotification(item, index) {
this.notificationViewData = item;
this.selectedIndex = index;
}
loadUsers() {
const _a = this.usersPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.notificationService
.getAcknowledgedNofications(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.usersPTable.data = data;
this.usersPTable.total = count;
this.onSelectNotification(data[0], 0);
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
AcknowledgedComponent.ɵfac = function AcknowledgedComponent_Factory(t) { return new (t || AcknowledgedComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_5__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"])); };
AcknowledgedComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AcknowledgedComponent, selectors: [["app-acknowledged"]], viewQuery: function AcknowledgedComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 36, vars: 18, consts: [[1, "row"], [1, "col-md-6", "col-sm-6"], [1, "card", "mb-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], ["class", "col-md-6 col-sm-6", 4, "ngIf", "ngIfElse"], ["elseBlock", ""], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], [3, "ngClass", "click", 4, "ngFor", "ngForOf"], [3, "ngClass", "click"], [1, "card-header", "flexi-header"], [1, "panel-body"], [1, "row", "m-0"], [1, "col-md-12"], [1, "d-block"], [1, "ng-binding"], [1, "col-md-6"], [1, "form-group"], [1, "form-text-conteol", "ng-binding"], [1, "card", "my-3", "w-100"]], template: function AcknowledgedComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "NOTIFICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AcknowledgedComponent_Template_select_change_11_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function AcknowledgedComponent_Template_select_ngModelChange_11_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, AcknowledgedComponent_span_23_Template, 2, 0, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function AcknowledgedComponent_Template_input_keyup_24_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function AcknowledgedComponent_Template_input_ngModelChange_24_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, AcknowledgedComponent_table_26_Template, 9, 1, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "app-skliton-loading-table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "ngb-pagination", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function AcknowledgedComponent_Template_ngb_pagination_pageChange_32_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function AcknowledgedComponent_Template_ngb_pagination_pageChange_32_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](33, AcknowledgedComponent_div_33_Template, 49, 15, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](34, AcknowledgedComponent_ng_template_34_Template, 9, 0, "ng-template", null, 21, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 2)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total Records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.notificationViewData)("ngIfElse", _r3);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["UpperCasePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: [".form-text-conteol[_ngcontent-%COMP%] {\n border: 1px solid #efefef;\n padding: 6px 8px;\n}\n\n.inactive-item[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n\n.active-item[_ngcontent-%COMP%] {\n background-color: #e0e0e0;\n cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ub3RpZmljYXRpb24vbXktbm90aWZpY2F0aW9uL2Fja25vd2xlZGdlZC9hY2tub3dsZWRnZWQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxlQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtFQUNBLGVBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbm90aWZpY2F0aW9uL215LW5vdGlmaWNhdGlvbi9hY2tub3dsZWRnZWQvYWNrbm93bGVkZ2VkLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZvcm0tdGV4dC1jb250ZW9se1xuICBib3JkZXI6IDFweCBzb2xpZCAjZWZlZmVmO1xuICBwYWRkaW5nOiA2cHggOHB4O1xufVxuXG4uaW5hY3RpdmUtaXRlbXtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uYWN0aXZlLWl0ZW17XG4gIGJhY2tncm91bmQtY29sb3I6ICNlMGUwZTA7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AcknowledgedComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-acknowledged',
templateUrl: './acknowledged.component.html',
styleUrls: ['./acknowledged.component.scss']
}]
}], function () { return [{ type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_5__["NotificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "eV4T":
/*!************************************************************************************!*\
!*** ./src/app/users/pages/communication/channel-setup/channel-setup.component.ts ***!
\************************************************************************************/
/*! exports provided: ChannelSetupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelSetupComponent", function() { return ChannelSetupComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./../../../service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/users/service/channel/channel.service */ "awjJ");
/* harmony import */ var _channel_overview_channel_overview_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./channel-overview/channel-overview.component */ "c/pr");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../../shared/assign-users/assign-users.component */ "9Zea");
const _c0 = ["AddSubSection"];
function ChannelSetupComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-channel-overview", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("editChannel", function ChannelSetupComponent_ng_template_6_Template_app_channel_overview_editChannel_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r5.editChannel($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ChannelSetupComponent_ng_template_10_button_4_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_10_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r13.onCancelEdit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ChannelSetupComponent_ng_template_10_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Active");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "input", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "label", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Inactive");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
} }
function ChannelSetupComponent_ng_template_10_ng_option_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r15 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r15.name, " ");
} }
function ChannelSetupComponent_ng_template_10_div_24_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_10_div_24_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r19); const index_r17 = ctx.index; const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r18.deleteCategories(index_r17); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r16 = ctx.$implicit;
const index_r17 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r16.get("name").value, " ");
} }
function ChannelSetupComponent_ng_template_10_button_28_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_10_button_28_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r20.clearForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
const _c1 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function ChannelSetupComponent_ng_template_10_button_29_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_10_button_29_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r23); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r22.onSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r12.isUpdateLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](3, _c1, ctx_r12.isUpdateLoading, !ctx_r12.isUpdateLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r12.isChannelEdited ? "Update" : "Create");
} }
function ChannelSetupComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "CHANNEL SETUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, ChannelSetupComponent_ng_template_10_button_4_Template, 3, 0, "button", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "form", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, ChannelSetupComponent_ng_template_10_div_7_Template, 10, 2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Channel Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, " Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_10_Template_button_click_18_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r24.addCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "i", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "ng-select", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ChannelSetupComponent_ng_template_10_Template_ng_select_change_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r26.addCategories($event); })("search", function ChannelSetupComponent_ng_template_10_Template_ng_select_search_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r27.onSeachCategory($event); })("scrollToEnd", function ChannelSetupComponent_ng_template_10_Template_ng_select_scrollToEnd_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r28.loadMoreCategoryItems($event); })("clear", function ChannelSetupComponent_ng_template_10_Template_ng_select_clear_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r29.onClearCategoryDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, ChannelSetupComponent_ng_template_10_ng_option_21_Template, 2, 2, "ng-option", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, ChannelSetupComponent_ng_template_10_div_24_Template, 4, 2, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "assign-users", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("onSubmitAssignUsers", function ChannelSetupComponent_ng_template_10_Template_assign_users_onSubmitAssignUsers_25_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r30.updateUserDetails($event); })("showCreateButton", function ChannelSetupComponent_ng_template_10_Template_assign_users_showCreateButton_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r31.showCreateButton(); })("hideCreateButton", function ChannelSetupComponent_ng_template_10_Template_assign_users_hideCreateButton_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r25); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r32.hideCreateButton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, ChannelSetupComponent_ng_template_10_button_28_Template, 3, 0, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](29, ChannelSetupComponent_ng_template_10_button_29_Template, 3, 6, "button", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isChannelEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.channelCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isChannelEdited == true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("loading", ctx_r2.categoryDropDownLoading)("hideSelected", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.categoryDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.CategorytControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("userDetails", ctx_r2.userDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isAddButtonActive);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isAddButtonActive);
} }
function ChannelSetupComponent_ng_template_12_button_18_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_12_button_18_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r40); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r39.createCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Add");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r35.createCategoryForm.valid);
} }
function ChannelSetupComponent_ng_template_12_button_19_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_12_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r42); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r41.UpdateCatagory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "UPDATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r36.createCategoryForm.valid);
} }
function ChannelSetupComponent_ng_template_12_span_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function ChannelSetupComponent_ng_template_12_tr_54_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_12_tr_54_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const item_r43 = ctx.$implicit; const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r45.oneditCategory(item_r43); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_12_tr_54_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const item_r43 = ctx.$implicit; const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r47.onDeleteCategory(item_r43._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Delete");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r43 = ctx.$implicit;
const index_r44 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](index_r44 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r43.name);
} }
function ChannelSetupComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
const _r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "ADD CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_ng_template_12_Template_button_click_8_listener() { const c_r33 = ctx.close; return c_r33("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Category");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, ChannelSetupComponent_ng_template_12_button_18_Template, 2, 1, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, ChannelSetupComponent_ng_template_12_button_19_Template, 2, 1, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "CATEGORY LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "select", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function ChannelSetupComponent_ng_template_12_Template_select_change_29_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r49.onLimitChangeCategory(); })("ngModelChange", function ChannelSetupComponent_ng_template_12_Template_select_ngModelChange_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r51.categoryPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "option", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "option", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "option", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "option", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "option", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](41, ChannelSetupComponent_ng_template_12_span_41_Template, 2, 0, "span", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "input", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function ChannelSetupComponent_ng_template_12_Template_input_keyup_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r52.categorySearchInput.next($event); })("ngModelChange", function ChannelSetupComponent_ng_template_12_Template_input_ngModelChange_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r53.categoryPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "th", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ChannelSetupComponent_ng_template_12_Template_th_sort_47_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r54.onSortCategory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, " S.NO ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "th", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function ChannelSetupComponent_ng_template_12_Template_th_sort_49_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r55.onSortCategory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, " CATEGORY ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "th", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](52, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](54, ChannelSetupComponent_ng_template_12_tr_54_Template, 11, 2, "tr", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "ngb-pagination", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function ChannelSetupComponent_ng_template_12_Template_ngb_pagination_pageChange_59_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r56.categoryPTable.page = $event; })("pageChange", function ChannelSetupComponent_ng_template_12_Template_ngb_pagination_pageChange_59_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r50); const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r57.onPageChangeCtegory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r4.createCategoryForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r4.isCategoryEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.isCategoryEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r4.categoryPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.categoryPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r4.categoryPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.categoryPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r4.categoryPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r4.categoryPTable.total)("page", ctx_r4.categoryPTable.page)("maxSize", 5)("pageSize", ctx_r4.categoryPTable.limit);
} }
class ChannelSetupComponent {
constructor(modalService, toastService, userService, formBuilder, buUnit, customFieldService, channelService) {
this.modalService = modalService;
this.toastService = toastService;
this.userService = userService;
this.formBuilder = formBuilder;
this.buUnit = buUnit;
this.customFieldService = customFieldService;
this.channelService = channelService;
this.categoryDropDownLoading = false;
this.planBuUnitDropDownLoading = false;
this.apppoinmentDropDownLoading = false;
this.CustomFieldDropDownLoading = false;
this.businessUnit = true;
this.UpdateduserDetails = [];
this.activeId = 1;
this.buDropDownToClear = null;
this.apoinemntDropDownToClear = null;
this.customFeildDropDownToClear = null;
this.adminDropDownToClear = null;
this.authorDropDownToClear = null;
this.isUserDetailsEdited = false;
this.isChannelEdited = false;
this.timeElapsed = Date.now();
this.today = new Date(this.timeElapsed);
this.config = {
format: 'MMM, YYYY',
returnedValueType: 3,
max: new Date(Date.now()).toUTCString(),
};
this.userDetails = [];
this.userDropDown = [];
this.isUpdateLoading = false;
this.categorySearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
this.isCategoryEdited = false;
this.isAddButtonActive = false;
this.categoryPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.bussinesUnitplanPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
this.appoinmentPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.CustomFieldPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.adminPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.categorySearchSubscription = this.categorySearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_4__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["delay"])(500))))
.subscribe((input) => {
this.categoryPTable.page = 1;
this.loadCategory();
});
}
;
onSortCategory({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.categoryPTable.sort = { sortWith: column, sortBy: direction };
this.loadCategory();
}
onPageChangeCtegory(page) {
this.categoryPTable.page = page;
// this.loadCategory();
}
onLimitChangeCategory() {
// this.loadCategory();
}
hideBusinessUnit(value) {
this.businessUnit = value;
}
showCreateButton() {
this.isAddButtonActive = true;
}
hideCreateButton() {
this.isAddButtonActive = false;
}
initForm() {
this.channelCreateForm = this.formBuilder.group({
name: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required],
category: this.formBuilder.array([], [_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required]),
status: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required],
});
}
clearForm() {
this.channelCreateForm.patchValue({
name: '',
status: ''
});
this.UpdateduserDetails = [];
this.userDetails = [];
this.isAddButtonActive = false;
}
categoryForm() {
this.createCategoryForm = this.formBuilder.group({
name: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required],
status: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required],
});
}
ngOnInit() {
this.initForm();
this.categoryForm();
this.loadCategory();
}
onCancelEdit() {
this.activeId = 1;
this.isChannelEdited = false;
this.channelEditedId = null;
this.initForm();
}
/// category
addCategory(value) {
this.categoryForm();
this.loadCategory();
this.modalService.open(this.AddSubSection, {
windowClass: 'modal-ui-fix right-align',
});
// this.loadAppoinment();
}
get CategorytControl() {
return this.channelCreateForm.get('category');
}
addCategories(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.CategorytControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.toastService.error(`${value.name} is already added`);
this.ngSelectComponent.clearModel();
}
else {
let field = this.formBuilder.group({
name: [value.name, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required])],
});
Control.push(field);
this.ngSelectComponent.clearModel();
}
}
});
}
oneditCategory(category) {
this.editCategoryId = category._id;
this.isCategoryEdited = true;
this.createCategoryForm.patchValue({
name: category.name,
status: category.status,
});
}
deleteCategories(index) {
const Control = this.CategorytControl;
Control.removeAt(index);
}
UpdateCatagory() {
const subscribe = this.channelService
.updateCategory(this.createCategoryForm.value, this.editCategoryId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.isCategoryEdited = false;
this.categoryForm();
this.loadCategory();
this.toastService.success('Category Updated');
}, (error) => {
this.toastService.error('Something Went Wrong');
});
}
createCategory() {
const subscribe = this.channelService
.createCategory(this.createCategoryForm.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
// this.loadCategory();
this.categoryForm();
this.toastService.success('Category Created', '', {
timeOut: 3000,
positionClass: 'toast-top-right'
});
this.modalService.dismissAll();
});
}
onDeleteCategory(id) {
const subscribe = this.channelService
.deleteCategory(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.loadCategory();
this.toastService.success('Category Deleted');
}, (error) => {
this.toastService.error('Something Went Wrong');
});
}
onSeachCategory(value) {
this.categoryPTable.limit = 10;
this.categoryPTable.search = value.term;
this.loadCategory();
}
loadMoreCategoryItems(value) {
this.categoryPTable.limit = this.categoryPTable.limit + 10;
this.loadCategory();
}
onClearCategoryDropdown(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.categoryPTable.search = '';
this.loadCategory();
this.categoryDropDown = [];
this.categoryPTable.data = [];
}
}
loadCategory() {
this.categoryDropDownLoading = true;
const _a = this.categoryPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.channelService
.getAllCategory(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.categoryDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.categoryPTable.data = data;
this.categoryDropDown = data;
this.categoryPTable.total = count;
}, (error) => {
this.categoryPTable.data = [];
this.categoryPTable.total = 0;
this.toastService.error('No list found');
});
}
editChannel(id) {
this.ngOnInit();
if (id) {
const sub = this.channelService
.getOneChannel(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
this.activeId = 2;
this.userDetails = res.data.assignUsers;
this.isChannelEdited = true;
this.channelCreateForm.patchValue({
name: res.data.name,
status: res.data.status
});
const control = this.CategorytControl;
res.data.category.forEach((element) => {
let field = this.formBuilder.group({
name: [element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required])],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_5__["Validators"].required])],
});
control.push(field);
});
this.channelEditedId = res.data._id;
this.userDetails = res.data.assignUsers;
this.UpdateduserDetails = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_6__["getAssignedUsers"])(res.data.assignUsers);
}, (error) => {
});
}
else {
this.isChannelEdited = false;
this.activeId = 1;
}
}
updateUserDetails(userDetails) {
this.UpdateduserDetails = userDetails;
}
onSubmit() {
if (!this.channelCreateForm.valid) {
this.toastService.error('Please fill the form');
return;
}
this.isUpdateLoading = true;
const data = Object.assign(Object.assign({}, this.channelCreateForm.value), { assignUsers: this.UpdateduserDetails });
if (this.isChannelEdited) {
const sub = this.channelService
.updateChannel(data, this.channelEditedId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
this.toastService.success(`Channel Updated Successfully`);
this.activeId = 1;
// this.onClearAllFrom();
this.isUpdateLoading = false;
}, (error) => {
this.isUpdateLoading = false;
});
}
else {
const sub = this.channelService
.createChannels(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => sub.unsubscribe()))
.subscribe((res) => {
this.toastService.success(`Channel Created Successfully`);
this.activeId = 1;
// this.onClearAllFrom();
this.isUpdateLoading = false;
}, (error) => {
this.isUpdateLoading = false;
});
}
}
}
ChannelSetupComponent.ɵfac = function ChannelSetupComponent_Factory(t) { return new (t || ChannelSetupComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_11__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_12__["CustomFieldService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_13__["ChannelService"])); };
ChannelSetupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ChannelSetupComponent, selectors: [["app-channel-setup"]], viewQuery: function ChannelSetupComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.ngSelectComponent = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddSubSection = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 14, vars: 5, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], ["ngbNavLink", "", 3, "click"], [3, "ngbNavOutlet"], ["AddSubSection", ""], [3, "editChannel"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], ["class", "btn pull-right btn-outline-light", "type", "button", 3, "click", 4, "ngIf"], [1, "card-body"], [3, "formGroup"], ["class", "channel-setup", 4, "ngIf"], [1, "row"], [1, "col-md-4", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "font-weight-bold", "red-label"], ["type", "text", "maxlength", "60", "formControlName", "name", "required", "", 1, "form-control"], [1, "col-md-4"], [1, "pb-2", "font-weight-bold", "red-label"], [1, "btn", "p-1", "ml-1", 2, "color", "#a51f38", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-plus-circle", "fa-lg"], ["bindLabel", "name", "placeholder", "Select Category", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "loading", "hideSelected", "change", "search", "scrollToEnd", "clear"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-md-6"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap", "margin-top", "35px"], ["formArrayName", "category", 4, "ngFor", "ngForOf"], ["toastMessage", "Channel Updated", 3, "userDetails", "onSubmitAssignUsers", "showCreateButton", "hideCreateButton"], ["class", "btn btn-red-back", 3, "click", 4, "ngIf"], ["class", "btn btn-add update-button ml-2", 3, "disabled", "click", 4, "ngIf"], ["type", "button", 1, "btn", "pull-right", "btn-outline-light", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-angle-left", "fa-lg"], [1, "channel-setup"], [1, "d-flex"], [1, "radio", "radio-danger", "radio-inline", "p-1"], ["type", "radio", "id", "postSubReqTru", "formControlName", "status", 3, "value"], ["for", "postSubReqTru"], ["type", "radio", "id", "postSubReqFals", "formControlName", "status", 3, "value"], ["for", "postSubReqFals"], [3, "value"], ["formArrayName", "category"], [1, "text-items", "list-ui", 3, "formGroupName"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", 3, "click"], [1, "btn", "btn-red-back", 3, "click"], [1, "fa"], [1, "btn", "btn-add", "update-button", "ml-2", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card-header", "flexi-header"], [1, "mt-2"], ["type", "button", "aria-label", "Close", 1, "btn", "close-button", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [1, "col-md-12"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], ["type", "text", "maxlength", "60", "formControlName", "name", 1, "form-control"], ["class", "btn btn-add pull-right", 3, "disabled", "click", 4, "ngIf"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", 1, "text-center", "action-header"], [4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "btn", "btn-add", "pull-right", 3, "disabled", "click"], [1, "modal-buttons"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "btn", "btn-clear", "p", "-2", "m-1", 3, "click"]], template: function ChannelSetupComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function ChannelSetupComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, ChannelSetupComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function ChannelSetupComponent_Template_a_click_8_listener() { return ctx.userDetails.length = 0; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, ChannelSetupComponent_ng_template_10_Template, 30, 13, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, ChannelSetupComponent_ng_template_12_Template, 60, 17, "ng-template", null, 8, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.isChannelEdited ? "EDIT" : "ADD");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbNavOutlet"], _channel_overview_channel_overview_component__WEBPACK_IMPORTED_MODULE_14__["ChannelOverviewComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_15__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_16__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["RequiredValidator"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_15__["NgForOf"], _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_17__["AssignUsersComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["RadioControlValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormGroupName"], _angular_common__WEBPACK_IMPORTED_MODULE_15__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_x"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbPagination"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}.selected-option[_ngcontent-%COMP%] {\n margin-top: -30px;\n}.red-label[_ngcontent-%COMP%] {\n color: #a51f38;\n font-weight: 500;\n text-align: left;\n}.close-button[_ngcontent-%COMP%] {\n box-shadow: none;\n}.modal-buttons[_ngcontent-%COMP%] {\n float: right;\n}.action-header[_ngcontent-%COMP%] {\n padding-left: 100px;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3;\n color: white;\n}.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vY2hhbm5lbC1zZXR1cC9jaGFubmVsLXNldHVwLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlEQUFpRCxlQUFlLENBQUMsaUNBQWlDLENBQUMsdURBQXVELGVBQWUsQ0FBQywyREFBMkQsUUFBUSxDQUFDLHlDQUF5QyxDQUFDLHNCQUFzQixDQUFDLGlFQUFpRSx5Q0FBeUMsQ0FBQyxrRUFBa0UsNEJBQTRCLENBQUMsMkJBQTJCLENBQUMsK0RBQStELHlCQUF5QixDQUFDLHdCQUF3QixDQUFDLHlFQUF5RSxvQkFBb0IsQ0FBQywwRUFBMEUsQ0FBQyxtREFBbUQsd0JBQXdCLENBQUMseUNBQXlDLFlBQVksQ0FBQyxnQ0FBZ0MsVUFBVSxDQUFDLHFCQUFxQixDQUFDLGlCQUFpQixDQUFDLHFCQUFxQixDQUFDLGVBQWUsQ0FBQyxrQkFBa0IsQ0FBQyxzQ0FBc0MsbUNBQW1DLENBQUMsb0RBQW9ELGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLGdFQUFnRSxrQkFBa0IsQ0FBQyxjQUFjLENBQUMsb0VBQW9FLFVBQVUsQ0FBQyxpREFBaUQsV0FBVyxDQUFDLCtFQUErRSxPQUFPLENBQUMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLGtCQUFrQixDQUFDLDJGQUEyRixrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxvR0FBb0csd0JBQXdCLENBQUMsd0JBQXdCLENBQUMsb0hBQW9ILGFBQWEsQ0FBQyx1RUFBdUUsZUFBZSxDQUFDLGdCQUFnQixDQUFDLG1GQUFtRixpQkFBaUIsQ0FBQyxjQUFjLENBQUMsaUZBQWlGLGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyx3QkFBd0IsQ0FBQyxpQkFBaUIsQ0FBQyxnQkFBZ0IsQ0FBQyw2RkFBNkYsY0FBYyxDQUFDLGVBQWUsQ0FBQyxtR0FBbUcsd0JBQXdCLENBQUMsbUhBQW1ILGdCQUFnQixDQUFDLCtIQUErSCxjQUFjLENBQUMsaUJBQWlCLENBQUMsaUdBQWlHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxnR0FBZ0csb0JBQW9CLENBQUMsZUFBZSxDQUFDLHNHQUFzRyx3QkFBd0IsQ0FBQyxxR0FBcUcsOEJBQThCLENBQUMsaUhBQWlILDZCQUE2QixDQUFDLGlCQUFpQixDQUFDLHNHQUFzRyw2QkFBNkIsQ0FBQyxrSEFBa0gsYUFBYSxDQUFDLDhCQUE4QixDQUFDLGlGQUFpRixtQkFBbUIsQ0FBQyw2RkFBNkYsbUJBQW1CLENBQUMsdUZBQXVGLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxnQkFBZ0IsQ0FBQyxtR0FBbUcsaUJBQWlCLENBQUMsY0FBYyxDQUFDLDZCQUE2QixVQUFVLENBQUMsNkNBQTZDLGFBQWEsQ0FBQyw0QkFBNEIsbUJBQW1CLENBQUMsd0NBQXdDLG1CQUFtQixDQUFDLDZCQUE2QixVQUFVLENBQUMsaUJBQWlCLENBQUMseUNBQXlDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQyw2Q0FBNkMscUJBQXFCLENBQUMsdUNBQXVDLHlDQUF5QyxDQUFDLGtCQUFrQixDQUFDLDBCQUEwQixDQUFDLG1CQUFtQixxQkFBcUIsQ0FBQyxxQkFBcUIsQ0FBQyxtQ0FBbUMsQ0FBQyxNQUFNLENBQUMsb0NBQW9DLFFBQVEsQ0FBQyw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsbUZBQW1GLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLGlDQUFpQyxXQUFXLENBQUMsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsMkJBQTJCLENBQUMsa0JBQWtCLENBQUMsaUZBQWlGLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLHVDQUF1Qyw0QkFBNEIsQ0FBQyxlQUFlLENBQUMsdUNBQXVDLHlCQUF5QixDQUFDLGVBQWUsQ0FBQyx5REFBeUQsd0JBQWdCLENBQWhCLGdCQUFnQixDQUFDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQyxzQkFBc0IsQ0FBQyxjQUFjLENBQUMsNEVBQTRFLGNBQWMsQ0FBQywwRUFBMEUsd0JBQXdCLENBQUMseUtBQXlLLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyx1REFBdUQscUJBQXFCLENBQUMsc0JBQXNCLENBQUMsZ0JBQWdCLENBQUMscUtBQXFLLFVBQVUsQ0FBQyx3QkFBd0IsQ0FBQyx1TUFBdU0sZUFBZSxDQUFDLHdFQUF3RSx3QkFBd0IsQ0FBQyxVQUFVLENBQUMsMEVBQTBFLFVBQVUsQ0FBQyx1RUFBdUUsaUJBQWlCLENBQUMsbUZBQW1GLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxxRUFBcUUsYUFBYSxDQUFDLGVBQWUsQ0FBQyxpQkFBaUIsQ0FBQyxpRkFBaUYsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLCtCQUErQixhQUFhLENBQUMsZ0JBQWdCLENDRTE0TztFQUNFLHFCQUFBO0VBQ0EsVUFBQTtBQUFGLENBR0E7RUFDRSxpQkFBQTtBQUFGLENBR0E7RUFDRSxjQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtBQUFGLENBR0E7RUFDRSxnQkFBQTtBQUFGLENBR0E7RUFDRSxZQUFBO0FBQUYsQ0FHQTtFQUNFLG1CQUFBO0FBQUYsQ0FHQTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtBQUFGLENBR0E7RUFDRSxzQkFBQTtBQUFGLENBQ0U7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFDSixDQUNJO0VBQ0UsY0FBQTtBQUNOLENBRUk7RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBQU4iLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jb21tdW5pY2F0aW9uL2NoYW5uZWwtc2V0dXAvY2hhbm5lbC1zZXR1cC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbnVsIHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICBwYWRkaW5nOiAwO1xufVxuXG4uc2VsZWN0ZWQtb3B0aW9uIHtcbiAgbWFyZ2luLXRvcDogLTMwcHg7XG59XG5cbi5yZWQtbGFiZWwge1xuICBjb2xvcjogI2E1MWYzODtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgdGV4dC1hbGlnbjogbGVmdDtcbn1cblxuLmNsb3NlLWJ1dHRvbntcbiAgYm94LXNoYWRvdzogbm9uZTtcbn1cblxuLm1vZGFsLWJ1dHRvbnN7XG4gIGZsb2F0OiByaWdodDtcbn1cblxuLmFjdGlvbi1oZWFkZXJ7XG4gIHBhZGRpbmctbGVmdDogMTAwcHg7XG59XG5cbjo6bmctZGVlcCAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMyMTk2ZjM7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ChannelSetupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-channel-setup',
templateUrl: './channel-setup.component.html',
styleUrls: ['./channel-setup.component.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormBuilder"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_11__["BussinessUnitService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_12__["CustomFieldService"] }, { type: src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_13__["ChannelService"] }]; }, { ngSelectComponent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: [_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"]]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"]]
}], AddSubSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddSubSection', { static: true }]
}] }); })();
/***/ }),
/***/ "f9+U":
/*!***********************************************************************!*\
!*** ./src/app/users/pages/auth/welcomepage/welcomepage.component.ts ***!
\***********************************************************************/
/*! exports provided: WelcomepageComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WelcomepageComponent", function() { return WelcomepageComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../shared/custom-validator/custom-validator */ "TF/K");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var recheck__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! recheck */ "0MsR");
/* harmony import */ var recheck__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(recheck__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../service/auth/auth.service */ "PxIJ");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
function WelcomepageComponent_form_13_div_1_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please Enter a Valid Phone number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_13_div_1_div_6_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please Enter Your Mobile Number ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_13_div_1_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, WelcomepageComponent_form_13_div_1_div_6_small_1_Template, 2, 0, "small", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r5.f.mobile.errors.required);
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
const _c1 = function (a0, a1) { return [a0, a1]; };
function WelcomepageComponent_form_13_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Enter mobile number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "ngx-intl-tel-input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, WelcomepageComponent_form_13_div_1_span_5_Template, 2, 0, "span", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, WelcomepageComponent_form_13_div_1_div_6_Template, 2, 1, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("cssClass", "custom form-control")("preferredCountries", ctx_r3.preferredCountries)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c0, ctx_r3.submitted1 && ctx_r3.f.mobile.errors))("enableAutoCountrySelect", true)("enablePlaceholder", true)("searchCountryFlag", true)("searchCountryField", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](17, _c1, ctx_r3.SearchCountryField.Iso2, ctx_r3.SearchCountryField.Name))("selectFirstCountry", false)("selectedCountryISO", ctx_r3.CountryISO.Singapore)("maxLength", 15)("phoneValidation", true)("separateDialCode", ctx_r3.separateDialCode)("numberFormat", ctx_r3.PhoneNumberFormat.National);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.phone.invalid && ctx_r3.phone.touched);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r3.submitted1 && ctx_r3.f.mobile.errors);
} }
const _c2 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function WelcomepageComponent_form_13_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function WelcomepageComponent_form_13_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r7.onRequestRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, WelcomepageComponent_form_13_div_1_Template, 7, 20, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function WelcomepageComponent_form_13_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r8); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r9.navigateToLogin(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r0.forgetPasswordForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.otpSentFor === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r0.isLoadingOnRequestRestPassword);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](4, _c2, ctx_r0.isLoadingOnRequestRestPassword, !ctx_r0.isLoadingOnRequestRestPassword));
} }
function WelcomepageComponent_form_14_div_5_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter OTP sent to your mobile number ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_14_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, WelcomepageComponent_form_14_div_5_small_1_Template, 2, 0, "small", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r10.otp.otp.errors.required);
} }
function WelcomepageComponent_form_14_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Please enter OTP sent to your mobile number");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, WelcomepageComponent_form_14_div_5_Template, 2, 1, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function WelcomepageComponent_form_14_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSubmitOtp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function WelcomepageComponent_form_14_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.goBack(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r1.otpVerifyForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](5, _c0, ctx_r1.submitted2 && ctx_r1.otp.otp.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.submitted2 && ctx_r1.otp.otp.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r1.isLoadingOtpSubmit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](7, _c2, ctx_r1.isLoadingOtpSubmit, !ctx_r1.isLoadingOtpSubmit));
} }
function WelcomepageComponent_form_15_div_5_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function WelcomepageComponent_form_15_div_5_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r21.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_6_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function WelcomepageComponent_form_15_div_6_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r23.passwordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_7_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Please enter your Password, it's a mandatory field ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one numeric letter is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_7_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one special character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_7_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one Capital character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Atleast one Small character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_7_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" Minimum Length Should be ", ctx_r30.passwordRestForm.get("password").errors.length, " Characters ");
} }
function WelcomepageComponent_form_15_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, WelcomepageComponent_form_15_div_7_small_1_Template, 2, 0, "small", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, WelcomepageComponent_form_15_div_7_div_2_Template, 2, 0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, WelcomepageComponent_form_15_div_7_div_3_Template, 2, 0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, WelcomepageComponent_form_15_div_7_div_4_Template, 2, 0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, WelcomepageComponent_form_15_div_7_div_5_Template, 2, 0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, WelcomepageComponent_form_15_div_7_div_6_Template, 2, 1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r17.passwordRestForm.get("password").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r17.passwordRestForm.get("password").errors.hasNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r17.passwordRestForm.get("password").errors.hasSpecialCharacters);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r17.passwordRestForm.get("password").errors.hasCapitalCase);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r17.passwordRestForm.get("password").errors.hasSmallCase);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r17.passwordRestForm.get("password").errors.minlength);
} }
function WelcomepageComponent_form_15_div_12_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function WelcomepageComponent_form_15_div_12_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r32); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r31.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_13_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "i", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function WelcomepageComponent_form_15_div_13_Template_i_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r33.confirmPasswordVisible(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_14_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Confirm Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_14_small_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Password doesn't Match ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function WelcomepageComponent_form_15_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, WelcomepageComponent_form_15_div_14_small_1_Template, 2, 0, "small", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, WelcomepageComponent_form_15_div_14_small_2_Template, 2, 0, "small", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r20.passwordRestForm.get("confirmPassword").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r20.passwordRestForm.get("confirmPassword").errors.mustMatch);
} }
function WelcomepageComponent_form_15_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "form", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngSubmit", function WelcomepageComponent_form_15_Template_form_ngSubmit_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r37.onRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, WelcomepageComponent_form_15_div_5_Template, 2, 0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, WelcomepageComponent_form_15_div_6_Template, 2, 0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, WelcomepageComponent_form_15_div_7_Template, 7, 6, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Confirm Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, WelcomepageComponent_form_15_div_12_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, WelcomepageComponent_form_15_div_13_Template, 2, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, WelcomepageComponent_form_15_div_14_Template, 3, 2, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.passwordRestForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx_r2.isPasswordVisible ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](13, _c0, ctx_r2.submitted3 && ctx_r2.passwordRestForm.get("password").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.isPasswordVisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isPasswordVisible);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.passwordRestForm.get("password").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("type", ctx_r2.isPasswordVisibleAlt ? "text" : "password")("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c0, ctx_r2.submitted3 && ctx_r2.passwordRestForm.get("confirmPassword").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r2.isPasswordVisibleAlt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isPasswordVisibleAlt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.passwordRestForm.get("confirmPassword").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r2.isLoadingResetPassword);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](17, _c2, ctx_r2.isLoading, !ctx_r2.isLoadingResetPassword));
} }
class WelcomepageComponent {
constructor(router, auth, toastService, companyService, formBuilder, route) {
this.router = router;
this.auth = auth;
this.toastService = toastService;
this.companyService = companyService;
this.formBuilder = formBuilder;
this.route = route;
this.isPasswordVisible = false;
this.isPasswordVisibleAlt = false;
this.restPasswordState = 'initRest';
this.isLoadingOnRequestRestPassword = false;
this.validators = [];
this.CountryISO = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["CountryISO"];
this.PhoneNumberFormat = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["PhoneNumberFormat"];
this.preferredCountries = [
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["CountryISO"].UnitedStates,
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["CountryISO"].UnitedKingdom,
];
this.SearchCountryField = ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["SearchCountryField"];
this.isLoadingOtpSubmit = false;
this.isLoadingResetPassword = false;
this.submitted3 = false;
}
ngOnInit() {
this.loggedInUserName = localStorage.getItem("loggedInUserName");
this.loggedInUserID = localStorage.getItem("loggedInUserId");
const otpVerified = localStorage.getItem("otpVerified");
if (otpVerified === "true") {
this.otpToken = localStorage.getItem("otpToken");
this.restPasswordState = 'passwordRest';
}
this.initForm();
this.getPasswordSetting();
this.route.params
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["tap"])((value) => (this.companyName = value.name)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((v) => v.name), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["switchMap"])((name) => this.auth.fetchCompanyId(name)))
.subscribe((res) => {
this.forgetPasswordForm.patchValue({
companyId: res.data._id,
});
});
const urlParam = this.route.params
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((v) => v.name))
.subscribe((val) => {
this.companyName = val;
this.getCompanyId();
});
}
getCompanyId() {
if (this.companyName != 'xforce' && this.companyName != undefined) {
const urlCompanyName = this.auth
.fetchCompanyId(this.companyName)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
urlCompanyName.unsubscribe();
}))
.subscribe((res) => {
this.forgetPasswordForm.patchValue({
companyId: res.data._id,
});
}, (error) => { });
}
else {
if (this.f.companyId.value) {
const urlxforce = this.auth
.fetchCompanyId(this.forgetPasswordForm.controls.companyId.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
urlxforce.unsubscribe();
}))
.subscribe((res) => {
this.xforceCompanyId = res.data._id;
}, (error) => { });
}
}
}
get phone() {
return this.forgetPasswordForm.get('mobile');
}
get email() {
return this.forgetPasswordForm.get('email');
}
get f() {
return this.forgetPasswordForm.controls;
}
get otp() {
return this.otpForm.controls;
}
get restPassword() {
return this.passwordRestForm.controls;
}
initForm() {
this.forgetPasswordForm = this.formBuilder.group({
companyId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
mobile: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.otpForm = this.formBuilder.group({
token: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
companyId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
staffId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
this.otpVerifyForm = this.formBuilder.group({
token: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
otp: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
}
onRequestRestPassword() {
if (this.otpSentFor === 1) {
const data = {
staffId: this.forgetPasswordForm.value.staffId,
email: this.forgetPasswordForm.value.email,
countryCode: '',
pathName: "sats"
};
const sub = this.auth
.requestForgetPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b, _c;
this.isLoadingOnRequestRestPassword = false;
this.toastService.success(res.data.message);
this.otpVerifyForm.patchValue({
token: (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.token,
});
this.otpToken = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.token;
localStorage.setItem("otpVerified", JSON.stringify((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.firstLogin));
this.restPasswordState = 'otpRest';
}, (error) => {
console.log(error);
this.isLoadingOnRequestRestPassword = false;
});
}
else if (this.otpSentFor === 2) {
this.isLoadingOnRequestRestPassword = true;
const { number } = this.forgetPasswordForm.get('mobile').value;
const data = {
userId: this.loggedInUserID,
countryCode: this.forgetPasswordForm.value.mobile.dialCode,
primaryMobileNumber: parseInt(number.replace(/[^0-9]/g, ''), 10).toString(),
pathName: "sats"
};
const sub = this.auth
.requestForgetPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b, _c;
this.isLoadingOnRequestRestPassword = false;
this.toastService.success(res.data.message);
this.otpToken = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.token;
localStorage.setItem("otpVerified", JSON.stringify((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.firstLogin));
this.otpVerifyForm.patchValue({
token: (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.token,
});
this.restPasswordState = 'otpRest';
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
this.isLoadingOnRequestRestPassword = false;
});
}
}
resetPasswordForm() {
this.passwordRestForm = this.formBuilder.group({
password: ['', [...this.validators, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
confirmPassword: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
token: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
}, {
validator: Object(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["MustMatch"])('password', 'confirmPassword'),
});
}
onSubmitOtp() {
if (!this.otpVerifyForm.valid) {
this.toastService.error('Please Enter the OTP');
return;
}
this.isLoadingOtpSubmit = true;
let data = { token: this.otpVerifyForm.get('token').value, otp: this.otpVerifyForm.get('otp').value };
const sub = this.auth
.verifyOTP(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoadingOtpSubmit = false;
this.restPasswordState = 'passwordRest';
this.toastService.success('OTP verified successfully');
}, (error) => {
this.isLoadingOtpSubmit = false;
this.toastService.error("OTP is either expired or incorrect, Please enter the correct OTP");
});
}
goBack() {
this.restPasswordState = 'initRest';
}
navigateToLogin() {
this.router.navigate(['/users/login/', this.companyName]);
}
getValidatorFnArray(setting) {
var _a, _b, _c, _d;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const validators = [];
if ((_a = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _a === void 0 ? void 0 : _a.lowerCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(/[a-z]/, {
hasSmallCase: true,
}));
}
if ((_b = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _b === void 0 ? void 0 : _b.specialChar) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(/[ !@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]/, {
hasSpecialCharacters: true,
}));
}
if ((_c = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _c === void 0 ? void 0 : _c.upperCase) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(/[A-Z]/, {
hasCapitalCase: true,
}));
}
if ((_d = setting === null || setting === void 0 ? void 0 : setting.charTypes) === null || _d === void 0 ? void 0 : _d.numbers) {
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(/\d/, {
hasNumber: true,
}));
}
if (setting === null || setting === void 0 ? void 0 : setting.charLength) {
const len = setting.charLength;
let test = `^.{${len},22}`;
let recheckResp = yield recheck__WEBPACK_IMPORTED_MODULE_6__["check"](test, "");
if (recheckResp.status === 'safe') {
let regex = new RegExp(test);
validators.push(_shared_custom_validator_custom_validator__WEBPACK_IMPORTED_MODULE_3__["CustomValidators"].patternValidator(regex, {
minlength: true,
length: setting.charLength,
}));
}
}
this.validators.push(...validators);
this.resetPasswordForm();
});
}
getPasswordSetting() {
const sub = this.companyService
.getPasswordSetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
var _a, _b, _c, _d, _e;
this.getValidatorFnArray((_b = (_a = res.data) === null || _a === void 0 ? void 0 : _a.pageSettingData) === null || _b === void 0 ? void 0 : _b.pwdSettings);
this.otpSentFor = (_e = (_d = (_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.pageSettingData) === null || _d === void 0 ? void 0 : _d.pwdSettings) === null || _e === void 0 ? void 0 : _e.otpSentFor;
}, (error) => {
console.log(error);
});
}
onRestPassword() {
this.passwordRestForm.patchValue({
token: this.otpToken,
});
if (!this.passwordRestForm.valid) {
this.submitted3 = true;
return;
}
let data = {
password: this.passwordRestForm.get('confirmPassword').value,
token: this.passwordRestForm.value.token,
};
this.isLoadingResetPassword = true;
const sub = this.auth
.restPassword(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.isLoadingResetPassword = false;
this.toastService.success('Password Updated successfully');
this.passwordRestForm.patchValue({
token: res.data.token,
});
this.auth.logout();
}, (error) => {
this.isLoadingResetPassword = false;
});
}
passwordVisible() {
this.isPasswordVisible = !this.isPasswordVisible;
}
confirmPasswordVisible() {
this.isPasswordVisibleAlt = !this.isPasswordVisibleAlt;
}
}
WelcomepageComponent.ɵfac = function WelcomepageComponent_Factory(t) { return new (t || WelcomepageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["ActivatedRoute"])); };
WelcomepageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: WelcomepageComponent, selectors: [["app-welcomepage"]], decls: 16, vars: 4, consts: [[1, "d-flex", "login-main", "flex-sm-row", "flex-column"], [1, "flex-fill", "min-w50", "d-sm-block", "d-none"], [1, "mw-100", "bg-banner"], [1, "flex-fill", "bg"], [1, "d-flex", "align-items-center", "h-100", "min-h35"], [1, "d-flex", "justify-content-center", "min-w100"], [1, "login-body", "min-w50", "card"], [1, "forgot-password-header"], [1, "text-center"], [1, "card-body"], [3, "formGroup", "ngSubmit", 4, "ngIf"], [3, "formGroup", 4, "ngIf"], [3, "formGroup", "ngSubmit"], ["class", "form-group", 4, "ngIf"], [1, "form-group"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", "ml-2", 3, "disabled"], [1, "fa", 3, "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-red-back", "pl-3", "pr-3", "float-right", 3, "click"], ["for", "exampleInputPassword1"], ["formControlName", "mobile", "customPlaceholder", "Please Enter your mobile number", 3, "cssClass", "preferredCountries", "ngClass", "enableAutoCountrySelect", "enablePlaceholder", "searchCountryFlag", "searchCountryField", "selectFirstCountry", "selectedCountryISO", "maxLength", "phoneValidation", "separateDialCode", "numberFormat"], [1, "error-container"], [4, "ngIf"], ["class", "invalid-feedback mobile-error", 4, "ngIf"], [1, "invalid-feedback", "mobile-error"], [3, "formGroup"], ["for", "exampleInputEmail1"], ["type", "text", "formControlName", "otp", "maxlength", "6", "aria-describedby", "emailHelp", "placeholder", "Enter OTP", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", "ml-3", 3, "disabled", "click"], ["type", "submit", 1, "btn", "btn-sm", "btn-back", "float-right", 3, "click"], [1, "invalid-feedback"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], ["placeholder", " Password", "formControlName", "password", 1, "form-control", 3, "type", "ngClass"], ["class", "eye-slash", 4, "ngIf"], [1, "pb-2", "form-bg"], ["placeholder", " Confirm Password", "formControlName", "confirmPassword", 1, "form-control", 3, "type", "ngClass"], ["class", "eye-slash-alt", 4, "ngIf"], ["type", "submit", 1, "btn", "btn-sm", "btn-add", "float-right", 3, "disabled"], [1, "eye-slash"], ["aria-hidden", "true", 1, "fa", "fa-eye-slash", "fa-lg", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-eye", "fa-lg", 3, "click"], [1, "eye-slash-alt"]], template: function WelcomepageComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h3", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " The last step is to complete your registration");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, WelcomepageComponent_form_13_Template, 8, 7, "form", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, WelcomepageComponent_form_14_Template, 12, 10, "form", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, WelcomepageComponent_form_15_Template, 19, 20, "form", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Welcome ", ctx.loggedInUserName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "initRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "otpRest");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.restPasswordState == "passwordRest" && ctx.passwordRestForm);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgClass"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["NgxIntlTelInputComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"]], styles: [".login-main[_ngcontent-%COMP%] .min-w50[_ngcontent-%COMP%] {\n background: transparent;\n border: 0;\n min-width: 50%;\n}\n.login-main[_ngcontent-%COMP%] .bg-banner[_ngcontent-%COMP%] {\n background-image: url('background.jpg');\n background-repeat: no-repeat;\n background-size: cover;\n min-height: 100vh;\n min-width: 100%;\n}\n.login-main[_ngcontent-%COMP%] .min-h35[_ngcontent-%COMP%] {\n min-height: 100vh;\n}\n.flex-fill.bg[_ngcontent-%COMP%] {\n background-image: url('loginBg.jpg');\n}\n.forgot-password-header[_ngcontent-%COMP%] {\n width: 450px;\n text-align: center;\n}\n.eye-slash[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -25px;\n cursor: pointer;\n}\n.eye-slash-alt[_ngcontent-%COMP%] {\n width: 20px;\n position: absolute;\n right: 30px;\n margin-top: -25px;\n cursor: pointer;\n}\n.mobile-error[_ngcontent-%COMP%] {\n margin-top: -15px;\n}\n.error-container[_ngcontent-%COMP%] {\n color: #f44336;\n font-weight: 600;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC93ZWxjb21lcGFnZS93ZWxjb21lcGFnZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDSTtFQUNFLHVCQUFBO0VBQ0EsU0FBQTtFQUNBLGNBQUE7QUFBTjtBQUdJO0VBQ0UsdUNBQUE7RUFDQSw0QkFBQTtFQUNBLHNCQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0FBRE47QUFHSTtFQUNFLGlCQUFBO0FBRE47QUFJRTtFQUNFLG9DQUFBO0FBREo7QUFJRTtFQUNFLFlBQUE7RUFDQSxrQkFBQTtBQURKO0FBSUU7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxXQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0FBREo7QUFJRTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxpQkFBQTtFQUNBLGVBQUE7QUFESjtBQUlFO0VBQ0UsaUJBQUE7QUFESjtBQUlFO0VBQ0UsY0FBQTtFQUNBLGdCQUFBO0FBREoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9hdXRoL3dlbGNvbWVwYWdlL3dlbGNvbWVwYWdlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmxvZ2luLW1haW4ge1xuICAgIC5taW4tdzUwIHtcbiAgICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICAgICAgYm9yZGVyOiAwO1xuICAgICAgbWluLXdpZHRoOiA1MCU7XG4gICAgfVxuICBcbiAgICAuYmctYmFubmVyIHtcbiAgICAgIGJhY2tncm91bmQtaW1hZ2U6IHVybChcIi4uLy4uLy4uLy4uLy4uL2Fzc2V0cy9pbWFnZXMvYmFja2dyb3VuZC5qcGdcIik7XG4gICAgICBiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuICAgICAgYmFja2dyb3VuZC1zaXplOiBjb3ZlcjtcbiAgICAgIG1pbi1oZWlnaHQ6IDEwMHZoO1xuICAgICAgbWluLXdpZHRoOiAxMDAlO1xuICAgIH1cbiAgICAubWluLWgzNSB7XG4gICAgICBtaW4taGVpZ2h0OiAxMDB2aDtcbiAgICB9XG4gIH1cbiAgLmZsZXgtZmlsbC5iZyB7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogdXJsKFwiLi4vLi4vLi4vLi4vLi4vYXNzZXRzL2ltYWdlcy9sb2dpbkJnLmpwZ1wiKTtcbiAgfVxuICBcbiAgLmZvcmdvdC1wYXNzd29yZC1oZWFkZXIge1xuICAgIHdpZHRoOiA0NTBweDtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIH1cbiAgXG4gIC5leWUtc2xhc2gge1xuICAgIHdpZHRoOiAyMHB4O1xuICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICByaWdodDogMzBweDtcbiAgICBtYXJnaW4tdG9wOiAtMjVweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbiAgXG4gIC5leWUtc2xhc2gtYWx0IHtcbiAgICB3aWR0aDogMjBweDtcbiAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgcmlnaHQ6IDMwcHg7XG4gICAgbWFyZ2luLXRvcDogLTI1cHg7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICB9XG4gIFxuICAubW9iaWxlLWVycm9ye1xuICAgIG1hcmdpbi10b3A6IC0xNXB4O1xuICB9XG4gIFxuICAuZXJyb3ItY29udGFpbmVye1xuICAgIGNvbG9yOiAjZjQ0MzM2O1xuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIH0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](WelcomepageComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-welcomepage',
templateUrl: './welcomepage.component.html',
styleUrls: ['./welcomepage.component.scss']
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"] }, { type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_8__["AuthService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__["CompanySetupService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["ActivatedRoute"] }]; }, null); })();
/***/ }),
/***/ "f9/q":
/*!*****************************************************!*\
!*** ./src/app/shared/buttons/buttons.component.ts ***!
\*****************************************************/
/*! exports provided: ButtonsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonsComponent", function() { return ButtonsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
class ButtonsComponent {
constructor() { }
ngOnInit() {
}
}
ButtonsComponent.ɵfac = function ButtonsComponent_Factory(t) { return new (t || ButtonsComponent)(); };
ButtonsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ButtonsComponent, selectors: [["buttons"]], decls: 11, vars: 0, consts: [[1, "btn-container"], [1, "btn", "btn-submit"], [1, "btn", "btn-clear"], [1, "btn", "btn-create"], [1, "btn", "btn-add"], [1, "btn", "btn-update"]], template: function ButtonsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Submit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Create");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Add");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "button", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " Update");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }, styles: [".btn-submit[_ngcontent-%COMP%] {\n background-color: #337ab7;\n color: #ffffff;\n}\n\n.btn-add[_ngcontent-%COMP%] {\n background-color: #3ab54a;\n color: #ffffff;\n}\n\n.btn-update[_ngcontent-%COMP%] {\n background-color: #3ab54a;\n color: #ffffff;\n}\n\n.btn-clear[_ngcontent-%COMP%] {\n background-color: #a51f38;\n color: #ffffff;\n}\n\n.btn-create[_ngcontent-%COMP%] {\n background-color: #a51f38;\n color: #ffffff;\n}\n\n.btn-container[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: flex-start;\n}\n\n.btn-container[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 5px;\n}\n\n.no-border[_ngcontent-%COMP%] {\n outline: none;\n border: none;\n box-shadow: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvc2hhcmVkL2J1dHRvbnMvYnV0dG9ucy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQTtFQUNJLHlCQUFBO0VBQ0EsY0FBQTtBQUZKOztBQUlBO0VBQ0kseUJBQUE7RUFDQSxjQUFBO0FBREo7O0FBR0E7RUFDSSx5QkFBQTtFQUNBLGNBQUE7QUFBSjs7QUFFQTtFQUNJLHlCQUFBO0VBQ0EsY0FBQTtBQUNKOztBQUNBO0VBQ0kseUJBQUE7RUFDQSxjQUFBO0FBRUo7O0FBQUE7RUFDSSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSx1QkFBQTtFQUNBLDJCQUFBO0FBR0o7O0FBRkk7RUFFSSxXQUFBO0FBR1I7O0FBQ0E7RUFDSSxhQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0FBRUoiLCJmaWxlIjoic3JjL2FwcC9zaGFyZWQvYnV0dG9ucy9idXR0b25zLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiJGFkZC11cGRhdGUtYnV0dG9uIDogIzNhYjU0YSAhaW1wb3J0YW50O1xuJGNsZWFyLWNyZWF0ZS1idXR0b246ICNhNTFmMzggIWltcG9ydGFudDtcbiRzdWJtaXQtYnV0dG9uOiAjMzM3YWI3O1xuLmJ0bi1zdWJtaXR7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzMzN2FiNztcbiAgICBjb2xvcjogI2ZmZmZmZjtcbn1cbi5idG4tYWRke1xuICAgIGJhY2tncm91bmQtY29sb3I6ICMzYWI1NGE7XG4gICAgY29sb3I6ICNmZmZmZmY7XG59XG4uYnRuLXVwZGF0ZXtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjM2FiNTRhO1xuICAgIGNvbG9yOiAjZmZmZmZmO1xufVxuLmJ0bi1jbGVhcntcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTUxZjM4O1xuICAgIGNvbG9yOiAjZmZmZmZmO1xufVxuLmJ0bi1jcmVhdGV7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2E1MWYzODtcbiAgICBjb2xvcjogI2ZmZmZmZjtcbn1cbi5idG4tY29udGFpbmVye1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XG4gICAgYnV0dG9ue1xuICAgIFxuICAgICAgICBtYXJnaW46IDVweDtcbiAgICB9XG59XG5cbi5uby1ib3JkZXJ7XG4gICAgb3V0bGluZTogbm9uZTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgYm94LXNoYWRvdzogbm9uZTtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ButtonsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'buttons',
templateUrl: './buttons.component.html',
styleUrls: ['./buttons.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "fGjg":
/*!***********************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/manage-shift/manage-shift.component.ts ***!
\***********************************************************************************************/
/*! exports provided: ManageShiftComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageShiftComponent", function() { return ManageShiftComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _manage_manage_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./manage/manage.component */ "qjb4");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _plan_shift_plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../plan-shift/plan-shift-header/plan-shift-header.component */ "SD5B");
/* harmony import */ var _manage_overview_manage_overview_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./manage-overview/manage-overview.component */ "IrbV");
/* harmony import */ var _status_status_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./status/status.component */ "Zx5L");
const _c0 = ["sidemenu"];
function ManageShiftComponent_div_0_ng_container_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ng-option", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r4.label);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.label);
} }
function ManageShiftComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ManageShiftComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.buId = $event; })("change", function ManageShiftComponent_div_0_Template_ng_select_change_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.onBuChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "WORK WEEK");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "ng-select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ManageShiftComponent_div_0_Template_ng_select_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.selectedWeek = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ManageShiftComponent_div_0_ng_container_11_Template, 3, 2, "ng-container", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageShiftComponent_div_0_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.viewClicked(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.buForShift)("loading", ctx_r0.buLoader)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.buId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", true)("loading", ctx_r0.weeksLoader)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r0.selectedWeek);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.weeksArr);
} }
function ManageShiftComponent_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-plan-shift-header", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "app-manage-overview", 27);
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("data", ctx_r11.headerData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("refresh", ctx_r11.refreshNum)("bu", ctx_r11.buId)("startDate", ctx_r11.startDateLocal)("shiftGraph", ctx_r11.receivedPlanShift);
} }
function ManageShiftComponent_div_1_ng_template_10_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Planned Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Planned Flexi Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Booked Flexi Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Booked Flexi staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "Assigned Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](30, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Assigned Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](36, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r14.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 6, ctx_r14.topData.totalHours.need, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r14.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 9, ctx_r14.topData.numberOfShifts.need, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r14.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 12, ctx_r14.topData.totalHours.booked, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r14.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](24, 15, ctx_r14.topData.numberOfShifts.booked, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r14.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](30, 18, ctx_r14.topData.totalHours.needAssign, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r14.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](36, 21, ctx_r14.topData.numberOfShifts.needAssign, "1.2-2"), " ");
} }
function ManageShiftComponent_div_1_ng_template_10_app_manage_1_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-manage", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ChangeTabId", function ManageShiftComponent_div_1_ng_template_10_app_manage_1_Template_app_manage_ChangeTabId_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r16.changeActiveTab($event); })("headerData", function ManageShiftComponent_div_1_ng_template_10_app_manage_1_Template_app_manage_headerData_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r17); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r18.getheaderData($event); })("day", function ManageShiftComponent_div_1_ng_template_10_app_manage_1_Template_app_manage_day_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r17); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r19.headerHrsStaff($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("refresh", ctx_r15.refreshNum)("isLoader", ctx_r15.isLoader)("shift", ctx_r15.managePageData)("week", ctx_r15.planShift.startDate)("buId", ctx_r15.buId);
} }
function ManageShiftComponent_div_1_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageShiftComponent_div_1_ng_template_10_div_0_Template, 37, 24, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageShiftComponent_div_1_ng_template_10_app_manage_1_Template, 1, 5, "app-manage", 29);
} if (rf & 2) {
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r12.isManageTabActive);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r12.isManageTabActive);
} }
function ManageShiftComponent_div_1_ng_template_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-plan-shift-header", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "app-status", 34);
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("data", ctx_r13.headerData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("buId", ctx_r13.buId)("week", ctx_r13.planShift.startDate)("refreshStatus", ctx_r13.refreshStatus);
} }
function ManageShiftComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 16, 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ManageShiftComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageShiftComponent_div_1_Template_a_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r22.viewClicked(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageShiftComponent_div_1_ng_template_6_Template, 2, 5, "ng-template", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageShiftComponent_div_1_Template_a_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r23.switchToManage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "MANAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ManageShiftComponent_div_1_ng_template_10_Template, 2, 2, "ng-template", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ManageShiftComponent_div_1_ng_template_14_Template, 2, 4, "ng-template", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "li", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageShiftComponent_div_1_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r24.refreshPage(ctx_r24.activeId); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " REFRESH ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2)("disabled", !ctx_r1.receivedPlanShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r10);
} }
class ManageShiftComponent {
constructor(route, router, renderer, planShiftService, setupService, toastr) {
this.route = route;
this.router = router;
this.renderer = renderer;
this.planShiftService = planShiftService;
this.setupService = setupService;
this.toastr = toastr;
this.activeId = 1;
this.weeksArr = [];
this.managePageData = null;
this.isManageTabActive = false;
this.refreshStatus = false;
this.eventsSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.refreshNum = 0;
this.buLoader = true;
this.isLoader = false;
this.getWeekStartEndDate = function (date, count) {
let datesToReturn = {};
let label = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MMM DD YYYY") + ' to ' + moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count + 6, 'days').format("MMM DD YYYY");
let value = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').add(count, 'days').format("MM-DD-YYYY");
datesToReturn = { label: label, value: value, key: count };
/* if (count == 0 && $scope.workWeeksDate == undefined) {
$scope.workWeeksDate = value;
}*/
return datesToReturn;
};
this.router.routeReuseStrategy.shouldReuseRoute = function () {
return false;
};
this.router.onSameUrlNavigation = 'reload';
this.routeSub = route.data.subscribe((val) => {
this.isView = val.isView;
});
}
ngOnInit() {
this.getAllBuForShift();
}
getAllBuForShift() {
this.buLoader = true;
const buSubscribe = this.setupService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}))
.subscribe((res) => {
// if (res.success) {
this.buForShift = res.data.businessUnitList;
/*} else {
this.buForShift = [];
}*/
}, (error) => {
this.buForShift = [];
});
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
ngOnDestroy() {
this.routeSub.unsubscribe();
}
refreshPage(id) {
this.activeId = id;
this.refreshNum++;
switch (id) {
case 1:
this.viewClicked();
break;
case 2:
this.switchToManage();
break;
case 3:
this.refreshStatus = !this.refreshStatus;
;
break;
default:
break;
}
this.toastr.success('Data Refreshed Successfully', 'Refreshed');
}
onBuChange() {
this.weeksLoader = true;
const buWeeks = this.planShiftService
.getWeeks(this.buId._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.weeksLoader = false;
buWeeks.unsubscribe();
}))
.subscribe((res) => {
var _a;
// this.weeksArr = res['data']['data'];
//this.selectedWeek
const count = res['data'].noOfWeek == 0 ? 1 : res['data'].noOfWeek;
let getDate = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek').format("MM-DD-YYYY");
if (count > 0) {
for (var i = -count; i <= count; i++) {
let dummyData = this.getWeekStartEndDate(getDate, 7 * (i));
this.weeksArr.push(dummyData);
//localStorageService.set("WorkWeekList", $scope.myWeekRange);
}
}
this.selectedWeek = (_a = this.weeksArr[count]) === null || _a === void 0 ? void 0 : _a.label;
});
}
changeToDate(d, n) {
var months = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
var sd = d.slice(4, 6).toString();
var dd = parseInt(sd);
var smm = d.slice(0, 3);
var mm = months.indexOf(smm);
var yy = parseInt(d.slice(7, 11));
this.startDateLocal = new Date(yy, mm, dd);
if (n == 0) {
var startDate = new Date(yy, mm, dd);
return startDate;
}
else if (n == 1) {
var endDate = new Date(startDate.setDate(startDate.getDate() + 6));
return endDate;
}
}
viewClicked() {
this.isLoader = true;
this.isManageTabActive = false;
this.startDate = moment__WEBPACK_IMPORTED_MODULE_1__(this.changeToDate(this.selectedWeek, 0)).format('MM-DD-YYYY [00:00:00 GMT]ZZ');
this.planShift = {
businessUnitId: this.buId._id,
startDate: moment__WEBPACK_IMPORTED_MODULE_1__(this.changeToDate(this.selectedWeek, 0)).format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
from: 'plan',
};
this.planShiftService.getShiftGraph(this.planShift).subscribe((res) => {
this.receivedPlanShift = res['data'];
this.isView = true;
this.headerData = {
one: this.receivedPlanShift.dashboardGraphData.plannedFlexiHours,
two: this.receivedPlanShift.dashboardGraphData.plannedFlexiShifts,
three: this.receivedPlanShift.dashboardGraphData.bookedFlexiHours,
four: this.receivedPlanShift.dashboardGraphData.bookedFlexiShifts,
five: this.receivedPlanShift.dashboardGraphData.assignFlexiHours,
six: this.receivedPlanShift.dashboardGraphData.assignFlexiShifts,
};
this.headerHrsStaff({ count: 0, day: 'M' });
this.isLoader = false;
});
}
headerHrsStaff(e) {
var _a;
const [start, end] = this.selectedWeek.split(' to ');
const weekStart = moment__WEBPACK_IMPORTED_MODULE_1__(start, 'MMM DD YYYY');
const weekEnd = moment__WEBPACK_IMPORTED_MODULE_1__(end, 'MMM DD YYYY');
const weekdays = [];
moment__WEBPACK_IMPORTED_MODULE_1__["updateLocale"]('en', {
week: {
dow: 1,
},
});
for (let day = weekStart.clone(); day.isSameOrBefore(weekEnd); day.add(1, 'day')) {
weekdays.push(day.format('DD-MM-YYYY'));
}
this.topData = (_a = this.managePageData) === null || _a === void 0 ? void 0 : _a.graphDataWeb[weekdays[e.count]];
}
changeActiveTab($event) {
this.activeId = $event;
}
refreshHeaderData() {
this.headerData = {
one: 0,
two: 0,
three: 0,
four: 0,
};
this.planShift = {
businessUnitId: this.buId,
startDate: moment__WEBPACK_IMPORTED_MODULE_1__(this.changeToDate(this.selectedWeek, 0)).format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
from: 'plan',
date: moment__WEBPACK_IMPORTED_MODULE_1__(this.changeToDate(this.selectedWeek, 0)).format('MM-DD-YYYY [00:00:00 GMT]ZZ'),
cancelledShifts: true,
};
this.planShiftService.getPlanShift(this.planShift).subscribe((res) => {
this.receivedPlanShift = res['data'];
this.headerData = {
one: this.receivedPlanShift.dashboardGraphData.plannedFlexiHours,
two: this.receivedPlanShift.dashboardGraphData.plannedFlexiShifts,
three: this.receivedPlanShift.dashboardGraphData.bookedFlexiHours,
four: this.receivedPlanShift.dashboardGraphData.bookedFlexiShifts,
five: this.receivedPlanShift.dashboardGraphData.assignFlexiHours,
six: this.receivedPlanShift.dashboardGraphData.assignFlexiShifts,
};
});
}
switchToManage() {
this.isLoader = true;
this.planShiftService
.getPlanShift(this.planShift)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.isLoader = false;
}))
.subscribe((res) => {
this.managePageData = res['data'];
if (!this.isManageTabActive) {
this.isManageTabActive = true;
}
this.headerHrsStaff({ count: 0, day: 'M' });
}, (error) => {
this.toastr.error('Failed to Refresh Data', 'Error');
});
}
}
ManageShiftComponent.ɵfac = function ManageShiftComponent_Factory(t) { return new (t || ManageShiftComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_6__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_7__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"])); };
ManageShiftComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageShiftComponent, selectors: [["app-manage-shift"]], viewQuery: function ManageShiftComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_manage_manage_component__WEBPACK_IMPORTED_MODULE_4__["ManageComponent"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.myChild = _t.first);
} }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "form-group"], [1, "d-block", "text-center"], ["loadingText", "Please wait data is loading...", "bindLabel", "orgName", "placeholder", "Select/Search Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange", "change"], ["placeholder", "Select Week", "appendTo", "body", 1, "custom", 3, "virtualScroll", "loading", "multiple", "searchable", "clearable", "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [3, "value"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], [3, "ngbNavItem", "disabled"], ["ngbNavLink", ""], [1, "align-self-center", "flex-grow-1", "nav-item", "pr-2", 3, "ngbNavItem"], [1, "btn", "btn-primary", "float-right", 3, "click"], [3, "ngbNavOutlet"], [3, "data"], [3, "refresh", "bu", "startDate", "shiftGraph"], ["class", "top-header bg-white rounded mb-3", 4, "ngIf"], [3, "refresh", "isLoader", "shift", "week", "buId", "ChangeTabId", "headerData", "day", 4, "ngIf"], [1, "top-header", "bg-white", "rounded", "mb-3"], [1, "hrs-text", "red-text"], [1, "red-text"], [3, "refresh", "isLoader", "shift", "week", "buId", "ChangeTabId", "headerData", "day"], [3, "buId", "week", "refreshStatus"]], template: function ManageShiftComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageShiftComponent_div_0_Template, 19, 13, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageShiftComponent_div_1_Template, 19, 7, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbNavOutlet"], _plan_shift_plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_14__["PlanShiftHeaderComponent"], _manage_overview_manage_overview_component__WEBPACK_IMPORTED_MODULE_15__["ManageOverviewComponent"], _manage_manage_component__WEBPACK_IMPORTED_MODULE_4__["ManageComponent"], _status_status_component__WEBPACK_IMPORTED_MODULE_16__["StatusComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["DecimalPipe"]], styles: [".top-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding: 1rem;\n}\n\n.red-text[_ngcontent-%COMP%] {\n color: #a42138 !important;\n}\n\n.hrs-text[_ngcontent-%COMP%] {\n text-align: center;\n font-size: 25px;\n line-height: 1.5;\n margin-top: 0.25rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNoaWZ0L21hbmFnZS1zaGlmdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGFBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9vcGVyYXRpb25zL3NoaWZ0LXNjaGVkdWxlci9tYW5hZ2Utc2hpZnQvbWFuYWdlLXNoaWZ0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLnRvcC1oZWFkZXIge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIHBhZGRpbmc6IDFyZW07XG59XG5cbi5yZWQtdGV4dCB7XG4gIGNvbG9yOiAjYTQyMTM4ICFpbXBvcnRhbnQ7XG59XG5cbi5ocnMtdGV4dCB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgZm9udC1zaXplOiAyNXB4O1xuICBsaW5lLWhlaWdodDogMS41O1xuICBtYXJnaW4tdG9wOiAwLjI1cmVtO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageShiftComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-manage-shift',
templateUrl: './manage-shift.component.html',
styleUrls: ['./manage-shift.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_5__["ActivatedRoute"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_5__["Router"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_6__["ShiftSchedulerService"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_7__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }]; }, { sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sidemenu']
}], myChild: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: [_manage_manage_component__WEBPACK_IMPORTED_MODULE_4__["ManageComponent"]]
}] }); })();
/***/ }),
/***/ "fwC0":
/*!***************************************************************************************!*\
!*** ./src/app/users/pages/gamification/Redemption-List/Redemption-List.component.ts ***!
\***************************************************************************************/
/*! exports provided: RedemptionListComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RedemptionListComponent", function() { return RedemptionListComponent; });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! file-saver */ "Iab2");
/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function RedemptionListComponent_div_0_ng_option_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r4 == null ? null : item_r4._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r4.orgName, " ");
} }
const _c0 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function RedemptionListComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "REDEMPTION EXPORT ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "form", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " Bussiness unit (Plan) ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "ng-select", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function RedemptionListComponent_div_0_Template_ng_select_change_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r5.changeBuUnit($event); })("clear", function RedemptionListComponent_div_0_Template_ng_select_clear_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r7.onClearPlanBuUnitDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "ng-option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Select All Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, RedemptionListComponent_div_0_ng_option_15_Template, 2, 2, "ng-option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "button", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function RedemptionListComponent_div_0_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onClickExport(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, " Export ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r0.exportRedemption);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("closeOnSelect", true)("clearable", true)("virtualScroll", true)("loading", ctx_r0.planBuUnitDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", "All_BU");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.bussinesUnitplanPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r0.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](11, _c0, ctx_r0.isLoading, !ctx_r0.isLoading));
} }
function RedemptionListComponent_div_1_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function RedemptionListComponent_div_1_tbody_41_tr_1_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](13, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "button", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function RedemptionListComponent_div_1_tbody_41_tr_1_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const item_r12 = ctx.$implicit; const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r13.onEditUser(item_r12); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, " VIEW ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r12 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r12 == null ? null : item_r12.user.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r12 == null ? null : item_r12.user.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r12 == null ? null : item_r12.name, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r12 == null ? null : item_r12.code, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r12 == null ? null : item_r12.redemption_type, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](13, 6, item_r12 == null ? null : item_r12.createdAt), " ");
} }
function RedemptionListComponent_div_1_tbody_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, RedemptionListComponent_div_1_tbody_41_tr_1_Template, 17, 8, "tr", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r10.usersPTable.data);
} }
function RedemptionListComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "REDEMPTION LIST ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function RedemptionListComponent_div_1_Template_select_change_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.onLimitChangeUsers(); })("ngModelChange", function RedemptionListComponent_div_1_Template_select_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, RedemptionListComponent_div_1_span_21_Template, 2, 0, "span", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function RedemptionListComponent_div_1_Template_input_search_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.loadUsers(); })("keyup", function RedemptionListComponent_div_1_Template_input_keyup_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.userssearchInput.next($event); })("ngModelChange", function RedemptionListComponent_div_1_Template_input_ngModelChange_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "table", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, " USERNAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, " STAFF ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "th", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function RedemptionListComponent_div_1_Template_th_sort_31_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, " PRODUCT ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "th", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function RedemptionListComponent_div_1_Template_th_sort_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.onSortUsers($event, "code"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, " COUPON CODE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function RedemptionListComponent_div_1_Template_th_sort_35_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.onSortUsers($event, "redemption_type"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36, " COUPON CATEGORY ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "th", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function RedemptionListComponent_div_1_Template_th_sort_37_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r24.onSortUsers($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, " REDEMEED ON ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](41, RedemptionListComponent_div_1_tbody_41_Template, 2, 1, "tbody", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](42, "app-skliton-loading-table", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "ngb-pagination", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function RedemptionListComponent_div_1_Template_ngb_pagination_pageChange_47_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r25.usersPTable.page = $event; })("pageChange", function RedemptionListComponent_div_1_Template_ngb_pagination_pageChange_47_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r26.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 7)("isTableLoading", ctx_r1.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r1.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r1.usersPTable.total)("page", ctx_r1.usersPTable.page)("maxSize", 5)("pageSize", ctx_r1.usersPTable.limit);
} }
function RedemptionListComponent_div_2_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "i", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function RedemptionListComponent_div_2_Template_i_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r27.goBack(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "REDEMPTION LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "p", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Username");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "p", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "p", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "Product Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "p", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, "Total Points before Redeem");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, "Total Points after Redeem");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "p", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](34, "Coupon Category");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "p", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "Redeemed on ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](42, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "p", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](45, "Redeemed type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "p", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "Points");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.user == null ? null : ctx_r2.selectedUser.user.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.user == null ? null : ctx_r2.selectedUser.user.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](((ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.totalRewardPoints) ? ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.totalRewardPoints : 0) + ((ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.points) ? ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.points : 0));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.totalRewardPoints);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.redemption_type);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"]((ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.createdAt) ? _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](42, 7, ctx_r2.selectedUser == null ? null : ctx_r2.selectedUser.createdAt, "MM/dd/yyyy") : "");
} }
class RedemptionListComponent {
constructor(gamificationService, toastService, buUnit, formBuilder) {
this.gamificationService = gamificationService;
this.toastService = toastService;
this.buUnit = buUnit;
this.formBuilder = formBuilder;
this.selectedUser = null;
this.locAccTableColumn = ['createdAt', 'title', 'publishEnd', 'status', '_id'];
this.viewtableQueryParams = Object.assign(Object.assign({}, src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_6__["tableParam"]), { start: 0 });
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.isTableLoading = true;
this.planBuUnitDropDownLoading = false;
this.isLoading = false;
this.showRedemptionList = false;
this.EditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
this.bussinesUnitplanPTable = {
sortBy: 'desc',
sortWith: 'createdBy',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 0;
this.usersPTable.search.value = input;
this.loadUsers(this.usersPTable.page);
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = !!direction ? field : 'createdAt';
this.usersPTable.sortBy = !!direction ? direction : 'desc';
this.loadUsers(this.usersPTable.page);
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers(this.usersPTable.page);
}
onLimitChangeUsers() {
// this.loadUsers();
}
ngOnInit() {
this.exportRedemption = this.formBuilder.group({
bussinessUnit: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required]],
});
this.loadBussinessPlanUnit();
this.loadUsers(this.usersPTable.page);
}
onEditUser(data) {
this.EditEvent.emit(data === null || data === void 0 ? void 0 : data._id);
this.showRedemptionList = true;
this.redemptionListID = data === null || data === void 0 ? void 0 : data._id;
this.selectedUser = data;
}
goBack() {
this.showRedemptionList = false;
}
addParentBussinentUnit(value) {
this.exportRedemption.patchValue({
bussinessUnit: {
string: value.businessUnit,
_id: value._id,
},
});
}
deleteparentBussinesUnit() {
this.exportRedemption.patchValue({
bussinessUnit: null
});
}
onSeachPlanBuUnit(value) {
this.bussinesUnitplanPTable.limit = 10;
this.bussinesUnitplanPTable.search = value.term;
this.loadBussinessPlanUnit();
}
loadMorePlasnBuUnitItems(value) {
this.bussinesUnitplanPTable.limit = this.bussinesUnitplanPTable.limit + 10;
this.loadBussinessPlanUnit();
}
onClearPlanBuUnitDropdown(value) {
if (value === undefined) {
this.exportRedemption.patchValue({
bussinessUnit: null
});
// this.bussinesUnitplanPTable.search = '';
this.bussinesUnitplanPTable.data = [];
this.loadBussinessPlanUnit();
// this.bussinesUnitplanPTable.data = [];
}
}
loadBussinessPlanUnit() {
this.planBuUnitDropDownLoading = true;
// const { data, ...rest } = this.bussinesUnitplanPTable;
const subscribe = this.buUnit
.getBusinessUnitData()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.planBuUnitDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a;
// const { count, data } = response.data;
this.bussinesUnitplanPTable.data = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.planBussinessUnitId;
}, (error) => {
this.bussinesUnitplanPTable.data = [];
this.toastService.error('No list found');
});
}
loadUsers(pageNumber) {
this.isTableLoading = true;
// const { data, total, isLoading, ...rest } = this.usersPTable
let id = this.exportRedemption.get('bussinessUnit').value ? this.exportRedemption.get('bussinessUnit').value : "";
if (id === "All_BU") {
id = "";
}
const subscribe = this.gamificationService
.getRedemptionList(id, (pageNumber - 1) || 0, this.usersPTable)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a;
// const { count, data } = response.data;
this.usersPTable.data = (response === null || response === void 0 ? void 0 : response.data.rewards) || [];
this.usersPTable.total = ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.recordsTotal) || 0;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.isTableLoading = false;
this.toastService.error('No list found');
});
}
onClickExport() {
if (!this.exportRedemption.valid) {
this.toastService.error('Please select Business unit');
return;
}
this.isLoading = true;
let d = new Date();
const timeZone = d.getTimezoneOffset();
this.gamificationService.getRedemptionExport(this.exportRedemption.get('bussinessUnit').value === "All_BU" ? "" : this.exportRedemption.get('bussinessUnit').value, timeZone).subscribe(({ data }) => {
this.isLoading = false;
const filename = data['csvLink']
.split('\\')
.pop()
.split('/')
.pop();
this.downloadCsv(filename);
}, (error) => {
this.isLoading = false;
});
}
// Converting json response to CSV file with third party npm fileSaver
downloadCsv(n) {
this.gamificationService.downloadRedemptionFile(n).subscribe((res) => {
if (res) {
file_saver__WEBPACK_IMPORTED_MODULE_5__["saveAs"](new Blob([res], { type: 'text/csv' }), n);
}
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
changeBuUnit(event) {
this.usersPTable.page = 1;
this.loadUsers(this.usersPTable.page);
}
}
RedemptionListComponent.ɵfac = function RedemptionListComponent_Factory(t) { return new (t || RedemptionListComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"])); };
RedemptionListComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: RedemptionListComponent, selectors: [["app-Redemption-List"]], viewQuery: function RedemptionListComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { EditEvent: "EditEvent" }, decls: 3, vars: 3, consts: [["class", "row", 4, "ngIf"], ["class", "card my-3 w-100", 4, "ngIf"], [4, "ngIf"], [1, "row"], [1, "col-md-12"], [1, "card", "my-3"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], ["action", "", 3, "formGroup"], [1, "row", "mb-2"], [1, "col-md-4"], ["bindLabel", "businessUnit", "placeholder", "Bussiness unit (Plan)", "appendTo", "body", "formControlName", "bussinessUnit", 1, "custom", 3, "multiple", "searchable", "closeOnSelect", "clearable", "virtualScroll", "loading", "change", "clear"], [3, "value"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-md-2"], [1, "btn", "btn-submit", "pl-3", "pr-3", 2, "margin-top", "25px", "height", "35px", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "card", "my-3", "w-100"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col"], ["scope", "col", "sortable", "0", 3, "sort"], ["scope", "col", "sortable", "1", 3, "sort"], ["scope", "col", "sortable", "2", 3, "sort"], ["scope", "col", "sortable", "3", 3, "sort"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-submit", "p-2", "pr-3", "pl-3", "m-1", 3, "click"], [1, "card-header", "flexi-header", "mt-4"], [1, "pl-3", "pr-3", 2, "color", "white"], ["aria-hidden", "true", 1, "fa", "fa-angle-left", "fa-2x", "back-button", 3, "click"], [1, "flex-SB"], [1, "card-title"], [1, "card-subtitle"], [1, "flex-SB", "mt-4"]], template: function RedemptionListComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, RedemptionListComponent_div_0_Template, 20, 14, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, RedemptionListComponent_div_1_Template, 48, 16, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, RedemptionListComponent_div_2_Template, 48, 10, "div", 2);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.showRedemptionList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.showRedemptionList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showRedemptionList);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__["ɵr"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbPagination"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n width: auto;\n}.card-body[_ngcontent-%COMP%] {\n border: 1px solid #eeeeee;\n}.card-title[_ngcontent-%COMP%] {\n font-weight: 600;\n font-size: 15px;\n margin-left: 15px;\n}.card-subtitle[_ngcontent-%COMP%] {\n font-size: 15px;\n margin-left: 15px;\n margin-top: 0px;\n}.flex-SB[_ngcontent-%COMP%] {\n width: 40%;\n display: flex;\n justify-content: space-between;\n}.back-button[_ngcontent-%COMP%] {\n cursor: pointer;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2dhbWlmaWNhdGlvbi9SZWRlbXB0aW9uLUxpc3QvUmVkZW1wdGlvbi1MaXN0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlEQUFpRCxlQUFlLENBQUMsaUNBQWlDLENBQUMsdURBQXVELGVBQWUsQ0FBQywyREFBMkQsUUFBUSxDQUFDLHlDQUF5QyxDQUFDLHNCQUFzQixDQUFDLGlFQUFpRSx5Q0FBeUMsQ0FBQyxrRUFBa0UsNEJBQTRCLENBQUMsMkJBQTJCLENBQUMsK0RBQStELHlCQUF5QixDQUFDLHdCQUF3QixDQUFDLHlFQUF5RSxvQkFBb0IsQ0FBQywwRUFBMEUsQ0FBQyxtREFBbUQsd0JBQXdCLENBQUMseUNBQXlDLFlBQVksQ0FBQyxnQ0FBZ0MsVUFBVSxDQUFDLHFCQUFxQixDQUFDLGlCQUFpQixDQUFDLHFCQUFxQixDQUFDLGVBQWUsQ0FBQyxrQkFBa0IsQ0FBQyxzQ0FBc0MsbUNBQW1DLENBQUMsb0RBQW9ELGtCQUFrQixDQUFDLGlCQUFpQixDQUFDLGdFQUFnRSxrQkFBa0IsQ0FBQyxjQUFjLENBQUMsb0VBQW9FLFVBQVUsQ0FBQyxpREFBaUQsV0FBVyxDQUFDLCtFQUErRSxPQUFPLENBQUMsTUFBTSxDQUFDLGlCQUFpQixDQUFDLGtCQUFrQixDQUFDLDJGQUEyRixrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxvR0FBb0csd0JBQXdCLENBQUMsd0JBQXdCLENBQUMsb0hBQW9ILGFBQWEsQ0FBQyx1RUFBdUUsZUFBZSxDQUFDLGdCQUFnQixDQUFDLG1GQUFtRixpQkFBaUIsQ0FBQyxjQUFjLENBQUMsaUZBQWlGLGNBQWMsQ0FBQyxpQkFBaUIsQ0FBQyx3QkFBd0IsQ0FBQyxpQkFBaUIsQ0FBQyxnQkFBZ0IsQ0FBQyw2RkFBNkYsY0FBYyxDQUFDLGVBQWUsQ0FBQyxtR0FBbUcsd0JBQXdCLENBQUMsbUhBQW1ILGdCQUFnQixDQUFDLCtIQUErSCxjQUFjLENBQUMsaUJBQWlCLENBQUMsaUdBQWlHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxnR0FBZ0csb0JBQW9CLENBQUMsZUFBZSxDQUFDLHNHQUFzRyx3QkFBd0IsQ0FBQyxxR0FBcUcsOEJBQThCLENBQUMsaUhBQWlILDZCQUE2QixDQUFDLGlCQUFpQixDQUFDLHNHQUFzRyw2QkFBNkIsQ0FBQyxrSEFBa0gsYUFBYSxDQUFDLDhCQUE4QixDQUFDLGlGQUFpRixtQkFBbUIsQ0FBQyw2RkFBNkYsbUJBQW1CLENBQUMsdUZBQXVGLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxnQkFBZ0IsQ0FBQyxtR0FBbUcsaUJBQWlCLENBQUMsY0FBYyxDQUFDLDZCQUE2QixVQUFVLENBQUMsNkNBQTZDLGFBQWEsQ0FBQyw0QkFBNEIsbUJBQW1CLENBQUMsd0NBQXdDLG1CQUFtQixDQUFDLDZCQUE2QixVQUFVLENBQUMsaUJBQWlCLENBQUMseUNBQXlDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQyw2Q0FBNkMscUJBQXFCLENBQUMsdUNBQXVDLHlDQUF5QyxDQUFDLGtCQUFrQixDQUFDLDBCQUEwQixDQUFDLG1CQUFtQixxQkFBcUIsQ0FBQyxxQkFBcUIsQ0FBQyxtQ0FBbUMsQ0FBQyxNQUFNLENBQUMsb0NBQW9DLFFBQVEsQ0FBQyw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsbUZBQW1GLDhCQUE4QixDQUFDLDZCQUE2QixDQUFDLGlDQUFpQyxXQUFXLENBQUMsMkJBQTJCLENBQUMsMEJBQTBCLENBQUMsMkJBQTJCLENBQUMsa0JBQWtCLENBQUMsaUZBQWlGLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLHVDQUF1Qyw0QkFBNEIsQ0FBQyxlQUFlLENBQUMsdUNBQXVDLHlCQUF5QixDQUFDLGVBQWUsQ0FBQyx5REFBeUQsd0JBQWdCLENBQWhCLGdCQUFnQixDQUFDLGdCQUFnQixDQUFDLGVBQWUsQ0FBQyxzQkFBc0IsQ0FBQyxjQUFjLENBQUMsNEVBQTRFLGNBQWMsQ0FBQywwRUFBMEUsd0JBQXdCLENBQUMseUtBQXlLLHdCQUF3QixDQUFDLGVBQWUsQ0FBQyx1REFBdUQscUJBQXFCLENBQUMsc0JBQXNCLENBQUMsZ0JBQWdCLENBQUMscUtBQXFLLFVBQVUsQ0FBQyx3QkFBd0IsQ0FBQyx1TUFBdU0sZUFBZSxDQUFDLHdFQUF3RSx3QkFBd0IsQ0FBQyxVQUFVLENBQUMsMEVBQTBFLFVBQVUsQ0FBQyx1RUFBdUUsaUJBQWlCLENBQUMsbUZBQW1GLGtCQUFrQixDQUFDLGNBQWMsQ0FBQyxxRUFBcUUsYUFBYSxDQUFDLGVBQWUsQ0FBQyxpQkFBaUIsQ0FBQyxpRkFBaUYsZ0JBQWdCLENBQUMsZUFBZSxDQUFDLCtCQUErQixhQUFhLENBQUMsZ0JBQWdCLENDRTE0TztFQUNJLFdBQUE7RUFDQSx5QkFBQTtFQUNBLHFCQUFBO0VBQ0EsV0FBQTtBQUFKLENBR0E7RUFDSSx5QkFBQTtBQUFKLENBR0E7RUFDSSxnQkFBQTtFQUNBLGVBQUE7RUFDQSxpQkFBQTtBQUFKLENBR0E7RUFDSSxlQUFBO0VBQ0EsaUJBQUE7RUFDQSxlQUFBO0FBQUosQ0FHQTtFQUNJLFVBQUE7RUFDQSxhQUFBO0VBQ0EsOEJBQUE7QUFBSixDQUdBO0VBQ0ksZUFBQTtBQUFKLENBR0E7RUFDSSxvQ0FBQTtFQUNBLHVCQUFBO0FBQUoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9nYW1pZmljYXRpb24vUmVkZW1wdGlvbi1MaXN0L1JlZGVtcHRpb24tTGlzdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbi5idG4tc3VibWl0IHtcbiAgICBjb2xvcjogI2ZmZjtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzM3YWI3O1xuICAgIGJvcmRlci1jb2xvcjogIzJlNmRhNDtcbiAgICB3aWR0aDogYXV0bztcbn1cblxuLmNhcmQtYm9keSB7XG4gICAgYm9yZGVyOiAxcHggc29saWQgI2VlZWVlZTtcbn1cblxuLmNhcmQtdGl0bGUge1xuICAgIGZvbnQtd2VpZ2h0OiA2MDA7XG4gICAgZm9udC1zaXplOiAxNXB4O1xuICAgIG1hcmdpbi1sZWZ0OiAxNXB4O1xufVxuXG4uY2FyZC1zdWJ0aXRsZSB7XG4gICAgZm9udC1zaXplOiAxNXB4O1xuICAgIG1hcmdpbi1sZWZ0OiAxNXB4O1xuICAgIG1hcmdpbi10b3A6IDBweDtcbn1cblxuLmZsZXgtU0Ige1xuICAgIHdpZHRoOiA0MCU7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5iYWNrLWJ1dHRvbiB7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG46Om5nLWRlZXAgLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWQge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICMyMTk2ZjMgIWltcG9ydGFudDtcbiAgICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RedemptionListComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-Redemption-List',
templateUrl: './Redemption-List.component.html',
styleUrls: ['./Redemption-List.component.scss']
}]
}], function () { return [{ type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}], EditEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "ghUW":
/*!**************************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/bu-shift-setup/bu-shift-setup-overview/bu-shift-setup-overview.component.ts ***!
\**************************************************************************************************************************/
/*! exports provided: BuShiftSetupOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BuShiftSetupOverviewComponent", function() { return BuShiftSetupOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/directive/sortable.directive */ "z5qi");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function BuShiftSetupOverviewComponent_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div");
} }
function BuShiftSetupOverviewComponent_ng_template_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Not Found!");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BuShiftSetupOverviewComponent_ng_template_22_tr_16_span_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Active");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BuShiftSetupOverviewComponent_ng_template_22_tr_16_span_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "In Active");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function BuShiftSetupOverviewComponent_ng_template_22_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, BuShiftSetupOverviewComponent_ng_template_22_tr_16_span_10_Template, 2, 0, "span", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, BuShiftSetupOverviewComponent_ng_template_22_tr_16_span_11_Template, 2, 0, "span", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function BuShiftSetupOverviewComponent_ng_template_22_tr_16_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const item_r7 = ctx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r10.onEditBuShiftSetup(item_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r7.sectionId.departmentId.companyId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r7.sectionId.departmentId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r7.sectionId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r7.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r7.status == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r7.status == 2);
} }
function BuShiftSetupOverviewComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BuShiftSetupOverviewComponent_ng_template_22_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortBuShiftSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Tier 1 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BuShiftSetupOverviewComponent_ng_template_22_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.onSortBuShiftSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Tier 2 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BuShiftSetupOverviewComponent_ng_template_22_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.onSortBuShiftSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Tier 3 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BuShiftSetupOverviewComponent_ng_template_22_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.onSortBuShiftSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Tier 4 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function BuShiftSetupOverviewComponent_ng_template_22_Template_th_sort_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.onSortBuShiftSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Status ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, BuShiftSetupOverviewComponent_ng_template_22_tr_16_Template, 15, 6, "tr", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r4.paginateData);
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function BuShiftSetupOverviewComponent_ngx_skeleton_loader_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ngx-skeleton-loader", 28);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c0));
} }
class BuShiftSetupOverviewComponent {
constructor(buShiftSetupService, toastService, storageService, formBuilder) {
this.buShiftSetupService = buShiftSetupService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.changeActiveBu = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.isBuShiftSetUpEdited = false;
this.paginateData = [];
this.buShiftSetUpSearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.loader = true;
this.buShiftOverviewErr = false;
// this.config.notFoundText = 'Custom not found';
this.bussinesUnitPTable = {
sortBy: 'desc',
sortWith: 'createdBy',
data: [],
page: 1,
limit: 10,
search: "",
};
this.companyName = this.storageService.getByKey('companyId');
this.buShiftSetUpSearchSubscription = this.buShiftSetUpSearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])()
//mergeMap((search) => of(search).pipe(delay(500)))
)
.subscribe((input) => {
this.bussinesUnitPTable.page = 1;
this.loadBuShiftSetUp();
});
}
ngOnInit() {
this.loadBuShiftSetUp();
// this.buOverviewTable();
this.buShiftSetUpForm = this.formBuilder.group({
status: ['active', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
buUnit: [''],
});
}
/// bussiness unit over view table config
onSortBuShiftSetup({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.buShiftSetUpTable.sort = { key: column, order: direction };
this.loadBuShiftSetUp();
}
loadBuShiftSetUp() {
this.loader = true;
const _a = this.bussinesUnitPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.buShiftSetupService
.getBuShiftDetails({ search: this.bussinesUnitPTable.search })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.loader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const businessUnitList = response.data.businessUnitList;
this.bussinesUnitPTable.data = businessUnitList;
this.bussinesUnitPTable.total = businessUnitList.length;
this.getPaginateData();
}, (error) => {
this.bussinesUnitPTable.data = [];
this.bussinesUnitPTable.total = 0;
this.toastService.error('No list found');
this.buShiftOverviewErr = true;
});
console.log('response.result', this.bussinesUnitPTable.data);
}
getPaginateData() {
this.paginateData = this.bussinesUnitPTable.data
.slice((this.bussinesUnitPTable.page - 1) * this.bussinesUnitPTable.limit, (this.bussinesUnitPTable.page - 1) * this.bussinesUnitPTable.limit + this.bussinesUnitPTable.limit);
}
onPageChangeBuShiftSetUp(page) {
this.bussinesUnitPTable.page = page;
this.getPaginateData();
}
onLimitChangeBuShiftSetUp() {
this.loadBuShiftSetUp();
}
// buOverviewTable() {
// this.buShiftSetupService.getBuShiftDetails().subscribe((res) => {
// this.buSetup = res["result"]["businessUnitList"];
// this.buSetupCount = this.buSetup.length;
// console.log("BuSetup", this.buSetup);
// });
// }
onUpdateBuShiftSetup() {
const data = {
name: this.buShiftSetUpForm.get('name').value,
status: this.buShiftSetUpForm.get('status').value,
};
this.buShiftSetupService
.updateSubsection(this.subSectionId, this.sectionId, data)
.subscribe((res) => {
console.log(res);
this.onClearBuUnitEdit();
}, (error) => {
switch (error.status) {
case 422:
for (const key in error.error.error) {
if (Object.prototype.hasOwnProperty.call(error.error.error, key)) {
const element = error.error.error[key];
this.toastService.error(element);
}
}
break;
case 401:
this.toastService.error(error.error.error);
break;
default:
this.toastService.error(error.error.error);
break;
}
});
}
onClearBuUnitEdit() {
this.isBuShiftSetUpEdited = false;
this.buShiftSetUpForm.reset();
this.sectionId = null;
this.subSectionId = null;
}
ngOnDestroy() {
this.buShiftSetUpSearchSubscription &&
this.buShiftSetUpSearchSubscription.unsubscribe();
}
onEditBuShiftSetup(value) {
console.log('edit value=========', value);
this.changeActiveBu.emit(value);
}
}
BuShiftSetupOverviewComponent.ɵfac = function BuShiftSetupOverviewComponent_Factory(t) { return new (t || BuShiftSetupOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"])); };
BuShiftSetupOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: BuShiftSetupOverviewComponent, selectors: [["app-bu-shift-setup-overview"]], viewQuery: function BuShiftSetupOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["NgbdSortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { changeActiveBu: "changeActiveBu", heading: "heading" }, decls: 32, vars: 16, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "m-0"], [1, "card-body", "table-responsive", "p-0"], [1, "d-flex", "justify-content-between", "m-2"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["name", "searchTerm", "placeholder", "Search here", "type", "search", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["thenBlock7", ""], ["elseBlock7", ""], ["count", "6", 3, "theme", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [3, "page", "collectionSize", "maxSize", "pageSize", "pageChange"], [1, "text-md", "text-black-50", "p-4"], [1, "table", "table-striped"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col", "sortable", "Status", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [4, "ngIf"], [1, "btn", "btn-success", "btn-sm", 3, "click"], ["count", "6", 3, "theme"]], template: function BuShiftSetupOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "BU WITH SHIFT SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "select", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function BuShiftSetupOverviewComponent_Template_select_change_6_listener() { return ctx.onLimitChangeBuShiftSetUp(); })("ngModelChange", function BuShiftSetupOverviewComponent_Template_select_ngModelChange_6_listener($event) { return ctx.bussinesUnitPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "option", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function BuShiftSetupOverviewComponent_Template_input_keyup_18_listener($event) { return ctx.buShiftSetUpSearchInput.next($event); })("ngModelChange", function BuShiftSetupOverviewComponent_Template_input_ngModelChange_18_listener($event) { return ctx.bussinesUnitPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, BuShiftSetupOverviewComponent_div_19_Template, 1, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, BuShiftSetupOverviewComponent_ng_template_20_Template, 2, 0, "ng-template", null, 10, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, BuShiftSetupOverviewComponent_ng_template_22_Template, 17, 1, "ng-template", null, 11, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, BuShiftSetupOverviewComponent_ngx_skeleton_loader_24_Template, 1, 2, "ngx-skeleton-loader", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "p", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "b", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function BuShiftSetupOverviewComponent_Template_ngb_pagination_pageChange_31_listener($event) { return ctx.onPageChangeBuShiftSetUp($event); })("pageChange", function BuShiftSetupOverviewComponent_Template_ngb_pagination_pageChange_31_listener($event) { return ctx.bussinesUnitPTable.page = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](21);
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.bussinesUnitPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.bussinesUnitPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.buShiftOverviewErr)("ngIfThen", _r1)("ngIfElse", _r3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.bussinesUnitPTable.total);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("page", ctx.bussinesUnitPTable.page)("collectionSize", ctx.bussinesUnitPTable.total)("maxSize", 5)("pageSize", ctx.bussinesUnitPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbPagination"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_12__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_13__["NgxSkeletonLoaderComponent"]], styles: ["@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9idS1zaGlmdC1zZXR1cC9idS1zaGlmdC1zZXR1cC1vdmVydmlldy9idS1zaGlmdC1zZXR1cC1vdmVydmlldy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFTQTtFQUNFO0lBQ0UsdUJBQUE7RUFBRjtFQUVBO0lBQ0UseUJBQUE7RUFBRjtBQUNGO0FBR0E7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUFERiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2V0dXAvYnUtc2hpZnQtc2V0dXAvYnUtc2hpZnQtc2V0dXAtb3ZlcnZpZXcvYnUtc2hpZnQtc2V0dXAtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJALXdlYmtpdC1rZXlmcmFtZXMgc3BpbiB7XG4gIDAlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogcm90YXRlKDBkZWcpO1xuICB9XG4gIDEwMCUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTtcbiAgfVxufVxuXG5Aa2V5ZnJhbWVzIHNwaW4ge1xuICAwJSB7XG4gICAgdHJhbnNmb3JtOiByb3RhdGUoMGRlZyk7XG4gIH1cbiAgMTAwJSB7XG4gICAgdHJhbnNmb3JtOiByb3RhdGUoMzYwZGVnKTtcbiAgfVxufVxuXG4uYmctdGhlbWUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BuShiftSetupOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-bu-shift-setup-overview',
templateUrl: './bu-shift-setup-overview.component.html',
styleUrls: ['./bu-shift-setup-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }]; }, { changeActiveBu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], heading: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["NgbdSortableHeader"]]
}] }); })();
/***/ }),
/***/ "gyWi":
/*!**************************************************************************!*\
!*** ./src/app/users/pages/admin/users/facial-id/facial-id.component.ts ***!
\**************************************************************************/
/*! exports provided: FacialIdComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FacialIdComponent", function() { return FacialIdComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var face_api_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! face-api.js */ "qzk7");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _facial_overview_facial_overview_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./facial-overview/facial-overview.component */ "5IPE");
/* harmony import */ var ngx_webcam__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ngx-webcam */ "QKVY");
/* harmony import */ var _facial_edit_facial_edit_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./facial-edit/facial-edit.component */ "MAuU");
const _c0 = ["sidemenu"];
const _c1 = ["snap"];
function FacialIdComponent_div_0_ng_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("title", item_r4.businessUnit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r4.businessUnit);
} }
function FacialIdComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function FacialIdComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r5.buId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, FacialIdComponent_div_0_ng_option_7_Template, 3, 3, "ng-option", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialIdComponent_div_0_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r7.viewClicked(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r0.buOption)("loading", ctx_r0.buLoader)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.buId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.buOption);
} }
function FacialIdComponent_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-facial-overview", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("edit", function FacialIdComponent_div_1_ng_template_6_Template_app_facial_overview_edit_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.editFacialId($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("bu", ctx_r9.buId);
} }
function FacialIdComponent_div_1_ng_template_10_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Please wait, data is updating.... ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_img_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 48);
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r17.userFacialImgUrl, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_webcam_20_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "webcam", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("imageCapture", function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_webcam_20_Template_webcam_imageCapture_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r21.handleImage($event); })("initError", function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_webcam_20_Template_webcam_initError_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r23.handleInitError($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("trigger", ctx_r18.triggerObservable)("allowCameraSwitch", ctx_r18.allowCameraSwitch)("imageQuality", 0.9)("width", 500)("height", 340);
} }
function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_img_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 50, 51);
} if (rf & 2) {
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r19.capturedImg, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_div_22_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_div_22_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r25.triggerSnapshot(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " Capture ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_div_22_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r27.addPhotoId(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Add Photo ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_div_22_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](5); return ctx_r28.navigateToOverview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h5", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r30); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r29.toggleCamera(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_img_10_Template, 1, 1, "img", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_Template_input_ngModelChange_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r30); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r31.staffName = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "Phone no.");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_Template_input_ngModelChange_18_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r30); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r32.staffPhone = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_webcam_20_Template, 1, 5, "webcam", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_img_21_Template, 2, 1, "img", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_div_22_Template, 7, 0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r16.staffDetails == null ? null : ctx_r16.staffDetails.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r16.staffDetails == null ? null : ctx_r16.staffDetails.role == null ? null : ctx_r16.staffDetails.role.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r16.showWebcam ? "Switch OFF Camera" : "Switch ON Camera", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r16.userFacialImgUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r16.staffName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r16.staffPhone);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r16.showWebcam);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r16.showWebcam);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r16.actionbtn);
} }
const _c2 = function () { return { standalone: true }; };
function FacialIdComponent_div_1_ng_template_10_ng_container_8_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Select Staff ID/Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "ng-select", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("scrollToEnd", function FacialIdComponent_div_1_ng_template_10_ng_container_8_Template_ng_select_scrollToEnd_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r33.loadMoreAdminItems($event); })("change", function FacialIdComponent_div_1_ng_template_10_ng_container_8_Template_ng_select_change_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r35.selectedStaff($event); })("ngModelChange", function FacialIdComponent_div_1_ng_template_10_ng_container_8_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r36.adminSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, FacialIdComponent_div_1_ng_template_10_ng_container_8_div_8_Template, 23, 9, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("items", ctx_r14.userPTable.data)("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r14.adminSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](8, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r14.adminSelect);
} }
function FacialIdComponent_div_1_ng_template_10_ng_container_9_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "app-facial-edit", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("changeTab", function FacialIdComponent_div_1_ng_template_10_ng_container_9_Template_app_facial_edit_changeTab_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r37.navigateToOverview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("userFacial", ctx_r15.userFacialDetail);
} }
function FacialIdComponent_div_1_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, FacialIdComponent_div_1_ng_template_10_div_0_Template, 5, 0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "h5", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "ADD FACIAL ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "p", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, FacialIdComponent_div_1_ng_template_10_ng_container_8_Template, 9, 9, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, FacialIdComponent_div_1_ng_template_10_ng_container_9_Template, 2, 1, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function FacialIdComponent_div_1_ng_template_10_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r40); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r39.navigateToOverview(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r10.addPhotoIdLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx_r10.buId.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r10.tabView != "edit");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r10.tabView == "edit");
} }
function FacialIdComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 16, 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function FacialIdComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r42); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r41.activeId = $event; })("navChange", function FacialIdComponent_div_1_Template_ul_navChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r42); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r43.onNavChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, FacialIdComponent_div_1_ng_template_6_Template, 1, 1, "ng-template", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "a", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, FacialIdComponent_div_1_ng_template_10_Template, 13, 4, "ng-template", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r1.tabView == "edit" ? "EDIT" : "ADD");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r8);
} }
class FacialIdComponent {
constructor(buService, userService, toastrService, renderer, businessunitService, router, route) {
this.buService = buService;
this.userService = userService;
this.toastrService = toastrService;
this.renderer = renderer;
this.businessunitService = businessunitService;
this.router = router;
this.route = route;
this.activeId = 1;
this.userSelect = null;
this.adminSelect = null;
this.trigger = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.errors = [];
this.showWebcam = false;
this.actionbtn = false;
this.buLoader = true;
this.addPhotoIdLoader = false;
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
filter: {
fields: ['name'],
},
search: '',
};
this.router.routeReuseStrategy.shouldReuseRoute = function () {
return false;
};
this.router.onSameUrlNavigation = 'reload';
}
ngOnInit() {
this.getBu();
this.buService.getAdmin().subscribe((res) => {
this.shiftSchemeAdmin = res['data'];
});
// this.loadUsers();
this.loadFaceModels();
}
getBu() {
this.buLoader = true;
const buSubscribe = this.buService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}))
.subscribe((res) => {
var _a;
// if (res.success) {
this.buOption = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.businessUnitList;
/*} else {
this.buOption = [];
}*/
}, (error) => {
this.buOption = [];
});
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
viewClicked() {
if (this.buId) {
this.isView = true;
this.loadUsers();
}
else {
this.toastrService.info('Please Selct Business Unit', 'Info');
}
}
onNavChange(changeEvent) {
if (changeEvent.nextId === 1) {
this.tabView = null;
this.adminSelect = null;
}
}
loadUsers() {
const _a = this.userPTable, { data } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data"]);
const payload = { businessUnitId: this.buId._id };
const subscribe = this.businessunitService
.getBusinessUnit(payload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const data = response.data.data;
this.userPTable.data = data;
}, (error) => {
this.userPTable.data = [];
// this.tostService.error('No list found');
});
}
toggleCamera() {
this.capturedImg = null;
this.showWebcam = !this.showWebcam;
this.actionbtn = this.showWebcam;
}
triggerSnapshot() {
this.showWebcam = false;
this.trigger.next();
}
handleInitError(error) {
this.errors.push(error);
}
handleImage(webcamImage) {
this.capturedImg = webcamImage.imageAsDataUrl;
}
get triggerObservable() {
return this.trigger.asObservable();
}
loadMoreAdminItems(value) {
this.userPTable.limit = this.userPTable.limit + 10;
this.loadUsers();
}
onSeachAdmin(value) {
this.userPTable.limit = 10;
this.userPTable.search = value.term;
this.loadUsers();
}
selectedStaff(data) {
this.staffPhone = this.adminSelect.contactNumber;
this.staffName = this.adminSelect.name;
this.staffDetails = this.adminSelect;
}
navigateToOverview() {
this.activeId = 1;
this.tabView = null;
this.resetAdd();
}
loadFaceModels() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const MODEL_URL = '/assets/models';
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_2__["loadSsdMobilenetv1Model"])(MODEL_URL);
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_2__["loadFaceLandmarkModel"])(MODEL_URL);
yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_2__["loadFaceRecognitionModel"])(MODEL_URL);
});
}
addPhotoId() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const photoId = {
userId: this.staffDetails._id,
facialInfo: this.capturedImg,
};
this.addPhotoIdLoader = true;
let fullFaceDescriptions = yield Object(face_api_js__WEBPACK_IMPORTED_MODULE_2__["detectAllFaces"])(this.snapCam.nativeElement)
.withFaceLandmarks()
.withFaceDescriptors();
if (fullFaceDescriptions && fullFaceDescriptions.length > 0) {
photoId['descriptor'] = [...fullFaceDescriptions[0].descriptor];
this.userService.createFacialId(photoId).subscribe((res) => {
if (res.message) {
this.addPhotoIdLoader = false;
this.toastrService.success('Facial Id updated successfully', 'Done', {
timeOut: 3000,
});
this.activeId = 1;
this.tabView = null;
this.resetAdd();
}
else {
this.addPhotoIdLoader = false;
this.toastrService.error('Something went wrong', 'Failed', {
timeOut: 3000,
});
}
});
}
else {
this.addPhotoIdLoader = false;
this.toastrService.error('Please capture proper image', 'Failed');
}
});
}
resetAdd() {
this.capturedImg = null;
this.showWebcam = false;
this.adminSelect = null;
this.actionbtn = false;
}
editFacialId(e) {
this.activeId = 2;
this.tabView = 'edit';
this.userFacialDetail = e;
}
}
FacialIdComponent.ɵfac = function FacialIdComponent_Factory(t) { return new (t || FacialIdComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_8__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_9__["ActivatedRoute"])); };
FacialIdComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: FacialIdComponent, selectors: [["app-facial-id"]], viewQuery: function FacialIdComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.snapCam = _t.first);
} }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "form-group"], [1, "d-block", "text-center"], ["bindLabel", "orgName", "placeholder", "Select/Search Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [3, "value"], [3, "title"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange", "navChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [3, "bu", "edit"], ["style", "position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1050;background-color: rgba(0, 0, 0, 0.5);overflow: auto;", 4, "ngIf"], [1, "card"], [1, "card-header", "bg-theme"], [1, "m-0"], [1, "card-body"], [4, "ngIf"], [1, "card-footer"], [1, "btn", "btn-warning", 3, "click"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "450%"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "col-md-4"], [1, "font-weight-500"], ["bindLabel", "name", "placeholder", "Select User", "appendTo", "body", 1, "custom", 3, "items", "virtualScroll", "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "scrollToEnd", "change", "ngModelChange"], ["class", "row", 4, "ngIf"], [1, "font-weight-500", "m-0"], [1, "text-muted"], [1, "col-md-8"], [1, "btn", "btn-info", "btn-lg", 3, "click"], ["class", "img-fluid border rounded mb-2 img-shot", "alt", "", 3, "src", 4, "ngIf"], ["type", "text", "readonly", "", 1, "form-control", 3, "ngModel", "ngModelChange"], [3, "trigger", "allowCameraSwitch", "imageQuality", "width", "height", "imageCapture", "initError", 4, "ngIf"], ["class", "img-fluid border rounded mb-2 img-shot", "alt", "", "width", "500", "height", "320", 3, "src", 4, "ngIf"], ["class", "", 4, "ngIf"], ["alt", "", 1, "img-fluid", "border", "rounded", "mb-2", "img-shot", 3, "src"], [3, "trigger", "allowCameraSwitch", "imageQuality", "width", "height", "imageCapture", "initError"], ["alt", "", "width", "500", "height", "320", 1, "img-fluid", "border", "rounded", "mb-2", "img-shot", 3, "src"], ["snap", ""], [1, ""], [1, "btn", "btn-info", 3, "click"], [1, "btn", "btn-success", "ml-2", 3, "click"], [1, "btn", "btn-danger", "ml-2", 3, "click"], [3, "userFacial", "changeTab"]], template: function FacialIdComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, FacialIdComponent_div_0_Template, 15, 7, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, FacialIdComponent_div_1_Template, 12, 5, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbNavOutlet"], _facial_overview_facial_overview_component__WEBPACK_IMPORTED_MODULE_15__["FacialOverviewComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["DefaultValueAccessor"], ngx_webcam__WEBPACK_IMPORTED_MODULE_16__["WebcamComponent"], _facial_edit_facial_edit_component__WEBPACK_IMPORTED_MODULE_17__["FacialEditComponent"]], styles: ["webcam video {\n border-radius: 4px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYWRtaW4vdXNlcnMvZmFjaWFsLWlkL2ZhY2lhbC1pZC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGtCQUFBO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9hZG1pbi91c2Vycy9mYWNpYWwtaWQvZmFjaWFsLWlkLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiOjpuZy1kZWVwIHdlYmNhbSB2aWRlbyB7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](FacialIdComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-facial-id',
templateUrl: './facial-id.component.html',
styleUrls: ['./facial-id.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_6__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_8__["BussinessUnitService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_9__["Router"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_9__["ActivatedRoute"] }]; }, { sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['sidemenu']
}], snapCam: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['snap']
}] }); })();
/***/ }),
/***/ "ht3V":
/*!****************************************************************************************************!*\
!*** ./src/app/users/pages/communication/board-setup/boards-overview/boards-overview.component.ts ***!
\****************************************************************************************************/
/*! exports provided: BoardsOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BoardsOverviewComponent", function() { return BoardsOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/board-setup/board-setup.service */ "UtxO");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function BoardsOverviewComponent_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function BoardsOverviewComponent_table_24_tr_10_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function BoardsOverviewComponent_table_24_tr_10_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r5); const item_r3 = ctx.$implicit; const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r4.onViewWall(item_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function BoardsOverviewComponent_table_24_tr_10_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r5); const item_r3 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r6.onEditWall(item_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function BoardsOverviewComponent_table_24_tr_10_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r5); const item_r3 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r7.onExportWall(item_r3._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Export");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r3.wallName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r3.status == 1 ? "Active" : "InActive");
} }
function BoardsOverviewComponent_table_24_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sort", function BoardsOverviewComponent_table_24_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event, "wallName"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " Group Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("sort", function BoardsOverviewComponent_table_24_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "status"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " Status ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, BoardsOverviewComponent_table_24_tr_10_Template, 12, 2, "tr", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class BoardsOverviewComponent {
constructor(boardService, toastService, storageService, formBuilder, notificationService) {
this.boardService = boardService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.notificationService = notificationService;
this.isTableLoading = true;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.EditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
this.ViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = field;
this.usersPTable.sortBy = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
onExportWall(id) {
const subscribe = this.boardService
.exportWall(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe(({ data }) => {
const attachment = `${src_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].imageUrl}/${data.csvLink}`;
this.notificationService.downloadUrl(data.csvLink).subscribe((content) => {
var a = document.createElement('a');
a.href = 'data:text/csv,' + content;
a.target = '_blank';
a.download = "event_Wall_" + new Date() + ".csv";
document.body.appendChild(a);
a.click();
this.toastService.success('Data exported successfully');
});
}, (error) => {
this.toastService.error('No data found');
});
}
loadUsers() {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.boardService
.getAllBoardsOverview(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { data } = response;
this.usersPTable.data = data;
this.usersPTable.total = data.length;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
onEditWall(data) {
this.EditEvent.emit(data);
}
onViewWall(data) {
this.ViewEvent.emit(data);
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
BoardsOverviewComponent.ɵfac = function BoardsOverviewComponent_Factory(t) { return new (t || BoardsOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__["BoardSetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__["NotificationService"])); };
BoardsOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: BoardsOverviewComponent, selectors: [["boards-overview"]], viewQuery: function BoardsOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { EditEvent: "EditEvent", ViewEvent: "ViewEvent" }, decls: 31, vars: 16, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "search", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "search", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-primary", "p-2", "m-1", 3, "click"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"]], template: function BoardsOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "ALL SOCIAL WALL ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("search", function BoardsOverviewComponent_Template_select_search_9_listener() { return ctx.loadUsers(); })("change", function BoardsOverviewComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function BoardsOverviewComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, BoardsOverviewComponent_span_21_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("keyup", function BoardsOverviewComponent_Template_input_keyup_22_listener($event) { return ctx.userssearchInput.next($event); })("search", function BoardsOverviewComponent_Template_input_search_22_listener() { return ctx.loadUsers(); })("ngModelChange", function BoardsOverviewComponent_Template_input_ngModelChange_22_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](24, BoardsOverviewComponent_table_24_Template, 11, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](25, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("pageChange", function BoardsOverviewComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function BoardsOverviewComponent_Template_ngb_pagination_pageChange_30_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("numberOfCols", 3)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_9__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vYm9hcmQtc2V0dXAvYm9hcmRzLW92ZXJ2aWV3L2JvYXJkcy1vdmVydmlldy5jb21wb25lbnQuc2NzcyJ9 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](BoardsOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
args: [{
selector: 'boards-overview',
templateUrl: './boards-overview.component.html',
styleUrls: ['./boards-overview.component.scss']
}]
}], function () { return [{ type: src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__["BoardSetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_10__["NotificationService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}], EditEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
}], ViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
}] }); })();
/***/ }),
/***/ "hwqe":
/*!******************************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/view-booking/view-booking-overview/view-booking-overview.component.ts ***!
\******************************************************************************************************************************/
/*! exports provided: ViewBookingOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewBookingOverviewComponent", function() { return ViewBookingOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ng2-charts */ "LPYB");
const _c0 = function () { return { "border-radius": "6px", height: "300px", width: "45px", margin: "10px", display: "block" }; };
const _c1 = function () { return { "border-radius": "6px", height: "500px", width: "45px", margin: "10px", display: "block" }; };
const _c2 = function () { return { "border-radius": "6px", height: "400px", width: "45px", margin: "10px", display: "block" }; };
const _c3 = function () { return { "border-radius": "6px", height: "450px", width: "45px", margin: "10px", display: "block" }; };
const _c4 = function () { return { "border-radius": "6px", height: "330px", width: "45px", margin: "10px", display: "block" }; };
const _c5 = function () { return { "border-radius": "6px", height: "280px", width: "45px", margin: "10px", display: "block" }; };
function ViewBookingOverviewComponent_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](7, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](8, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](9, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](10, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](11, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](12, _c4));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](13, _c5));
} }
function ViewBookingOverviewComponent_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("chartType", "bar")("datasets", ctx_r1.hrAndShiftChartData)("labels", ctx_r1.hrAndShiftChartLabels)("options", ctx_r1.hrAndShiftChartoptions)("legend", false)("colors", ctx_r1.hrAndShiftChartColors);
} }
function ViewBookingOverviewComponent_button_23_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewBookingOverviewComponent_button_23_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const i_r5 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.dayViewGraph(i_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r5 = ctx.$implicit;
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("bg-theme", i_r5 === ctx_r2.selectedDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r5.d, " ");
} }
const _c6 = function () { return { "border-radius": "6px", height: "2px", margin: "100px 0", display: "block" }; };
function ViewBookingOverviewComponent_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "ngx-skeleton-loader", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c6));
} }
function ViewBookingOverviewComponent_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "canvas", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("chartType", "line")("datasets", ctx_r4.dayChartData)("labels", ctx_r4.yAxesLabel)("options", ctx_r4.dayChartOptions)("colors", ctx_r4.dayChartColorOption)("legend", true);
} }
class ViewBookingOverviewComponent {
constructor(planShift) {
this.planShift = planShift;
this.isHour = true;
this.buWeekArr = [];
this.weekCount = 0;
this.rawGraph = [];
this.graphNeed = [];
this.graphBooked = [];
this.graphHrNeed = [];
this.graphHrBooked = [];
this.graphLoader = true;
this.bookShiftArr = [];
this.openShiftArr = [];
this.dayArr = [
{ count: 0, d: 'M', day: 'monday' },
{ count: 1, d: 'T', day: 'tuesday' },
{ count: 2, d: 'W', day: 'wednesday' },
{ count: 3, d: 'T', day: 'thursday' },
{ count: 4, d: 'F', day: 'friday' },
{ count: 5, d: 'S', day: 'saturday' },
{ count: 6, d: 'S', day: 'sunday' },
];
this.index = 2;
this.hrAndShiftChartoptions = {
responsive: true,
scales: {
xAxes: [
{
maxBarThickness: 40,
gridLines: {
display: false,
},
},
],
},
};
this.hrAndShiftChartLabels = [
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
'Sunday',
];
// CHART COLOR.
this.hrAndShiftChartColors = [
{
backgroundColor: '#a42138',
},
{
backgroundColor: '#6BB11E',
},
];
this.dayChartData = [
{
label: 'Booked Open Shift',
data: this.bookShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'star',
},
{
label: 'Planned Open Shift',
data: this.openShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'rect',
},
];
this.dayChartOptions = {
responsive: true,
borderColor: 'blue',
scales: {
xAxes: [
{
ticks: {
callback: function (value, index, values) {
return index % 4 == 0 ? value : '';
},
color: 'red',
maxRotation: 0,
},
gridLines: {
display: false,
},
},
],
yAxes: [
{
gridLines: {
borderDash: [8, 4],
},
},
],
},
};
this.dayChartColorOption = [
{ borderColor: '#6BB11E', backgroundColor: '#6BB11E' },
{ borderColor: '#a42138', backgroundColor: '#a42138' },
];
}
ngOnInit() {
this.shiftRead = this.graphData;
this.graphLoader = false;
this.getGraphData();
this.dayViewGraph(this.dayArr[0]);
}
getGraphData() {
this.rawGraph = this.shiftRead['graphDataWeb'];
for (var i = 0; i < 7; i++) {
this.buWeekArr.push(moment__WEBPACK_IMPORTED_MODULE_1__(this.startDate).add(i, 'days').format('DD-MM-YYYY'));
}
this.buWeekArr.forEach((val) => {
if (this.rawGraph.hasOwnProperty(val)) {
this.graphNeed.push(this.rawGraph[val]['numberOfShifts'].need);
this.graphBooked.push(this.rawGraph[val]['numberOfShifts'].booked);
this.graphHrNeed.push(this.rawGraph[val]['totalHours'].need);
this.graphHrBooked.push(this.rawGraph[val]['totalHours'].booked);
}
else {
this.graphNeed.push(0);
this.graphBooked.push(0);
this.graphHrNeed.push(0);
this.graphHrBooked.push(0);
}
});
this.changeHrAndNumber(true);
}
changeHrAndNumber(value) {
this.isHour = value;
if (value === true) {
this.hrAndShiftChartData = [
{
data: this.graphHrNeed,
},
{
data: this.graphHrBooked,
},
];
this.index = 2;
}
else {
this.hrAndShiftChartData = [
{
data: this.graphNeed,
},
{
data: this.graphBooked,
},
];
this.index = 1;
}
this.dayViewGraph(this.dayArr[0]);
}
// Day View Chart
dayViewGraph(i) {
this.bookShiftArr = [];
this.openShiftArr = [];
this.yAxesLabel = [];
this.selectedDay = i;
const weeklyStaffGraphData = this.shiftRead['weeklyStaffGraphData'];
const bookShift = weeklyStaffGraphData.staffAppliedData[i.day];
for (let i in bookShift) {
this.bookShiftArr.push(bookShift[i][this.index]);
this.yAxesLabel.push(moment__WEBPACK_IMPORTED_MODULE_1__(bookShift[i][0]).format('HH:mm'));
}
const openShift = weeklyStaffGraphData.staffNeedData[i.day];
for (let i in openShift) {
this.openShiftArr.push(openShift[i][this.index]);
}
this.dayChartData = [
{
label: 'Booked Open Shift',
data: this.bookShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'star',
},
{
label: 'Planned Open Shift',
data: this.openShiftArr,
fill: false,
borderWidth: 3,
lineTension: 0,
pointStyle: 'rect',
},
];
}
}
ViewBookingOverviewComponent.ɵfac = function ViewBookingOverviewComponent_Factory(t) { return new (t || ViewBookingOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_2__["ShiftSchedulerService"])); };
ViewBookingOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewBookingOverviewComponent, selectors: [["app-view-booking-overview"]], inputs: { bu: "bu", startDate: "startDate", graphData: "graphData" }, decls: 26, vars: 9, consts: [[1, "card", "mb-3"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body"], [1, "col-md-12", "flexDisplay"], [1, "red", "font-weight-500"], [1, "floatButtons"], ["type", "button", 1, "btn", 3, "ngClass", "click"], ["type", "button", 1, "btn", "ml-2", 3, "ngClass", "click"], ["class", "d-flex align-items-baseline justify-content-between", 4, "ngIf"], ["class", "hrAndShiftChart", 4, "ngIf"], [1, "card"], [1, "card-header", "flexi-header", "header"], [1, "col-md-12", "mb-2", "no-padding"], ["class", "dayButton", 3, "bg-theme", "click", 4, "ngFor", "ngForOf"], ["class", "dayChart", 4, "ngIf"], [1, "d-flex", "align-items-baseline", "justify-content-between"], ["count", "1", 3, "theme"], [1, "hrAndShiftChart"], ["baseChart", "", 3, "chartType", "datasets", "labels", "options", "legend", "colors"], [1, "dayButton", 3, "click"], [1, "dayChart"], ["count", "5", 3, "theme"], ["baseChart", "", 3, "chartType", "datasets", "labels", "options", "colors", "legend"]], template: function ViewBookingOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "PLANNED SHIFTS OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewBookingOverviewComponent_Template_button_click_11_listener() { return ctx.changeHrAndNumber(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Total Shift Hrs ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewBookingOverviewComponent_Template_button_click_13_listener() { return ctx.changeHrAndNumber(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, " Total Number of Shifts ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ViewBookingOverviewComponent_div_15_Template, 8, 14, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ViewBookingOverviewComponent_div_16_Template, 2, 6, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "CHOOSE FOR DAY VIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, ViewBookingOverviewComponent_button_23_Template, 2, 3, "button", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, ViewBookingOverviewComponent_div_24_Template, 2, 2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ViewBookingOverviewComponent_div_25_Template, 2, 6, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.bu.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.isHour ? "Hours" : "Shifts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isHour ? "bg-theme" : "btn-outline-info");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx.isHour ? "btn-outline-info" : "bg-theme");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.hrAndShiftChartData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hrAndShiftChartData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.dayArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.graphLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.graphLoader);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["NgClass"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_4__["NgxSkeletonLoaderComponent"], ng2_charts__WEBPACK_IMPORTED_MODULE_5__["BaseChartDirective"]], styles: [".btn-default[_ngcontent-%COMP%] {\n border-color: #adadad;\n border-radius: 4px;\n margin-left: 0.25rem;\n}\n\n.floatButtons[_ngcontent-%COMP%] {\n float: right;\n}\n\n.red[_ngcontent-%COMP%] {\n border-color: #a42138;\n color: #a42138;\n}\n\n.flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-right: 10px;\n font-weight: 500;\n color: #a42138;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover, .dayButton[_ngcontent-%COMP%]:focus {\n outline: none;\n background-color: #a42138;\n color: white !important;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.weekbtn[_ngcontent-%COMP%] {\n width: 36px;\n border: 1px solid #ccc;\n border-radius: 4px;\n height: 36px;\n text-align: center;\n float: left;\n background: #faacac;\n padding: 5px;\n color: #a42138;\n cursor: pointer;\n transition: all 0.3s;\n}\n\n.weekbtn[_ngcontent-%COMP%]:hover {\n border: 1px solid #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: all 0.2s;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvdmlldy1ib29raW5nL3ZpZXctYm9va2luZy1vdmVydmlldy92aWV3LWJvb2tpbmctb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0Esb0JBQUE7QUFDSjs7QUFFRTtFQUNFLFlBQUE7QUFDSjs7QUFFRTtFQUNFLHFCQUFBO0VBQ0EsY0FBQTtBQUNKOztBQUVFO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBQ0o7O0FBRUU7RUFDRSxjQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSw2QkFBQTtFQUNBLGtCQUFBO0VBQ0EsdUJBQUE7QUFDSjs7QUFFRTs7RUFFRSxhQUFBO0VBQ0EseUJBQUE7RUFDQSx1QkFBQTtBQUNKOztBQUVFO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0FBQ0o7O0FBRUU7RUFDRSxVQUFBO0FBQ0o7O0FBRUU7RUFDRSxXQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0FBQ0o7O0FBRUU7RUFDRSx5QkFBQTtBQUNKOztBQUVFO0VBQ0Usc0JBQUE7QUFDSjs7QUFBSTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esb0JBQUE7QUFFTjs7QUFBTTtFQUNFLGNBQUE7QUFFUjs7QUFDTTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDUiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3ZpZXctYm9va2luZy92aWV3LWJvb2tpbmctb3ZlcnZpZXcvdmlldy1ib29raW5nLW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJ0bi1kZWZhdWx0IHtcbiAgICBib3JkZXItY29sb3I6ICNhZGFkYWQ7XG4gICAgYm9yZGVyLXJhZGl1czogNHB4O1xuICAgIG1hcmdpbi1sZWZ0OiAwLjI1cmVtO1xuICB9XG4gIFxuICAuZmxvYXRCdXR0b25zIHtcbiAgICBmbG9hdDogcmlnaHQ7XG4gIH1cbiAgXG4gIC5yZWQge1xuICAgIGJvcmRlci1jb2xvcjogI2E0MjEzODtcbiAgICBjb2xvcjogI2E0MjEzODtcbiAgfVxuICBcbiAgLmZsZXhEaXNwbGF5IHtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgfVxuICBcbiAgLmRheUJ1dHRvbiB7XG4gICAgaGVpZ2h0OiAyLjVyZW07XG4gICAgd2lkdGg6IDIuNXJlbTtcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XG4gICAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xuICAgIGZvbnQtd2VpZ2h0OiA1MDA7XG4gICAgY29sb3I6ICNhNDIxMzg7XG4gICAgYm9yZGVyOiAxcHggc29saWQgdHJhbnNwYXJlbnQ7XG4gICAgYm9yZGVyLWNvbG9yOiAjY2NjO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xuICB9XG4gIFxuICAuZGF5QnV0dG9uOmhvdmVyLFxuICAuZGF5QnV0dG9uOmZvY3VzIHtcbiAgICBvdXRsaW5lOiBub25lO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gICAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG4gIH1cbiAgXG4gIC5iZy10aGVtZSB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgICBjb2xvcjogI2ZmZjtcbiAgfVxuICBcbiAgLm5vLXBhZGRpbmcge1xuICAgIHBhZGRpbmc6IDA7XG4gIH1cbiAgXG4gIC53ZWVrYnRuIHtcbiAgICB3aWR0aDogMzZweDtcbiAgICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICAgIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgICBoZWlnaHQ6IDM2cHg7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIGZsb2F0OiBsZWZ0O1xuICAgIGJhY2tncm91bmQ6ICNmYWFjYWM7XG4gICAgcGFkZGluZzogNXB4O1xuICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICB0cmFuc2l0aW9uOiBhbGwgMC4zcztcbiAgfVxuICBcbiAgLndlZWtidG46aG92ZXIge1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICNhNDIxMzg7XG4gIH1cblxuICAubmF2LXRhYnMge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgLm5hdi1saW5rIHtcbiAgICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgICBib3JkZXI6IG5vbmU7XG4gICAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgICB0cmFuc2l0aW9uOiBhbGwgMC4ycztcbiAgXG4gICAgICAmOmhvdmVyIHtcbiAgICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICB9XG4gIFxuICAgICAgJi5hY3RpdmUge1xuICAgICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICAgIH1cbiAgICB9XG4gIH0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewBookingOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-view-booking-overview',
templateUrl: './view-booking-overview.component.html',
styleUrls: ['./view-booking-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_2__["ShiftSchedulerService"] }]; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], startDate: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], graphData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "iGbY":
/*!****************************************************************************************************!*\
!*** ./src/app/users/pages/communication/board-setup/emoji-component/emoji-component.component.ts ***!
\****************************************************************************************************/
/*! exports provided: EmojiComponentComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmojiComponentComponent", function() { return EmojiComponentComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/board-setup/board-setup.service */ "UtxO");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
function EmojiComponentComponent_div_15_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EmojiComponentComponent_div_15_Template_i_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4); const photo_r1 = ctx.$implicit; const index_r2 = ctx.index; const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r3.onDeleteBannerImage(photo_r1.get("_id").value, index_r2); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "img", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const photo_r1 = ctx.$implicit;
const index_r2 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", photo_r1.get("emoji").value, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
const _c0 = function (a0, a1) { return { "fa-spin fa-spinner fa-2x": a0, " fa-plus-circle fa-2x": a1 }; };
class EmojiComponentComponent {
constructor(formBuilder, boardService, tostService) {
this.formBuilder = formBuilder;
this.boardService = boardService;
this.tostService = tostService;
this.clearFormArray = (formArray) => {
while (formArray.length !== 0) {
formArray.removeAt(0);
}
};
}
ngOnInit() {
this.initForm();
this.loadEmojes();
}
initForm() {
this.createEmojisForm = this.formBuilder.group({
bannerImages: this.formBuilder.array([]),
});
}
get BannersControl() {
return this.createEmojisForm.get('bannerImages');
}
/**
*
* @param event to get the file through the event
* @description file upload is done here for the main element
*/
BannerUpload(event) {
this.isLoading = true;
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.boardService
.uploadEmojiFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.isLoading = false;
this.tostService.success('Emoji Added');
this.loadEmojes();
}, (error) => {
this.isLoading = false;
// this.tostService.error(error.error.message, error.statusText);
});
}
else {
this.tostService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
this.isLoading = false;
}
}
}
/**
*
* @description update main element with the respective element id
*/
onDeleteBannerImage(id, index) {
const subscribe = this.boardService
.deleteEmojies(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
})).subscribe((res) => {
const Control = this.BannersControl;
Control.removeAt(index);
this.tostService.success('Emoji Deleted');
this.loadEmojes();
});
}
addBannerImages(link) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.BannersControl;
let previlege = this.formBuilder.group({
link: [link, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(previlege);
});
}
loadEmojes() {
const Control = this.BannersControl;
this.clearFormArray(Control);
const subscribe = this.boardService
.getAllEmojies()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe(({ data }) => {
// const newData = data.map(e => {
// e.logo = `${environment.imageUrl}${e.emoji}`
// return e;
// });
data.forEach(({ emoji, name, _id }) => {
let previlege = this.formBuilder.group({
emoji: [`${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl}/${emoji}`, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
name: [name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
_id: [_id, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(previlege);
});
}, (error) => {
this.tostService.error('No list found');
});
}
}
EmojiComponentComponent.ɵfac = function EmojiComponentComponent_Factory(t) { return new (t || EmojiComponentComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__["BoardSetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"])); };
EmojiComponentComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: EmojiComponentComponent, selectors: [["app-emoji-component"]], decls: 16, vars: 6, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body", "p-4"], [1, "row"], [1, "col-md-4"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["type", "file", "required", "", "id", "b", 1, "custom-file-input", 3, "change"], ["for", "b", 1, "custom-file-label"], ["aria-hidden", "true", 1, "fa", 3, "ngClass"], [3, "formGroup"], ["class", "p-3", "formArrayName", "bannerImages", 4, "ngFor", "ngForOf"], ["formArrayName", "bannerImages", 1, "p-3"], [3, "formGroupName"], [1, "image-with-delete-icon"], ["title", "Delete", 1, "fa", "fa-close", "fa-lg", "delete-icon", 3, "click"], ["alt", "Image Preview", 1, "banner-image", 3, "src"]], template: function EmojiComponentComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "ADD EMOJI'S");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Icon / Emoji Image (50px by 50px) ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "input", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function EmojiComponentComponent_Template_input_change_10_listener($event) { return ctx.BannerUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "i", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "form", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, EmojiComponentComponent_div_15_Template, 5, 2, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](3, _c0, ctx.isLoading, !ctx.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.createEmojisForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.BannersControl.controls);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"]], styles: [".banner-image[_ngcontent-%COMP%] {\n height: 140px;\n width: 200px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9ib2FyZC1zZXR1cC9lbW9qaS1jb21wb25lbnQvZW1vamktY29tcG9uZW50LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtFQUNBLFlBQUE7QUFDSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vYm9hcmQtc2V0dXAvZW1vamktY29tcG9uZW50L2Vtb2ppLWNvbXBvbmVudC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5iYW5uZXItaW1hZ2V7XG4gICAgaGVpZ2h0OiAxNDBweDtcbiAgICB3aWR0aDogMjAwcHg7XG4gIH1cbiAgIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](EmojiComponentComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-emoji-component',
templateUrl: './emoji-component.component.html',
styleUrls: ['./emoji-component.component.scss']
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_6__["BoardSetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "j5Ue":
/*!*********************************************************!*\
!*** ./src/app/users/layout/header/header.component.ts ***!
\*********************************************************/
/*! exports provided: HeaderComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HeaderComponent", function() { return HeaderComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../service/auth/auth.service */ "PxIJ");
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/admin/service/companyservice/company.service */ "RZ9m");
class HeaderComponent {
constructor(storageService, router, toastService, notificationService, authservice, userService, companyService) {
this.storageService = storageService;
this.router = router;
this.toastService = toastService;
this.notificationService = notificationService;
this.authservice = authservice;
this.userService = userService;
this.companyService = companyService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl;
this.toggleSideNav = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.userData = localStorage.getItem('flexistaffId');
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdBy',
data: [],
page: 1,
limit: 10,
search: '',
};
}
ngOnInit() {
const companyDetails = JSON.parse(localStorage.getItem('companyDetails') || '{}');
this.companyLogo = this.companyService.checkImagePath(companyDetails === null || companyDetails === void 0 ? void 0 : companyDetails.logo);
this.loadProfileDetails();
this.loadUsers();
this.subscription = this.userService.userProfileImage$.subscribe(message => {
this.profilePicture = message;
});
}
loadUsers() {
const _a = this.usersPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.notificationService
.getUnreadNofications(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.notificationCount = response.data.count;
}, (error) => {
this.toastService.error('No list found');
});
}
loadProfileDetails() {
const subscribe = this.userService
.getUserProfile()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.userService.setProfileImage(response.data.profilePicture);
});
}
toggleMenu() {
this.toggleSideNav.emit();
}
logout() {
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: 'Are you sure?',
text: "You want to logout?",
icon: 'question',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Logout',
}).then((result) => {
if (result.isConfirmed) {
// this.toastService.success('Logged out sucessfully.');
return this.authservice.logout();
}
});
}
profile() {
this.userService.getPrivilege().subscribe((res) => {
localStorage.setItem("privilegeFlags", JSON.stringify(res.privileges));
const userData = JSON.parse(localStorage.getItem("privilegeFlags"));
if (userData.userProfile) {
this.router.navigate(['/users/profile']);
}
}, (error) => {
if (error.status === 402) {
this.toastService.error(error.error);
localStorage.removeItem('privilegeFlags');
this.authservice.logout();
}
});
}
ngOnDestroy() {
var _a;
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
HeaderComponent.ɵfac = function HeaderComponent_Factory(t) { return new (t || HeaderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_8__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_9__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__["CompanyService"])); };
HeaderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: HeaderComponent, selectors: [["admin-header"]], inputs: { activeUrl: "activeUrl" }, outputs: { toggleSideNav: "toggleSideNav" }, decls: 25, vars: 5, consts: [[1, "row", "mx-0", "align-items-center", "shadow-sm"], [1, "col", "col-sm-2"], [1, "brand", "d-flex", "align-items-center", "justify-content-start"], [1, "figure"], ["alt", "", "srcset", "", "width", "auto", "height", "36", 3, "src"], [1, "btn", "d-sm-none", "d-block", 3, "click"], [1, "material-icons"], [1, "col", "col-sm-8", "d-none", "d-sm-block", "px-md-3"], [1, "m-0"], [1, "h6", "m-0", "text-muted"], [1, "user-settings", "d-flex", "align-items-center", "justify-content-end"], [1, "material-icons", "mx-3", "position-relative", "link", "circle", "rounded-circle"], [1, "badge", "badge-danger", "rounded-circle", "notification-badge"], [3, "click"], ["crossorigin", "anonymous", "alt", "", "onerror", "this.src='./assets/images/user1.png';", 1, "rounded-circle", "link", 3, "src"], ["title", "Logout", 1, "material-icons", "link", "circle", "rounded-circle", 3, "click"]], template: function HeaderComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "header", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "figure", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "img", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HeaderComponent_Template_button_click_5_listener() { return ctx.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "i", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "menu");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "System User");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "span", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "i", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "notifications_none ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "figure", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HeaderComponent_Template_figure_click_21_listener() { return ctx.profile(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "img", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "i", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function HeaderComponent_Template_i_click_23_listener() { return ctx.logout(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, "exit_to_app");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", ctx.companyLogo, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.activeUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.notificationCount, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.userData);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", ctx.profilePicture ? ctx.validateURLImage(ctx.profilePicture) : "../assets/images/user1.png", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }, styles: ["header[_ngcontent-%COMP%] {\n min-height: 4rem;\n background-color: #fff;\n position: relative;\n z-index: 1;\n}\nheader[_ngcontent-%COMP%] .brand[_ngcontent-%COMP%] {\n padding: 0.1rem;\n width: 100%;\n min-height: 3.8rem;\n}\nheader[_ngcontent-%COMP%] .brand[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] {\n padding: 0.31rem;\n margin-bottom: 0;\n}\nheader[_ngcontent-%COMP%] .user-settings[_ngcontent-%COMP%] {\n min-height: 3.8rem;\n}\nheader[_ngcontent-%COMP%] .user-settings[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] {\n margin: 0 1rem 0 1rem;\n border-radius: 2rem;\n}\nheader[_ngcontent-%COMP%] .user-settings[_ngcontent-%COMP%] figure[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n width: 33px;\n height: auto;\n}\n.notification-badge[_ngcontent-%COMP%] {\n font-size: 10px;\n position: absolute;\n top: 0;\n right: -4px;\n height: 16px;\n width: 16px;\n padding: 3px;\n}\n.link[_ngcontent-%COMP%] {\n cursor: pointer;\n}\n.circle[_ngcontent-%COMP%] {\n background: #ebebeb;\n font-size: 18px;\n padding: 0.63rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvbGF5b3V0L2hlYWRlci9oZWFkZXIuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxnQkFBQTtFQUNBLHNCQUFBO0VBQ0Esa0JBQUE7RUFDQSxVQUFBO0FBQ0Y7QUFBRTtFQUNFLGVBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7QUFFSjtBQURJO0VBQ0UsZ0JBQUE7RUFDQSxnQkFBQTtBQUdOO0FBQUU7RUFDRSxrQkFBQTtBQUVKO0FBREk7RUFDRSxxQkFBQTtFQUNBLG1CQUFBO0FBR047QUFGTTtFQUNFLFdBQUE7RUFDQSxZQUFBO0FBSVI7QUFFQTtFQUNFLGVBQUE7RUFDQSxrQkFBQTtFQUNBLE1BQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0FBQ0Y7QUFFQTtFQUNFLGVBQUE7QUFDRjtBQUVBO0VBQ0UsbUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL2xheW91dC9oZWFkZXIvaGVhZGVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiaGVhZGVyIHtcbiAgbWluLWhlaWdodDogNHJlbTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB6LWluZGV4OiAxO1xuICAuYnJhbmQge1xuICAgIHBhZGRpbmc6IDAuMXJlbTtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBtaW4taGVpZ2h0OiAzLjhyZW07XG4gICAgZmlndXJlIHtcbiAgICAgIHBhZGRpbmc6IDAuMzFyZW07XG4gICAgICBtYXJnaW4tYm90dG9tOiAwO1xuICAgIH1cbiAgfVxuICAudXNlci1zZXR0aW5ncyB7XG4gICAgbWluLWhlaWdodDogMy44cmVtO1xuICAgIGZpZ3VyZSB7XG4gICAgICBtYXJnaW46IDAgMXJlbSAwIDFyZW07XG4gICAgICBib3JkZXItcmFkaXVzOiAycmVtO1xuICAgICAgaW1nIHtcbiAgICAgICAgd2lkdGg6IDMzcHg7XG4gICAgICAgIGhlaWdodDogYXV0bztcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cblxuLm5vdGlmaWNhdGlvbi1iYWRnZSB7XG4gIGZvbnQtc2l6ZTogMTBweDtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIHJpZ2h0OiAtNHB4O1xuICBoZWlnaHQ6IDE2cHg7XG4gIHdpZHRoOiAxNnB4O1xuICBwYWRkaW5nOiAzcHg7XG59XG5cbi5saW5rIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uY2lyY2xlIHtcbiAgYmFja2dyb3VuZDogI2ViZWJlYjtcbiAgZm9udC1zaXplOiAxOHB4O1xuICBwYWRkaW5nOiAwLjYzcmVtO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HeaderComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'admin-header',
templateUrl: './header.component.html',
styleUrls: ['./header.component.scss'],
}]
}], function () { return [{ type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_6__["Router"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_8__["NotificationService"] }, { type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_9__["AuthService"] }, { type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"] }, { type: src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__["CompanyService"] }]; }, { activeUrl: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], toggleSideNav: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
args: ['toggleSideNav']
}] }); })();
/***/ }),
/***/ "jFLL":
/*!********************************************************************************!*\
!*** ./src/app/users/pages/system-settings/user-roles/user-roles.component.ts ***!
\********************************************************************************/
/*! exports provided: UserRolesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserRolesComponent", function() { return UserRolesComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../service/user-roles/role.service */ "nL9/");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function UserRolesComponent_ng_template_6_span_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UserRolesComponent_ng_template_6_table_19_tbody_11_tr_1_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UserRolesComponent_ng_template_6_table_19_tbody_11_tr_1_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const item_r8 = ctx.$implicit; const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r9.getEditRoleData(item_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.description);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.status == 1 ? "Active" : "In Active");
} }
function UserRolesComponent_ng_template_6_table_19_tbody_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, UserRolesComponent_ng_template_6_table_19_tbody_11_tr_1_Template, 11, 3, "tr", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r6.paginateData);
} }
function UserRolesComponent_ng_template_6_table_19_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function UserRolesComponent_ng_template_6_table_19_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.onSort($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " ROLE NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function UserRolesComponent_ng_template_6_table_19_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r13.onSort($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " DESCRIPTION ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function UserRolesComponent_ng_template_6_table_19_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r14.onSort($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, UserRolesComponent_ng_template_6_table_19_tbody_11_Template, 2, 1, "tbody", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r4.privilegeFlags == null ? null : ctx_r4.privilegeFlags.privilegeFlags == null ? null : ctx_r4.privilegeFlags.privilegeFlags.roleSetup);
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function UserRolesComponent_ng_template_6_ngx_skeleton_loader_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ngx-skeleton-loader", 31);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c0));
} }
function UserRolesComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "ROLES");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "select", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function UserRolesComponent_ng_template_6_Template_select_change_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.onLimitChange(); })("ngModelChange", function UserRolesComponent_ng_template_6_Template_select_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.pTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, UserRolesComponent_ng_template_6_span_17_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function UserRolesComponent_ng_template_6_Template_input_keyup_18_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.searchInputValue($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, UserRolesComponent_ng_template_6_table_19_Template, 12, 1, "table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, UserRolesComponent_ng_template_6_ngx_skeleton_loader_20_Template, 1, 2, "ngx-skeleton-loader", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "p", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "b", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "ngb-pagination", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function UserRolesComponent_ng_template_6_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.pTable.page = $event; })("pageChange", function UserRolesComponent_ng_template_6_Template_ngb_pagination_pageChange_27_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r16); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.onPageChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r1.pTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.pTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r1.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r1.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r1.pTable.total);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r1.pTable.total)("page", ctx_r1.pTable.page)("maxSize", 5)("pageSize", ctx_r1.pTable.limit);
} }
function UserRolesComponent_ng_template_10_button_4_Template(rf, ctx) { if (rf & 1) {
const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UserRolesComponent_ng_template_10_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r27); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r26.onCancelEdit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UserRolesComponent_ng_template_10_div_13_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Role name is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UserRolesComponent_ng_template_10_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, UserRolesComponent_ng_template_10_div_13_small_1_Template, 2, 0, "small", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r22.f.name.errors.required);
} }
function UserRolesComponent_ng_template_10_div_18_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Role description is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UserRolesComponent_ng_template_10_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, UserRolesComponent_ng_template_10_div_18_small_1_Template, 2, 0, "small", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r23.f.description.errors.required);
} }
function UserRolesComponent_ng_template_10_tbody_56_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const pre_r36 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", pre_r36.name, "");
} }
function UserRolesComponent_ng_template_10_tbody_56_ng_container_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const pre_r37 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](pre_r37.description);
} }
const _c1 = function () { return { standalone: true }; };
function UserRolesComponent_ng_template_10_tbody_56_ng_container_9_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function UserRolesComponent_ng_template_10_tbody_56_ng_container_9_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r40); const pre_r38 = ctx.$implicit; const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r39.addPrivileges(pre_r38._id, pre_r38.isSelected); })("ngModelChange", function UserRolesComponent_ng_template_10_tbody_56_ng_container_9_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r40); const pre_r38 = ctx.$implicit; return pre_r38.isSelected = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const pre_r38 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", pre_r38.isSelected)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](2, _c1));
} }
function UserRolesComponent_ng_template_10_tbody_56_ng_container_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
} }
function UserRolesComponent_ng_template_10_tbody_56_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, UserRolesComponent_ng_template_10_tbody_56_ng_container_5_Template, 3, 1, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, UserRolesComponent_ng_template_10_tbody_56_ng_container_7_Template, 3, 1, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, UserRolesComponent_ng_template_10_tbody_56_ng_container_9_Template, 3, 3, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, UserRolesComponent_ng_template_10_tbody_56_ng_container_11_Template, 2, 0, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r30 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r30.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r30 == null ? null : item_r30.privileges);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r30 == null ? null : item_r30.privileges);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r30 == null ? null : item_r30.privileges);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r30 == null ? null : item_r30.privileges);
} }
function UserRolesComponent_ng_template_10_span_60_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span", 66);
} }
const _c2 = function (a0) { return { "is-invalid": a0 }; };
function UserRolesComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h5", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, UserRolesComponent_ng_template_10_button_4_Template, 2, 0, "button", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "form", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Role name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "input", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, UserRolesComponent_ng_template_10_div_13_Template, 2, 1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Role description");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, UserRolesComponent_ng_template_10_div_18_Template, 2, 1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, " Mobile Access Only ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "input", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "label", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](28, "input", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "label", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, " Change status ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](36, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "label", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](38, "Active");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](40, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](42, "Inactive");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "table", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](47, "Category");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](49, "Function");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](53, "Enable");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "th", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](55, "Additional Access Rights");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](56, UserRolesComponent_ng_template_10_tbody_56_Template, 12, 5, "tbody", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "button", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UserRolesComponent_ng_template_10_Template_button_click_58_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r44); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r43.onUserRoleFormSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](60, UserRolesComponent_ng_template_10_span_60_Template, 1, 0, "span", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UserRolesComponent_ng_template_10_Template_button_click_61_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r44); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r45.onCancelEdit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](62, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", ctx_r2.isEditing ? "EDIT" : "ADD", " ROLES");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isEditing);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.userRolesFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](13, _c2, ctx_r2.submitted && ctx_r2.f.name.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ctx_r2.f.name.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](15, _c2, ctx_r2.submitted && ctx_r2.f.description.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.submitted && ctx_r2.f.description.errors);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.categaoryDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r2.isLoading || !ctx_r2.userRolesFormGroup.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.isEditing ? "Update" : "Add", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isLoading);
} }
class UserRolesComponent {
constructor(router, roleService, toastService, storageService, formBuilder, route) {
this.router = router;
this.roleService = roleService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.route = route;
this.Status = ['active', 'inactive'];
this.submitted = false;
this.isEditing = false;
this.isLoading = false;
this.activeId = 1;
this.isTableLoading = true;
this.searchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.paginateData = [];
this.privilegeData = [];
this.userRolesIdsUpdate = [];
this.clearFormArray = (formArray) => {
if (formArray.length > 0) {
while (formArray.length !== 0) {
formArray.removeAt(0);
}
}
//create company form
// onSubmit(company: Company) {
// const sub = this.comapnyService.createCompany(company).pipe(finalize(() => {
// sub.unsubscribe();
// })).subscribe(data => {
// this.toastService.success('Successfully created');
// this.loadCompanies();
// this.clearFields();
// }, error => {
// this.toastService.error('Somthing went wrong');
// });
// }
};
this.initForm();
// this.config.notFoundText = 'Custom not found';
this.pTable = {
sortBy: 'desc',
sortWith: 'createdBy',
total: 0,
data: [],
page: 1,
limit: 10,
search: '',
};
this.clearFields();
this.searchSubscription = this.searchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500))))
.subscribe((input) => {
this.pTable.page = 1;
this.loadRoles();
});
}
clearFields() { }
onLimitChange() {
this.loadRoles();
}
ngOnDestroy() {
this.searchSubscription && this.searchSubscription.unsubscribe();
}
searchInputValue(event) {
this.paginateData = [];
if (event.target.value !== '') {
this.paginateData = this.pTable.data.filter((element) => {
return Object.keys(element).some((key) => {
if (element[key] !== null)
return element[key].toString().toLowerCase().includes(event.target.value.toLowerCase());
});
});
this.pTable.total = this.paginateData.length;
}
else {
this.getPaginateData();
}
}
loadUserPrivilege() {
const subscribe = this.roleService
.getUserPrivilege()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.privilegeFlags = response.data;
}, (error) => {
console.error("error", error);
// this.pTable.data = [];
// this.pTable.total = 0;
// this.toastService.error('No list found');
});
}
loadRoles() {
const _a = this.pTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.roleService
.getUserRoles()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b, _c;
// const { count, data } = response.data;
this.isTableLoading = false;
this.pTable.data = ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.roles) || [];
this.pTable.total = ((_c = (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.roles) === null || _c === void 0 ? void 0 : _c.length) || 0;
this.getPaginateData();
}, (error) => {
this.pTable.data = [];
this.pTable.total = 0;
this.toastService.error('No list found');
});
}
getPaginateData() {
this.paginateData = this.pTable.data
.slice((this.pTable.page - 1) * this.pTable.limit, (this.pTable.page - 1) * this.pTable.limit + this.pTable.limit);
}
onSort({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.pTable.sortBy = direction;
this.pTable.sortWith = column;
direction && this.loadRoles();
}
onPageChange(page) {
this.pTable.page = page;
this.loadRoles();
}
ngOnInit() {
this.getPrivilege();
this.loadRoles();
this.loadUserPrivilege();
}
get PrivilegeControl() {
return this.userRolesFormGroup.get('privileges');
}
getControls() {
return this.userRolesFormGroup.get('privileges').controls;
}
getEditRoleData(data) {
this.editRoleId = data._id;
// const privilegeControl = this.PrivilegeControl;
// this.roleService.getOneRole(id).subscribe((res: any) => {
this.activeId = 2;
this.isEditing = true;
const newArray = [];
// res.data.privileges.forEach((val) => {
// let previlege = this.formBuilder.group({
// privilegeId: val ? val.privilegeId : '',
// flag: val.flag,
// });
// privilegeControl.push(previlege);
// });
this.userRolesFormGroup.patchValue({
name: data.name,
description: data.description,
isFlexiStaff: data.isFlexiStaff == 1 ? true : false,
status: data.status == 1 ? 'active' : 'inactive',
});
// this.privilegeData.forEach((eachItm) => {
// eachItm.privileges.map((val) => {
// res.data.privileges.forEach((res) => {
// if (val._id === res.privilegeId) {
// val.flag = res.flag;
// }
// });
// });
// });
// this.privilegeMix.map((val) => {
// res.data.privileges.forEach((val1) => {
// if (val1.privilegeId == val._id) {
// val['flag'] = val1.flag;
// }
// });
// });
//add flag false for missing privileges
// const tempprivilegeMix = [...this.privilegeMix];
// tempprivilegeMix.forEach((val, index) => {
// if (!this.privilegeMix[index].hasOwnProperty('flag')) {
// this.privilegeMix[index]['flag'] = false;
// }
// });
// this.privilegeMix.sort((a, b) =>
// a.CategoryName.toLowerCase() > b.CategoryName.toLowerCase() ? -1 : 1
// );
// this.userRolesIdsUpdate = data.privileges ? data.privileges : [];
this.categaoryDetails.map(item => {
var _a;
(_a = item === null || item === void 0 ? void 0 : item.privileges) === null || _a === void 0 ? void 0 : _a.map((preData) => {
var _a;
if (((_a = data.privileges) === null || _a === void 0 ? void 0 : _a.indexOf(preData._id)) < 0) {
preData.isSelected = false;
}
else {
this.userRolesIdsUpdate.push(preData._id);
preData.isSelected = true;
}
});
});
// });
}
getPrivilege() {
this.roleService.getAllPrevileges().subscribe((res) => {
var _a;
let categoryData = ((_a = res.data) === null || _a === void 0 ? void 0 : _a.privilegeCategory) || [];
// categoryData?.map(item => {
// if (item.privileges && item.privileges.length > 0) {
// item.privileges.map(pre => {
// pre.isSelected = false;
// });
// }
// })
this.categaoryDetails = categoryData;
// const modifiedData = res.data.privilegeCategory.map((rawProduct) => {
// return { ...rawProduct, privileges: [] };
// });
// //
// const privilages = res.data.privileges.map((rawProduct) => {
// return { ...rawProduct, flag: false };
// });
// //
// modifiedData.map((catagory) => {
// privilages.forEach((element) => {
// if (element.privilegeCategoryId == catagory._id) {
// return catagory.privileges.push(element);
// }
// });
// });
// this.privilegeData = modifiedData;
// const privilegesAll = res.data.privileges;
// privilegesAll.map((val) => {
// res.data.privilegeCategories.forEach((val1) => {
// if (val.privilegeCategoryId == val1._id) {
// val['CategoryName'] = val1.name ?? '';
// }
// });
// });
// this.privilegeMix = [...privilegesAll];
});
}
initForm() {
this.userRolesFormGroup = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
description: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
isFlexiStaff: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
privileges: this.formBuilder.control([]),
status: ['active', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
});
}
addPrivileges(id, isSelected) {
if (isSelected) {
this.userRolesIdsUpdate.push(id);
}
else {
var index = this.userRolesIdsUpdate.indexOf(id);
this.userRolesIdsUpdate.splice(index, 1);
}
/*const control = this.getControls();
const privilegeControl = this.PrivilegeControl;
const ind = privilegeControl.value.findIndex(
(x) => {
x === id}
);*/
/* if (ind > -1) {
privilegeControl.removeAt(index);
} else {
let previlege = this.formBuilder.group(
[id],
);
privilegeControl.push(previlege);
}*/
}
get f() {
return this.userRolesFormGroup.controls;
}
onChangeStatus(value) {
if (value === 'active') {
this.userRolesFormGroup.patchValue({
status: 'active',
});
}
else {
this.userRolesFormGroup.patchValue({
status: 'inactive',
});
}
}
onCancelEdit() {
this.activeId = 1;
this.clearForm();
this.userRolesIdsUpdate = [];
this.loadRoles();
}
clearForm() {
this.userRolesFormGroup.reset();
this.clearFormArray(this.PrivilegeControl);
this.isEditing = false;
this.getPrivilege();
this.userRolesIdsUpdate = [];
this.editRoleId = null;
}
onUserRoleFormSubmit() {
this.isLoading = true;
if (this.isEditing) {
let roleCreateData = {
"roleId": this.editRoleId,
"name": this.f.name.value,
"description": this.f.description.value,
"isFlexiStaff": this.f.isFlexiStaff.value,
"privileges": this.userRolesIdsUpdate,
"status": this.f.status.value == 'active' ? 1 : 0
};
const subscribe = this.roleService
.updateUserRole(roleCreateData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.isLoading = false;
subscribe.unsubscribe();
}))
.subscribe((res) => {
this.activeId = 1;
this.onCancelEdit();
this.loadRoles();
this.toastService.success('Privileges Successfully updated', 'Updated');
});
}
else {
let roleCreateData = {
"name": this.userRolesFormGroup.value.name,
"description": this.userRolesFormGroup.value.description,
"isFlexiStaff": this.userRolesFormGroup.value.isFlexiStaff,
"privileges": this.userRolesIdsUpdate,
"status": this.userRolesFormGroup.value.status == 'active' ? 1 : 0
};
const subscribe = this.roleService
.createUserRole(roleCreateData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.isLoading = false;
subscribe.unsubscribe();
}))
.subscribe((res) => {
this.activeId = 1;
this.onCancelEdit();
this.loadRoles();
this.toastService.success('Role Privileges Successfully created', 'Success');
}, (error) => {
this.toastService.error('Something went wrong', 'Failed');
});
}
}
}
UserRolesComponent.ɵfac = function UserRolesComponent_Factory(t) { return new (t || UserRolesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_7__["RoleService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_6__["ActivatedRoute"])); };
UserRolesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: UserRolesComponent, selectors: [["app-user-roles"]], viewQuery: function UserRolesComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 12, vars: 5, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem", "click"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body", "table-responsive", "p-0"], [1, "d-flex", "justify-content-between", "m-2"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "text", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "keyup"], ["class", "table", 4, "ngIf"], ["count", "6", 3, "theme", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "name", 3, "sort"], ["scope", "col", "sortable", "description", 3, "sort"], ["scope", "col", "sortable", "status", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "font-weight-500"], [1, "btn", "btn-success", "btn-sm", 3, "click"], ["count", "6", 3, "theme"], [1, "card-header", "d-flex", "align-items-center", "justify-content-between", "bg-theme"], [1, "m-0"], ["class", "btn btn-sm btn-outline-light", "type", "button", 3, "click", 4, "ngIf"], [1, "card-body"], [3, "formGroup"], [1, "row"], [1, "col-md-6"], [1, "form-group"], ["type", "text", "placeholder", "Role Name", "formControlName", "name", "required", "", "maxlength", "40", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["type", "text", "placeholder", " Role Description", "formControlName", "description", "required", "", "maxlength", "50", 1, "form-control", 3, "ngClass"], [1, "form-group", "row"], [1, "font-weight-500", "col-md-3"], [1, "col-md-9"], [1, "form-check", "form-check-inline"], ["type", "radio", "name", "isFlexiStaff", "id", "isFlexiStaff1", "formControlName", "isFlexiStaff", 1, "form-check-input", 3, "value"], ["for", "isFlexiStaff1", 1, "form-check-label"], ["type", "radio", "name", "isFlexiStaff", "id", "isFlexiStaff2", "formControlName", "isFlexiStaff", 1, "form-check-input", 3, "value"], ["for", "isFlexiStaff2", 1, "form-check-label"], ["type", "radio", "name", "status", "id", "status1", "value", "active", "formControlName", "status", 1, "form-check-input"], ["for", "status1", 1, "form-check-label"], ["type", "radio", "name", "status", "id", "status2", "value", "inactive", "formControlName", "status", 1, "form-check-input"], ["for", "status2", 1, "form-check-label"], [1, "table", "table-bordered", "table-hover"], [1, "wid-15"], [1, "btn", "btn-success", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "btn", "btn-danger", "ml-2", 3, "click"], ["type", "button", 1, "btn", "btn-sm", "btn-outline-light", 3, "click"], [1, "invalid-feedback"], [1, "pad-0"], [1, "pad-0", "wid-15"], [1, "contentStyleAlign"], ["type", "checkbox", 1, "check-size", 3, "ngModel", "ngModelOptions", "change", "ngModelChange"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-1"]], template: function UserRolesComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function UserRolesComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UserRolesComponent_Template_li_click_3_listener() { return ctx.loadRoles(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, UserRolesComponent_ng_template_6_Template, 28, 14, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UserRolesComponent_Template_li_click_7_listener() { return ctx.initForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, UserRolesComponent_ng_template_10_Template, 63, 17, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.isEditing ? "EDIT" : "ADD");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavOutlet"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_13__["NgxSkeletonLoaderComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"]], styles: [".form-bg[_ngcontent-%COMP%] {\n background-color: #a51f38;\n color: #ffffff;\n padding: 10px;\n}\n\n.form-inline[_ngcontent-%COMP%] {\n flex-direction: column;\n align-items: stretch;\n}\n\nbutton[_ngcontent-%COMP%] .bg[_ngcontent-%COMP%] {\n color: aliceblue;\n}\n\n.spinner-border[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n\n.contentStyleAlign[_ngcontent-%COMP%] {\n font-size: 12px;\n color: #81848d;\n vertical-align: middle;\n padding: 5px 10px 5px;\n \n border-bottom: 1px solid #ddd;\n height: 70px;\n}\n\n.pad-0[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.wid-15[_ngcontent-%COMP%] {\n width: 15%;\n}\n\n.check-size[_ngcontent-%COMP%] {\n width: 18px;\n height: 18px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL3VzZXItcm9sZXMvdXNlci1yb2xlcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHlCQUFBO0VBQ0EsY0FBQTtFQUNBLGFBQUE7QUFDRjs7QUFFQTtFQUNFLHNCQUFBO0VBQ0Esb0JBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxzQkFBQTtBQUNGOztBQUVBO0VBQ0Usc0JBQUE7QUFDRjs7QUFBRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUVKOztBQUFJO0VBQ0UsY0FBQTtBQUVOOztBQUNJO0VBQ0UsY0FBQTtFQUNBLHNCQUFBO0VBQ0EsNkNBQUE7RUFDQSxnQ0FBQTtBQUNOOztBQUdBO0VBQ0UsZUFBQTtFQUNBLGNBQUE7RUFDQSxzQkFBQTtFQUNBLHFCQUFBO0VBQ0EsdUJBQUE7RUFFQSw2QkFBQTtFQUNBLFlBQUE7QUFERjs7QUFHQTtFQUNFLFVBQUE7QUFBRjs7QUFFQTtFQUNFLFVBQUE7QUFDRjs7QUFDQTtFQUNFLFdBQUE7RUFDQSxZQUFBO0FBRUYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9zeXN0ZW0tc2V0dGluZ3MvdXNlci1yb2xlcy91c2VyLXJvbGVzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmZvcm0tYmcge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTUxZjM4O1xuICBjb2xvcjogI2ZmZmZmZjtcbiAgcGFkZGluZzogMTBweDtcbn1cblxuLmZvcm0taW5saW5lIHtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgYWxpZ24taXRlbXM6IHN0cmV0Y2g7XG59XG5cbmJ1dHRvbiAuYmcge1xuICBjb2xvcjogYWxpY2VibHVlO1xufVxuXG4uc3Bpbm5lci1ib3JkZXIge1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xufVxuXG4ubmF2LXRhYnMge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAubmF2LWxpbmsge1xuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIHBhZGRpbmc6IDEycHggMjBweDtcbiAgICB0cmFuc2l0aW9uOiBjb2xvciAwLjJzO1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIH1cblxuICAgICYuYWN0aXZlIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgI2E0MjEzODtcbiAgICAgIGJvcmRlci1ib3R0b206IDNweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgfVxufVxuLmNvbnRlbnRTdHlsZUFsaWduIHtcbiAgZm9udC1zaXplOiAxMnB4O1xuICBjb2xvcjogIzgxODQ4ZDtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgcGFkZGluZzogNXB4IDEwcHggNXB4O1xuICAvKiBsaW5lLWhlaWdodDogMzJweDsgKi9cbiAgLy8gYm9yZGVyLWxlZnQ6IDFweCBzb2xpZCAjZGRkO1xuICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2RkZDtcbiAgaGVpZ2h0OiA3MHB4O1xufVxuLnBhZC0we1xuICBwYWRkaW5nOiAwO1xufVxuLndpZC0xNXtcbiAgd2lkdGg6IDE1JTtcbn1cbi5jaGVjay1zaXple1xuICB3aWR0aDogMThweDtcbiAgaGVpZ2h0OiAxOHB4O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UserRolesComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-user-roles',
templateUrl: './user-roles.component.html',
styleUrls: ['./user-roles.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_6__["Router"] }, { type: _service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_7__["RoleService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_6__["ActivatedRoute"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "jZZG":
/*!****************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-events/events-reported-post/events-reported-post.component.ts ***!
\****************************************************************************************************************/
/*! exports provided: EventsReportedPostComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsReportedPostComponent", function() { return EventsReportedPostComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function EventsReportedPostComponent_span_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function EventsReportedPostComponent_table_23_tr_14_ul_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const user_r5 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](user_r5 == null ? null : user_r5.userId == null ? null : user_r5.userId.name);
} }
function EventsReportedPostComponent_table_23_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "p", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, EventsReportedPostComponent_table_23_tr_14_ul_9_Template, 3, 1, "ul", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function EventsReportedPostComponent_table_23_tr_14_Template_input_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const item_r3 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r6.changePostStatus(item_r3._id, item_r3.status); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHtml", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 5, item_r3 == null ? null : item_r3.teaser == null ? null : item_r3.teaser.title), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.channelId == null ? null : item_r3.channelId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r3 == null ? null : item_r3.updatedAt);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r3.userList);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("checked", item_r3.status === 1 ? "checked" : "");
} }
function EventsReportedPostComponent_table_23_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedPostComponent_table_23_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event, "title"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Post Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedPostComponent_table_23_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Channel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedPostComponent_table_23_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r11.onSortUsers($event, "updatedAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Reported Date / Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function EventsReportedPostComponent_table_23_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " USER NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, EventsReportedPostComponent_table_23_tr_14_Template, 14, 7, "tr", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.usersPTable.data);
} }
class EventsReportedPostComponent {
constructor(boardService, toastService, storageService, formBuilder) {
this.boardService = boardService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.isTableLoading = true;
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = !!direction ? field : 'createdAt';
this.usersPTable.sortBy = !!direction ? direction : 'desc';
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
}
changePostStatus(id, status) {
const data = {
status: status == 1 ? 2 : 1,
postId: id
};
const subscribe = this.boardService
.updateReportedPost(id, data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.toastService.success(response === null || response === void 0 ? void 0 : response.data);
this.loadUsers();
}, (error) => {
});
}
loadUsers() {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.boardService
.getAllReportedPosts(rest, 'event')
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.usersPTable.data = response.data;
this.isTableLoading = false;
this.usersPTable.total = response.recordsTotal;
}, (error) => {
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
EventsReportedPostComponent.ɵfac = function EventsReportedPostComponent_Factory(t) { return new (t || EventsReportedPostComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"])); };
EventsReportedPostComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: EventsReportedPostComponent, selectors: [["events-reported-post"]], viewQuery: function EventsReportedPostComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 30, vars: 16, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [3, "innerHtml"], [1, "switch"], ["type", "checkbox", 3, "checked", "click"], [1, "slider", "round"]], template: function EventsReportedPostComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "POSTS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function EventsReportedPostComponent_Template_select_change_8_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function EventsReportedPostComponent_Template_select_ngModelChange_8_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, EventsReportedPostComponent_span_20_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function EventsReportedPostComponent_Template_input_search_21_listener() { return ctx.loadUsers(); })("keyup", function EventsReportedPostComponent_Template_input_keyup_21_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function EventsReportedPostComponent_Template_input_ngModelChange_21_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, EventsReportedPostComponent_table_23_Template, 15, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](24, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function EventsReportedPostComponent_Template_ngb_pagination_pageChange_29_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function EventsReportedPostComponent_Template_ngb_pagination_pageChange_29_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_13__["SafeHtmlPipe"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\n\ninput[type=radio][_ngcontent-%COMP%] {\n margin-right: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL2V2ZW50cy1yZXBvcnRlZC1wb3N0L2V2ZW50cy1yZXBvcnRlZC1wb3N0LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBO0VBQ0UscUJBQUE7RUFDQSxVQUFBO0FBQUY7O0FBR0E7RUFDRSxrQkFBQTtBQUFGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL2V2ZW50cy1yZXBvcnRlZC1wb3N0L2V2ZW50cy1yZXBvcnRlZC1wb3N0LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiXG51bHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICBwYWRkaW5nOiAwO1xufVxuXG5pbnB1dFt0eXBlPVwicmFkaW9cIl0ge1xuICBtYXJnaW4tcmlnaHQ6IDEwcHg7XG59XG5cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](EventsReportedPostComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'events-reported-post',
templateUrl: './events-reported-post.component.html',
styleUrls: ['./events-reported-post.component.scss']
}]
}], function () { return [{ type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_5__["NewsEventsService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_8__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "ji1A":
/*!**********************************************************************************************************************!*\
!*** ./src/app/users/pages/gamification/challenges/challenges-overview/view-challanges/view-challanges.component.ts ***!
\**********************************************************************************************************************/
/*! exports provided: ViewChallangesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewChallangesComponent", function() { return ViewChallangesComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/stepper */ "xHqg");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../shared/angular-date-time-picker/date-time-picker.html/date-time-picker.html.component */ "d4JE");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
function ViewChallangesComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0, "DESCRIPTION ");
} }
function ViewChallangesComponent_div_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r3.validateURLImage(ctx_r3.discriptioGroup.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_mat_step_90_ng_template_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0, "TEAMS");
} }
function ViewChallangesComponent_mat_step_90_div_8_tr_19_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "img", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_mat_step_90_div_8_tr_19_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r20); const item_r17 = ctx.$implicit; const index_r18 = ctx.index; const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r19.editTeamDetail(item_r17, index_r18); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_mat_step_90_div_8_tr_19_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r20); const index_r18 = ctx.index; const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r21.deleteTeamEntry(index_r18); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r17 = ctx.$implicit;
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r17.title);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r16.validateURLImage(item_r17.icon), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (item_r17 == null ? null : item_r17.teamUserDetails == null ? null : item_r17.teamUserDetails.length) || "-", " items Added");
} }
function ViewChallangesComponent_mat_step_90_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "TEAM DETAILS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " TEAM NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "th", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " TEAM LOGO ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " SELECTED USERS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "th", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, ViewChallangesComponent_mat_step_90_div_8_tr_19_Template, 16, 3, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r15.teamDetails);
} }
function ViewChallangesComponent_mat_step_90_Template(rf, ctx) { if (rf & 1) {
const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "mat-step", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewChallangesComponent_mat_step_90_ng_template_2_Template, 1, 0, "ng-template", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TEAMS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ViewChallangesComponent_mat_step_90_div_8_Template, 20, 1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_mat_step_90_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](6); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Prev ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_mat_step_90_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](6); return _r0.next(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("stepControl", ctx_r4.teamsGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r4.teamsGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.teamDetails.length !== 0);
} }
function ViewChallangesComponent_ng_template_93_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0, "RULES");
} }
function ViewChallangesComponent_div_134_ul_8_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_134_ul_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_134_ul_8_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r25.rulesGroup.get("selectedChannelConst.name").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r25.rulesGroup.get("selectedChannelConst.name").value);
} }
function ViewChallangesComponent_div_134_ul_18_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_134_ul_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_134_ul_18_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r26.creatiaView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r26.creatiaView);
} }
function ViewChallangesComponent_div_134_div_56_ul_4_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_134_div_56_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_134_div_56_ul_4_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r34.pointSytemView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r34.pointSytemView);
} }
function ViewChallangesComponent_div_134_div_56_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "select", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_134_div_56_ul_4_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r27.pointSytemView);
} }
function ViewChallangesComponent_div_134_button_57_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_134_div_87_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_134_div_101_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_134_div_101_div_14_Template(rf, ctx) { if (rf & 1) {
const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "i", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_134_div_101_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r39); const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r38.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "img", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r37.validateURLImage(ctx_r37.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_div_134_div_101_Template(rf, ctx) { if (rf & 1) {
const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "table", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ViewChallangesComponent_div_134_div_101_div_13_Template, 4, 0, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ViewChallangesComponent_div_134_div_101_div_14_Template, 4, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_134_div_101_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r41); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r40.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r30.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r30.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r30.createRanks.get("icon").value);
} }
function ViewChallangesComponent_div_134_div_102_div_1_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "img", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r44 = ctx.$implicit;
const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", field_r44.get("name").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r44.get("startRange").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r44.get("endRange").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r43.validateURLImage(field_r44.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_div_134_div_102_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ViewChallangesComponent_div_134_div_102_div_1_tr_16_Template, 11, 4, "tr", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r42.ranksControl.controls);
} }
function ViewChallangesComponent_div_134_div_102_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewChallangesComponent_div_134_div_102_div_1_Template, 17, 1, "div", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r31.ranksControl.length != 0);
} }
function ViewChallangesComponent_div_134_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Select Channel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ViewChallangesComponent_div_134_ul_8_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Select Criteria");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ViewChallangesComponent_div_134_ul_18_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "label", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "input", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "input", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "label", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](39, "input", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](42, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](47, "input", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](50, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](52, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](55, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](56, ViewChallangesComponent_div_134_div_56_Template, 5, 1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](57, ViewChallangesComponent_div_134_button_57_Template, 2, 0, "button", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](58, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "p", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](65, "input", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](67, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](68, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](70, "input", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](73, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](78, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](81, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](83, "input", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](85, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](86, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](87, ViewChallangesComponent_div_134_div_87_Template, 3, 0, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](89, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](91, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](92, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](93, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](94, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](95, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](97, "input", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](98, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](99, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](100, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](101, ViewChallangesComponent_div_134_div_101_Template, 18, 3, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](102, ViewChallangesComponent_div_134_div_102_Template, 2, 1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("selectedChannelConst.name").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.creatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r6.rulesGroup.get("criteriaCountType").value === 1 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r6.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("badgeTiering").value);
} }
function ViewChallangesComponent_div_135_ul_7_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_135_ul_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_135_ul_7_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r46.rulesGroup.get("selectedWallConst.wallName").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r46.rulesGroup.get("selectedWallConst.wallName").value);
} }
function ViewChallangesComponent_div_135_ul_17_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_135_ul_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_135_ul_17_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r47.boardcreatiaView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r47.boardcreatiaView);
} }
function ViewChallangesComponent_div_135_div_55_ul_4_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_135_div_55_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_135_div_55_ul_4_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r55.pointSytemView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r55.pointSytemView);
} }
function ViewChallangesComponent_div_135_div_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "select", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_135_div_55_ul_4_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r48.pointSytemView);
} }
function ViewChallangesComponent_div_135_button_56_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_135_div_86_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_135_div_100_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_135_div_100_div_14_Template(rf, ctx) { if (rf & 1) {
const _r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "i", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_135_div_100_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r60); const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r59.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "img", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r58.createRanks.get("icon").value, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_div_135_div_100_Template(rf, ctx) { if (rf & 1) {
const _r62 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "table", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ViewChallangesComponent_div_135_div_100_div_13_Template, 4, 0, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ViewChallangesComponent_div_135_div_100_div_14_Template, 4, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_135_div_100_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r62); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r61.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r51.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r51.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r51.createRanks.get("icon").value);
} }
function ViewChallangesComponent_div_135_div_101_div_1_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "img", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r65 = ctx.$implicit;
const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", field_r65.get("name").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r65.get("startRange").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r65.get("endRange").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r64.validateURLImage(field_r65.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_div_135_div_101_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ViewChallangesComponent_div_135_div_101_div_1_tr_16_Template, 11, 4, "tr", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r63.ranksControl.controls);
} }
function ViewChallangesComponent_div_135_div_101_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewChallangesComponent_div_135_div_101_div_1_Template, 17, 1, "div", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r52.ranksControl.length != 0);
} }
function ViewChallangesComponent_div_135_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Select Board");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ViewChallangesComponent_div_135_ul_7_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Select Criteria");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, ViewChallangesComponent_div_135_ul_17_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "input", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "label", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "input", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "input", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](34, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "label", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](38, "input", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](46, "input", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](49, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](51, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](55, ViewChallangesComponent_div_135_div_55_Template, 5, 1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](56, ViewChallangesComponent_div_135_button_56_Template, 2, 0, "button", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](57, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "p", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](61, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](64, "input", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](67, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](69, "input", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](72, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](74, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](77, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](79, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](80, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](82, "input", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](84, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](85, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](86, ViewChallangesComponent_div_135_div_86_Template, 3, 0, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](87, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](88, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](91, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](92, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](93, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](94, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](96, "input", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](97, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](98, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](99, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](100, ViewChallangesComponent_div_135_div_100_Template, 18, 3, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](101, ViewChallangesComponent_div_135_div_101_Template, 2, 1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("selectedWallConst.wallName").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.boardcreatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r7.rulesGroup.get("criteriaCountType").value === 1 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r7.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("badgeTiering").value);
} }
function ViewChallangesComponent_div_136_ul_10_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_136_ul_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_136_ul_10_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r67.systemCretiaView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r67.systemCretiaView);
} }
function ViewChallangesComponent_div_136_ul_17_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_136_ul_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_136_ul_17_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r68.rewardPoints, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r68.rewardPoints);
} }
function ViewChallangesComponent_div_136_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Select Criteria");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ViewChallangesComponent_div_136_ul_10_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, ViewChallangesComponent_div_136_ul_17_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r8.systemCretiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r8.rewardPoints);
} }
function ViewChallangesComponent_div_137_div_1_tr_18_td_1_ul_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r81 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"]((item_r81 == null ? null : item_r81.sectionId.departmentId.companyId.name) + " > " + (item_r81 == null ? null : item_r81.sectionId.departmentId.name) + " > " + (item_r81 == null ? null : item_r81.sectionId.name) + "> " + (item_r81 == null ? null : item_r81.name));
} }
function ViewChallangesComponent_div_137_div_1_tr_18_td_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewChallangesComponent_div_137_div_1_tr_18_td_1_ul_1_Template, 3, 1, "ul", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r74.businessUnits);
} }
function ViewChallangesComponent_div_137_div_1_tr_18_td_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "All Business Units Selected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_137_div_1_tr_18_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r83 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r83.name);
} }
function ViewChallangesComponent_div_137_div_1_tr_18_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r84 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r84.name);
} }
function ViewChallangesComponent_div_137_div_1_tr_18_Template(rf, ctx) { if (rf & 1) {
const _r86 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewChallangesComponent_div_137_div_1_tr_18_td_1_Template, 2, 1, "td", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ViewChallangesComponent_div_137_div_1_tr_18_td_2_Template, 4, 0, "td", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_137_div_1_tr_18_ul_4_Template, 3, 1, "ul", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ViewChallangesComponent_div_137_div_1_tr_18_ul_6_Template, 3, 1, "ul", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_137_div_1_tr_18_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r86); const item_r74 = ctx.$implicit; const index_r75 = ctx.index; const ctx_r85 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r85.editUserDetail(item_r74, index_r75); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "i", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_137_div_1_tr_18_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r86); const index_r75 = ctx.index; const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r87.deleteUserDetail(index_r75); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "i", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r74 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r74.allBuToken);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r74.allBuToken);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r74.appointments);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r74.user);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
} }
function ViewChallangesComponent_div_137_div_1_button_19_Template(rf, ctx) { if (rf & 1) {
const _r89 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_137_div_1_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r89); const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r88.onClearAllFrom(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Clear All ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_137_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "SELECTED INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "APPOINTMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "SELECTED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ViewChallangesComponent_div_137_div_1_tr_18_Template, 12, 6, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, ViewChallangesComponent_div_137_div_1_button_19_Template, 2, 0, "button", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r71.userDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r71.userDetails.length != 0);
} }
function ViewChallangesComponent_div_137_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewChallangesComponent_div_137_div_1_Template, 20, 2, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.userDetails.length != 0);
} }
function ViewChallangesComponent_div_138_ul_7_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_138_ul_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_138_ul_7_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r90 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r90.rulesGroup.get("selectedCustomFormConst.title").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r90.rulesGroup.get("selectedCustomFormConst.title").value);
} }
function ViewChallangesComponent_div_138_ul_17_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 108);
} }
function ViewChallangesComponent_div_138_ul_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_138_ul_17_img_4_Template, 1, 0, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r91.customFormcreatiaView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r91.customFormcreatiaView);
} }
function ViewChallangesComponent_div_138_div_25_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r104 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r104.key, " ");
} }
function ViewChallangesComponent_div_138_div_25_ul_5_img_4_Template(rf, ctx) { if (rf & 1) {
const _r107 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "img", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_138_div_25_ul_5_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r107); const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r106.criteraCategoryView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_138_div_25_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_138_div_25_ul_5_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r103.criteriaCategoryView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r103.criteriaCategoryView);
} }
const _c0 = function () { return { standalone: true }; };
function ViewChallangesComponent_div_138_div_25_Template(rf, ctx) { if (rf & 1) {
const _r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ng-select", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewChallangesComponent_div_138_div_25_Template_ng_select_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r109); const ctx_r108 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r108.addItemsInSelector($event, "Criteria_Category"); })("ngModelChange", function ViewChallangesComponent_div_138_div_25_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r109); const ctx_r110 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r110.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ViewChallangesComponent_div_138_div_25_ng_option_3_Template, 2, 2, "ng-option", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ViewChallangesComponent_div_138_div_25_ul_5_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r92 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r92.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](6, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r92.criteriaCategory);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r92.criteriaCategoryView);
} }
function ViewChallangesComponent_div_138_div_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Nominate question");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r93.nomineeQuestion, " ");
} }
function ViewChallangesComponent_div_138_div_30_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r111 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", field_r111, " ");
} }
function ViewChallangesComponent_div_138_div_55_div_12_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r116 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r116.title, " ");
} }
function ViewChallangesComponent_div_138_div_55_div_12_ul_5_img_4_Template(rf, ctx) { if (rf & 1) {
const _r119 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "img", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_138_div_55_div_12_ul_5_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r119); const ctx_r118 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r118.pointSytemView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_138_div_55_div_12_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_138_div_55_div_12_ul_5_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r115.pointSytemView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r115.pointSytemView);
} }
function ViewChallangesComponent_div_138_div_55_div_12_Template(rf, ctx) { if (rf & 1) {
const _r121 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ng-select", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewChallangesComponent_div_138_div_55_div_12_Template_ng_select_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r121); const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r120.addPointSystem($event); })("ngModelChange", function ViewChallangesComponent_div_138_div_55_div_12_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r121); const ctx_r122 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r122.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ViewChallangesComponent_div_138_div_55_div_12_ng_option_3_Template, 2, 2, "ng-option", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ViewChallangesComponent_div_138_div_55_div_12_ul_5_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("ngModel", ctx_r113.criteriaCategorySelect)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r113.poinstSystemData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r113.pointSytemView);
} }
function ViewChallangesComponent_div_138_div_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Non-Reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, ViewChallangesComponent_div_138_div_55_div_12_Template, 6, 5, "div", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r95.rulesGroup.get("nonRewardPointSystemEnabled").value);
} }
function ViewChallangesComponent_div_138_div_85_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_138_div_99_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_138_div_99_div_14_Template(rf, ctx) { if (rf & 1) {
const _r126 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "i", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_138_div_99_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r126); const ctx_r125 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r125.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "img", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r124.validateURLImage(ctx_r124.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_div_138_div_99_Template(rf, ctx) { if (rf & 1) {
const _r128 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "table", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ViewChallangesComponent_div_138_div_99_div_13_Template, 4, 0, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ViewChallangesComponent_div_138_div_99_div_14_Template, 4, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_138_div_99_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r128); const ctx_r127 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r127.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r97.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r97.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r97.createRanks.get("icon").value);
} }
function ViewChallangesComponent_div_138_div_100_div_1_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "img", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r131 = ctx.$implicit;
const ctx_r130 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", field_r131.get("name").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r131.get("startRange").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r131.get("endRange").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r130.validateURLImage(field_r131.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_div_138_div_100_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ViewChallangesComponent_div_138_div_100_div_1_tr_16_Template, 11, 4, "tr", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r129 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r129.ranksControl.controls);
} }
function ViewChallangesComponent_div_138_div_100_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewChallangesComponent_div_138_div_100_div_1_Template, 17, 1, "div", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r98 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r98.ranksControl.length != 0);
} }
function ViewChallangesComponent_div_138_div_108_ng_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r142 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r142);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r142.key, " ");
} }
function ViewChallangesComponent_div_138_div_108_ul_9_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 171);
} }
function ViewChallangesComponent_div_138_div_108_ul_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_138_div_108_ul_9_img_4_Template, 1, 0, "img", 170);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r134 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r134.progressTypesView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r134.progressTypesView);
} }
function ViewChallangesComponent_div_138_div_108_ng_option_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r144 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r144);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r144.key, " ");
} }
function ViewChallangesComponent_div_138_div_108_ul_18_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 173);
} }
function ViewChallangesComponent_div_138_div_108_ul_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_138_div_108_ul_18_img_4_Template, 1, 0, "img", 172);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r136 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r136.displaySelectionView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r136.displaySelectionView);
} }
function ViewChallangesComponent_div_138_div_108_ng_option_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r146 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r146);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r146.key, " ");
} }
function ViewChallangesComponent_div_138_div_108_ul_27_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 175);
} }
function ViewChallangesComponent_div_138_div_108_ul_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_138_div_108_ul_27_img_4_Template, 1, 0, "img", 174);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r138 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r138.displayDescriptionsView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r138.displayDescriptionsView);
} }
function ViewChallangesComponent_div_138_div_108_ng_option_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r148 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r148);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r148.key, " ");
} }
function ViewChallangesComponent_div_138_div_108_ul_36_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 175);
} }
function ViewChallangesComponent_div_138_div_108_ul_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_div_138_div_108_ul_36_img_4_Template, 1, 0, "img", 174);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r140 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r140.criteriaCategorySelectView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r140.customFormcreatiaView);
} }
function ViewChallangesComponent_div_138_div_108_div_44_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Number of criteria count\u200B");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "input", 176);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Target description\u200B");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "input", 177);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_div_138_div_108_Template(rf, ctx) { if (rf & 1) {
const _r151 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Progress Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ng-select", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewChallangesComponent_div_138_div_108_Template_ng_select_change_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const ctx_r150 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r150.addItemsInSelector($event, "Progress_Type"); })("ngModelChange", function ViewChallangesComponent_div_138_div_108_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const ctx_r152 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r152.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ViewChallangesComponent_div_138_div_108_ng_option_7_Template, 2, 2, "ng-option", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ViewChallangesComponent_div_138_div_108_ul_9_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Display Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "ng-select", 166);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewChallangesComponent_div_138_div_108_Template_ng_select_change_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const ctx_r153 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r153.addItemsInSelector($event, "Display_Selection"); })("ngModelChange", function ViewChallangesComponent_div_138_div_108_Template_ng_select_ngModelChange_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const ctx_r154 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r154.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ViewChallangesComponent_div_138_div_108_ng_option_16_Template, 2, 2, "ng-option", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ViewChallangesComponent_div_138_div_108_ul_18_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Display Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "ng-select", 167);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewChallangesComponent_div_138_div_108_Template_ng_select_change_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const ctx_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r155.addItemsInSelector($event, "Display_Description"); })("ngModelChange", function ViewChallangesComponent_div_138_div_108_Template_ng_select_ngModelChange_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const ctx_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r156.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ViewChallangesComponent_div_138_div_108_ng_option_25_Template, 2, 2, "ng-option", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, ViewChallangesComponent_div_138_div_108_ul_27_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Display Fields");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "ng-select", 168);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ViewChallangesComponent_div_138_div_108_Template_ng_select_change_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const ctx_r157 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r157.addItemsInSelector($event, "Display_Fields"); })("ngModelChange", function ViewChallangesComponent_div_138_div_108_Template_ng_select_ngModelChange_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const ctx_r158 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r158.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, ViewChallangesComponent_div_138_div_108_ng_option_34_Template, 2, 2, "ng-option", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](36, ViewChallangesComponent_div_138_div_108_ul_36_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Target Criteria Display");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "label", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](42, "input", 169);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](43, "span", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, ViewChallangesComponent_div_138_div_108_div_44_Template, 13, 0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r99.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](26, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r99.progressTypes);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r99.progressTypesView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r99.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](27, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r99.displaySelectionData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r99.displaySelectionView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r99.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](28, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r99.displayDescriptions);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r99.displayDescriptionsView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r99.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](29, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r99.displayFieldsData);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r99.criteriaCategorySelectView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r99.rulesGroup.get("isTargetCriteria").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r99.rulesGroup.get("isTargetCriteria").value === true);
} }
function ViewChallangesComponent_div_138_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "Select Custom Form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ViewChallangesComponent_div_138_ul_7_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "select", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Select Criteria");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, ViewChallangesComponent_div_138_ul_17_Template, 5, 2, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Criteria Categories");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "label", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "span", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ViewChallangesComponent_div_138_div_25_Template, 6, 7, "div", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, ViewChallangesComponent_div_138_div_26_Template, 6, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "Select workflow status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](30, ViewChallangesComponent_div_138_div_30_Template, 3, 1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "input", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "label", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](38, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "label", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](42, "input", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](44, "input", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](47, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "Challenge Reward Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "label", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](53, "input", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "span", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](55, ViewChallangesComponent_div_138_div_55_Template, 17, 3, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](56, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "p", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "Points Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](63, "input", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](66, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](68, "input", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](70, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](71, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](73, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](76, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](78, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](79, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](81, "input", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](84, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](85, ViewChallangesComponent_div_138_div_85_Template, 3, 0, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "p", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](90, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](91, "label", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](92, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](93, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](95, "input", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "label", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](97, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](98, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](99, ViewChallangesComponent_div_138_div_99_Template, 18, 3, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](100, ViewChallangesComponent_div_138_div_100_Template, 2, 1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](101, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](102, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](104, "Progress Status Setup");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](105, "label", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](106, "input", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](107, "span", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](108, ViewChallangesComponent_div_138_div_108_Template, 45, 30, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.rulesGroup.get("selectedCustomFormConst.title").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.customFormcreatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r10.rulesGroup.get("isCriteriaCategory").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.rulesGroup.get("isCriteriaCategory").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.rulesGroup.get("criteriaSourceType").value === 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r10.workFlowStatusInfo);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r10.rulesGroup.get("criteriaCountType").value === 1 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r10.rulesGroup.get("isRewardChallenge").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.rulesGroup.get("isRewardChallenge").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r10.rulesGroup.get("isProgressSetup").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r10.rulesGroup.get("isProgressSetup").value === true);
} }
function ViewChallangesComponent_ng_container_139_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 208);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 209);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r166 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", item_r166 == null ? null : item_r166.schemeName, " ");
} }
function ViewChallangesComponent_ng_container_139_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 206);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ViewChallangesComponent_ng_container_139_div_9_div_1_Template, 3, 1, "div", 207);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r159 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r159.schemeData);
} }
function ViewChallangesComponent_ng_container_139_div_59_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r168 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r168.pointSytemView, " ");
} }
function ViewChallangesComponent_ng_container_139_div_59_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "select", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewChallangesComponent_ng_container_139_div_59_ul_4_Template, 4, 1, "ul", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r160 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r160.pointSytemView);
} }
function ViewChallangesComponent_ng_container_139_button_60_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 210);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_ng_container_139_div_92_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_ng_container_139_div_107_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 219);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ViewChallangesComponent_ng_container_139_div_107_div_14_Template(rf, ctx) { if (rf & 1) {
const _r172 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 220);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "i", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_ng_container_139_div_107_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r172); const ctx_r171 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r171.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "img", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r170 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r170.validateURLImage(ctx_r170.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_ng_container_139_div_107_Template(rf, ctx) { if (rf & 1) {
const _r174 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "table", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 212);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 213);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td", 214);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 215);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ViewChallangesComponent_ng_container_139_div_107_div_13_Template, 4, 0, "div", 216);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ViewChallangesComponent_ng_container_139_div_107_div_14_Template, 4, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 217);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 218);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_ng_container_139_div_107_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r174); const ctx_r173 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r173.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r163 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r163.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r163.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r163.createRanks.get("icon").value);
} }
function ViewChallangesComponent_ng_container_139_div_109_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r179 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 222);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 222);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 222);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "img", 223);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "img", 224);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_ng_container_139_div_109_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r179); const index_r177 = ctx.index; const ctx_r178 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r178.deleteBadge(index_r177); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r176 = ctx.$implicit;
const ctx_r175 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r176.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r176.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](field_r176.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r175.validateURLImage(field_r176.icon), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function ViewChallangesComponent_ng_container_139_div_109_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 221);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "table", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ViewChallangesComponent_ng_container_139_div_109_tr_16_Template, 14, 4, "tr", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r164 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r164.badgeTieringArray);
} }
function ViewChallangesComponent_ng_container_139_Template(rf, ctx) { if (rf & 1) {
const _r181 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 178);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Selected Scheme ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "ng-select", 179);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ViewChallangesComponent_ng_container_139_Template_ng_select_ngModelChange_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r181); const ctx_r180 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r180.schemeData = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ViewChallangesComponent_ng_container_139_div_9_Template, 2, 1, "div", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 178);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, " Criteria Selection ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "ng-select", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ViewChallangesComponent_ng_container_139_Template_ng_select_ngModelChange_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r181); const ctx_r182 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r182.shiftcriteriaSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "label", 183);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "input", 185);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "label", 186);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "input", 187);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 188);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "label", 189);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "input", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Reward Pointss");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](42, "input", 191);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "label", 192);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](50, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](52, "input", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "label", 194);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](56, "input", 195);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "label", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](59, ViewChallangesComponent_ng_container_139_div_59_Template, 5, 1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](60, ViewChallangesComponent_ng_container_139_button_60_Template, 2, 0, "button", 197);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](61, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "p", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "div", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "label", 192);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68, "Will rewards count stop after 1st achievement");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](69, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](71, "input", 198);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "label", 194);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](73, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](75, "input", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "label", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](78, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "div", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](81, "label", 192);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](82, "Do we need to limit the maximum rewards per staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](83, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](85, "input", 200);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "label", 194);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](89, "input", 201);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "label", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](92, ViewChallangesComponent_ng_container_139_div_92_Template, 2, 0, "div", 202);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](93, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "div", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "label", 192);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](97, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](98, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](99, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](100, "input", 203);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](101, "label", 194);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](102, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](104, "input", 204);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](105, "label", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](106, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](107, ViewChallangesComponent_ng_container_139_div_107_Template, 18, 3, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](108, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](109, ViewChallangesComponent_ng_container_139_div_109_Template, 17, 1, "div", 205);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r11.schemeDataArr)("virtualScroll", false)("clearable", true)("multiple", true)("disabled", true)("closeOnSelect", false)("searchable", true)("ngModel", ctx_r11.schemeData)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](30, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r11.schemeData != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r11.allCriteria)("ngModel", ctx_r11.shiftcriteriaSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](31, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r11.rulesGroup.get("criteriaCountType").value === 1 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r11.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r11.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r11.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r11.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r11.badgeTieringArray.length != 0);
} }
function ViewChallangesComponent_ng_template_147_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0, "ADMINSTRATOR");
} }
function ViewChallangesComponent_div_163_Template(rf, ctx) { if (rf & 1) {
const _r186 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 225);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 226);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "img", 227);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_div_163_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r186); const index_r184 = ctx.index; const ctx_r185 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r185.deleteAdmin(index_r184); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r183 = ctx.$implicit;
const index_r184 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroupName", index_r184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", field_r183.get("string").value, " ");
} }
class ViewChallangesComponent {
constructor(formBuilder, gamificationService, toastService) {
this.formBuilder = formBuilder;
this.gamificationService = gamificationService;
this.toastService = toastService;
this.isLinear = false;
this.teamDetails = [];
this.workFlowStatusInfo = [];
this.disabledTrue = true;
this.allCriteria = [
{
value: 1,
key: 'Reading articles',
},
{
value: 2,
key: 'Questionnaire attempted',
},
{
value: 3,
key: ' Event attended',
},
{
value: 4,
key: 'Posting Done',
},
{
value: 5,
key: 'First Login',
},
{
value: 6,
key: 'Visible to submitted User',
},
{
value: 7,
key: 'Visible to Nominated User',
},
{
value: 8,
key: 'Nominated User',
},
{
value: 9,
key: 'Questionnaire attempted',
},
{
value: 10,
key: 'On-time report',
},
{
value: 11,
key: 'No. of Shift worked (By Hour)',
},
{
value: 12,
key: 'No. of Shift worked (By Shift Count)',
},
];
this.challangesId = null;
this.challangesData = null;
this.badgeTieringArray = [];
this.schemeDataArr = [];
this.schemeData = null;
this.shiftcriteriaSelect = null;
this.imagePath = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl;
this.dataLoaded = true;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl;
}
ngOnInit() {
this.initRulesFrom();
this.initDiscriptionFrom();
this.adminGroup = this.formBuilder.group({
administrators: this.formBuilder.array([]),
});
this.challangesId && this.getSingleChallenges(this.challangesId);
this.patchData();
this.createRanks = this.formBuilder.group({
name: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
startRange: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
endRange: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
icon: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
});
}
patchData() {
if (this.challangesData) {
const { title, description, challengeStart, challengeEnd, publishStart, publishEnd, icon, status, leaderBoard, } = this.challangesData || {};
this.discriptioGroup.patchValue({
title,
description,
challengeStart,
challengeEnd,
publishStart,
publishEnd,
icon,
status,
leaderBoard,
});
const subscribe = this.gamificationService
.getChallengesNewSingle(this.challangesData._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const data = response.data;
this.challangesData = data;
this.dataLoaded = false;
this.patchDataAll();
}, (error) => {
this.toastService.error('Something went wrong');
});
}
}
patchDataAll() {
if (this.challangesData) {
const { title, description, challengeStart, challengeEnd, publishStart, publishEnd, icon, status, leaderBoard, assignUsers, criteriaType, criteriaSourceType, criteriaCountType, maximumRewards, criteriaCount, selectedChannel, selectedWall, selectedScheme, selectedCustomForm, rewardPoints, nonRewardPointSystem, nonRewardPointSystemEnabled, stopAfterAchievement, setLimitToMaxRewards, badgeTiering, ranks, administrators, nomineeQuestion } = this.challangesData || {};
this.workFlowStatusInfo = this.challangesData.workFlowStatusInfo;
this.schemeData = selectedScheme;
const adminControl = this.AdminFieldsControl;
const rankControl = this.ranksControl;
ranks === null || ranks === void 0 ? void 0 : ranks.forEach(({ name, startRange, endRange, icon }) => {
let field = this.formBuilder.group({
name,
startRange,
endRange,
icon,
});
rankControl.push(field);
});
const creteriav = this.allCriteria.filter((data) => { return data.value == criteriaSourceType; });
const creteria = this.allCriteria.find((cretia) => { return cretia.value == criteriaSourceType; });
this.populateCriteria(creteria);
this.userDetails = assignUsers ? assignUsers : [];
this.discriptioGroup.patchValue({
title,
description,
challengeStart,
challengeEnd,
publishStart,
publishEnd,
icon,
status,
leaderBoard,
});
if (nonRewardPointSystemEnabled) {
this.pointSytemView = nonRewardPointSystem === null || nonRewardPointSystem === void 0 ? void 0 : nonRewardPointSystem.title;
}
this.nomineeQuestion = nomineeQuestion === null || nomineeQuestion === void 0 ? void 0 : nomineeQuestion.question;
const nonRewardPointSystemConst = nonRewardPointSystem !== null && nonRewardPointSystem !== void 0 ? nonRewardPointSystem : false;
const nonRewardPointSystemEnabledConst = nonRewardPointSystemEnabled !== null && nonRewardPointSystemEnabled !== void 0 ? nonRewardPointSystemEnabled : false;
const selectedChannelConst = selectedChannel !== null && selectedChannel !== void 0 ? selectedChannel : '';
const selectedWallConst = selectedWall !== null && selectedWall !== void 0 ? selectedWall : '';
const selectedCustomFormConst = selectedCustomForm !== null && selectedCustomForm !== void 0 ? selectedCustomForm : '';
this.rulesGroup.patchValue({
criteriaType,
criteriaSourceType,
criteriaCountType,
maximumRewards,
criteriaCount,
selectedChannelConst,
selectedWallConst,
selectedCustomFormConst,
rewardPoints,
nonRewardPointSystemConst,
nonRewardPointSystemEnabledConst,
stopAfterAchievement,
setLimitToMaxRewards,
badgeTiering,
});
}
}
getSingleChallenges(id) {
const sub = this.gamificationService
.getChallengesNewSingle(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ res, data: { title, description, challengeStart, challengeEnd, publishStart, publishEnd, icon, status, leaderBoard, assignUsers, criteriaType, criteriaSourceType, criteriaCountType, maximumRewards, criteriaCount, selectedChannel, selectedWall, selectedScheme, selectedCustomForm, rewardPoints, nonRewardPointSystem, nonRewardPointSystemEnabled, stopAfterAchievement, setLimitToMaxRewards, badgeTiering, ranks, administrators, isTeam, teams, isCriteriaCategories, criteriaCategories, isRewardChallenge, rewardType, isProgressStatusSetup, progressType, displaySelection, displayDescription, displayField, isTargetCriteria, targetCriteriaCount, targetDescription, }, }) => {
var _a;
// this.rewardPoints = rewardPoints;
this.schemeData = selectedScheme;
const adminControl = this.AdminFieldsControl;
this.teamDetails = this.getModifiedTeams(teams);
const rankControl = this.ranksControl;
ranks.forEach(({ name, startRange, endRange, icon }) => {
let field = this.formBuilder.group({
name,
startRange,
endRange,
icon,
});
rankControl.push(field);
});
(_a = administrators === null || administrators === void 0 ? void 0 : administrators.filter((item, index, self) => self.indexOf(item) === index)) === null || _a === void 0 ? void 0 : _a.forEach((element) => {
let field = this.formBuilder.group({
string: [element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
});
adminControl.push(field);
});
const creteria = this.allCriteria.find((cretia) => cretia.value === criteriaSourceType);
this.populateCriteria(creteria);
this.userDetails = assignUsers ? assignUsers : [];
this.discriptioGroup.patchValue({
title,
description,
challengeStart,
challengeEnd,
publishStart,
publishEnd,
icon,
status,
leaderBoard,
isTeam,
});
this.rulesGroup.patchValue({
criteriaType: criteriaType,
criteriaSourceType: criteriaSourceType,
criteriaCountType: criteriaCountType,
maximumRewards: maximumRewards,
criteriaCount: criteriaCount,
selectedChannel: {
name: selectedChannel ? selectedChannel.name : '',
_id: selectedChannel ? selectedChannel._id : '',
},
selectedWall: {
name: selectedWall ? selectedWall.wallName : null,
_id: selectedWall ? selectedWall._id : '',
},
selectedCustomForm: {
title: selectedCustomForm
? selectedCustomForm.title
: '',
_id: selectedCustomForm ? selectedCustomForm._id : '',
},
rewardPoints: rewardPoints,
nonRewardPointSystem: nonRewardPointSystem,
nonRewardPointSystemEnabled: nonRewardPointSystemEnabled,
stopAfterAchievement: stopAfterAchievement,
setLimitToMaxRewards: setLimitToMaxRewards,
badgeTiering: badgeTiering,
isCriteriaCategory: isCriteriaCategories,
isRewardChallenge: isRewardChallenge,
isProgressSetup: isProgressStatusSetup,
isTargetCriteria: isTargetCriteria,
targetCount: targetCriteriaCount,
targetCountDescription: targetDescription,
});
this.criteriaCategoryView = criteriaCategories === null || criteriaCategories === void 0 ? void 0 : criteriaCategories.question,
this.progressTypesView = this.getViewNameForProgressType(progressType),
this.displaySelectionView = this.getViewNameForDisplaySelection(displaySelection),
this.displayDescriptionsView = displayDescription === null || displayDescription === void 0 ? void 0 : displayDescription.question,
this.criteriaCategorySelectView = displayField === null || displayField === void 0 ? void 0 : displayField.question;
}, (error) => {
this.toastService.error('No data found');
});
}
initDiscriptionFrom() {
return (this.discriptioGroup = this.formBuilder.group({
title: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
description: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
challengeStart: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
challengeEnd: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
publishStart: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
publishEnd: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
icon: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
status: 'Draft',
leaderBoard: false,
isTeam: false,
}));
}
getModifiedTeams(data) {
const newArrayOfObj = data === null || data === void 0 ? void 0 : data.map(({ name: title, logo: icon, assignUsers: teamUserDetails, }) => ({
title,
icon,
teamUserDetails,
}));
return newArrayOfObj;
}
getViewNameForProgressType(key) {
switch (key) {
case 1:
return 'Leader Board';
case 2:
return 'Digital Stamp';
}
}
getViewNameForDisplaySelection(key) {
switch (key) {
case 1:
return 'See own only';
case 2:
return 'See own or other';
case 3:
return 'See own + others';
case 4:
return 'See own + all combined';
}
}
get AdminFieldsControl() {
return this.adminGroup.get('administrators');
}
initRulesFrom() {
return (this.rulesGroup = this.formBuilder.group({
criteriaType: [{ value: 1, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
criteriaSourceType: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
criteriaCountType: [{ value: 1, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
maximumRewards: [{ value: 0, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
criteriaCount: [{ value: 1, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
selectedChannelConst: this.formBuilder.group({
name: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
}),
selectedWallConst: this.formBuilder.group({
wallName: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
}),
selectedCustomFormConst: this.formBuilder.group({
title: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
}),
rewardPoints: [{ value: null, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
nonRewardPointSystem: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
nonRewardPointSystemEnabled: [{ value: false, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
stopAfterAchievement: [{ value: false, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
setLimitToMaxRewards: [{ value: false, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
badgeTiering: [{ value: false, disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
ranks: this.formBuilder.array([]),
isCriteriaCategory: false,
isRewardChallenge: false,
isProgressSetup: false,
isTargetCriteria: false,
targetCount: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
targetCountDescription: [{ value: '', disabled: true }, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
}));
}
get ranksControl() {
return this.rulesGroup.get('ranks');
}
populateCriteria({ value, key }) {
if ([1, 2, 3].includes(value)) {
this.creatiaView = key;
}
if ([4, 8, 9].includes(value)) {
this.boardcreatiaView = key;
}
if ([6, 7].includes(value)) {
this.customFormcreatiaView = key;
}
if ([5].includes(value)) {
this.systemCretiaView = key;
}
if ([10, 11, 12].includes(value)) {
this.shiftcriteriaSelect = key;
}
}
validateURLImage(str) {
console.log('ssss', str);
return Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["generateImageUrl"])(str);
}
}
ViewChallangesComponent.ɵfac = function ViewChallangesComponent_Factory(t) { return new (t || ViewChallangesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"])); };
ViewChallangesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewChallangesComponent, selectors: [["view-challanges"]], inputs: { challangesId: "challangesId", challangesData: "challangesData" }, decls: 170, vars: 27, consts: [[1, "card"], [1, "card-header", "flexi-header"], [1, "card-body"], [3, "linear"], ["stepper", ""], [3, "stepControl"], [3, "formGroup"], ["matStepLabel", ""], [1, "card", "my-3", "w-100"], [1, "row"], [1, "col-md-12", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "font-weight-bold"], ["type", "text", "placeholder", "Title", "formControlName", "title", 1, "form-control"], ["name", "", "id", "", "cols", "5", "rows", "5", "formControlName", "description", 1, "form-control"], [1, "col-md-3"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["type", "file", "disabled", "", "id", "c", 1, "custom-file-input"], ["myInputVariable", ""], ["for", "i", 1, "custom-file-label"], ["class", "col-md-3", 4, "ngIf"], [1, "form-check", "m-3"], ["type", "checkbox", "formControlName", "leaderBoard", "value", "", "disabled", "", "id", "flexCheckChecked", 1, "form-check-input"], ["for", "flexCheckChecked", 1, "form-check-label", "ml-2", "checkbox-label"], ["for", "challengeParticipant", 1, "pb-2", "font-weight-bold"], [1, "criteria-radio", "col-6"], ["type", "radio", "id", "individual", "formControlName", "isTeam", 1, "mt-1", "ml-2", 3, "value"], ["for", "individual"], ["type", "radio", "id", "team", "formControlName", "isTeam", 1, "mt-1", "ml-2", 3, "value"], ["for", "team"], [1, "col-md-6"], [1, "row", "mt-2"], ["for", "activeEndDate", 1, "pb-2", "font-weight-bold"], ["formControlName", "publishStart"], ["formControlName", "publishEnd"], ["formControlName", "challengeStart"], ["formControlName", "challengeEnd"], [1, "btn", "btn-success", "mt-2", 3, "disabled", "click"], [3, "stepControl", 4, "ngIf"], [1, "ml-3"], [1, "criteria-source"], [1, "criteria-source-radio", "col-10"], ["type", "radio", "formControlName", "criteriaType", "id", "1", "disabled", "", "name", "criteriaType", 1, "mt-1", "ml-2", 3, "value"], ["for", "channel"], ["type", "radio", "formControlName", "criteriaType", "id", "2", "name", "criteriaType", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["for", "boards"], ["type", "radio", "formControlName", "criteriaType", "id", "3", "name", "criteriaType", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["for", "system"], ["type", "radio", "formControlName", "criteriaType", "id", "4", "name", "criteriaType", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["for", "direct-rewards"], ["type", "radio", "formControlName", "criteriaType", "id", "5", "name", "criteriaType", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["for", "custom-form"], ["type", "radio", "formControlName", "criteriaType", "id", "6", "name", "criteriaType", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], [4, "ngIf"], [1, "btn", "btn-warning", "mt-4", 3, "click"], [1, "btn", "btn-danger", "ml-1", "mt-4", 3, "click"], [1, "col-md-4"], [1, "font-weight-bold", "ml-3"], [1, "flex-direction", "col-12"], [1, "w-100"], ["name", "cars", "id", "cars", "disabled", "", 1, "form-control"], [1, "col-md-6", "p-4"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap", "margin-top", "2px"], ["formArrayName", "administrators", 4, "ngFor", "ngForOf"], [1, "flex-direction", "col-1"], [1, "btn", "btn-danger", "ml-1", 3, "click"], [1, "image-with-delete-icon", "width-180"], ["crossorigin", "anonymous", "alt", "Image Preview", 3, "src"], ["class", "card my-3 w-100", 4, "ngIf"], [1, "table-responsive"], [1, "table"], [1, "p-3"], ["scope", "col", 1, "p-3"], [4, "ngFor", "ngForOf"], ["crossorigin", "anonymous", 2, "height", "50px", "width", "50px", "border-radius", "50%", 3, "src"], ["disabled", "", 1, "btn", "btn-add", "p-2", "m-1", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-pencil-square-o"], ["disabled", "", 1, "btn", "btn-clear", "p-2", "m-1", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-trash"], [1, "channels-section", "col-12", "flex-direction", "mt-3"], ["id", "exampleFormControlSelect1", "disabled", "", 1, "form-control"], [1, "criteria-source", "mt-3"], [1, "channels-section", "col-12", "flex-direction"], [1, "criteria-radio", "col-4"], ["type", "radio", "id", "single", "disabled", "", "formControlName", "criteriaCountType", 1, "mt-1", "ml-2", 3, "value"], [1, "form-group", "ml-1"], ["for", "criteria-count", 1, "criteria-subtext"], ["type", "number", "min", "1", "disabled", "", "placeholder", "Criteria Count", "formControlName", "criteriaCount", 1, "form-control", 3, "value"], ["type", "radio", "id", "bundled", "disabled", "", "formControlName", "criteriaCountType", 1, "mt-1", "ml-2", 3, "value"], ["for", "reward-points", 1, "criteria-subtext"], ["type", "number", "min", "0", "disabled", "", "placeholder", "Reward Points", "formControlName", "rewardPoints", 1, "form-control"], [1, "criteria-subtext", "mt-0"], [1, "criteria-radio", "col-3"], ["type", "radio", "id", "1", "disabled", "", "formControlName", "nonRewardPointSystemEnabled", 1, "mt-1", "ml-2", 3, "value"], ["for", "yes"], ["type", "radio", "id", "2", "disabled", "", "formControlName", "nonRewardPointSystemEnabled", 1, "mt-1", "ml-2", 3, "value"], ["for", "no"], ["class", "row", 4, "ngIf"], ["class", "reward-points-button", 4, "ngIf"], [1, "criteria-source", "mt-0"], ["type", "radio", "id", "1", "disabled", "", "formControlName", "stopAfterAchievement", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "disabled", "", "formControlName", "stopAfterAchievement", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "1", "disabled", "", "formControlName", "setLimitToMaxRewards", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "disabled", "", "formControlName", "setLimitToMaxRewards", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "1", "disabled", "", "formControlName", "badgeTiering", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "disabled", "", "formControlName", "badgeTiering", 1, "mt-1", "ml-2", 3, "value"], [1, "text-items", "list-ui", "selected-list"], ["class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 4, "ngIf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3"], ["name", "cars", "id", "cars", "disabled", ""], [1, "text-items", "list-ui", "mt-3"], [1, "reward-points-button"], ["type", "number", "min", "0", "disabled", "", "placeholder", "setLimitToMaxRewards", "formControlName", "maximumRewards", "required", "", 1, "form-control"], [1, "table", "borderless"], ["type", "text", "placeholder", "Title", "formControlName", "name", "disabled", "", "required", "", 1, "form-control"], ["type", "number", "min", "0", "disabled", "", "placeholder", "startRange", "formControlName", "startRange", "required", "", 1, "form-control"], ["type", "number", "min", "0", "disabled", "", "placeholder", "endRange", "formControlName", "endRange", "required", "", 1, "form-control"], ["class", "custom-file mt-0 pt-4 pb-4", "style", "width: 67px", 4, "ngIf"], [1, "btn", "btn-submit", "btn-lg", "ml-1", 3, "click"], [1, "custom-file", "mt-0", "pt-4", "pb-4", 2, "width", "67px"], ["type", "file", "disabled", "", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "80%", "opacity", "0"], ["for", "b", 1, "custom-file-label"], [1, "image-with-delete-icon", 2, "width", "100px"], ["title", "Delete", "for", "4", 1, "fa", "fa-close", 3, "click"], ["id", "4", "alt", "Image Preview", 3, "src"], ["class", "col-md-6", 4, "ngIf"], ["scope", "col"], ["formArrayName", "ranks", 4, "ngFor", "ngForOf"], ["formArrayName", "ranks"], ["width", "50px", "height", "50px", "alt", "icon Preview", 3, "src"], ["type", "text", "placeholder", "Title", "disabled", "", "formControlName", "name", "required", "", 1, "form-control"], ["type", "number", "min", "0", "placeholder", "startRange", "disabled", "", "formControlName", "startRange", "required", "", 1, "form-control"], ["type", "number", "min", "0", "placeholder", "endRange", "disabled", "", "formControlName", "endRange", "required", "", 1, "form-control"], [1, "channels-section", "col-12", "flex-direction", "mt-3", "ml-4"], [1, "row", "ml-0"], [1, "col-3", "mt-2"], ["type", "text", "formControlName", "rewardPoints", "disabled", "", "required", "", 1, "form-control"], [1, "col-4", 2, "margin-top", "35px"], ["class", "btn btn-clear", 3, "click", 4, "ngIf"], [1, "btn", "btn-add", "p-2", "m-1", 3, "disabled", "click"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "disabled", "click"], [1, "btn", "btn-clear", 3, "click"], [1, "flex-direction"], [1, "switch", "criteria-source", "mt-3", "ml-4"], ["type", "checkbox", "formControlName", "isCriteriaCategory", "disabled", "", 3, "checked"], [1, "slider", "round"], ["class", "channels-section col-12 flex-direction", 4, "ngIf"], ["type", "checkbox", "formControlName", "isRewardChallenge", "disabled", "", 3, "checked"], ["type", "checkbox", "formControlName", "isProgressSetup", "disabled", "", 3, "checked"], ["bindLabel", "name", "placeholder", "Select Criteria Category", "appendTo", "body", "aria-disabled", "true", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "aria-disabled", "true", "crossorigin", "anonymous", 3, "click", 4, "ngIf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "aria-disabled", "true", "crossorigin", "anonymous", 1, "ml-3", 3, "click"], [1, "text-items", "list-ui", "mt-2"], [1, "criteria-radio", "col-8"], ["type", "radio", "id", "2", "formControlName", "nonRewardPointSystemEnabled", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "1", "formControlName", "nonRewardPointSystemEnabled", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["class", "row pt-4 pl-4 pb-2", 4, "ngIf"], [1, "form-group", "col-md-3"], ["type", "number", "min", "0", "placeholder", "Reward Points", "onKeyPress", "if(this.value.length==10) return false;", "formControlName", "rewardPoints", "disabled", "", 1, "form-control"], [1, "row", "pt-4", "pl-4", "pb-2"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", "aria-disabled", "true", 1, "custom", 3, "multiple", "ngModel", "clearable", "change", "ngModelChange"], [1, "text-items", "list-ui"], [1, "my-3"], ["bindLabel", "name", "placeholder", "Select Progress Type", "appendTo", "body", "aria-disabled", "true", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select Display Selection", "appendTo", "body", "aria-disabled", "true", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select Display Description", "appendTo", "body", "aria-disabled", "true", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select Display Fields", "appendTo", "body", "aria-disabled", "true", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["type", "checkbox", "formControlName", "isTargetCriteria", "disabled", "", 3, "checked"], ["class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", "aria-disabled", "true", 4, "ngIf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", "aria-disabled", "true", 1, "ml-3"], ["class", "ml-3", "aria-disabled", "true", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 4, "ngIf"], ["aria-disabled", "true", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-3"], ["class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "aria-disabled", "true", "crossorigin", "anonymous", 4, "ngIf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "aria-disabled", "true", "crossorigin", "anonymous", 1, "ml-3"], ["type", "number", "min", "0", "placeholder", "Criteria Count", "onKeyPress", "if(this.value.length==10) return false;", "formControlName", "targetCount", "disabled", "", 1, "form-control"], ["type", "text", "placeholder", "Description", "onKeyPress", "", "formControlName", "targetCountDescription", "disabled", "", 1, "form-control"], [1, "text-theme", "font-weight-500"], ["bindLabel", "schemeName", "appendTo", "body", 1, "custom", 3, "items", "virtualScroll", "clearable", "multiple", "disabled", "closeOnSelect", "searchable", "ngModel", "ngModelOptions", "ngModelChange"], ["class", "d-flex", 4, "ngIf"], ["bindLabel", "key", "appendTo", "body", 1, "custom", 3, "items", "ngModel", "ngModelOptions", "ngModelChange"], [1, "col-md-12"], ["for", "", 1, "text-theme", "font-weight-bold"], [1, "form-check", "form-check-inline"], ["type", "radio", "id", "single", "formControlName", "criteriaCountType", 1, "form-check-input", 3, "value"], ["for", "channel", 1, "form-check-label"], ["type", "radio", "id", "bundled", "formControlName", "criteriaCountType", 1, "form-check-input", 3, "value"], ["for", "boards", 1, "form-check-label"], ["for", "criteria-count", 1, ""], ["type", "number", "min", "1", "placeholder", "Criteria Count", "formControlName", "criteriaCount", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 10) return false;", 1, "form-control", 3, "value"], ["type", "number", "placeholder", "Reward Points", "name", "rewardPoints", "formControlName", "rewardPoints", 1, "form-control"], ["for", ""], ["type", "radio", "id", "1", "formControlName", "nonRewardPointSystemEnabled", 1, "form-check-input", 3, "value"], ["for", "yes", 1, "form-check-label"], ["type", "radio", "id", "2", "formControlName", "nonRewardPointSystemEnabled", 1, "form-check-input", 3, "value"], ["for", "no", 1, "form-check-label"], ["class", "btn btn-danger", 4, "ngIf"], ["type", "radio", "id", "1", "formControlName", "stopAfterAchievement", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "2", "formControlName", "stopAfterAchievement", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "1", "formControlName", "setLimitToMaxRewards", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "2", "formControlName", "setLimitToMaxRewards", 1, "form-check-input", 3, "value"], ["class", "col-md-4", 4, "ngIf"], ["type", "radio", "id", "1", "formControlName", "badgeTiering", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "2", "formControlName", "badgeTiering", 1, "form-check-input", 3, "value"], ["class", "col-8", 4, "ngIf"], [1, "d-flex"], ["class", "labels mb-2 mr-2", 4, "ngFor", "ngForOf"], [1, "labels", "mb-2", "mr-2"], [1, "text"], [1, "btn", "btn-danger"], ["type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", "min", "0", "placeholder", "setLimitToMaxRewards", "formControlName", "maximumRewards", "required", "", 1, "form-control"], ["type", "text", "placeholder", "Badge", "formControlName", "name", "required", "", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==50) return false;", 1, "form-control"], ["type", "number", "min", "0", "placeholder", "From", "formControlName", "startRange", "required", "", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", 1, "form-control"], [1, "columns"], ["type", "number", "min", "0", "placeholder", "To", "formControlName", "endRange", "required", "", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", 1, "form-control", "columns"], ["class", "custom-file", "style", "\n width: 130px;\n height: 30px;\n margin-left: 10px;\n ", 4, "ngIf"], [1, "add-button", "columns"], [1, "btn", "btn-submit", "btn-lg", "ml-1", "pl-3", "pr-3", 3, "click"], [1, "custom-file", 2, "width", "130px", "height", "30px", "margin-left", "10px"], [1, "image-with-delete-icon", "ml-5", "ml-0", "badge-image", 2, "width", "100px"], [1, "col-8"], [1, "mt-2"], ["width", "50px", "height", "50px", "alt", "icon Preview", 1, "mt-2", 3, "src"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", "mt-2", 3, "click"], ["formArrayName", "administrators"], [1, "text-items", "list-ui", "mt-2", 3, "formGroupName"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", 3, "click"]], template: function ViewChallangesComponent_Template(rf, ctx) { if (rf & 1) {
const _r187 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "CHALLENGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "mat-horizontal-stepper", 3, 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "mat-step", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ViewChallangesComponent_ng_template_9_Template, 1, 0, "ng-template", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Title");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "textarea", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "input", 17, 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " Choose file to upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, ViewChallangesComponent_div_34_Template, 3, 1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "input", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, " Leader board required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, "Challenge participants selection");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](44, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Individual challenge");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](47, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](49, "input", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "Team challenge");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](52, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "PUBLISH PERIOD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](64, "Start Date and Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](65, "app-date-time-picker", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, "End Date and Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](70, "app-date-time-picker", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, "CHALLENGE PERIOD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](81, "Start Date and Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](82, "app-date-time-picker", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](85, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](86, "End Date and Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](87, "app-date-time-picker", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_Template_button_click_88_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r187); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](6); return _r0.next(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](89, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](90, ViewChallangesComponent_mat_step_90_Template, 14, 3, "mat-step", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](91, "mat-step", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](92, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](93, ViewChallangesComponent_ng_template_93_Template, 1, 0, "ng-template", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](96, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](97, "RULES");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](98, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](99, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](100, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](101, "Criteria Source");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](102, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](104, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](105, "label", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](106, "Channel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](107, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](108, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](109, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](110, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](111, "Boards");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](112, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](113, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](114, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](115, "label", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](116, "System");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](117, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](118, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](119, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](120, "label", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](121, "Direct Rewards");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](122, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](123, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](124, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](125, "label", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](126, "Custom Form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](127, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](128, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](129, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](130, "label", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](131, "Shift Form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](132, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](133, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](134, ViewChallangesComponent_div_134_Template, 103, 19, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](135, ViewChallangesComponent_div_135_Template, 102, 19, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](136, ViewChallangesComponent_div_136_Template, 18, 2, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](137, ViewChallangesComponent_div_137_Template, 2, 1, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](138, ViewChallangesComponent_div_138_Template, 109, 23, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](139, ViewChallangesComponent_ng_container_139_Template, 110, 32, "ng-container", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](140, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](141, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_Template_button_click_141_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r187); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](6); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](142, " Prev ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](143, "button", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_Template_button_click_143_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r187); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](6); return _r0.next(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](144, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](145, "mat-step", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](146, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](147, ViewChallangesComponent_ng_template_147_Template, 1, 0, "ng-template", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](148, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](149, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](150, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](151, "ADMINSTRATOR");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](152, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](153, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](154, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](155, "label", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](156, "Admin ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](157, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](158, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](159, "select", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](160, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](161, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](162, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](163, ViewChallangesComponent_div_163_Template, 4, 2, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](164, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](165, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](166, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewChallangesComponent_Template_button_click_166_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r187); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](6); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](167, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](168, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](169, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("linear", ctx.isLinear);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("stepControl", ctx.discriptioGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.discriptioGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.discriptioGroup.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.dataLoaded);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.discriptioGroup.get("isTeam").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("stepControl", ctx.rulesGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.rulesGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rulesGroup.get("criteriaType").value === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rulesGroup.get("criteriaType").value === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rulesGroup.get("criteriaType").value === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rulesGroup.get("criteriaType").value === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rulesGroup.get("criteriaType").value === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rulesGroup.get("criteriaType").value === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("stepControl", ctx.adminGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.adminGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.AdminFieldsControl.controls);
} }, directives: [_angular_material_stepper__WEBPACK_IMPORTED_MODULE_7__["MatHorizontalStepper"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_7__["MatStep"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_7__["MatStepLabel"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_10__["DateTimePickerComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormArrayName"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgModel"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_11__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["PatternValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupName"]], styles: [".mat-stepper-horizontal[_ngcontent-%COMP%] {\n margin-top: 8px;\n}\n\n.mat-form-field[_ngcontent-%COMP%] {\n margin-top: 16px;\n}\n\n.text-items[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n}\n\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n\n.parent[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-column-gap: 10px;\n grid-row-gap: 10px;\n}\n\n.child[_ngcontent-%COMP%] {\n height: 20px;\n}\n\n.criteria-source[_ngcontent-%COMP%] {\n color: #a42138;\n font-weight: 500;\n}\n\n.criteria-subtext[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n color: black;\n font-weight: 500;\n}\n\n.criteria-source-radio[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.flex-direction[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.btn-save[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n width: 100px;\n}\n\n.btn-danger[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n width: auto;\n}\n\n.btn-success[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n width: auto;\n}\n\n.btn-warning[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n width: auto;\n}\n\n.channels-section[_ngcontent-%COMP%] {\n position: relative;\n left: -20px;\n}\n\n.criteria-radio[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.reward-points-button[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n border: none;\n}\n\n.reward-points-button-alt[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n border-color: #a42138;\n width: auto;\n}\n\n.rewards-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: whitesmoke;\n padding: 10px 20px 10px 20px;\n border-radius: 5px;\n margin-top: 20px;\n}\n\n.assign-users-buttons[_ngcontent-%COMP%] {\n margin-top: 35px;\n}\n\n.borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n border: none;\n}\n\n.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.selected-list[_ngcontent-%COMP%] {\n margin-top: 0px;\n}\n\n.text-theme[_ngcontent-%COMP%] {\n color: #a42138;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvZ2FtaWZpY2F0aW9uL2NoYWxsZW5nZXMvY2hhbGxlbmdlcy1vdmVydmlldy92aWV3LWNoYWxsYW5nZXMvdmlldy1jaGFsbGFuZ2VzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsZUFBQTtBQUNGOztBQUVBO0VBQ0UsZ0JBQUE7QUFDRjs7QUFDQTtFQUNFLHlCQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLHVCQUFBO0VBQ0EsWUFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSx3QkFBQTtFQUNBLHFCQUFBO0VBQ0EsMEJBQUE7RUFDQSxlQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtBQUVGOztBQUFBO0VBQ0UscUJBQUE7QUFHRjs7QUFEQTtFQUNFLGFBQUE7RUFDQSxxQ0FBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7QUFJRjs7QUFGQTtFQUNFLFlBQUE7QUFLRjs7QUFFQTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtBQUNGOztBQUVBO0VBQ0UsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUNGOztBQUVBO0VBQ0UsYUFBQTtBQUNGOztBQUVBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxZQUFBO0FBQ0Y7O0FBRUE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFdBQUE7QUFDRjs7QUFFQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtFQUNBLHFCQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUVBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUNGOztBQUVBO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0EsdUJBQUE7RUFDQSxZQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTtFQUNBLHdCQUFBO0VBQ0EscUJBQUE7RUFDQSwwQkFBQTtFQUNBLGVBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0VBQ0EsWUFBQTtBQUNGOztBQUVBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0VBQ0EscUJBQUE7RUFDQSxXQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtFQUNBLGlCQUFBO0VBQ0EsNEJBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxnQkFBQTtBQUNGOztBQUNBOztFQUVFLFlBQUE7QUFFRjs7QUFBQTs7RUFFRSxVQUFBO0FBR0Y7O0FBQUE7RUFDRSxlQUFBO0FBR0Y7O0FBQUE7RUFDRSxjQUFBO0FBR0Y7O0FBQUE7RUFDRSxnQkFBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBR0Y7O0FBREU7RUFDRSxrQkFBQTtBQUdKOztBQUFFO0VBQ0UsZUFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0FBRUoiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9nYW1pZmljYXRpb24vY2hhbGxlbmdlcy9jaGFsbGVuZ2VzLW92ZXJ2aWV3L3ZpZXctY2hhbGxhbmdlcy92aWV3LWNoYWxsYW5nZXMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubWF0LXN0ZXBwZXItaG9yaXpvbnRhbCB7XG4gIG1hcmdpbi10b3A6IDhweDtcbn1cblxuLm1hdC1mb3JtLWZpZWxkIHtcbiAgbWFyZ2luLXRvcDogMTZweDtcbn1cbi50ZXh0LWl0ZW1zIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBsaW5lLWhlaWdodDogMjtcbiAgLyogbWFyZ2luLXJpZ2h0OiAycHg7ICovXG4gIGNvbG9yOiB3aGl0ZTtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTtcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBwYWRkaW5nOiAwLjJlbSAwLjZlbSAwLjNlbTtcbiAgbWFyZ2luOiA1cHggNXB4O1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHBhZGRpbmctcmlnaHQ6IDMzcHg7XG59XG51bCB7XG4gIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbn1cbi5wYXJlbnQge1xuICBkaXNwbGF5OiBncmlkO1xuICBncmlkLXRlbXBsYXRlLWNvbHVtbnM6IHJlcGVhdCg0LCAxZnIpO1xuICBncmlkLWNvbHVtbi1nYXA6IDEwcHg7XG4gIGdyaWQtcm93LWdhcDogMTBweDtcbn1cbi5jaGlsZCB7XG4gIGhlaWdodDogMjBweDtcbn1cblxuLy8gc2VsZWN0e1xuLy8gICBoZWlnaHQ6IDMwcHg7XG4vLyB9XG5cbi5jcml0ZXJpYS1zb3VyY2Uge1xuICBjb2xvcjogI2E0MjEzODtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbn1cblxuLmNyaXRlcmlhLXN1YnRleHQge1xuICBtYXJnaW4tYm90dG9tOiAxcmVtO1xuICBjb2xvcjogYmxhY2s7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG59XG5cbi5jcml0ZXJpYS1zb3VyY2UtcmFkaW8ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5mbGV4LWRpcmVjdGlvbiB7XG4gIGRpc3BsYXk6IGZsZXg7XG59XG5cbi5idG4tc2F2ZSB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzM3YWI3O1xuICBib3JkZXItY29sb3I6ICMyZTZkYTQ7XG4gIHdpZHRoOiAxMDBweDtcbn1cblxuLmJ0bi1kYW5nZXIge1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Q5NTM0ZjtcbiAgYm9yZGVyLWNvbG9yOiAjZDQzZjNhO1xuICB3aWR0aDogYXV0bztcbn1cblxuLmJ0bi1zdWNjZXNzIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICM1Y2I4NWM7XG4gIGJvcmRlci1jb2xvcjogIzRjYWU0YztcbiAgd2lkdGg6IGF1dG87XG59XG5cbi5idG4td2FybmluZyB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjBhZDRlO1xuICBib3JkZXItY29sb3I6ICNlZWEyMzY7XG4gIHdpZHRoOiBhdXRvO1xufVxuXG4uY2hhbm5lbHMtc2VjdGlvbiB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgbGVmdDogLTIwcHg7XG59XG5cbi5jcml0ZXJpYS1yYWRpbyB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuLnJld2FyZC1wb2ludHMtYnV0dG9uIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBsaW5lLWhlaWdodDogMjtcbiAgLyogbWFyZ2luLXJpZ2h0OiAycHg7ICovXG4gIGNvbG9yOiB3aGl0ZTtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTtcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBwYWRkaW5nOiAwLjJlbSAwLjZlbSAwLjNlbTtcbiAgbWFyZ2luOiA1cHggNXB4O1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHBhZGRpbmctcmlnaHQ6IDMzcHg7XG4gIGJvcmRlcjogbm9uZTtcbn1cblxuLnJld2FyZC1wb2ludHMtYnV0dG9uLWFsdCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xuICBib3JkZXItY29sb3I6ICNhNDIxMzg7XG4gIHdpZHRoOiBhdXRvO1xufVxuXG4ucmV3YXJkcy1oZWFkaW5nIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6IHdoaXRlc21va2U7XG4gIHBhZGRpbmc6IDEwcHggMjBweCAxMHB4IDIwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgbWFyZ2luLXRvcDogMjBweDtcbn1cblxuLmFzc2lnbi11c2Vycy1idXR0b25zIHtcbiAgbWFyZ2luLXRvcDogMzVweDtcbn1cbi5ib3JkZXJsZXNzIHRkLFxuLmJvcmRlcmxlc3MgdGgge1xuICBib3JkZXI6IG5vbmU7XG59XG4udGFibGUgdGgsXG4udGFibGUgdGQge1xuICBwYWRkaW5nOiAwO1xufVxuXG4uc2VsZWN0ZWQtbGlzdCB7XG4gIG1hcmdpbi10b3A6IDBweDtcbn1cblxuLnRleHQtdGhlbWUge1xuICBjb2xvcjogI2E0MjEzODtcbn1cblxuLmxhYmVscyB7XG4gIHBhZGRpbmc6IDZweCA4cHg7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xuICBmb250LXNpemU6IDE0cHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gIC50ZXh0IHtcbiAgICBtYXJnaW4tYm90dG9tOiAycHg7XG4gIH1cblxuICAuYnRuLWNsb3NlIHtcbiAgICBmb250LXNpemU6IDE2cHg7XG4gICAgcGFkZGluZzogMnB4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewChallangesComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'view-challanges',
templateUrl: './view-challanges.component.html',
styleUrls: ['./view-challanges.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__["GamificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }]; }, { challangesId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], challangesData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "jrlu":
/*!***********************************************************!*\
!*** ./src/app/shared/dynamic-fields/fields/text-area.ts ***!
\***********************************************************/
/*! exports provided: TextAreaComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextAreaComponent", function() { return TextAreaComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
// text,email,tel,textarea,password,
class TextAreaComponent {
constructor() {
this.field = {};
}
get isValid() { return this.form.valid; }
get isDirty() { return this.form.dirty; }
}
TextAreaComponent.ɵfac = function TextAreaComponent_Factory(t) { return new (t || TextAreaComponent)(); };
TextAreaComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TextAreaComponent, selectors: [["textarea"]], inputs: { field: "field", form: "form" }, decls: 1, vars: 6, consts: [["rows", "9", 1, "form-control", 3, "formControl", "id", "placeholder"]], template: function TextAreaComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "textarea", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("is-invalid", ctx.isDirty && !ctx.isValid);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControl", ctx.form)("id", ctx.field.name)("placeholder", ctx.field.placeholder);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.field.disabled ? ctx.field.disabled : null);
} }, directives: [TextAreaComponent, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlDirective"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TextAreaComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'textarea',
template: `
`
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "k7Iq":
/*!*****************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/timesheet/timesheet.component.ts ***!
\*****************************************************************************************/
/*! exports provided: TimesheetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimesheetComponent", function() { return TimesheetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _timesheet_overview_timesheet_overview_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./timesheet-overview/timesheet-overview.component */ "BB5t");
/* harmony import */ var _attendance_attendance_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./attendance/attendance.component */ "EFB0");
/* harmony import */ var _timesheet_data_timesheet_data_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./timesheet-data/timesheet-data.component */ "up7o");
/* harmony import */ var _timesheet_lookup_timesheet_lookup_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./timesheet-lookup/timesheet-lookup.component */ "qllb");
const _c0 = ["sidemenu"];
function TimesheetComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function TimesheetComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r3.planBuId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "button", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetComponent_div_0_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.viewClicked(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.buForShift)("loading", ctx_r0.buLoader)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.planBuId);
} }
function TimesheetComponent_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-timesheet-overview", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("onButtonClick", function TimesheetComponent_div_1_ng_template_6_Template_app_timesheet_overview_onButtonClick_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r11.onButtonClick($event); })("onUserData", function TimesheetComponent_div_1_ng_template_6_Template_app_timesheet_overview_onUserData_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r13.qrColin($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("refresh", ctx_r7.refreshNum)("businessUnitId", ctx_r7.businessUnitId)("dataAttendance", ctx_r7.dataAttendance);
} }
function TimesheetComponent_div_1_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-attendance", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ChangeTabId", function TimesheetComponent_div_1_ng_template_10_Template_app_attendance_ChangeTabId_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r14.changeActiveTab($event); })("onButtonClick", function TimesheetComponent_div_1_ng_template_10_Template_app_attendance_onButtonClick_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r16.onButtonClick($event); })("onUserData", function TimesheetComponent_div_1_ng_template_10_Template_app_attendance_onUserData_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r17.qrColin($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("businessUnitId", ctx_r8.businessUnitId)("dataAttendance", ctx_r8.dataAttendance);
} }
function TimesheetComponent_div_1_ng_template_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-timesheet-data", 24);
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("refresh", ctx_r9.refreshNum)("businessUnitId", ctx_r9.businessUnitId);
} }
function TimesheetComponent_div_1_ng_template_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-timesheet-lookup", 24);
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("refresh", ctx_r10.refreshNum)("businessUnitId", ctx_r10.businessUnitId);
} }
function TimesheetComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 13, 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function TimesheetComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "DASHBOARD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, TimesheetComponent_div_1_ng_template_6_Template, 1, 3, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "ATTENDANCE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, TimesheetComponent_div_1_ng_template_10_Template, 1, 2, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "TIMESHEET");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, TimesheetComponent_div_1_ng_template_14_Template, 1, 2, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "HISTORICAL TIMESHEET LOOKUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, TimesheetComponent_div_1_ng_template_18_Template, 1, 2, "ng-template", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "li", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "button", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetComponent_div_1_Template_button_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.refreshPage(ctx_r20.activeId); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " REFRESH ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2)("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r6);
} }
class TimesheetComponent {
constructor(route, router, renderer, setupService, toastr) {
this.route = route;
this.router = router;
this.renderer = renderer;
this.setupService = setupService;
this.toastr = toastr;
this.refreshNum = 0;
this.buLoader = true;
this.router.routeReuseStrategy.shouldReuseRoute = function () {
return false;
};
this.router.onSameUrlNavigation = 'reload';
this.routeSub = this.route.data.subscribe((val) => {
this.isView = val.isView;
});
this.buParameters = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
}
ngOnInit() {
this.getAllBuForShift();
this.getTimesheetHist();
}
getAllBuForShift() {
this.buLoader = true;
const buSubscribe = this.setupService
.getAllBuShiftModule()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.buLoader = false;
buSubscribe.unsubscribe();
}))
.subscribe((res) => {
// if (res.success) {
this.buForShift = res.data.businessUnitList;
/* } else {
this.buForShift = [];
}*/
}, (error) => {
this.buForShift = [];
});
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
changeActiveTab($event) {
this.activeId = $event;
}
refreshPage(id) {
this.activeId = id;
this.refreshNum = this.refreshNum + 1;
this.toastr.success('Data Refreshed Successfully', 'Refreshed');
}
viewClicked() {
if (this.planBuId) {
this.buShiftSelectedID = this.planBuId._id;
this.businessUnitId = this.planBuId;
this.isView = true;
}
else {
this.toastr.warning('Please select Business Unit', 'Warning');
}
}
getTimesheetHist() {
this.buShiftSelectedID = this.buShiftSelectedID;
var curr = new Date(); // get current date
var first = curr.getDate() - curr.getDay(); // First day is the day of the month - the day of the week
var last = first + 6; // last day is the first day + 6
var firstday = new Date(curr.setDate(first)).toUTCString();
var lastday = new Date(curr.setDate(last)).toUTCString();
this.historyPayLoad = {
endDate: moment__WEBPACK_IMPORTED_MODULE_1__(lastday).format('YYYY-MM-DD'),
isDefault: false,
startDate: moment__WEBPACK_IMPORTED_MODULE_1__(firstday).format('YYYY-MM-DD'),
};
}
qrColin(e) {
this.dataAttendance = e;
}
onButtonClick(e) {
this.activeId = e;
}
}
TimesheetComponent.ɵfac = function TimesheetComponent_Factory(t) { return new (t || TimesheetComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
TimesheetComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TimesheetComponent, selectors: [["app-timesheet"]], viewQuery: function TimesheetComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
} }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "form-group"], [1, "d-block", "text-center"], ["loadingText", "Please wait data is loading...", "bindLabel", "orgName", "placeholder", "Select/Search Business unit", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelChange"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavItem", "disabled"], [1, "align-self-center", "flex-grow-1", "pr-2"], [1, "btn", "btn-primary", "pull-right", 3, "click"], [3, "ngbNavOutlet"], [3, "refresh", "businessUnitId", "dataAttendance", "onButtonClick", "onUserData"], [3, "businessUnitId", "dataAttendance", "ChangeTabId", "onButtonClick", "onUserData"], [3, "refresh", "businessUnitId"]], template: function TimesheetComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, TimesheetComponent_div_0_Template, 14, 6, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TimesheetComponent_div_1_Template, 23, 7, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbNavOutlet"], _timesheet_overview_timesheet_overview_component__WEBPACK_IMPORTED_MODULE_11__["TimesheetOverviewComponent"], _attendance_attendance_component__WEBPACK_IMPORTED_MODULE_12__["AttendanceComponent"], _timesheet_data_timesheet_data_component__WEBPACK_IMPORTED_MODULE_13__["TimesheetDataComponent"], _timesheet_lookup_timesheet_lookup_component__WEBPACK_IMPORTED_MODULE_14__["TimesheetLookupComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3RpbWVzaGVldC90aW1lc2hlZXQuY29tcG9uZW50LnNjc3MifQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TimesheetComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-timesheet',
templateUrl: './timesheet.component.html',
styleUrls: ['./timesheet.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["ActivatedRoute"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_3__["Router"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sidemenu']
}] }); })();
/***/ }),
/***/ "kC6w":
/*!******************************************************************************!*\
!*** ./src/app/users/pages/communication/news&events-logs/logs.component.ts ***!
\******************************************************************************/
/*! exports provided: LogsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LogsComponent", function() { return LogsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _post_logs_post_logs_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./post-logs/post-logs.component */ "P9lB");
function LogsComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-post-logs");
} }
class LogsComponent {
constructor() { }
ngOnInit() {
}
}
LogsComponent.ɵfac = function LogsComponent_Factory(t) { return new (t || LogsComponent)(); };
LogsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LogsComponent, selectors: [["app-logs"]], decls: 6, vars: 2, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavContent", ""], [3, "ngbNavOutlet"]], template: function LogsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, LogsComponent_ng_template_4_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _post_logs_post_logs_component__WEBPACK_IMPORTED_MODULE_2__["PostLogsComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9uZXdzJmV2ZW50cy1sb2dzL2xvZ3MuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxzQkFBQTtBQUNGO0FBQUU7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFFSjtBQUFJO0VBQ0UsY0FBQTtBQUVOO0FBQ0k7RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBQ04iLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jb21tdW5pY2F0aW9uL25ld3MmZXZlbnRzLWxvZ3MvbG9ncy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXYtdGFicyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC5uYXYtbGluayB7XG4gICAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgIHRyYW5zaXRpb246IGNvbG9yIDAuMnM7XG4gICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LogsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-logs',
templateUrl: './logs.component.html',
styleUrls: ['./logs.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "kSlf":
/*!********************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/question-builder/question-builder.component.ts ***!
\********************************************************************************************/
/*! exports provided: QuestionBuilderComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionBuilderComponent", function() { return QuestionBuilderComponent; });
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _overview_overview_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./overview/overview.component */ "vF8B");
/* harmony import */ var _create_edit_module_create_edit_module_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./create-edit-module/create-edit-module.component */ "6Sck");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
const _c0 = ["createModule"];
function QuestionBuilderComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-question-builder-overview", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("overViewEvent", function QuestionBuilderComponent_ng_template_6_Template_app_question_builder_overview_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r6.overViewEvent($event); })("editModuleEvent", function QuestionBuilderComponent_ng_template_6_Template_app_question_builder_overview_editModuleEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r8.EditModule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function QuestionBuilderComponent_li_7_3_ng_template_0_Template(rf, ctx) { if (rf & 1) {
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "create-edit-module", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("overViewEvent", function QuestionBuilderComponent_li_7_3_ng_template_0_Template_create_edit_module_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r11.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("moduleId", ctx_r10.moduleID);
} }
function QuestionBuilderComponent_li_7_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, QuestionBuilderComponent_li_7_3_ng_template_0_Template, 1, 1, "ng-template", 5);
} }
function QuestionBuilderComponent_li_7_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuestionBuilderComponent_li_7_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return !ctx_r13.isEdited && ctx_r13.createModulePopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "CREATE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, QuestionBuilderComponent_li_7_3_Template, 1, 0, undefined, 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isEdited);
} }
function QuestionBuilderComponent_li_8_ng_template_3_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "create-edit-module", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("overViewEvent", function QuestionBuilderComponent_li_8_ng_template_3_Template_create_edit_module_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r16.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("moduleId", ctx_r15.moduleID);
} }
function QuestionBuilderComponent_li_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "EDIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, QuestionBuilderComponent_li_8_ng_template_3_Template, 1, 1, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 3);
} }
function QuestionBuilderComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "CREATE MODULE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "form", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "label", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "Module Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "input", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "input", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, " Is Default Section ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuestionBuilderComponent_ng_template_10_Template_button_click_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.onCreateModule(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function QuestionBuilderComponent_ng_template_10_Template_button_click_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.closePopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r5.createModuleForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r5.createModuleForm.valid);
} }
class QuestionBuilderComponent {
constructor(modalService, formBuilder, ref, centralBuilderService, toastService) {
this.modalService = modalService;
this.formBuilder = formBuilder;
this.ref = ref;
this.centralBuilderService = centralBuilderService;
this.toastService = toastService;
this.activeId = 1;
this.isEdited = false;
this.editModuleEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
}
ngOnInit() {
this.createModuleFormInit();
}
ngAfterContentChecked() {
this.ref.detectChanges();
}
overViewEvent(value) {
this.moduleID = value;
this.isEdited = false;
this.activeId = 1;
}
EditModule(value) {
this.moduleID = value;
this.isEdited = true;
this.activeId = 3;
}
createModuleFormInit() {
this.createModuleForm = this.formBuilder.group({
moduleName: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].pattern('[a-zA-Z0-9_]+.*$')]],
isDefault: [true, _angular_forms__WEBPACK_IMPORTED_MODULE_0__["Validators"].required],
});
}
createModulePopup() {
this.modalService.open(this.createModule);
}
// enableDefaultSection(val){
// console.log(val);
// this.createModuleForm.patchValue({
// isDefaultSection: val,
// });
// }
onCreateModule() {
if (!this.createModuleForm.valid) {
return;
}
this.centralBuilderService.createModules(this.createModuleForm.value).subscribe((res) => {
this.isEdited = true;
this.createModuleFormInit();
this.modalService.dismissAll();
this.activeId = 3;
this.moduleID = res.message.moduleId._id;
this.onEditModule(this.moduleID);
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
onEditModule(id) {
this.editModuleEvent.emit(id);
}
closePopup() {
this.modalService.dismissAll();
this.activeId = 1;
}
}
QuestionBuilderComponent.ɵfac = function QuestionBuilderComponent_Factory(t) { return new (t || QuestionBuilderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_3__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"])); };
QuestionBuilderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: QuestionBuilderComponent, selectors: [["app-question-builder"]], viewQuery: function QuestionBuilderComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.createModule = _t.first);
} }, outputs: { editModuleEvent: "editModuleEvent" }, decls: 12, vars: 5, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavItem", "click", 4, "ngIf"], [3, "ngbNavItem", 4, "ngIf"], [3, "ngbNavOutlet"], ["createModule", ""], [3, "overViewEvent", "editModuleEvent"], [3, "ngbNavItem", "click"], [4, "ngIf"], [3, "moduleId", "overViewEvent"], [1, "modal-content"], [1, "modal-body", 2, "padding", "0px"], [1, "card", "w-100"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "row"], [1, "col-md-6", "col-lg-6"], [3, "formGroup"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], ["type", "text", "placeholder", "Module Name", "formControlName", "moduleName", "maxlength", "100", 1, "form-control"], [1, "p-1"], ["type", "checkbox", "formControlName", "isDefault", "id", "defaultSection"], ["for", "defaultSection", 1, "ml-3"], [1, "col-md-12"], [1, "pull-right"], [1, "btn", "btn-add", "m-1", 3, "disabled", "click"], [1, "btn", "btn-clear", "m-1", 3, "click"]], template: function QuestionBuilderComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("activeIdChange", function QuestionBuilderComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, QuestionBuilderComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, QuestionBuilderComponent_li_7_Template, 4, 2, "li", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, QuestionBuilderComponent_li_8_Template, 4, 1, "li", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, QuestionBuilderComponent_ng_template_10_Template, 26, 2, "ng-template", null, 9, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbNavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbNavOutlet"], _overview_overview_component__WEBPACK_IMPORTED_MODULE_6__["OverviewComponent"], _create_edit_module_create_edit_module_component__WEBPACK_IMPORTED_MODULE_7__["CreateEditModuleComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_0__["CheckboxControlValueAccessor"]], styles: ["a.list-group-item[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n border: 1px dotted #cccccc;\n cursor: pointer;\n color: #555;\n}\n\na[_ngcontent-%COMP%] {\n text-decoration: none;\n}\n\na.list-group-item[_ngcontent-%COMP%]:hover {\n background-color: #e2e2e2;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL3F1ZXN0aW9uLWJ1aWxkZXIvcXVlc3Rpb24tYnVpbGRlci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLG1CQUFBO0VBQ0EsMEJBQUE7RUFDQSxlQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUNBO0VBQ0UscUJBQUE7QUFFRjs7QUFBQTtFQUNFLHlCQUFBO0FBR0Y7O0FBQUE7RUFDRSxzQkFBQTtBQUdGOztBQUZFO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0FBSUo7O0FBRkk7RUFDRSxjQUFBO0FBSU47O0FBREk7RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBR04iLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jZW50cmFsLWJ1aWxkZXIvcXVlc3Rpb24tYnVpbGRlci9xdWVzdGlvbi1idWlsZGVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiYS5saXN0LWdyb3VwLWl0ZW0ge1xuICBtYXJnaW4tYm90dG9tOiAxcmVtO1xuICBib3JkZXI6IDFweCBkb3R0ZWQgcmdiKDIwNCwgMjA0LCAyMDQpO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGNvbG9yOiAjNTU1O1xufVxuYSB7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbn1cbmEubGlzdC1ncm91cC1pdGVtOmhvdmVye1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2IoMjI2LCAyMjYsIDIyNik7XG59XG5cbi5uYXYtdGFicyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC5uYXYtbGluayB7XG4gICAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgIHRyYW5zaXRpb246IGNvbG9yIDAuMnM7XG4gICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](QuestionBuilderComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-question-builder',
templateUrl: './question-builder.component.html',
styleUrls: ['./question-builder.component.scss']
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_2__["NgbModal"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_0__["FormBuilder"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_3__["CentralBuilderService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }]; }, { createModule: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['createModule', { static: true }]
}], editModuleEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "kjr7":
/*!********************************************************************!*\
!*** ./src/app/shared/angular-date-time-picker/date-time.model.ts ***!
\********************************************************************/
/*! exports provided: DateTimeModel */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DateTimeModel", function() { return DateTimeModel; });
class DateTimeModel {
constructor(init) {
Object.assign(this, init);
}
static fromLocalString(dateString) {
const date = new Date(dateString);
const isValidDate = !isNaN(date.valueOf());
if (!dateString || !isValidDate) {
return null;
}
return new DateTimeModel({
year: date.getFullYear(),
month: date.getMonth() + 1,
day: date.getDate(),
hour: date.getHours(),
minute: date.getMinutes(),
second: date.getSeconds(),
timeZoneOffset: date.getTimezoneOffset()
});
}
isInteger(value) {
return (typeof value === "number" &&
isFinite(value) &&
Math.floor(value) === value);
}
toString() {
if (this.isInteger(this.year) &&
this.isInteger(this.month) &&
this.isInteger(this.day)) {
const year = this.year.toString().padStart(2, "0");
const month = this.month.toString().padStart(2, "0");
const day = this.day.toString().padStart(2, "0");
if (!this.hour) {
this.hour = 0;
}
if (!this.minute) {
this.minute = 0;
}
if (!this.second) {
this.second = 0;
}
if (!this.timeZoneOffset) {
this.timeZoneOffset = new Date().getTimezoneOffset();
}
const hour = this.hour.toString().padStart(2, "0");
const minute = this.minute.toString().padStart(2, "0");
const second = this.second.toString().padStart(2, "0");
const tzo = -this.timeZoneOffset;
const dif = tzo >= 0 ? "+" : "-", pad = function (num) {
const norm = Math.floor(Math.abs(num));
return (norm < 10 ? "0" : "") + norm;
};
const isoString = `${pad(year)}-${pad(month)}-${pad(day)}T${pad(hour)}:${pad(minute)}:${pad(second)}${dif}${pad(tzo / 60)}:${pad(tzo % 60)}`;
return isoString;
}
return null;
}
}
/***/ }),
/***/ "l207":
/*!******************************!*\
!*** ./src/app/constants.ts ***!
\******************************/
/*! exports provided: LOADING_MESSAGE, EMAIL_PATTERN, DEFAULT_SERVICE_VIEW_WEEKS, DEFAULT_MIN_LIST, DEFAULT_HOUR_LIST, VIEW_WEEKS, TIME_SLOTS, DAYS_OF_WEEK, SKELETON_LOADER_THEME */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOADING_MESSAGE", function() { return LOADING_MESSAGE; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EMAIL_PATTERN", function() { return EMAIL_PATTERN; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_SERVICE_VIEW_WEEKS", function() { return DEFAULT_SERVICE_VIEW_WEEKS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MIN_LIST", function() { return DEFAULT_MIN_LIST; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_HOUR_LIST", function() { return DEFAULT_HOUR_LIST; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VIEW_WEEKS", function() { return VIEW_WEEKS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TIME_SLOTS", function() { return TIME_SLOTS; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DAYS_OF_WEEK", function() { return DAYS_OF_WEEK; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SKELETON_LOADER_THEME", function() { return SKELETON_LOADER_THEME; });
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);
const LOADING_MESSAGE = 'Please wait, Data is Processing ...';
const EMAIL_PATTERN = '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$';
const DEFAULT_SERVICE_VIEW_WEEKS = 10;
const DEFAULT_MIN_LIST = [0, 15, 30, 45];
const DEFAULT_HOUR_LIST = Array.from({ length: 25 }, (_, i) => i);
const VIEW_WEEKS = Array.from({ length: 10 }, (_, i) => i + 1);
const TIME_SLOTS = Array.from({ length: 96 }, (_, i) => moment__WEBPACK_IMPORTED_MODULE_0__({ hour: Math.floor(i / 4), minute: (i % 4) * 15 }).format('HH:mm'));
const DAYS_OF_WEEK = [
{ index: 0, name: 'M' },
{ index: 1, name: 'T' },
{ index: 2, name: 'W' },
{ index: 3, name: 'T' },
{ index: 4, name: 'F' },
{ index: 5, name: 'S' },
{ index: 6, name: 'S' },
];
const SKELETON_LOADER_THEME = {
width: 'calc(100% - 20px)',
'border-radius': '6px',
height: '44px',
margin: '10px',
display: 'block',
};
/***/ }),
/***/ "lBFU":
/*!**********************************************************************!*\
!*** ./src/app/users/service/company-setup/company-setup.service.ts ***!
\**********************************************************************/
/*! exports provided: CompanySetupService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompanySetupService", function() { return CompanySetupService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class CompanySetupService {
constructor(http, storageService) {
this.http = http;
this.storageService = storageService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].baseUrl;
this.companyId = this.storageService.getByKey('companyId');
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
uploadFile(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http.post(`${this.baseUrl}/upload/`, formData);
}
getcompanySetting() {
return this.http.get(`${this.baseUrl}/pageSetting/read/`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(res => res));
}
getPasswordSetting() {
return this.http.get(`${this.baseUrl}/login/getCompany/sats`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(res => res));
}
updateCompanySettings(data) {
return this.http.post(`${this.baseUrl}/pageSetting/update`, data, { headers: this.Headers })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updatePasswordSettings(data) {
return this.http.post(`${this.baseUrl}/pageSetting/updatePwdManage`, data, { headers: this.Headers })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
changePassword(data) {
return this.http.post(`${this.baseUrl}/user/resetPasswordFromProfile/`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updatePointSettings(id, data) {
return this.http.put(`${this.baseUrl}/page-setting/company-setting/${id}`, data, {
headers: this.Headers
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getMyPageDropDowns() {
return this.http.get(`${this.baseUrl}/wall/getCompanyWalls`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(res => res));
}
getPageSettings(companyName) {
return this.http.get(`${this.baseUrl}/login/getCompany/${companyName}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])(res => res));
}
}
CompanySetupService.ɵfac = function CompanySetupService_Factory(t) { return new (t || CompanySetupService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_4__["StorageService"])); };
CompanySetupService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: CompanySetupService, factory: CompanySetupService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CompanySetupService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_4__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "lGV6":
/*!*************************************************************!*\
!*** ./src/app/users/service/user-service/users.service.ts ***!
\*************************************************************/
/*! exports provided: UsersService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersService", function() { return UsersService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var _core_utils_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../core/utils/helper */ "MZth");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs */ "qCKp");
class UsersService {
constructor(http) {
this.http = http;
this.userProfileImage$ = new rxjs__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"]("");
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getUsersBasedOnBussinesUnit(data) {
return this.http
.post(`${this.baseUrl}/companyuser/readUserByBU`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllUsers(data) {
return this.http
.get(`${this.baseUrl}/user/?${Object(_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAllViewUsers(data) {
return this.http
.get(`${this.baseUrl}/companyuser/editList?${Object(_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getLockedUser(params) {
return this.http
.get(`${this.baseUrl}/companyUser/lockedAccounts?${Object(_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["queryParam"])(params)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getOneUser(data) {
return this.http
.post(`${this.baseUrl}/companyuser/read`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateUser(data) {
return this.http.post(`${this.baseUrl}/companyuser/update`, data, {
headers: this.Headers,
});
}
getAppoinments(data) {
return this.http
.get(`${this.baseUrl}/appointment/?${Object(_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAppoinmentsWithoutPagination(data) {
return this.http
.post(`${this.baseUrl}/appointment/fromuser?search=&`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSkillSet(data) {
return this.http
.get(`${this.baseUrl}/skillset/?${Object(_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getAssignLeave() {
return this.http
.get(`${this.baseUrl}/leaveGroup/get`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getTransportBu() {
return this.http
.get(`${this.baseUrl}/subsection/transportbu`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createAppoinment(data) {
return this.http
.post(`${this.baseUrl}/appointment/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getUserbasedOnUserType(staffId) {
return this.http
.get(`${this.baseUrl}/resetPass/getUserData/${staffId}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getUserProfile() {
return this.http
.get(`${this.baseUrl}/user/read/`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
setUserProfileData(data) {
this.profileData = data;
}
getuserProfileData() {
return this.profileData;
}
getRestPassword(data) {
return this.http
.get(`${this.baseUrl}/resetPass/getResetPasswordLog?${Object(_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateResetPassword(data) {
return this.http
.post(`${this.baseUrl}/resetPass/updatePassword`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createUser(data) {
return this.http
.post(`${this.baseUrl}/companyuser/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateAppoinment(data) {
return this.http
.post(`${this.baseUrl}/appointment/update`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateUserProfile(data) {
return this.http
.put(`${this.baseUrl}/user/profile/`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
unLockUser(data) {
return this.http
.post(`${this.baseUrl}/companyUser/active`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createBulkUser(fileToUpload) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
return this.http.post(`${this.baseUrl}/companyUser/uploadBulkUsers`, formData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getUserData(data) {
return this.http
.get(`${this.baseUrl}/notification/unReadNotifications/?${Object(_core_utils_helper__WEBPACK_IMPORTED_MODULE_4__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteAppoinment(data) {
return this.http
.post(`${this.baseUrl}/appointment/delete`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createLeaveType(data) {
return this.http
.post(`${this.baseUrl}/leavetype/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getLeaveType() {
return this.http
.get(`${this.baseUrl}/leaveType/get`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateLeaveType(updatePayload) {
return this.http
.post(`${this.baseUrl}/leaveType/update`, updatePayload, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteLeaveType(leaveId) {
return this.http
.post(`${this.baseUrl}/leaveType/delete`, leaveId, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getLeaveGroup() {
return this.http
.get(`${this.baseUrl}/leaveGroup/get`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createLeaveGroup(data) {
return this.http
.post(`${this.baseUrl}/leaveGroup/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateLeaveGroup(updateRequest) {
return this.http
.post(`${this.baseUrl}/leaveGroup/update`, updateRequest, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteLeaveGroup(deleteRequest) {
return this.http
.post(`${this.baseUrl}/leaveGroup/delete`, deleteRequest, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createFacialId(data) {
return this.http
.post(`${this.baseUrl}/facial/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getFacialList(id) {
return this.http
.get(`${this.baseUrl}/facial/list/${id}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getUserImage(id) {
return this.http
.get(`${this.baseUrl}/timesheet/userimage/${id}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
//method to set profile image observable
setProfileImage(val) {
this.userProfileImage$.next(val);
}
getPrivilege() {
return this.http
.get(`${this.baseUrl}/companyuser/checkWithRole?getPriv=true`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getQuestionDetails(data) {
return this.http
.post(`${this.baseUrl}/external/readExternalData`, data, {})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
UsersService.ɵfac = function UsersService_Factory(t) { return new (t || UsersService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
UsersService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: UsersService, factory: UsersService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UsersService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "lfFo":
/*!***********************************************************!*\
!*** ./src/app/users/layout/sidebar/sidebar.component.ts ***!
\***********************************************************/
/*! exports provided: SidebarComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SidebarComponent", function() { return SidebarComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../service/user-roles/role.service */ "nL9/");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../service/auth/auth.service */ "PxIJ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function SidebarComponent_li_2_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_2_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](4); return _r1.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " SYSTEM SETTINGS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx_r0.systemSettingCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r0.systemSettingCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
} }
const _c0 = function () { return { exact: true }; };
const _c1 = function () { return ["company-setup"]; };
function SidebarComponent_li_5_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_5_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r37.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "COMPANY SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c1));
} }
const _c2 = function () { return ["/users/bu-unit"]; };
function SidebarComponent_li_6_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_6_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r40); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r39.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c2));
} }
const _c3 = function () { return ["user-roles"]; };
function SidebarComponent_li_7_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_7_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r42); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r41.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "USER ROLES");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c3));
} }
const _c4 = function () { return ["custom-fields"]; };
function SidebarComponent_li_8_Template(rf, ctx) { if (rf & 1) {
const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_8_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r44); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r43.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "CUSTOM FIELDS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c4));
} }
const _c5 = function () { return ["integration-logs"]; };
function SidebarComponent_li_9_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_9_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r45.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "INTEGRATION LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c5));
} }
function SidebarComponent_li_10_Template(rf, ctx) { if (rf & 1) {
const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_10_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](12); return _r8.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " ADMIN ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx_r7.adminCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r7.adminCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
} }
const _c6 = function () { return ["view-users"]; };
function SidebarComponent_ng_container_13_li_5_Template(rf, ctx) { if (rf & 1) {
const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_13_li_5_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r56); const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r55.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " VIEW USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c6));
} }
const _c7 = function () { return ["create-users"]; };
function SidebarComponent_ng_container_13_li_6_Template(rf, ctx) { if (rf & 1) {
const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_13_li_6_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r58); const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r57.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "CREATE USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c7));
} }
const _c8 = function () { return ["facial-id"]; };
function SidebarComponent_ng_container_13_li_7_Template(rf, ctx) { if (rf & 1) {
const _r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_13_li_7_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r60); const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r59.toggleMenu("/users/facial-id"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "FACIAL ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c8));
} }
const _c9 = function () { return ["ops-group"]; };
function SidebarComponent_ng_container_13_li_8_Template(rf, ctx) { if (rf & 1) {
const _r62 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_13_li_8_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r62); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r61.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "OPS GROUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c9));
} }
const _c10 = function () { return ["lock-account"]; };
function SidebarComponent_ng_container_13_li_9_Template(rf, ctx) { if (rf & 1) {
const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_13_li_9_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r64); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r63.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "LOCKED ACCOUNTS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c10));
} }
const _c11 = function () { return ["rest-password"]; };
function SidebarComponent_ng_container_13_li_10_Template(rf, ctx) { if (rf & 1) {
const _r66 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_13_li_10_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r66); const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r65.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "RESET PASSWORD ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c11));
} }
const _c12 = function () { return ["manage-transport"]; };
function SidebarComponent_ng_container_13_Template(rf, ctx) { if (rf & 1) {
const _r68 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SidebarComponent_ng_container_13_li_5_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SidebarComponent_ng_container_13_li_6_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, SidebarComponent_ng_container_13_li_7_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, SidebarComponent_ng_container_13_li_8_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, SidebarComponent_ng_container_13_li_9_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, SidebarComponent_ng_container_13_li_10_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_13_Template_a_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r68); const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r67.toggleMenu("/users/manage-transport"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "TRANSPORT DATA MANAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.rolesArray == null ? null : ctx_r9.rolesArray.viewUser);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.rolesArray == null ? null : ctx_r9.rolesArray.createUser);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.rolesArray == null ? null : ctx_r9.rolesArray.facialCreation);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.rolesArray == null ? null : ctx_r9.rolesArray.createEditOPSGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.rolesArray == null ? null : ctx_r9.rolesArray.lockedAccount);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.rolesArray == null ? null : ctx_r9.rolesArray.resetPassword);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](8, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](9, _c12));
} }
function SidebarComponent_li_14_Template(rf, ctx) { if (rf & 1) {
const _r70 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_14_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r70); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](16); return _r11.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " GAMIFICATION ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx_r10.gamificationCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r10.gamificationCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
} }
const _c13 = function () { return ["Challenges"]; };
function SidebarComponent_li_17_Template(rf, ctx) { if (rf & 1) {
const _r72 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_17_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r72); const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r71.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "CHALLENGES");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c13));
} }
const _c14 = function () { return ["redemption-list"]; };
function SidebarComponent_li_18_Template(rf, ctx) { if (rf & 1) {
const _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_18_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r74); const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r73.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " REDEMPTION LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c14));
} }
function SidebarComponent_li_19_Template(rf, ctx) { if (rf & 1) {
const _r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_19_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r76); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](21); return _r15.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " OPERATION ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx_r14.operationCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r14.communicationCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
} }
const _c15 = function () { return ["bu-shift-setup"]; };
function SidebarComponent_ng_container_22_li_5_Template(rf, ctx) { if (rf & 1) {
const _r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_22_li_5_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r81); const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r80.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " BU SHIFT SETUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c15));
} }
const _c16 = function () { return ["user-shift-setup"]; };
function SidebarComponent_ng_container_22_li_6_Template(rf, ctx) { if (rf & 1) {
const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_22_li_6_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r83); const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r82.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " USER SHIFT SETUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c16));
} }
const _c17 = function () { return ["shift-scheme"]; };
function SidebarComponent_ng_container_22_li_7_Template(rf, ctx) { if (rf & 1) {
const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_22_li_7_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r85); const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r84.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " SHIFT SCHEME ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c17));
} }
function SidebarComponent_ng_container_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SidebarComponent_ng_container_22_li_5_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SidebarComponent_ng_container_22_li_6_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, SidebarComponent_ng_container_22_li_7_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r16.rolesArray == null ? null : ctx_r16.rolesArray.buShiftSetup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r16.rolesArray == null ? null : ctx_r16.rolesArray.userShiftSetup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r16.rolesArray == null ? null : ctx_r16.rolesArray.schemeSetup);
} }
const _c18 = function () { return ["plan-shift"]; };
function SidebarComponent_ng_container_23_li_5_Template(rf, ctx) { if (rf & 1) {
const _r92 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_23_li_5_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r92); const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r91.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " PLAN SHIFT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c18));
} }
const _c19 = function () { return ["manage-shift"]; };
function SidebarComponent_ng_container_23_li_6_Template(rf, ctx) { if (rf & 1) {
const _r94 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_23_li_6_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r94); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r93.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " MANAGE SHIFT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c19));
} }
const _c20 = function () { return ["view-shift"]; };
function SidebarComponent_ng_container_23_li_7_Template(rf, ctx) { if (rf & 1) {
const _r96 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_23_li_7_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r96); const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r95.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " VIEW SHIFT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c20));
} }
const _c21 = function () { return ["view-booking"]; };
function SidebarComponent_ng_container_23_li_8_Template(rf, ctx) { if (rf & 1) {
const _r98 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_23_li_8_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r98); const ctx_r97 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r97.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " VIEW BOOKING ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c21));
} }
const _c22 = function () { return ["timesheet"]; };
function SidebarComponent_ng_container_23_li_9_Template(rf, ctx) { if (rf & 1) {
const _r100 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_23_li_9_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r100); const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r99.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " TIMESHEET ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c22));
} }
function SidebarComponent_ng_container_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "SHIFT SCHEDULER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SidebarComponent_ng_container_23_li_5_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SidebarComponent_ng_container_23_li_6_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, SidebarComponent_ng_container_23_li_7_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, SidebarComponent_ng_container_23_li_8_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, SidebarComponent_ng_container_23_li_9_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.rolesArray == null ? null : ctx_r17.rolesArray.planShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.rolesArray == null ? null : ctx_r17.rolesArray.adjustShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.rolesArray == null ? null : ctx_r17.rolesArray.viewShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.rolesArray == null ? null : ctx_r17.rolesArray.viewBooking);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.rolesArray == null ? null : ctx_r17.rolesArray.timesheet);
} }
const _c23 = function () { return ["list-of-shift-released"]; };
const _c24 = function () { return ["list-of-booking"]; };
const _c25 = function () { return ["list-of-cancellation"]; };
const _c26 = function () { return ["list-of-users"]; };
function SidebarComponent_ng_container_24_Template(rf, ctx) { if (rf & 1) {
const _r102 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "REPORT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_24_Template_a_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r102); const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r101.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " LIST OF SHIFTS RELEASED ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_24_Template_a_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r102); const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r103.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " LIST OF BOOKING ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_24_Template_a_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r102); const ctx_r104 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r104.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " LIST OF CANCELLATION ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_24_Template_a_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r102); const ctx_r105 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r105.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, " LIST OF USERS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](8, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](9, _c23));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](10, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](11, _c24));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](12, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](13, _c25));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](14, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](15, _c26));
} }
const _c27 = function () { return ["service-setup"]; };
function SidebarComponent_ng_container_25_li_5_Template(rf, ctx) { if (rf & 1) {
const _r110 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_25_li_5_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r110); const ctx_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r109.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " SERVICE SETUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c27));
} }
const _c28 = function () { return ["plan-service"]; };
function SidebarComponent_ng_container_25_li_6_Template(rf, ctx) { if (rf & 1) {
const _r112 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_25_li_6_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r112); const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r111.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " PLAN SERVICE ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c28));
} }
const _c29 = function () { return ["manage-service"]; };
function SidebarComponent_ng_container_25_li_7_Template(rf, ctx) { if (rf & 1) {
const _r114 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_25_li_7_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r114); const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r113.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " MANAGE SERVICE ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c29));
} }
function SidebarComponent_ng_container_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "SERVICES");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SidebarComponent_ng_container_25_li_5_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SidebarComponent_ng_container_25_li_6_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, SidebarComponent_ng_container_25_li_7_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r19.rolesArray == null ? null : ctx_r19.rolesArray.manageServiceSetup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r19.rolesArray == null ? null : ctx_r19.rolesArray.managePlanService);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r19.rolesArray == null ? null : ctx_r19.rolesArray.manageService) || (ctx_r19.rolesArray == null ? null : ctx_r19.rolesArray.viewService));
} }
function SidebarComponent_li_26_Template(rf, ctx) { if (rf & 1) {
const _r116 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_26_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r116); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](28); return _r21.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " HUMAN RESOURCE ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx_r20.humanResourceCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r20.humanResourceCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
} }
const _c30 = function () { return ["leave-scheme"]; };
function SidebarComponent_li_29_Template(rf, ctx) { if (rf & 1) {
const _r118 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_29_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r118); const ctx_r117 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r117.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " LEAVE SCHEME ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c30));
} }
const _c31 = function () { return ["leave-balloting"]; };
function SidebarComponent_li_30_Template(rf, ctx) { if (rf & 1) {
const _r120 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_30_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r120); const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r119.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " LEAVE BALLOTING ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c31));
} }
const _c32 = function () { return ["leave-planner"]; };
function SidebarComponent_li_31_Template(rf, ctx) { if (rf & 1) {
const _r122 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_31_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r122); const ctx_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r121.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " LEAVE PLANNER ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c32));
} }
function SidebarComponent_li_32_Template(rf, ctx) { if (rf & 1) {
const _r124 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_32_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r124); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](34); return _r26.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " COMMUNICATION ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx_r25.communicationCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r25.communicationCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
} }
const _c33 = function () { return ["channel-setup"]; };
function SidebarComponent_ng_container_35_li_5_Template(rf, ctx) { if (rf & 1) {
const _r130 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_35_li_5_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r130); const ctx_r129 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r129.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " CHANNEL SETUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c33));
} }
const _c34 = function () { return ["my-news-and-events"]; };
function SidebarComponent_ng_container_35_li_6_Template(rf, ctx) { if (rf & 1) {
const _r132 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_35_li_6_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r132); const ctx_r131 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r131.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " MY NEWS AND EVENTS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c34));
} }
const _c35 = function () { return ["manage-news"]; };
function SidebarComponent_ng_container_35_li_7_Template(rf, ctx) { if (rf & 1) {
const _r134 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_35_li_7_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r134); const ctx_r133 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r133.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " MANAGE NEWS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c35));
} }
const _c36 = function () { return ["manage-events"]; };
function SidebarComponent_ng_container_35_li_8_Template(rf, ctx) { if (rf & 1) {
const _r136 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_35_li_8_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r136); const ctx_r135 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r135.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " MANAGE EVENTS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c36));
} }
function SidebarComponent_ng_container_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "NEWS AND EVENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SidebarComponent_ng_container_35_li_5_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SidebarComponent_ng_container_35_li_6_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, SidebarComponent_ng_container_35_li_7_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, SidebarComponent_ng_container_35_li_8_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r27.rolesArray == null ? null : ctx_r27.rolesArray.channelSetup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r27.rolesArray == null ? null : ctx_r27.rolesArray.newsAndEvents);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r27.rolesArray == null ? null : ctx_r27.rolesArray.manageNews);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r27.rolesArray == null ? null : ctx_r27.rolesArray.manageEvents);
} }
const _c37 = function () { return ["board-setup"]; };
function SidebarComponent_ng_container_36_li_5_Template(rf, ctx) { if (rf & 1) {
const _r139 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_36_li_5_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r139); const ctx_r138 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r138.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " BOARD SETUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c37));
} }
function SidebarComponent_ng_container_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "BOARDS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SidebarComponent_ng_container_36_li_5_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r28.rolesArray == null ? null : ctx_r28.rolesArray.manageWall);
} }
const _c38 = function () { return ["my-notifications"]; };
function SidebarComponent_ng_container_37_li_5_Template(rf, ctx) { if (rf & 1) {
const _r144 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_37_li_5_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r144); const ctx_r143 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r143.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " MY NOTIFICATIONS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c38));
} }
const _c39 = function () { return ["manage-notification"]; };
function SidebarComponent_ng_container_37_li_6_Template(rf, ctx) { if (rf & 1) {
const _r146 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_37_li_6_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r146); const ctx_r145 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r145.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " MANAGE NOTIFICATIONS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c39));
} }
const _c40 = function () { return ["custom-notification"]; };
function SidebarComponent_ng_container_37_li_7_Template(rf, ctx) { if (rf & 1) {
const _r148 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_ng_container_37_li_7_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r148); const ctx_r147 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r147.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " CUSTOM NOTIFICATION ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c40));
} }
function SidebarComponent_ng_container_37_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "NOTIFICATIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SidebarComponent_ng_container_37_li_5_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SidebarComponent_ng_container_37_li_6_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, SidebarComponent_ng_container_37_li_7_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r29.rolesArray == null ? null : ctx_r29.rolesArray.viewNotification);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r29.rolesArray == null ? null : ctx_r29.rolesArray.inputNotification);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r29.rolesArray == null ? null : ctx_r29.rolesArray.inputNotification);
} }
function SidebarComponent_li_38_Template(rf, ctx) { if (rf & 1) {
const _r150 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_38_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r150); _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](40); return _r31.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " CENTRAL BUILDER ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", !ctx_r30.centralBuilderCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r30.centralBuilderCollapsed ? "fa-angle-double-down" : "fa-angle-double-up");
} }
const _c41 = function () { return ["question-builder"]; };
function SidebarComponent_li_41_Template(rf, ctx) { if (rf & 1) {
const _r152 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_41_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r152); const ctx_r151 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r151.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " QUESTION BUILDER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c41));
} }
const _c42 = function () { return ["forms"]; };
function SidebarComponent_li_42_Template(rf, ctx) { if (rf & 1) {
const _r154 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_42_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r154); const ctx_r153 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r153.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " FORMS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c42));
} }
const _c43 = function () { return ["my-forms"]; };
function SidebarComponent_li_43_Template(rf, ctx) { if (rf & 1) {
const _r156 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SidebarComponent_li_43_Template_a_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r156); const ctx_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r155.toggleMenu(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " MY FORMS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLinkActiveOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](2, _c0));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](3, _c43));
} }
class SidebarComponent {
constructor(roleService, storageService, userService, toastService, authservice, location, router) {
this.roleService = roleService;
this.storageService = storageService;
this.userService = userService;
this.toastService = toastService;
this.authservice = authservice;
this.location = location;
this.router = router;
this.systemSettingCollapsed = false;
this.adminCollapsed = false;
this.operationCollapsed = false;
this.humanResourceCollapsed = false;
this.communicationCollapsed = false;
this.centralBuilderCollapsed = false;
this.gamificationCollapsed = false;
this.toggleSideNav = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.isSideNavOpen = false;
}
ngOnInit() {
this.loadUserPrivilege();
}
toggleMenu(val = "") {
// if (val){
// this.location.back();
// setTimeout(() => {
// this.router.navigateByUrl(val);
// }, 100);
// }
// Optionally trigger the toggle again
setTimeout(() => {
this.isSideNavOpen = !this.isSideNavOpen; // Toggle the state back
this.toggleSideNav.emit(this.isSideNavOpen); // Emit the new state (open)
}, 1000);
this.userService.getPrivilege().subscribe((res) => {
localStorage.setItem('privilegeFlags', JSON.stringify(res.privileges));
this.loadUserPrivilege();
}, (error) => {
if (error.status === 402) {
this.toastService.error(error.error);
localStorage.removeItem('privilegeFlags');
this.authservice.logout();
}
});
}
loadUserPrivilege() {
const data = localStorage.getItem('privilegeFlags');
this.rolesArray = JSON.parse(data);
/*const subscribe = this.roleService
.getUserPrivilege()
.pipe(
finalize(() => {
subscribe.unsubscribe();
})
)
.subscribe((response: any) => {
this.rolesArray = response.data.privilegeFlags;
});*/
}
hasPrivileges(...privileges) {
return privileges.some((privilege) => { var _a; return (_a = this.rolesArray) === null || _a === void 0 ? void 0 : _a[privilege]; });
}
}
SidebarComponent.ɵfac = function SidebarComponent_Factory(t) { return new (t || SidebarComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_1__["RoleService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_2__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_5__["AuthService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_6__["Location"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"])); };
SidebarComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SidebarComponent, selectors: [["admin-sidebar"]], inputs: { activeUrl: "activeUrl", isToggle: "isToggle" }, outputs: { toggleSideNav: "toggleSideNav" }, decls: 44, vars: 35, consts: [[1, "h-100", "scrollbar"], ["class", "heading", "aria-controls", "collapseExample", 3, "click", 4, "ngIf"], [3, "ngbCollapse", "ngbCollapseChange"], ["collapse1", "ngbCollapse"], ["routerLinkActive", "active", 3, "routerLinkActiveOptions", 4, "ngIf"], ["collapse2", "ngbCollapse"], [4, "ngIf"], ["collapse12", "ngbCollapse"], ["collapse3", "ngbCollapse"], ["collapse7", "ngbCollapse"], ["collapse5", "ngbCollapse"], ["class", "heading", 3, "click", 4, "ngIf"], ["collapse6", "ngbCollapse"], ["aria-controls", "collapseExample", 1, "heading", 3, "click"], ["aria-hidden", "true", 1, "fa", 3, "ngClass"], ["routerLinkActive", "active", 3, "routerLinkActiveOptions"], [1, "", 3, "routerLink", "click"], ["aria-hidden", "true", 1, "fa", "fa-user-circle", "ml-3", "fa-lg"], [1, "ml-3"], ["aria-hidden", "true", 1, "fa", "fa-cogs", "ml-3", "fa-lg"], ["aria-hidden", "true", 1, "fa", "fa-clock-o", "ml-3", "fa-lg"], ["aria-hidden", "true", 1, "fa", "fa-user-circle-o", "ml-3", "fa-lg"], ["aria-hidden", "true", 1, "fa", "fa-wrench", "ml-3", "fa-lg"], ["aria-hidden", "true", 1, "fa", "fa-newspaper-o", "ml-3", "fa-lg"], ["aria-hidden", "true", 1, "fa", "fa-th-large", "ml-3", "fa-lg"], ["aria-hidden", "true", 1, "fa", "fa-bell", "ml-3", "fa-lg"], [1, "heading", 3, "click"]], template: function SidebarComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "aside", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, SidebarComponent_li_2_Template, 3, 2, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function SidebarComponent_Template_div_ngbCollapseChange_3_listener($event) { return ctx.systemSettingCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, SidebarComponent_li_5_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SidebarComponent_li_6_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, SidebarComponent_li_7_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, SidebarComponent_li_8_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, SidebarComponent_li_9_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, SidebarComponent_li_10_Template, 3, 2, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 2, 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function SidebarComponent_Template_div_ngbCollapseChange_11_listener($event) { return ctx.adminCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, SidebarComponent_ng_container_13_Template, 14, 10, "ng-container", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, SidebarComponent_li_14_Template, 3, 2, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 2, 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function SidebarComponent_Template_div_ngbCollapseChange_15_listener($event) { return ctx.gamificationCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, SidebarComponent_li_17_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, SidebarComponent_li_18_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, SidebarComponent_li_19_Template, 3, 2, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 2, 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function SidebarComponent_Template_div_ngbCollapseChange_20_listener($event) { return ctx.operationCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, SidebarComponent_ng_container_22_Template, 8, 3, "ng-container", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, SidebarComponent_ng_container_23_Template, 10, 5, "ng-container", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, SidebarComponent_ng_container_24_Template, 17, 16, "ng-container", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, SidebarComponent_ng_container_25_Template, 8, 3, "ng-container", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, SidebarComponent_li_26_Template, 3, 2, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 2, 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function SidebarComponent_Template_div_ngbCollapseChange_27_listener($event) { return ctx.humanResourceCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, SidebarComponent_li_29_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](30, SidebarComponent_li_30_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](31, SidebarComponent_li_31_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, SidebarComponent_li_32_Template, 3, 2, "li", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 2, 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function SidebarComponent_Template_div_ngbCollapseChange_33_listener($event) { return ctx.communicationCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](35, SidebarComponent_ng_container_35_Template, 9, 4, "ng-container", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](36, SidebarComponent_ng_container_36_Template, 6, 1, "ng-container", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](37, SidebarComponent_ng_container_37_Template, 8, 3, "ng-container", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, SidebarComponent_li_38_Template, 3, 2, "li", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 2, 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngbCollapseChange", function SidebarComponent_Template_div_ngbCollapseChange_39_listener($event) { return ctx.centralBuilderCollapsed = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](41, SidebarComponent_li_41_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](42, SidebarComponent_li_42_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](43, SidebarComponent_li_43_Template, 3, 4, "li", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("externalLink", "businessUserSetup", "roleSetup", "userProfile", "integration"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.systemSettingCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.externalLink);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.businessUserSetup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.roleSetup);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.userProfile);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.integration);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("viewUser", "createUser", "facialCreation", "createEditOPSGroup", "lockedAccount", "resetPassword"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.adminCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("viewUser", "createUser", "facialCreation", "createEditOPSGroup", "lockedAccount", "resetPassword"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("challengesWeb", "redemptionList"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.gamificationCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.challengesWeb);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.redemptionList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("buShiftSetup", "userShiftSetup", "schemeSetup", "planShift", "adjustShift", "viewShift", "viewBooking", "timesheet", "reports", "manageServiceSetup", "managePlanService", "manageService", "viewService"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.operationCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("buShiftSetup", "userShiftSetup", "schemeSetup"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("planShift", "adjustShift", "viewShift", "viewBooking", "timesheet"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.reports);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("manageServiceSetup", "managePlanService", "manageService", "viewService"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("leaveSchemeLeaveType", "leaveSchemeLeaveGrouping", "createEditBallot", "leavePlannerDashboardView"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.humanResourceCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.rolesArray == null ? null : ctx.rolesArray.leaveSchemeLeaveType) || (ctx.rolesArray == null ? null : ctx.rolesArray.leaveSchemeLeaveGrouping));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.createEditBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.leavePlannerDashboardView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("channelSetup", "newsAndEvents", "manageNews", "manageEvents", "manageWall", "viewNotification", "inputNotification"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.communicationCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("channelSetup", "newsAndEvents", "manageNews", "manageEvents"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.manageWall);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.rolesArray == null ? null : ctx.rolesArray.viewNotification) || (ctx.rolesArray == null ? null : ctx.rolesArray.inputNotification));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasPrivileges("centralBuilder", "setUpForm", "exportManageFormOnly", "myForm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbCollapse", ctx.centralBuilderCollapsed);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.centralBuilder);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.rolesArray == null ? null : ctx.rolesArray.setUpForm) || (ctx.rolesArray == null ? null : ctx.rolesArray.formSupervisor) || (ctx.rolesArray == null ? null : ctx.rolesArray.manageForm) || (ctx.rolesArray == null ? null : ctx.rolesArray.exportManageFormOnly));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.rolesArray == null ? null : ctx.rolesArray.myForm);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbCollapse"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgClass"], _angular_router__WEBPACK_IMPORTED_MODULE_7__["RouterLinkActive"], _angular_router__WEBPACK_IMPORTED_MODULE_7__["RouterLinkWithHref"]], styles: ["aside[_ngcontent-%COMP%] {\n background-color: #a42138;\n max-height: 90vh;\n min-height: calc(100vh - 48px);\n overflow-y: auto;\n overflow-x: hidden;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] {\n list-style: none;\n margin-left: -3.5rem;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] {\n color: #fff;\n padding: 0.8rem;\n transition: background-color 0.1s;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.heading[_ngcontent-%COMP%] {\n background-color: #52111c;\n padding-left: 1rem;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] {\n background-color: #7b192a;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #fff;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[routerlinkactive][_ngcontent-%COMP%] {\n padding: 0;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[routerlinkactive][_ngcontent-%COMP%]:hover {\n background-color: #7b192a;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[routerlinkactive][_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n padding: 0.8rem 0 0.8rem 4.3rem;\n}\naside[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n display: block;\n text-decoration: none;\n color: #f2f2f2;\n padding-left: 2rem;\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar {\n width: 0;\n}\n\n\n.scrollbar[_ngcontent-%COMP%]::-webkit-scrollbar-button {\n display: none;\n}\n@media only screen and (max-width: 600px) {\n \n aside[_ngcontent-%COMP%] {\n width: 200px;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvbGF5b3V0L3NpZGViYXIvc2lkZWJhci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSw4QkFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFDRjtBQUNFO0VBQ0UsZ0JBQUE7RUFDQSxvQkFBQTtBQUNKO0FBQ0k7RUFDRSxXQUFBO0VBQ0EsZUFBQTtFQUNBLGlDQUFBO0FBQ047QUFDTTtFQUNFLHlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxlQUFBO0VBQ0EsYUFBQTtFQUNBLDhCQUFBO0VBQ0EsbUJBQUE7QUFDUjtBQUVNO0VBQ0UseUJBQUE7QUFBUjtBQUNRO0VBQ0UsV0FBQTtBQUNWO0FBR007RUFDRSxVQUFBO0FBRFI7QUFHUTtFQUNFLHlCQUFBO0FBRFY7QUFJUTtFQUNFLCtCQUFBO0FBRlY7QUFNTTtFQUNFLGNBQUE7RUFDQSxxQkFBQTtFQUNBLGNBQUE7RUFDQSxrQkFBQTtFQUNBLHVCQUFBO0VBQ0EsZ0JBQUE7QUFKUjtBQVVBLGdCQUFBO0FBSUE7RUFHRSxRQUFBO0FBWkY7QUF1QkEscUJBQUE7QUFXQSxnREFBQTtBQUNBO0VBQ0UsYUFBQTtBQTlCRjtBQWdDQTtFQUNFLHVCQUFBO0VBQ0E7SUFDRSxZQUFBO0VBN0JGO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9sYXlvdXQvc2lkZWJhci9zaWRlYmFyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiYXNpZGUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBtYXgtaGVpZ2h0OiA5MHZoO1xuICBtaW4taGVpZ2h0OiBjYWxjKDEwMHZoIC0gNDhweCk7XG4gIG92ZXJmbG93LXk6IGF1dG87XG4gIG92ZXJmbG93LXg6IGhpZGRlbjtcblxuICB1bCB7XG4gICAgbGlzdC1zdHlsZTogbm9uZTtcbiAgICBtYXJnaW4tbGVmdDogLTMuNXJlbTtcblxuICAgIGxpIHtcbiAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgcGFkZGluZzogMC44cmVtO1xuICAgICAgdHJhbnNpdGlvbjogYmFja2dyb3VuZC1jb2xvciAwLjFzO1xuXG4gICAgICAmLmhlYWRpbmcge1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNTIxMTFjO1xuICAgICAgICBwYWRkaW5nLWxlZnQ6IDFyZW07XG4gICAgICAgIGZvbnQtc2l6ZTogMTRweDtcbiAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgfVxuXG4gICAgICAmLmFjdGl2ZSB7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICM3YjE5MmE7XG4gICAgICAgIGEge1xuICAgICAgICAgIGNvbG9yOiAjZmZmO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgICZbcm91dGVybGlua2FjdGl2ZV0ge1xuICAgICAgICBwYWRkaW5nOiAwO1xuXG4gICAgICAgICY6aG92ZXIge1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICM3YjE5MmE7XG4gICAgICAgIH1cblxuICAgICAgICBhIHtcbiAgICAgICAgICBwYWRkaW5nOiAwLjhyZW0gMCAwLjhyZW0gNC4zcmVtO1xuICAgICAgICB9XG4gICAgICB9XG5cbiAgICAgIGEge1xuICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgICAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICAgICAgICBjb2xvcjogI2YyZjJmMjtcbiAgICAgICAgcGFkZGluZy1sZWZ0OiAycmVtO1xuICAgICAgICB0ZXh0LW92ZXJmbG93OiBlbGxpcHNpcztcbiAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cblxuLyogdG90YWwgd2lkdGggKi9cbi8vIC5zY3JvbGxiYXIge1xuLy8gIG92ZXJmbG93OiBoaWRkZW47XG4vLyB9XG4uc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhciB7XG4gIC8vIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC8vIHdpZHRoOiAxNHB4O1xuICB3aWR0aDogMDtcbn1cblxuLy8gLyogYmFja2dyb3VuZCBvZiB0aGUgc2Nyb2xsYmFyIGV4Y2VwdCBidXR0b24gb3IgcmVzaXplciAqL1xuLy8gLnNjcm9sbGJhcjo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2sge1xuLy8gICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuLy8gfVxuLy8gLnNjcm9sbGJhcjo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2s6aG92ZXIge1xuLy8gICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjRmNGY0O1xuLy8gfVxuXG4vKiBzY3JvbGxiYXIgaXRzZWxmICovXG4vLyAuc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7XG4vLyAgIGJhY2tncm91bmQtY29sb3I6ICNiYWJhYzA7XG4vLyAgIGJvcmRlci1yYWRpdXM6IDE2cHg7XG4vLyAgIGJvcmRlcjogNXB4IHNvbGlkICNmZmY7XG4vLyB9XG4vLyAuc2Nyb2xsYmFyOjotd2Via2l0LXNjcm9sbGJhci10aHVtYjpob3ZlciB7XG4vLyAgIGJhY2tncm91bmQtY29sb3I6ICNhMGEwYTU7XG4vLyAgIGJvcmRlcjogNHB4IHNvbGlkICNmNGY0ZjQ7XG4vLyB9XG5cbi8qIHNldCBidXR0b24odG9wIGFuZCBib3R0b20gb2YgdGhlIHNjcm9sbGJhcikgKi9cbi5zY3JvbGxiYXI6Oi13ZWJraXQtc2Nyb2xsYmFyLWJ1dHRvbiB7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5AbWVkaWEgb25seSBzY3JlZW4gYW5kIChtYXgtd2lkdGg6IDYwMHB4KSB7XG4gIC8qIEZvciBtb2JpbGUgcGhvbmVzOiAqL1xuICBhc2lkZSB7XG4gICAgd2lkdGg6IDIwMHB4O1xuICB9XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SidebarComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'admin-sidebar',
templateUrl: './sidebar.component.html',
styleUrls: ['./sidebar.component.scss'],
}]
}], function () { return [{ type: _service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_1__["RoleService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_2__["StorageService"] }, { type: _service_user_service_users_service__WEBPACK_IMPORTED_MODULE_3__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }, { type: _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_5__["AuthService"] }, { type: _angular_common__WEBPACK_IMPORTED_MODULE_6__["Location"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_7__["Router"] }]; }, { activeUrl: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], isToggle: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], toggleSideNav: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
args: ['toggleSideNav']
}] }); })();
/***/ }),
/***/ "lqlD":
/*!********************************************!*\
!*** ./src/app/shared/angular.material.ts ***!
\********************************************/
/*! exports provided: MaterialModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaterialModule", function() { return MaterialModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/a11y */ "u47x");
/* harmony import */ var _angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/cdk/clipboard */ "UXJo");
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/cdk/drag-drop */ "5+WD");
/* harmony import */ var _angular_cdk_portal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/cdk/portal */ "+rOU");
/* harmony import */ var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/cdk/scrolling */ "vxfF");
/* harmony import */ var _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/cdk/stepper */ "B/XX");
/* harmony import */ var _angular_cdk_table__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/cdk/table */ "f6nW");
/* harmony import */ var _angular_cdk_tree__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/cdk/tree */ "FvrZ");
/* harmony import */ var _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/material/autocomplete */ "/1cH");
/* harmony import */ var _angular_material_badge__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/badge */ "TU8p");
/* harmony import */ var _angular_material_bottom_sheet__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/bottom-sheet */ "2ChS");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/button */ "bTqV");
/* harmony import */ var _angular_material_button_toggle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/button-toggle */ "jaxi");
/* harmony import */ var _angular_material_card__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/card */ "Wp6s");
/* harmony import */ var _angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/material/checkbox */ "bSwM");
/* harmony import */ var _angular_material_chips__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/material/chips */ "A5z7");
/* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/material/stepper */ "xHqg");
/* harmony import */ var _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/material/datepicker */ "iadO");
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/material/dialog */ "0IaG");
/* harmony import */ var _angular_material_divider__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/material/divider */ "f0Cb");
/* harmony import */ var _angular_material_expansion__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @angular/material/expansion */ "7EHt");
/* harmony import */ var _angular_material_grid_list__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @angular/material/grid-list */ "zkoq");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! @angular/material/input */ "qFsG");
/* harmony import */ var _angular_material_list__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @angular/material/list */ "MutI");
/* harmony import */ var _angular_material_menu__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! @angular/material/menu */ "STbY");
/* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @angular/material/core */ "FKr1");
/* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @angular/material/paginator */ "M9IT");
/* harmony import */ var _angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @angular/material/progress-bar */ "bv9b");
/* harmony import */ var _angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! @angular/material/progress-spinner */ "Xa2L");
/* harmony import */ var _angular_material_radio__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! @angular/material/radio */ "QibW");
/* harmony import */ var _angular_material_select__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! @angular/material/select */ "d3UM");
/* harmony import */ var _angular_material_sidenav__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! @angular/material/sidenav */ "XhcP");
/* harmony import */ var _angular_material_slider__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @angular/material/slider */ "5RNC");
/* harmony import */ var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! @angular/material/slide-toggle */ "1jcm");
/* harmony import */ var _angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @angular/material/snack-bar */ "dNgK");
/* harmony import */ var _angular_material_sort__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! @angular/material/sort */ "Dh3D");
/* harmony import */ var _angular_material_table__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! @angular/material/table */ "+0xr");
/* harmony import */ var _angular_material_tabs__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! @angular/material/tabs */ "wZkO");
/* harmony import */ var _angular_material_toolbar__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! @angular/material/toolbar */ "/t3+");
/* harmony import */ var _angular_material_tooltip__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! @angular/material/tooltip */ "Qu3c");
/* harmony import */ var _angular_material_tree__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! @angular/material/tree */ "8yBR");
/* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! @angular/cdk/overlay */ "rDax");
class MaterialModule {
}
MaterialModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MaterialModule });
MaterialModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function MaterialModule_Factory(t) { return new (t || MaterialModule)(); }, imports: [[
_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"],
_angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_2__["ClipboardModule"],
_angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_6__["CdkStepperModule"],
_angular_cdk_table__WEBPACK_IMPORTED_MODULE_7__["CdkTableModule"],
_angular_cdk_tree__WEBPACK_IMPORTED_MODULE_8__["CdkTreeModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["DragDropModule"],
_angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_9__["MatAutocompleteModule"],
_angular_material_badge__WEBPACK_IMPORTED_MODULE_10__["MatBadgeModule"],
_angular_material_bottom_sheet__WEBPACK_IMPORTED_MODULE_11__["MatBottomSheetModule"],
_angular_material_button__WEBPACK_IMPORTED_MODULE_12__["MatButtonModule"],
_angular_material_button_toggle__WEBPACK_IMPORTED_MODULE_13__["MatButtonToggleModule"],
_angular_material_card__WEBPACK_IMPORTED_MODULE_14__["MatCardModule"],
_angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__["MatCheckboxModule"],
_angular_material_chips__WEBPACK_IMPORTED_MODULE_16__["MatChipsModule"],
_angular_material_stepper__WEBPACK_IMPORTED_MODULE_17__["MatStepperModule"],
_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_18__["MatDatepickerModule"],
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_19__["MatDialogModule"],
_angular_material_divider__WEBPACK_IMPORTED_MODULE_20__["MatDividerModule"],
_angular_material_expansion__WEBPACK_IMPORTED_MODULE_21__["MatExpansionModule"],
_angular_material_grid_list__WEBPACK_IMPORTED_MODULE_22__["MatGridListModule"],
_angular_material_icon__WEBPACK_IMPORTED_MODULE_23__["MatIconModule"],
_angular_material_input__WEBPACK_IMPORTED_MODULE_24__["MatInputModule"],
_angular_material_list__WEBPACK_IMPORTED_MODULE_25__["MatListModule"],
_angular_material_menu__WEBPACK_IMPORTED_MODULE_26__["MatMenuModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatNativeDateModule"],
_angular_material_paginator__WEBPACK_IMPORTED_MODULE_28__["MatPaginatorModule"],
_angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_29__["MatProgressBarModule"],
_angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_30__["MatProgressSpinnerModule"],
_angular_material_radio__WEBPACK_IMPORTED_MODULE_31__["MatRadioModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatRippleModule"],
_angular_material_select__WEBPACK_IMPORTED_MODULE_32__["MatSelectModule"],
_angular_material_sidenav__WEBPACK_IMPORTED_MODULE_33__["MatSidenavModule"],
_angular_material_slider__WEBPACK_IMPORTED_MODULE_34__["MatSliderModule"],
_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_35__["MatSlideToggleModule"],
_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_36__["MatSnackBarModule"],
_angular_material_sort__WEBPACK_IMPORTED_MODULE_37__["MatSortModule"],
_angular_material_table__WEBPACK_IMPORTED_MODULE_38__["MatTableModule"],
_angular_material_tabs__WEBPACK_IMPORTED_MODULE_39__["MatTabsModule"],
_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_40__["MatToolbarModule"],
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_41__["MatTooltipModule"],
_angular_material_tree__WEBPACK_IMPORTED_MODULE_42__["MatTreeModule"],
_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_43__["OverlayModule"],
_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_4__["PortalModule"],
_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"],
], _angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"],
_angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_2__["ClipboardModule"],
_angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_6__["CdkStepperModule"],
_angular_cdk_table__WEBPACK_IMPORTED_MODULE_7__["CdkTableModule"],
_angular_cdk_tree__WEBPACK_IMPORTED_MODULE_8__["CdkTreeModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["DragDropModule"],
_angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_9__["MatAutocompleteModule"],
_angular_material_badge__WEBPACK_IMPORTED_MODULE_10__["MatBadgeModule"],
_angular_material_bottom_sheet__WEBPACK_IMPORTED_MODULE_11__["MatBottomSheetModule"],
_angular_material_button__WEBPACK_IMPORTED_MODULE_12__["MatButtonModule"],
_angular_material_button_toggle__WEBPACK_IMPORTED_MODULE_13__["MatButtonToggleModule"],
_angular_material_card__WEBPACK_IMPORTED_MODULE_14__["MatCardModule"],
_angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__["MatCheckboxModule"],
_angular_material_chips__WEBPACK_IMPORTED_MODULE_16__["MatChipsModule"],
_angular_material_stepper__WEBPACK_IMPORTED_MODULE_17__["MatStepperModule"],
_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_18__["MatDatepickerModule"],
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_19__["MatDialogModule"],
_angular_material_divider__WEBPACK_IMPORTED_MODULE_20__["MatDividerModule"],
_angular_material_expansion__WEBPACK_IMPORTED_MODULE_21__["MatExpansionModule"],
_angular_material_grid_list__WEBPACK_IMPORTED_MODULE_22__["MatGridListModule"],
_angular_material_icon__WEBPACK_IMPORTED_MODULE_23__["MatIconModule"],
_angular_material_input__WEBPACK_IMPORTED_MODULE_24__["MatInputModule"],
_angular_material_list__WEBPACK_IMPORTED_MODULE_25__["MatListModule"],
_angular_material_menu__WEBPACK_IMPORTED_MODULE_26__["MatMenuModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatNativeDateModule"],
_angular_material_paginator__WEBPACK_IMPORTED_MODULE_28__["MatPaginatorModule"],
_angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_29__["MatProgressBarModule"],
_angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_30__["MatProgressSpinnerModule"],
_angular_material_radio__WEBPACK_IMPORTED_MODULE_31__["MatRadioModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatRippleModule"],
_angular_material_select__WEBPACK_IMPORTED_MODULE_32__["MatSelectModule"],
_angular_material_sidenav__WEBPACK_IMPORTED_MODULE_33__["MatSidenavModule"],
_angular_material_slider__WEBPACK_IMPORTED_MODULE_34__["MatSliderModule"],
_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_35__["MatSlideToggleModule"],
_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_36__["MatSnackBarModule"],
_angular_material_sort__WEBPACK_IMPORTED_MODULE_37__["MatSortModule"],
_angular_material_table__WEBPACK_IMPORTED_MODULE_38__["MatTableModule"],
_angular_material_tabs__WEBPACK_IMPORTED_MODULE_39__["MatTabsModule"],
_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_40__["MatToolbarModule"],
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_41__["MatTooltipModule"],
_angular_material_tree__WEBPACK_IMPORTED_MODULE_42__["MatTreeModule"],
_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_43__["OverlayModule"],
_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_4__["PortalModule"],
_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MaterialModule, { imports: [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"],
_angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_2__["ClipboardModule"],
_angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_6__["CdkStepperModule"],
_angular_cdk_table__WEBPACK_IMPORTED_MODULE_7__["CdkTableModule"],
_angular_cdk_tree__WEBPACK_IMPORTED_MODULE_8__["CdkTreeModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["DragDropModule"],
_angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_9__["MatAutocompleteModule"],
_angular_material_badge__WEBPACK_IMPORTED_MODULE_10__["MatBadgeModule"],
_angular_material_bottom_sheet__WEBPACK_IMPORTED_MODULE_11__["MatBottomSheetModule"],
_angular_material_button__WEBPACK_IMPORTED_MODULE_12__["MatButtonModule"],
_angular_material_button_toggle__WEBPACK_IMPORTED_MODULE_13__["MatButtonToggleModule"],
_angular_material_card__WEBPACK_IMPORTED_MODULE_14__["MatCardModule"],
_angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__["MatCheckboxModule"],
_angular_material_chips__WEBPACK_IMPORTED_MODULE_16__["MatChipsModule"],
_angular_material_stepper__WEBPACK_IMPORTED_MODULE_17__["MatStepperModule"],
_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_18__["MatDatepickerModule"],
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_19__["MatDialogModule"],
_angular_material_divider__WEBPACK_IMPORTED_MODULE_20__["MatDividerModule"],
_angular_material_expansion__WEBPACK_IMPORTED_MODULE_21__["MatExpansionModule"],
_angular_material_grid_list__WEBPACK_IMPORTED_MODULE_22__["MatGridListModule"],
_angular_material_icon__WEBPACK_IMPORTED_MODULE_23__["MatIconModule"],
_angular_material_input__WEBPACK_IMPORTED_MODULE_24__["MatInputModule"],
_angular_material_list__WEBPACK_IMPORTED_MODULE_25__["MatListModule"],
_angular_material_menu__WEBPACK_IMPORTED_MODULE_26__["MatMenuModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatNativeDateModule"],
_angular_material_paginator__WEBPACK_IMPORTED_MODULE_28__["MatPaginatorModule"],
_angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_29__["MatProgressBarModule"],
_angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_30__["MatProgressSpinnerModule"],
_angular_material_radio__WEBPACK_IMPORTED_MODULE_31__["MatRadioModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatRippleModule"],
_angular_material_select__WEBPACK_IMPORTED_MODULE_32__["MatSelectModule"],
_angular_material_sidenav__WEBPACK_IMPORTED_MODULE_33__["MatSidenavModule"],
_angular_material_slider__WEBPACK_IMPORTED_MODULE_34__["MatSliderModule"],
_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_35__["MatSlideToggleModule"],
_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_36__["MatSnackBarModule"],
_angular_material_sort__WEBPACK_IMPORTED_MODULE_37__["MatSortModule"],
_angular_material_table__WEBPACK_IMPORTED_MODULE_38__["MatTableModule"],
_angular_material_tabs__WEBPACK_IMPORTED_MODULE_39__["MatTabsModule"],
_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_40__["MatToolbarModule"],
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_41__["MatTooltipModule"],
_angular_material_tree__WEBPACK_IMPORTED_MODULE_42__["MatTreeModule"],
_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_43__["OverlayModule"],
_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_4__["PortalModule"],
_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"]], exports: [_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"],
_angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_2__["ClipboardModule"],
_angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_6__["CdkStepperModule"],
_angular_cdk_table__WEBPACK_IMPORTED_MODULE_7__["CdkTableModule"],
_angular_cdk_tree__WEBPACK_IMPORTED_MODULE_8__["CdkTreeModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["DragDropModule"],
_angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_9__["MatAutocompleteModule"],
_angular_material_badge__WEBPACK_IMPORTED_MODULE_10__["MatBadgeModule"],
_angular_material_bottom_sheet__WEBPACK_IMPORTED_MODULE_11__["MatBottomSheetModule"],
_angular_material_button__WEBPACK_IMPORTED_MODULE_12__["MatButtonModule"],
_angular_material_button_toggle__WEBPACK_IMPORTED_MODULE_13__["MatButtonToggleModule"],
_angular_material_card__WEBPACK_IMPORTED_MODULE_14__["MatCardModule"],
_angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__["MatCheckboxModule"],
_angular_material_chips__WEBPACK_IMPORTED_MODULE_16__["MatChipsModule"],
_angular_material_stepper__WEBPACK_IMPORTED_MODULE_17__["MatStepperModule"],
_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_18__["MatDatepickerModule"],
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_19__["MatDialogModule"],
_angular_material_divider__WEBPACK_IMPORTED_MODULE_20__["MatDividerModule"],
_angular_material_expansion__WEBPACK_IMPORTED_MODULE_21__["MatExpansionModule"],
_angular_material_grid_list__WEBPACK_IMPORTED_MODULE_22__["MatGridListModule"],
_angular_material_icon__WEBPACK_IMPORTED_MODULE_23__["MatIconModule"],
_angular_material_input__WEBPACK_IMPORTED_MODULE_24__["MatInputModule"],
_angular_material_list__WEBPACK_IMPORTED_MODULE_25__["MatListModule"],
_angular_material_menu__WEBPACK_IMPORTED_MODULE_26__["MatMenuModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatNativeDateModule"],
_angular_material_paginator__WEBPACK_IMPORTED_MODULE_28__["MatPaginatorModule"],
_angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_29__["MatProgressBarModule"],
_angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_30__["MatProgressSpinnerModule"],
_angular_material_radio__WEBPACK_IMPORTED_MODULE_31__["MatRadioModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatRippleModule"],
_angular_material_select__WEBPACK_IMPORTED_MODULE_32__["MatSelectModule"],
_angular_material_sidenav__WEBPACK_IMPORTED_MODULE_33__["MatSidenavModule"],
_angular_material_slider__WEBPACK_IMPORTED_MODULE_34__["MatSliderModule"],
_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_35__["MatSlideToggleModule"],
_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_36__["MatSnackBarModule"],
_angular_material_sort__WEBPACK_IMPORTED_MODULE_37__["MatSortModule"],
_angular_material_table__WEBPACK_IMPORTED_MODULE_38__["MatTableModule"],
_angular_material_tabs__WEBPACK_IMPORTED_MODULE_39__["MatTabsModule"],
_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_40__["MatToolbarModule"],
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_41__["MatTooltipModule"],
_angular_material_tree__WEBPACK_IMPORTED_MODULE_42__["MatTreeModule"],
_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_43__["OverlayModule"],
_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_4__["PortalModule"],
_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"]] }); })();
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MaterialModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
args: [{
imports: [
_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"],
_angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_2__["ClipboardModule"],
_angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_6__["CdkStepperModule"],
_angular_cdk_table__WEBPACK_IMPORTED_MODULE_7__["CdkTableModule"],
_angular_cdk_tree__WEBPACK_IMPORTED_MODULE_8__["CdkTreeModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["DragDropModule"],
_angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_9__["MatAutocompleteModule"],
_angular_material_badge__WEBPACK_IMPORTED_MODULE_10__["MatBadgeModule"],
_angular_material_bottom_sheet__WEBPACK_IMPORTED_MODULE_11__["MatBottomSheetModule"],
_angular_material_button__WEBPACK_IMPORTED_MODULE_12__["MatButtonModule"],
_angular_material_button_toggle__WEBPACK_IMPORTED_MODULE_13__["MatButtonToggleModule"],
_angular_material_card__WEBPACK_IMPORTED_MODULE_14__["MatCardModule"],
_angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__["MatCheckboxModule"],
_angular_material_chips__WEBPACK_IMPORTED_MODULE_16__["MatChipsModule"],
_angular_material_stepper__WEBPACK_IMPORTED_MODULE_17__["MatStepperModule"],
_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_18__["MatDatepickerModule"],
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_19__["MatDialogModule"],
_angular_material_divider__WEBPACK_IMPORTED_MODULE_20__["MatDividerModule"],
_angular_material_expansion__WEBPACK_IMPORTED_MODULE_21__["MatExpansionModule"],
_angular_material_grid_list__WEBPACK_IMPORTED_MODULE_22__["MatGridListModule"],
_angular_material_icon__WEBPACK_IMPORTED_MODULE_23__["MatIconModule"],
_angular_material_input__WEBPACK_IMPORTED_MODULE_24__["MatInputModule"],
_angular_material_list__WEBPACK_IMPORTED_MODULE_25__["MatListModule"],
_angular_material_menu__WEBPACK_IMPORTED_MODULE_26__["MatMenuModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatNativeDateModule"],
_angular_material_paginator__WEBPACK_IMPORTED_MODULE_28__["MatPaginatorModule"],
_angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_29__["MatProgressBarModule"],
_angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_30__["MatProgressSpinnerModule"],
_angular_material_radio__WEBPACK_IMPORTED_MODULE_31__["MatRadioModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatRippleModule"],
_angular_material_select__WEBPACK_IMPORTED_MODULE_32__["MatSelectModule"],
_angular_material_sidenav__WEBPACK_IMPORTED_MODULE_33__["MatSidenavModule"],
_angular_material_slider__WEBPACK_IMPORTED_MODULE_34__["MatSliderModule"],
_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_35__["MatSlideToggleModule"],
_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_36__["MatSnackBarModule"],
_angular_material_sort__WEBPACK_IMPORTED_MODULE_37__["MatSortModule"],
_angular_material_table__WEBPACK_IMPORTED_MODULE_38__["MatTableModule"],
_angular_material_tabs__WEBPACK_IMPORTED_MODULE_39__["MatTabsModule"],
_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_40__["MatToolbarModule"],
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_41__["MatTooltipModule"],
_angular_material_tree__WEBPACK_IMPORTED_MODULE_42__["MatTreeModule"],
_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_43__["OverlayModule"],
_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_4__["PortalModule"],
_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"],
],
exports: [
_angular_cdk_a11y__WEBPACK_IMPORTED_MODULE_1__["A11yModule"],
_angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_2__["ClipboardModule"],
_angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_6__["CdkStepperModule"],
_angular_cdk_table__WEBPACK_IMPORTED_MODULE_7__["CdkTableModule"],
_angular_cdk_tree__WEBPACK_IMPORTED_MODULE_8__["CdkTreeModule"],
_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_3__["DragDropModule"],
_angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_9__["MatAutocompleteModule"],
_angular_material_badge__WEBPACK_IMPORTED_MODULE_10__["MatBadgeModule"],
_angular_material_bottom_sheet__WEBPACK_IMPORTED_MODULE_11__["MatBottomSheetModule"],
_angular_material_button__WEBPACK_IMPORTED_MODULE_12__["MatButtonModule"],
_angular_material_button_toggle__WEBPACK_IMPORTED_MODULE_13__["MatButtonToggleModule"],
_angular_material_card__WEBPACK_IMPORTED_MODULE_14__["MatCardModule"],
_angular_material_checkbox__WEBPACK_IMPORTED_MODULE_15__["MatCheckboxModule"],
_angular_material_chips__WEBPACK_IMPORTED_MODULE_16__["MatChipsModule"],
_angular_material_stepper__WEBPACK_IMPORTED_MODULE_17__["MatStepperModule"],
_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_18__["MatDatepickerModule"],
_angular_material_dialog__WEBPACK_IMPORTED_MODULE_19__["MatDialogModule"],
_angular_material_divider__WEBPACK_IMPORTED_MODULE_20__["MatDividerModule"],
_angular_material_expansion__WEBPACK_IMPORTED_MODULE_21__["MatExpansionModule"],
_angular_material_grid_list__WEBPACK_IMPORTED_MODULE_22__["MatGridListModule"],
_angular_material_icon__WEBPACK_IMPORTED_MODULE_23__["MatIconModule"],
_angular_material_input__WEBPACK_IMPORTED_MODULE_24__["MatInputModule"],
_angular_material_list__WEBPACK_IMPORTED_MODULE_25__["MatListModule"],
_angular_material_menu__WEBPACK_IMPORTED_MODULE_26__["MatMenuModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatNativeDateModule"],
_angular_material_paginator__WEBPACK_IMPORTED_MODULE_28__["MatPaginatorModule"],
_angular_material_progress_bar__WEBPACK_IMPORTED_MODULE_29__["MatProgressBarModule"],
_angular_material_progress_spinner__WEBPACK_IMPORTED_MODULE_30__["MatProgressSpinnerModule"],
_angular_material_radio__WEBPACK_IMPORTED_MODULE_31__["MatRadioModule"],
_angular_material_core__WEBPACK_IMPORTED_MODULE_27__["MatRippleModule"],
_angular_material_select__WEBPACK_IMPORTED_MODULE_32__["MatSelectModule"],
_angular_material_sidenav__WEBPACK_IMPORTED_MODULE_33__["MatSidenavModule"],
_angular_material_slider__WEBPACK_IMPORTED_MODULE_34__["MatSliderModule"],
_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_35__["MatSlideToggleModule"],
_angular_material_snack_bar__WEBPACK_IMPORTED_MODULE_36__["MatSnackBarModule"],
_angular_material_sort__WEBPACK_IMPORTED_MODULE_37__["MatSortModule"],
_angular_material_table__WEBPACK_IMPORTED_MODULE_38__["MatTableModule"],
_angular_material_tabs__WEBPACK_IMPORTED_MODULE_39__["MatTabsModule"],
_angular_material_toolbar__WEBPACK_IMPORTED_MODULE_40__["MatToolbarModule"],
_angular_material_tooltip__WEBPACK_IMPORTED_MODULE_41__["MatTooltipModule"],
_angular_material_tree__WEBPACK_IMPORTED_MODULE_42__["MatTreeModule"],
_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_43__["OverlayModule"],
_angular_cdk_portal__WEBPACK_IMPORTED_MODULE_4__["PortalModule"],
_angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_5__["ScrollingModule"],
]
}]
}], null, null); })();
/***/ }),
/***/ "lzKD":
/*!************************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-events/create-edit-events/create-edit-events.component.ts ***!
\************************************************************************************************************/
/*! exports provided: CreateEditEventsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEditEventsComponent", function() { return CreateEditEventsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/stepper */ "B/XX");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/stepper */ "xHqg");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! angular-froala-wysiwyg */ "81np");
/* harmony import */ var _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../shared/angular-date-time-picker/date-time-picker.html/date-time-picker.html.component */ "d4JE");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/material/button */ "bTqV");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var ngx_image_cropper__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ngx-image-cropper */ "rIor");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["AddDepartment"];
const _c1 = ["AddImageCropper"];
const _c2 = ["stepper"];
const _c3 = ["myInput"];
function CreateEditEventsComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "EVENT TEASER ");
} }
function CreateEditEventsComponent_option_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "option", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r31 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngValue", cnt_r31.value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", cnt_r31.name, " ");
} }
const _c4 = function (a0, a1) { return { "fa-spin fa-spinner fa-2x": a0, " fa-plus-circle fa-2x": a1 }; };
function CreateEditEventsComponent_div_26_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Teaser Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_div_26_Template_input_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r33); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r32.openImageCropUpload("eventTeaser"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "i", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r3.isIconLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](2, _c4, ctx_r3.isIconLoading, !ctx_r3.isIconLoading));
} }
function CreateEditEventsComponent_div_27_Template(rf, ctx) { if (rf & 1) {
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_div_27_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r35); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r34.onDeleteIcon("eventTeaser"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r4.validateURLImage(ctx_r4.eventFormGroup.get("image").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function CreateEditEventsComponent_div_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Please fill up all the fields ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_ng_template_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "CONTENT");
} }
function CreateEditEventsComponent_div_48_Template(rf, ctx) { if (rf & 1) {
const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_div_48_Template_input_change_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r37); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r36.sameTeaserImg(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Same as teaser photo");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_div_49_div_10_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_div_49_div_10_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r40); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r39.onDeleteIcon("contentTeaser"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r38.validateURLImage(ctx_r38.contentFormGroup.get("image").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function CreateEditEventsComponent_div_49_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "OR Upload another Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_div_49_Template_input_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r42); const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r41.openImageCropUpload("contentTeaser"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "i", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, CreateEditEventsComponent_div_49_div_10_Template, 4, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r8.isIconLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](3, _c4, ctx_r8.isIconLoading, !ctx_r8.isIconLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r8.contentFormGroup.get("image").value);
} }
function CreateEditEventsComponent_div_92_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "End Date & Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "app-date-time-picker", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_div_94_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Please fill up all the fields");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_ng_template_103_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "PUBLICATION");
} }
function CreateEditEventsComponent_div_152_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Please fill up all the fields ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_ng_template_161_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "SESSIONS ");
} }
function CreateEditEventsComponent_th_225_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Participants");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_tr_227_td_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_tr_227_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "app-date-time-picker", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "app-date-time-picker", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, CreateEditEventsComponent_tr_227_td_10_Template, 2, 0, "td", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r44 = ctx.index;
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", i_r44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](i_r44 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r15.sessionsForm.get("isLimitRequired").value);
} }
function CreateEditEventsComponent_div_256_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Please fill up all the fields ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_ng_template_265_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "EVENT BOARD ");
} }
function CreateEditEventsComponent_ng_template_285_div_18_Template(rf, ctx) { if (rf & 1) {
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_285_div_18_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r49); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r48.onDeleteIcon("eventBoard"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r47.validateURLImage(ctx_r47.eventBoardFormGroup.get("eventWallLogoImage").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function CreateEditEventsComponent_ng_template_285_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Social Wall Group Name (Limit to 100 characters)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Content Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_285_Template_input_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r51); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r50.openImageCropUpload("eventBoard"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](17, "i", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, CreateEditEventsComponent_ng_template_285_div_18_Template, 4, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "label", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "Start Date & Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "app-date-time-picker", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, " End Date & Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](33, "app-date-time-picker", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r18.isIconLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](3, _c4, ctx_r18.isIconLoading, !ctx_r18.isIconLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r18.eventBoardFormGroup.get("eventWallLogoImage").value);
} }
function CreateEditEventsComponent_div_287_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Please fill up all the fields ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_ng_template_296_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "ADMINISTRATION ");
} }
function CreateEditEventsComponent_table_304_tr_10_Template(rf, ctx) { if (rf & 1) {
const _r56 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](7, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_table_304_tr_10_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r56); const index_r54 = ctx.index; const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r55.deleteRow(index_r54); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Cancel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r53 = ctx.$implicit;
const index_r54 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r53.get("location").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](7, 4, field_r53.get("startDate").value, "d/M/yyyy HH:mm"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](8, 7, field_r53.get("endDate").value, "d/M/yyyy HH:mm"), " ");
} }
function CreateEditEventsComponent_table_304_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "table", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Location");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "Session period");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, CreateEditEventsComponent_table_304_tr_10_Template, 12, 10, "tr", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r21.formArr.controls);
} }
function CreateEditEventsComponent_p_305_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "p", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Please Note: Since there are NO sessions, there is no need to select Admins. ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_ng_option_310_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r57 = ctx.$implicit;
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r57)("disabled", ctx_r23.publicationFormGroup.get("isRSVPRequired").value != "true");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r57.name, " ");
} }
function CreateEditEventsComponent_div_313_Template(rf, ctx) { if (rf & 1) {
const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "img", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_div_313_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r61); const index_r59 = ctx.index; const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r60.deleteSelectedFields(index_r59); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r58 = ctx.$implicit;
const index_r59 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", field_r58.get("string").value, " ");
} }
function CreateEditEventsComponent_div_315_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Please fill up all the fields ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function CreateEditEventsComponent_span_322_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 124);
} }
function CreateEditEventsComponent_ng_template_327_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "h4", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Article Preview 3.75x6.66(inch) ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "button", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_327_Template_button_click_3_listener() { const d_r63 = ctx.dismiss; return d_r63("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "img", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "p", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "label", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "span", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, " date_range ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, " Date & Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "input", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](23, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "label", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "span", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28, " location_on ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Location");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](30, "input", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "span", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35, " person ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "Organiser");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](37, "input", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](40, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](41, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "span", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, "Authored By ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](45, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("src", ctx_r28.editEvent.data.content.image || ctx_r28.editEvent.data.teaser.image, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", ctx_r28.channel == null ? null : ctx_r28.channel.name, "/ ", ctx_r28.category == null ? null : ctx_r28.category.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](23, 9, ctx_r28.editEvent.data.publish.startDate, "medium"));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("value", ctx_r28.editEvent.data.content.address);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("value", ctx_r28.editEvent.data.content.organizerName);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaView", ctx_r28.editorContent)("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](41, 12, ctx_r28.contentFormGroup.get("title").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r28.userName);
} }
function CreateEditEventsComponent_ng_template_329_div_17_Template(rf, ctx) { if (rf & 1) {
const _r70 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "button", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r69.toggleContainWithinAspectRatio(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "button", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r71.resetImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "refresh");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "button", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r72.flipHorizontal(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "swap_horiz");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "button", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r73.flipVertical(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "swap_vert");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "button", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r74.rotateLeft(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "rotate_left");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "button", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_23_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r75.rotateRight(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "rotate_right");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Crop Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "image-cropper", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("imageCropped", function CreateEditEventsComponent_ng_template_329_div_17_Template_image_cropper_imageCropped_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r76.imageCropped($event); })("imageLoaded", function CreateEditEventsComponent_ng_template_329_div_17_Template_image_cropper_imageLoaded_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r77.imageLoaded(); })("cropperReady", function CreateEditEventsComponent_ng_template_329_div_17_Template_image_cropper_cropperReady_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r78.cropperReady($event); })("loadImageFailed", function CreateEditEventsComponent_ng_template_329_div_17_Template_image_cropper_loadImageFailed_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r79.loadImageFailed(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](33, "Preview");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](34, "img", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "button", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_37_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r80.zoomOut(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "zoom_out");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "button", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_41_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r81.zoomIn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "mat-icon");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "zoom_in");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "div", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "button", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_div_17_Template_button_click_45_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r70); const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r82.iconUpload(ctx_r82.imageCategory); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, " Upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r68.containWithinAspectRatio ? "aspect_ratio" : "image_aspect_ratio");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("imageChangedEvent", ctx_r68.imageChangedEvent)("maintainAspectRatio", true)("containWithinAspectRatio", ctx_r68.containWithinAspectRatio)("aspectRatio", 4 / 3)("cropperMinWidth", 128)("roundCropper", false)("canvasRotation", ctx_r68.canvasRotation)("transform", ctx_r68.transform)("alignImage", "left");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r68.croppedImage, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function CreateEditEventsComponent_ng_template_329_Template(rf, ctx) { if (rf & 1) {
const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "h4", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "button", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_Template_button_click_3_listener() { const d_r66 = ctx.dismiss; return d_r66("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "input", 148, 149);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_ng_template_329_Template_input_change_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r85); const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r84.fileChangeEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "button", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_ng_template_329_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r85); const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r86.clear(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "hr", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, CreateEditEventsComponent_ng_template_329_div_17_Template, 47, 11, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !!ctx_r30.imageChangedEvent);
} }
class CreateEditEventsComponent {
constructor(http, modelService, _formBuilder, userService, newsService, tostService) {
this.http = http;
this.modelService = modelService;
this._formBuilder = _formBuilder;
this.userService = userService;
this.newsService = newsService;
this.tostService = tostService;
this.closeResult = '';
this.listingType = [
{ name: 'No Photo', value: 1 },
{ name: 'Small Photo', value: 2 },
{ name: 'Large Photo', value: 3 }
];
this.isIconLoading = false;
this.CustomFieldDropDownLoading = false;
this.fieldNeedsToUpdate = [];
this.eventId = null;
this.isEditable = false;
this.isLinear = false;
this.isParticipentsEnabled = false;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
this.sessionchangeArr = {};
this.isSessionDisabled = false;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl;
this.options = {
key: src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].froalaEditorKey,
videoResponsive: true,
videoInsertButtons: ['videoBack', '|', 'videoByURL'],
listAdvancedTypes: true,
toolbarButtons: [
'bold',
'italic',
'underline',
'outdent',
'indent',
'insertHorizontalRule',
],
};
this.otheroptions = {
key: src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].froalaEditorKey,
videoResponsive: true,
listAdvancedTypes: true,
toolbarButtons: [
'undo',
'redo',
'bold',
'italic',
'underline',
'strikeThrough',
'subscript',
'superscript',
'fontFamily',
'fontSize',
'color',
'formatBlock',
'blockStyle',
'inlineStyle',
'align',
'insertOrderedList',
'insertUnorderedList',
'outdent',
'indent',
'selectAll',
'createLink',
'insertImage',
'insertVideo',
'table',
'undo',
'redo',
'html',
'save',
'insertHorizontalRule',
'uploadFile',
'removeFormat',
'fullscreen',
],
videoUploadURL: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].baseUrl}/notification/uploadContentFiles/`,
requestHeaders: {
Authorization: localStorage.getItem('flexiusersToken'),
},
requestWithCORS: false,
// Set the image upload URL.
imageUploadURL: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].baseUrl}/post/uploadContentFiles`,
imageUploadParams: { crossorigin: 'anonymous' },
// Set request type.
imageUploadMethod: 'POST',
// Allow to upload PNG and JPG.
imageAllowedTypes: ['jpeg', 'jpg', 'png'],
// Set request type.
videoUploadMethod: 'POST',
// Set max video size to 50MB.
videoMaxSize: 50 * 1024 * 1024,
// Allow to upload MP4, WEBM and OGG
videoAllowedTypes: ['webm', 'jpg', 'ogg', 'mp4', 'mov', 'MKV'],
events: {
'video.beforeUpload': function (videos) {
// Return false if you want to stop the video upload.
},
'video.uploaded': function (response) {
// Video was uploaded to the server.
},
'video.inserted': function ($img, response) {
// Video was inserted in the editor.
},
'video.replaced': function ($img, response) {
// Video was replaced in the editor.
},
'video.error': function (error, response) { },
'image.beforeUpload': function (images) {
// Return false if you want to stop the image upload.
},
'image.uploaded': function (response) {
// Image was uploaded to the server.
},
'image.inserted': function ($img, response) {
// Image was inserted in the editor.
},
'image.replaced': function ($img, response) {
// Image was replaced in the editor.
},
},
};
this.title = 'my-image-cropper';
this.imageChangedEvent = '';
this.croppedImage = '';
this.croppedFilePath = "";
this.canvasRotation = 0;
this.rotation = 0;
this.scale = 1;
this.showCropper = false;
this.containWithinAspectRatio = false;
this.transform = {};
this.clearFormArray = (formArray) => {
while (formArray.length !== 0) {
formArray.removeAt(0);
}
};
this.CustomFieldPTable = {
sortBy: 'desc',
sortWith: 'createdAt',
data: [],
page: 1,
total: 0,
limit: 8,
filter: {
status: [1],
fields: ['name'],
},
search: '',
};
this.userName = localStorage.getItem('flexistaffId');
}
fileChangeEvent(event) {
this.imageChangedEvent = event;
}
imageCropped(event) {
this.croppedImage = event.base64;
this.croppedFilePath = event;
}
imageLoaded() {
this.showCropper = true;
}
cropperReady(sourceImageDimensions) {
}
loadImageFailed() { }
clear(isStatus) {
this.modelService.dismissAll();
this.scale = 1;
this.rotation = 0;
this.canvasRotation = 0;
this.transform = {};
this.croppedImage = '';
this.imageChangedEvent = '';
if (!isStatus)
this.modelService.open(this.AddImageCropper, {
windowClass: 'modal-ui-fix.center-align.xlModal', size: 'lg',
});
}
rotateLeft() {
this.canvasRotation--;
this.flipAfterRotate();
}
rotateRight() {
this.canvasRotation++;
this.flipAfterRotate();
}
flipAfterRotate() {
const flippedH = this.transform.flipH;
const flippedV = this.transform.flipV;
this.transform = Object.assign(Object.assign({}, this.transform), { flipH: flippedV, flipV: flippedH });
}
flipHorizontal() {
this.transform = Object.assign(Object.assign({}, this.transform), { flipH: !this.transform.flipH });
}
flipVertical() {
this.transform = Object.assign(Object.assign({}, this.transform), { flipV: !this.transform.flipV });
}
resetImage() {
this.scale = 1;
this.rotation = 0;
this.canvasRotation = 0;
this.transform = {};
}
zoomOut() {
this.scale -= 0.1;
this.transform = Object.assign(Object.assign({}, this.transform), { scale: this.scale });
}
zoomIn() {
this.scale += 0.1;
this.transform = Object.assign(Object.assign({}, this.transform), { scale: this.scale });
}
toggleContainWithinAspectRatio() {
this.containWithinAspectRatio = !this.containWithinAspectRatio;
}
updateRotation() {
this.transform = Object.assign(Object.assign({}, this.transform), { rotate: this.rotation });
}
onDeleteIcon(key) {
this.IconUrl = null;
key === 'teaser' ? (this.IconUrl = null) : (this.IconUrl = null);
if (key === 'contentTeaser') {
this.contentFormGroup.get('image').patchValue('');
}
else if (key === 'eventTeaser') {
this.eventFormGroup.get('image').patchValue('');
}
else {
this.eventBoardFormGroup.get('eventWallLogoImage').patchValue('');
}
}
dataURLtoFile(dataurl, filename) {
var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], bstr = atob(arr[arr.length - 1]), n = bstr.length, u8arr = new Uint8Array(n);
while (n--) {
u8arr[n] = bstr.charCodeAt(n);
}
return new File([u8arr], filename, { type: mime });
}
iconUpload(type) {
const file = this.dataURLtoFile(this.croppedImage, "croppedImg.png");
const fileUpload = this.newsService
.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
switch (type) {
case 'eventTeaser':
this.eventFormGroup.patchValue({
image: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl}${data.data.path}`,
});
this.tostService.success('Image Uploaded Successfully');
break;
case 'contentTeaser':
this.contentFormGroup.patchValue({
image: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl}${data.data.path}`,
});
this.tostService.success('Image Uploaded Successfully');
break;
case 'eventBoard':
this.eventBoardFormGroup.patchValue({
eventWallLogoImage: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl}${data.data.path}`,
});
this.tostService.success('Image Uploaded Successfully');
break;
}
this.modelService.dismissAll();
this.clear(true);
}, (error) => {
this.isIconLoading = false;
});
}
addDepartment() {
this.editEvent = {
data: {
content: Object.assign({}, this.contentFormGroup.value),
teaser: Object.assign({}, this.eventFormGroup.value),
publish: Object.assign({}, this.publicationFormGroup.value),
eventBoard: Object.assign({}, this.eventBoardFormGroup.value),
session: Object.assign({}, this.sessionsForm.value),
},
};
this.modelService.open(this.AddDepartment, {
windowClass: 'modal-ui-fix.center-align',
});
}
ngOnInit() {
this.loadCustomField();
this.getchannels();
this.eventFormGroup = this._formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
image: [''],
listingType: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
});
this.contentFormGroup = this._formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
image: '',
isTeaserImage: null,
content: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
organizerName: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
eventType: ['multi', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
address: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
startDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
endDate: [''],
});
this.publicationFormGroup = this._formBuilder.group({
channelId: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
categoryId: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
isRSVPRequired: ['false', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
startDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
endDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
});
this.eventBoardFormGroup = this._formBuilder.group({
isEventWallRequired: false,
eventWallLogoImage: '',
wallName: '',
startDate: '',
endDate: '',
});
this.sessionsForm = this._formBuilder.group({
isLimitRequired: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
isLimitRsvp: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
totalAttendanceTaking: false,
isAttendanceRequired: [false],
maxNoRSVP: 1,
Rows: this._formBuilder.array([this.initRows()]),
});
this.adminstrationFormGroup = this._formBuilder.group({
admin: this._formBuilder.array([]),
});
this.eventId && this.getEventsEdit(this.eventId);
this.eventId && this.isLinear != this.isLinear;
this.validateEventForm();
this.getuser();
}
getuser() {
if (!this.eventId) {
this.userService.getUserProfile().subscribe((res) => {
this.loggedUser = res.data;
this.publicationFormGroup.controls.isRSVPRequired.valueChanges.subscribe((res) => {
if (this.publicationFormGroup.controls.isRSVPRequired.value == 'true') {
const Control = this.LoginFieldsControl;
this.clearFormArray(Control);
let field = this._formBuilder.group({
string: [
this.loggedUser.name,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
_id: [
this.loggedUser._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]),
],
});
Control.push(field);
}
else {
const Control = this.LoginFieldsControl;
this.clearFormArray(Control);
}
});
});
}
}
sameTeaserImg() {
if (this.contentFormGroup.controls.isTeaserImage.value) {
this.contentFormGroup.patchValue({
image: this.eventFormGroup.get('image').value,
});
}
else if (this.contentFormGroup.controls.isTeaserImage.value == false) {
this.contentFormGroup.patchValue({
image: '',
});
}
}
getformdata() {
if (this.contentFormGroup.controls.isTeaserImage.value == true) {
this.contentFormGroup.patchValue({
isTeaserImage: true,
image: this.eventBoardFormGroup.controls.eventWallLogoImage.value,
});
}
else {
this.contentFormGroup.patchValue({
isTeaserImage: false,
});
}
}
validateMaxRsvp(e) {
this.sessionRowsLen = this.sessionsForm.controls.Rows.value.length;
if (this.sessionsForm.get('isLimitRsvp').value == false) {
this.sessionsForm.patchValue({
maxNoRSVP: 9999,
});
}
else if (this.sessionsForm.get('isLimitRsvp').value == true) {
this.setValid();
}
}
setValid() {
this.sessionRowsLen = this.sessionsForm.controls.Rows.value.length;
if ((this.sessionsForm.get('maxNoRSVP').value < this.sessionRowsLen ||
this.sessionsForm.get('maxNoRSVP').value == this.sessionRowsLen) &&
this.sessionsForm.get('maxNoRSVP').value != 0) {
this.sessionsForm.get('maxNoRSVP').setErrors(null);
}
else {
this.sessionsForm.get('maxNoRSVP').setErrors({ incorrect: true });
this.tostService.error('The value has to be min 1 but should not exceed the total number of sessions', '', { timeOut: 5000 });
}
}
move() {
if (!this.eventId && !this.minPublicationTimeValidator()) {
return;
}
if (this.publicationFormGroup.controls.isRSVPRequired.value == 'false') {
this.stepper.selectedIndex = 4;
this.sessionsForm.patchValue({
isLimitRequired: false,
isLimitRsvp: false,
totalAttendanceTaking: 0,
isAttendanceRequired: false,
maxNoRSVP: 0,
Rows: [],
});
}
else {
this.stepper.next();
}
}
moveBackEvent() {
if (this.publicationFormGroup.controls.isRSVPRequired.value == 'false') {
this.stepper.selectedIndex = 2;
this.sessionsForm.patchValue({
isLimitRequired: false,
isLimitRsvp: false,
totalAttendanceTaking: 0,
isAttendanceRequired: false,
maxNoRSVP: 0,
Rows: [],
});
}
else {
this.stepper.previous();
}
}
validateEventForm() {
this.eventBoardFormGroup
.get('isEventWallRequired')
.valueChanges.subscribe((value) => {
if (value == true) {
this.eventBoardFormGroup
.get('wallName')
.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required);
this.eventBoardFormGroup
.get('startDate')
.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required);
this.eventBoardFormGroup
.get('endDate')
.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required);
}
else if (value == false) {
this.eventBoardFormGroup.get('wallName').clearValidators();
this.eventBoardFormGroup.get('startDate').clearValidators();
this.eventBoardFormGroup.get('endDate').clearValidators();
this.eventBoardFormGroup.patchValue({
// isEventWallRequired: false,
wallName: '',
startDate: '',
endDate: '',
});
}
});
}
eventFormGroupError() {
this.eventFormGroup.valueChanges.subscribe((res) => {
if (!this.eventFormGroup.valid) {
this.eventFormGroupErr = true;
}
else {
this.eventFormGroupErr = false;
}
});
if (!this.eventFormGroup.valid) {
this.eventFormGroupErr = true;
}
else {
this.eventFormGroupErr = false;
}
}
contentFormGroupError() {
this.contentFormGroup.valueChanges.subscribe((res) => {
if (!this.contentFormGroup.valid) {
this.contentFormGroupErr = true;
}
else {
this.contentFormGroupErr = false;
}
});
if (!this.contentFormGroup.valid) {
this.contentFormGroupErr = true;
}
else {
this.contentFormGroupErr = false;
}
}
publicationFormGroupError() {
this.publicationFormGroup.valueChanges.subscribe((res) => {
if (!this.publicationFormGroup.valid) {
this.publicationFormGroupErr = true;
}
else {
this.publicationFormGroupErr = false;
}
});
if (!this.publicationFormGroup.valid) {
this.publicationFormGroupErr = true;
}
else {
this.publicationFormGroupErr = false;
}
}
sessionsFormError() {
this.sessionsForm.valueChanges.subscribe((res) => {
if (!this.sessionsForm.valid) {
this.sessionsFormErr = true;
}
else {
this.sessionsFormErr = false;
}
});
if (!this.sessionsForm.valid) {
this.sessionsFormErr = true;
}
else {
this.sessionsFormErr = false;
}
}
eventBoardFormGroupError() {
this.eventBoardFormGroup.valueChanges.subscribe((res) => {
if (this.eventBoardFormGroup.controls.isEventWallRequired.value ===
'true' &&
!this.eventBoardFormGroup.valid) {
this.eventBoardFormGroupErr = true;
}
else {
this.eventBoardFormGroupErr = false;
}
});
if (this.eventBoardFormGroup.controls.isEventWallRequired.value === 'true' &&
!this.eventBoardFormGroup.valid) {
this.eventBoardFormGroupErr = true;
}
else {
this.eventBoardFormGroupErr = false;
}
}
adminstrationFormGroupError() {
this.adminstrationFormGroup.valueChanges.subscribe((res) => {
if (!this.adminstrationFormGroup.valid) {
this.adminstrationFormGroupErr = true;
}
else {
this.adminstrationFormGroupErr = false;
}
});
if (!this.adminstrationFormGroup.valid) {
this.adminstrationFormGroupErr = true;
}
else {
this.adminstrationFormGroupErr = false;
}
}
listingTypeChange() {
if (this.eventFormGroup.get('listingType').value == 1) {
this.eventFormGroup.get('image').setValue(null);
this.eventFormGroup.get('image').clearValidators();
}
else {
this.eventFormGroup.get('image').setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required);
}
this.eventFormGroup.get('image').updateValueAndValidity();
}
getAttNo() {
this.sessionsForm
.get('isAttendanceRequired')
.valueChanges.subscribe((val) => {
if (val == true) {
this.sessionsForm
.get('isAttendanceRequired')
.setValidators(_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required);
}
else if (val == false) {
this.sessionsForm.get('isAttendanceRequired').clearValidators();
}
});
}
getchannels() {
const sub = this.newsService
.getAllChannels()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.channelArray = res.data;
});
}
getCategories(channel) {
this.channel = channel;
this.publicationFormGroup.patchValue({
categoryId: null,
});
if (channel._id) {
const sub = this.newsService
.getAllCategories(channel._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.categoriesArray = res.data;
});
}
}
setCategories(channel) {
this.category = channel;
}
getEventsEdit(id) {
const sub = this.newsService
.getSingleNewsEvents(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data: { content, publish, eventBoard, session, teaser, admin }, }) => {
this.editEvent = {
data: { content, publish, eventBoard, session, teaser, admin },
};
this.getCategories(publish.channelId);
this.channel = publish.channelId;
this.category = publish.categoryId;
this.isSessionDisabled = publish.isRSVPRequired === false ? true : false;
this.eventFormGroup.patchValue({
title: teaser.title,
image: teaser.image,
listingType: teaser.listingType,
});
this.contentFormGroup.patchValue({
title: content.title,
image: content.image,
isTeaserImage: content.isTeaserImage,
content: content.content,
organizerName: content.organizerName,
eventType: content.eventType,
address: content.address,
startDate: content.startDate,
endDate: content.endDate,
});
this.publicationFormGroup.patchValue({
channelId: publish.channelId._id,
categoryId: publish.categoryId._id,
isRSVPRequired: publish.isRSVPRequired.toString(),
startDate: publish.startDate,
endDate: publish.endDate,
});
this.eventBoardFormGroup.patchValue({
isEventWallRequired: eventBoard.isEventWallRequired,
eventWallLogoImage: eventBoard.eventWallLogoImage,
wallName: eventBoard.wallName,
startDate: eventBoard.startDate,
endDate: eventBoard.endDate,
});
this.sessionsForm.patchValue({
isLimitRequired: session.isLimitRequired,
isLimitRsvp: session.isLimitRsvp,
totalAttendanceTaking: session.totalAttendanceTaking,
isAttendanceRequired: session.isAttendanceRequired,
maxNoRSVP: session.maxNoRSVP,
Rows: session.Rows,
});
const SessionControl = this.formArr;
this.clearFormArray(SessionControl);
session.Rows.forEach((element) => {
let field = this._formBuilder.group({
startDate: [element.startDate, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
endDate: [element.endDate, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
totalParticipantPerSession: [element.totalParticipantPerSession],
location: [element.location, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
});
SessionControl.push(field);
});
const Control = this.LoginFieldsControl;
this.clearFormArray(Control);
admin.forEach((element) => {
let field = this._formBuilder.group({
string: [element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required])],
});
Control.push(field);
});
this.getAttNo();
if (!eventBoard.wallName) {
this.eventBoardFormGroup.patchValue({
isEventWallRequired: false,
});
}
// else {
// this.eventBoardFormGroup.patchValue({
// isEventWallRequired: true,
// });
// }
if (session.maxNoRSVP > 0 && session.maxNoRSVP != 9999) {
this.sessionsForm.patchValue({
isLimitRsvp: true,
});
}
else {
this.sessionsForm.patchValue({
isLimitRsvp: false,
});
}
this.sessionChange = this.sessionsForm
.get('Rows')
.valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500))
.subscribe((val) => {
this.sessionchangeArr = {};
const ss = this.sessionsForm.controls.Rows;
ss.controls.forEach((val, indx) => {
let vs = val;
if (!vs.pristine) {
this.sessionchangeArr[indx] = session.Rows[indx];
}
});
});
}, (error) => { });
}
onSeachCustomField(value) {
this.CustomFieldPTable.limit = 10;
this.CustomFieldPTable.search = value.term;
this.loadCustomField();
}
loadMoreCustomFieldItems(value) {
this.CustomFieldPTable.limit = this.CustomFieldPTable.limit + 10;
this.loadCustomField();
}
onClearCustomFieldDropdown(value) {
if (value === undefined) {
this.adminstrationFormGroup.patchValue({
loginFields: [],
});
this.CustomFieldPTable.search = '';
this.loadCustomField();
this.fieldNeedsToUpdate = [];
this.CustomFieldPTable.data = [];
}
}
loadCustomField() {
const _a = this.CustomFieldPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const subscribe = this.userService
.getAllUsers(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.CustomFieldPTable.data = data;
this.fieldNeedsToUpdate = data;
this.CustomFieldPTable.total = count;
}, (error) => {
this.CustomFieldPTable.data = [];
this.CustomFieldPTable.total = 0;
// this.tostService.error('No list found');
});
}
get formArr() {
return this.sessionsForm.get('Rows');
}
get LoginFieldsControl() {
return this.adminstrationFormGroup.get('admin');
}
initRows() {
return this._formBuilder.group({
startDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
endDate: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
totalParticipantPerSession: [''],
location: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required],
});
}
addLoginFields(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.LoginFieldsControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
// this.tostService.error(`${value.fieldName} is already added`);
}
else {
let field;
if (this.publicationFormGroup.controls.isRSVPRequired.value == 'false') {
field = this._formBuilder.group({
string: [value.name],
_id: [value._id],
});
}
else {
field = this._formBuilder.group({
string: [value.name, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
_id: [value._id, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
});
}
// let field = this._formBuilder.group({
// string: [value.name, [Validators.required]],
// _id: [value._id, [Validators.required]],
// });
Control.push(field);
}
});
}
deleteSelectedFields(index) {
const Control = this.LoginFieldsControl;
Control.removeAt(index);
}
addNewRow() {
this.formArr.push(this.initRows());
}
addMoreFelds() {
const control = this.formArr;
control.valid && control.push(this.initRows());
}
addMoreFelds1() {
this.isParticipentsEnabled = !this.isParticipentsEnabled;
}
deleteRow(index) {
var _a;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const id = (_a = this.editEvent.data.session.Rows[index]) === null || _a === void 0 ? void 0 : _a._id;
yield sweetalert2__WEBPACK_IMPORTED_MODULE_6___default.a.fire({
title: 'Cancel Session!',
text: 'Are you sure, you want to cancel this session??',
icon: 'info',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
this.newsService
.cancelSessions(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.eventLoader = false;
}))
.subscribe((response) => {
this.tostService.success('Session Cancelled Successfully');
}, (error) => {
this.tostService.error('Error found');
});
this.formArr.removeAt(index);
}
});
});
}
onSubmitEvents(i) {
var _a, _b, _c, _d;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (!this.adminstrationFormGroup.valid) {
this.adminstrationFormGroupErr = true;
return;
}
if (!this.eventId && !this.minPublicationTimeValidator()) {
return;
}
if (this.sessionChange && Object.keys(this.sessionchangeArr).length) {
this.sessionChange.unsubscribe();
const sessformArr = this.sessionsForm.controls.Rows;
let sessCount = sessformArr.length;
sessformArr.controls.forEach((el, index) => {
if (Object.keys(this.sessionchangeArr).includes(index.toString())) {
if (this.sessionchangeArr[index] != undefined) {
let form = el;
form.addControl('_id', new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](this.sessionchangeArr[index]._id));
}
else {
let form = el;
form.addControl('_id', new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"](''));
}
}
});
for (var j = sessCount; j >= Math.abs(sessCount); j--) {
sessCount = sessCount - 1;
if (!((_b = (_a = sessformArr.controls[j]) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.hasOwnProperty('_id'))) {
this.formArr.removeAt(j);
}
}
const sessformArr2 = this.sessionsForm.controls.Rows;
sessCount = sessformArr.length;
sessformArr2.controls.forEach((el, index) => {
let form = el;
if (el.get('_id').value == '') {
form.removeControl('_id');
}
});
}
if (!Object.keys(this.sessionchangeArr).length && this.eventId) {
this.formArr.clear();
}
const Control = this.LoginFieldsControl;
const { channelId, categoryId } = this.publicationFormGroup.value;
const newData = {
channelId: channelId,
categoryId: categoryId,
eventCreation: !!this.eventBoardFormGroup.value.isEventWallRequired ? 1 : 0,
postType: 'event',
teaser: {
title: this.eventFormGroup.value.title,
listingType: this.eventFormGroup.value.listingType,
},
content: {
title: this.contentFormGroup.value.title,
isTeaserImage: this.contentFormGroup.value.isTeaserImage,
content: this.contentFormGroup.value.content,
eventWallStartDate: this.eventBoardFormGroup.value.startDate,
eventWallEndDate: this.eventBoardFormGroup.value.endDate,
},
wallTitle: {
title: this.eventBoardFormGroup.value.wallName,
},
eventDetails: {
organizerName: this.contentFormGroup.value.organizerName,
address: this.contentFormGroup.value.address,
eventType: this.contentFormGroup.value.eventType,
startDate: this.contentFormGroup.value.startDate,
endDate: this.contentFormGroup.value.endDate,
isRSVPRequired: this.publicationFormGroup.value.isRSVPRequired,
isLimitRSVP: this.sessionsForm.value.isLimitRsvp,
maxNoRSVP: this.sessionsForm.value.maxNoRSVP,
isLimitRequired: this.sessionsForm.value.isLimitRequired,
isAttendanceRequired: this.sessionsForm.value.isAttendanceRequired,
totalAttendanceTaking: this.sessionsForm.value.totalAttendanceTaking,
isEventWallRequired: this.eventBoardFormGroup.value.isEventWallRequired,
},
publishing: {
startDate: this.publicationFormGroup.value.startDate,
endDate: this.publicationFormGroup.value.endDate,
NumberOfSessions: 1,
},
userOptions: {
like: false,
comment: false,
share: false,
attendance: false,
},
status: 1,
teaserImage: (_c = this.eventFormGroup.value) === null || _c === void 0 ? void 0 : _c.image,
mainImage: (_d = this.contentFormGroup.value) === null || _d === void 0 ? void 0 : _d.image,
eventWallLogoImage: this.eventBoardFormGroup.get('eventWallLogoImage').value,
};
if (this.eventId)
newData['postId'] = this.eventId;
if (this.eventId) {
yield sweetalert2__WEBPACK_IMPORTED_MODULE_6___default.a.fire({
title: 'Send Notification!',
text: 'Do you wish to send a notification for this update?',
icon: 'info',
showCancelButton: true,
confirmButtonText: `Yes`,
cancelButtonText: `No`,
}).then((result) => {
if (result.isConfirmed) {
newData['isNotifi'] = 'true';
}
else {
newData['isNotifi'] = 'false';
}
});
}
this.eventLoader = true;
const subscribe = this.eventId
? this.newsService
.updateNewsEvents(newData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.eventLoader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a, _b;
const getSessionList = [];
this.sessionsForm.value.Rows.length > 0 && !!this.sessionsForm.value.Rows[0].startDate && ((_b = (_a = this.sessionsForm.value) === null || _a === void 0 ? void 0 : _a.Rows) === null || _b === void 0 ? void 0 : _b.map((val, ind) => {
var _a;
const sessionVO = {
indexno: ind + 1,
startDate: val === null || val === void 0 ? void 0 : val.startDate,
startTime: val === null || val === void 0 ? void 0 : val.startDate,
endDate: val === null || val === void 0 ? void 0 : val.endDate,
endTime: val === null || val === void 0 ? void 0 : val.endDate,
location: val === null || val === void 0 ? void 0 : val.location,
totalParticipantPerSession: ((_a = this.sessionsForm.value) === null || _a === void 0 ? void 0 : _a.isLimitRequired) ? +(val === null || val === void 0 ? void 0 : val.totalParticipantPerSession) : 9999,
adminIds: Control.value.map((item) => item._id),
checked: false,
_id: val._id,
post: response.data._id,
attendaceRequiredCount: 1,
};
getSessionList.push(sessionVO);
}));
const filtered = this.editEvent.data.session.Rows.filter((data, index) => {
const indexFound = getSessionList.findIndex((element) => { return (element === null || element === void 0 ? void 0 : element._id) == (data === null || data === void 0 ? void 0 : data._id); });
return indexFound < 0;
});
let updatedata = [];
if (!this.editEvent.data.session.isLimitRequired) {
updatedata = filtered.map(val => (val === null || val === void 0 ? void 0 : val.totalParticipantPerSession) == 0 || (val === null || val === void 0 ? void 0 : val.totalParticipantPerSession) == 9999 && Object.assign(Object.assign({}, val), { totalParticipantPerSession: 9999 }));
}
else {
updatedata = filtered;
}
const sessionPayload = {
event_id: response.data._id,
sessions: [
...getSessionList,
...updatedata,
],
deletedSessions: [],
};
this.newsService
.updateEventsSessions(sessionPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.eventLoader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.overViewEvent.emit(null);
this.tostService.success('Event Updated');
}, (error) => {
this.tostService.error('Error found');
});
}, (error) => { })
: this.newsService
.createNewsEvents(newData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.eventLoader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.sessionApiCall(response);
});
});
}
openImageCropUpload(value) {
this.imageCategory = value;
this.modelService.open(this.AddImageCropper, {
windowClass: 'modal-ui-fix.center-align.xlModal', size: 'lg',
});
}
saveAsDraft() {
var _a;
if (!this.eventId && !this.minPublicationTimeValidator()) {
return;
}
const { channelId, categoryId } = this.publicationFormGroup.value;
const newData = {
channelId: channelId,
categoryId: categoryId,
eventCreation: 0,
postType: 'event',
teaser: {
title: this.eventFormGroup.value.title,
listingType: this.eventFormGroup.value.listingType,
},
content: {
title: this.contentFormGroup.value.title,
isTeaserImage: this.contentFormGroup.value.isTeaserImage,
content: this.contentFormGroup.value.content,
eventWallStartDate: this.eventBoardFormGroup.value.startDate,
eventWallEndDate: this.eventBoardFormGroup.value.endDate,
},
wallTitle: {
title: this.eventBoardFormGroup.value.wallName,
isTeaserImageForWall: this.eventBoardFormGroup.value.isEventWallRequired
},
eventDetails: {
organizerName: this.contentFormGroup.value.organizerName,
address: this.contentFormGroup.value.address,
eventType: this.contentFormGroup.value.eventType,
startDate: this.contentFormGroup.value.startDate,
endDate: this.contentFormGroup.value.endDate,
isRSVPRequired: this.publicationFormGroup.value.isRSVPRequired,
isLimitRSVP: this.sessionsForm.value.isLimitRsvp,
maxNoRSVP: this.sessionsForm.value.maxNoRSVP,
isLimitRequired: this.sessionsForm.value.isLimitRequired,
isAttendanceRequired: this.sessionsForm.value.isAttendanceRequired,
totalAttendanceTaking: this.sessionsForm.value.totalAttendanceTaking,
isEventWallRequired: this.eventBoardFormGroup.value.isEventWallRequired,
},
publishing: {
startDate: this.publicationFormGroup.value.startDate,
endDate: this.publicationFormGroup.value.endDate,
NumberOfSessions: 1,
},
userOptions: {
like: false,
comment: false,
share: false,
attendance: false,
},
status: 2,
teaserImage: (_a = this.eventFormGroup.value) === null || _a === void 0 ? void 0 : _a.image
};
const subscribe = this.newsService
.createNewsEvents(newData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.eventLoader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.sessionApiCall(response);
}, (error) => {
this.tostService.error('Error Found');
});
}
//method to call session api
sessionApiCall(response) {
var _a, _b;
const getSessionList = [];
const Control = this.LoginFieldsControl;
this.sessionsForm.value.Rows.length > 0 && ((_b = (_a = this.sessionsForm.value) === null || _a === void 0 ? void 0 : _a.Rows) === null || _b === void 0 ? void 0 : _b.map((val, ind) => {
var _a;
const sessionVO = {
indexno: ind + 1,
startDate: val === null || val === void 0 ? void 0 : val.startDate,
startTime: val === null || val === void 0 ? void 0 : val.startDate,
endDate: val === null || val === void 0 ? void 0 : val.endDate,
endTime: val === null || val === void 0 ? void 0 : val.endDate,
location: val === null || val === void 0 ? void 0 : val.location,
totalParticipantPerSession: ((_a = this.sessionsForm.value) === null || _a === void 0 ? void 0 : _a.isLimitRequired) ? +(val === null || val === void 0 ? void 0 : val.totalParticipantPerSession) : 9999,
adminIds: Control.value.map((item) => item._id),
checked: false,
};
getSessionList.push(sessionVO);
}));
const sessionPayload = {
event_id: response.data._id,
sessions: getSessionList,
};
const subscribe = this.newsService
.createEventsSessions(sessionPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.eventLoader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.overViewEvent.emit(null);
this.tostService.success('Event Created Successfully');
}, (error) => {
this.tostService.error('Error found');
});
}
//method to validate publication time
minPublicationTimeValidator() {
const startDateTime = new Date(this.publicationFormGroup.get('startDate').value);
const endDateTime = new Date(this.publicationFormGroup.get('endDate').value);
const currentDateTime = new Date();
if (startDateTime <= currentDateTime) {
this.tostService.error('Start time should be greater than current time.');
return false;
}
else if (endDateTime <= startDateTime) {
this.tostService.error('End time should be greater than start time.');
return false;
}
return true;
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
CreateEditEventsComponent.ɵfac = function CreateEditEventsComponent_Factory(t) { return new (t || CreateEditEventsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_10__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_11__["ToastrService"])); };
CreateEditEventsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: CreateEditEventsComponent, selectors: [["app-create-edit-events"]], viewQuery: function CreateEditEventsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵstaticViewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c2, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c3, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.AddDepartment = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.AddImageCropper = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.stepper = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.myInputVariable = _t.first);
} }, inputs: { eventId: "eventId" }, outputs: { overViewEvent: "overViewEvent" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([
{
provide: _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_1__["STEPPER_GLOBAL_OPTIONS"],
useValue: { showError: true },
},
])], decls: 331, vars: 67, consts: [[3, "linear"], ["stepper", ""], [3, "stepControl"], [3, "formGroup"], ["matStepLabel", ""], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "row"], [1, "col-md-4"], [1, "font-weight-500"], [1, "field-mandatory"], ["formControlName", "listingType", "placeholder", "Select type", 1, "w-100", "form-control", 3, "change"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "row", "mt-4"], [1, "col-md-12"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-500"], ["formControlName", "title", 3, "froalaEditor"], ["class", "col-md-4", 4, "ngIf"], ["class", "col-md-12", 4, "ngIf"], [1, "col-md-2"], [1, "d-flex", "justify-content-between"], [1, "btn", "btn-submit", "btn-block", "p-2", "m-1", 3, "click"], [1, "card", "mb-2"], ["class", "row mt-0", 4, "ngIf"], ["class", "row mt-4", 4, "ngIf"], ["formControlName", "content", 3, "froalaEditor"], [1, "col-xs-3", "col-sm-3", "col-md-3", "col-lg-3"], ["type", "text", "formControlName", "organizerName", 1, "form-control"], ["type", "text", "formControlName", "address", 1, "form-control"], [1, "col-xs-6", "col-sm-6", "col-md-4", "col-lg-4", "radio-container", 2, "display", "flex", "justify-content", "space-between", "margin-top", "30px"], [1, "radio"], ["id", "sameday", "type", "radio", "formControlName", "eventType", 3, "value"], ["for", "sameday", 1, "font-weight-500"], [1, "radio", "radio-danger", "radio-inline", "ml-1"], ["type", "radio", "formControlName", "eventType", 3, "value"], ["for", "multiday", 1, "font-weight-500"], [1, "row", "mt-5"], ["formControlName", "startDate"], ["matStepperPrevious", "", 1, "btn", "btn-clear", "btn-block", "p-2", "m-1"], ["bindLabel", "name", "bindValue", "_id", "placeholder", "Channel", "formControlName", "channelId", 3, "items", "searchable", "change"], ["bindLabel", "name", "bindValue", "_id", "placeholder", "Category", "formControlName", "categoryId", 3, "items", "searchable", "change"], [1, "col-md-4", "mt-1"], ["formControlName", "endDate"], [1, "col-md-12", "form-group"], ["for", "name", 1, "headerStyleNew", "font-weight-500"], [1, "radio", "radio-danger", "radio-inline"], ["type", "radio", "value", "true", "formControlName", "isRSVPRequired"], ["for", "radio1"], ["type", "radio", "value", "false", "formControlName", "isRSVPRequired"], [3, "stepControl", "aria-labelledby"], ["type", "radio", "formControlName", "isLimitRequired", 3, "value"], ["formControlName", "isLimitRequired", "type", "radio", 1, "ml-2", 3, "value"], ["type", "radio", "id", "radio5", "formControlName", "isAttendanceRequired", 3, "value", "change"], ["for", "radio5"], ["type", "radio", "ng-checked", "true", "id", "radio6", "formControlName", "isAttendanceRequired", 1, "ml-2", 3, "value", "change"], ["for", "radio6"], [1, "col-md-7"], [1, "headerStyleNew", "main", "font-weight-500", 2, "line-height", "2.8"], ["formControlName", "totalAttendanceTaking", "type", "number", "min", "1", 1, "form-control", 3, "value"], [1, "table-responsive"], [1, "table"], ["scope", "col"], ["scope", "col", 4, "ngIf"], ["formArrayName", "Rows"], [3, "formGroupName", 4, "ngFor", "ngForOf"], [1, "btn", "btn-submit", "pull-right", 3, "click"], [1, "headerStyleNew", "font-weight-500"], [1, "form-check", "form-check-inline"], ["name", "isLimitRsvp", "type", "radio", "formControlName", "isLimitRsvp", 1, "form-check-input", 3, "value", "change"], [1, "form-check-label"], ["formControlName", "maxNoRSVP", "type", "number", 1, "form-control", 3, "keyup"], [1, "card", "mb-2", "w-100"], ["type", "radio", "formControlName", "isEventWallRequired", 1, "form-check-input", 3, "value", "change"], [3, "ngIf"], [1, "btn", "btn-clear", "btn-block", "p-2", "m-1", 3, "click"], [1, "col-md-6"], ["class", "table", 4, "ngIf"], ["class", "text-danger", 4, "ngIf"], [1, "col-md-3"], ["bindLabel", "name", "placeholder", "Select Admin", "appendTo", "body", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "clearable", "loading", "change", "search", "scrollToEnd", "clear"], [3, "value", "disabled", 4, "ngFor", "ngForOf"], [1, "col-md-3", "p-4"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap", "margin-top", "3px"], ["formArrayName", "admin", 4, "ngFor", "ngForOf"], [1, "btn", "btn-success", "btn-block", "p-2", "m-1", 3, "disabled", "click"], ["class", "spinner-border spinner-border-sm ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], [1, "btn", "btn-info", "btn-block", "p-2", "m-1", 3, "click"], ["AddDepartment", ""], ["AddImageCropper", ""], [3, "ngValue"], [1, "font-weight-bold", "m-0"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["id", "c", 1, "btn", "custom-file-input", "cursor-pointer", 3, "disabled", "click"], ["for", "i", 1, "custom-file-label"], ["aria-hidden", "true", 1, "fa", 3, "ngClass"], [1, "image-with-delete-icon", 2, "width", "200px"], ["title", "Delete", 1, "fa", "fa-close", 3, "click"], ["width", "200px", "height", "180px", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], [1, "text-danger", "font-weight-bold"], [1, "row", "mt-0"], [1, "row", "p-3"], [1, "form-group", "form-check"], ["type", "checkbox", "formControlName", "isTeaserImage", 1, "form-check-input", 3, "change"], [1, "form-check-label", "font-weight-500"], [1, "image-with-delete-icon", 2, "width", "150px"], ["width", "100px", "height", "80px", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], [3, "formGroupName"], ["type", "title", "placeholder", "Location", "formControlName", "location", 1, "form-control"], [4, "ngIf"], ["type", "title", "placeholder", "Participant", "formControlName", "totalParticipantPerSession", 1, "form-control"], [1, "col-md-6", "mt-1"], ["for", "exampleInputEmail1", 1, "pb-2", "font-weight-500"], ["type", "text", "placeholder", "Wall name", "formControlName", "wallName", 1, "form-control"], [1, "pb-2", "font-weight-500"], ["formArrayName", "Rows", 4, "ngFor", "ngForOf"], [1, "text-items", 3, "formGroupName"], [1, "btn", "btn-clear", 3, "click"], [1, "text-danger"], [3, "value", "disabled"], ["formArrayName", "admin"], [1, "text-items", "list-ui", 3, "formGroupName"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-3", 3, "click"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-1"], [1, "modal-header"], ["id", "modal-basic-title", 1, "modal-title"], ["type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-content", "mobile-content"], [1, "modal-body"], [1, "smartphone"], [1, "container", "py-3", "container-scroll"], [1, "col"], ["alt", "Event Image", "crossorigin", "anonymous", 1, "img-fluid", "rounded", 3, "src"], [1, "text-muted", "my-1"], [1, "row", "my-3"], [1, "col-6"], [1, "d-flex", "align-items-center"], [1, "material-icons", "text-theme", "mr-1"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], [1, "col-12"], [3, "froalaView", "innerHTML"], [1, "d-block", "ng-binding"], ["aria-hidden", "true", 2, "font-size", "30px"], [1, "container"], [1, "row", 2, "margin-top", "5%"], [1, "text-center", "col-md-12"], ["type", "file", "accept", "image/png, image/gif, image/jpeg", 1, "text-primary", 3, "change"], ["myInput", ""], [1, "btn", "btn-info", 3, "click"], [1, "horizontal-line"], [1, "row", "text-center", "p-2", "m-2", "border-1", "bg-wrapper"], ["mat-mini-fab", "", "color", "warning", 3, "click"], ["mat-mini-fab", "", "color", "success", 3, "click"], [1, "text-center", "col-5"], ["format", "png", 3, "imageChangedEvent", "maintainAspectRatio", "containWithinAspectRatio", "aspectRatio", "cropperMinWidth", "roundCropper", "canvasRotation", "transform", "alignImage", "imageCropped", "imageLoaded", "cropperReady", "loadImageFailed"], [1, "text-center", "myImg", "col-7"], [3, "src"], [1, "row", "text-center", "justify-content-center", "pt-4"], [1, "btn", "btn-lg", "btn-success", 3, "click"]], template: function CreateEditEventsComponent_Template(rf, ctx) { if (rf & 1) {
const _r87 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-horizontal-stepper", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "mat-step", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, CreateEditEventsComponent_ng_template_4_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "EVENT TEASER");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Listing Type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_select_change_15_listener() { return ctx.listingTypeChange(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, CreateEditEventsComponent_option_16_Template, 2, 2, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Teaser Title (Limit to 150 Character)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](24, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](26, CreateEditEventsComponent_div_26_Template, 9, 5, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](27, CreateEditEventsComponent_div_27_Template, 4, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](28, CreateEditEventsComponent_div_28_Template, 3, 0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_31_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r87); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1); ctx.eventFormGroup.valid && _r0.next(); return ctx.eventFormGroupError(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "mat-step", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](35, CreateEditEventsComponent_ng_template_35_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "CONTENT");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, "Title (Limit to 150 Character)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](47, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](48, CreateEditEventsComponent_div_48_Template, 9, 0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](49, CreateEditEventsComponent_div_49_Template, 11, 6, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "label", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](54, "Event Content (Limit to 150 Character)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](57, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](61, "Organiser Name");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](63, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](64, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](67, "Place / Address");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](69, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](70, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](73, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](75, " Same Day Event");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](77, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](79, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "label", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](81, " Multi Days Event");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](83, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](85, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](87, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](88, "Start Date & Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](90, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](91, "app-date-time-picker", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](92, CreateEditEventsComponent_div_92_Template, 7, 0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](93, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](94, CreateEditEventsComponent_div_94_Template, 5, 0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](95, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](98, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](99, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_99_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r87); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1); ctx.contentFormGroup.valid && _r0.next(); ctx.getformdata(); return ctx.contentFormGroupError(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](100, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](101, "mat-step", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](102, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](103, CreateEditEventsComponent_ng_template_103_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](104, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](105, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](106, "PUBLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](107, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](108, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](109, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](110, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](111, " Channel ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](112, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](113, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](114, "ng-select", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_ng_select_change_114_listener($event) { return ctx.getCategories($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](115, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](116, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](117, " Category");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](118, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](119, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](120, "ng-select", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_ng_select_change_120_listener($event) { return ctx.setCategories($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](121, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](122, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](123, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](124, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](125, " Publish Date & time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](126, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](127, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](128, "app-date-time-picker", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](129, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](130, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](131, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](132, " Expire Date & time ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](133, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](134, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](135, "app-date-time-picker", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](136, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](137, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](138, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](139, "Do you require staff to RSVP for event? ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](140, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](141, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](142, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](143, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](144, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](145, "label", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](146, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](147, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](148, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](149, "label", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](150, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](151, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](152, CreateEditEventsComponent_div_152_Template, 3, 0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](153, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](154, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](155, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](156, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](157, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_157_listener() { ctx.publicationFormGroup.valid && ctx.move(); return ctx.publicationFormGroupError(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](158, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](159, "mat-step", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](160, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](161, CreateEditEventsComponent_ng_template_161_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](162, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](163, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](164, "SESSIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](165, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](166, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](167, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](168, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](169, "Do you need to limit the number of participants?");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](170, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](171, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](172, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](173, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](174, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](175, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](176, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](177, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](178, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](179, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](180, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](181, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](182, " Do you require attendance taking?");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](183, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](184, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](185, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](186, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](187, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_input_change_187_listener() { return ctx.getAttNo(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](188, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](189, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](190, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_input_change_190_listener() { return ctx.getAttNo(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](191, "label", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](192, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](193, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](194, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](195, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](196, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](197, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](198, "Number of Attendance taking required per session");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](199, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](200, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](201, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](202, "input", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](203, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](204, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](205, "CREATE SESSIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](206, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](207, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](208, "table", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](209, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](210, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](211, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](212, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](213, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](214, "Start Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](215, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](216, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](217, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](218, "End Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](219, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](220, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](221, "th", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](222, "Location");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](223, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](224, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](225, CreateEditEventsComponent_th_225_Template, 4, 0, "th", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](226, "tbody", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](227, CreateEditEventsComponent_tr_227_Template, 11, 3, "tr", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](228, "button", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_228_listener() { return ctx.addMoreFelds(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](229, " Add more ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](230, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](231, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](232, "label", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](233, " Do you want to limit the No. of sessions that staff can RSVP?");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](234, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](235, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](236, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](237, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](238, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_input_change_238_listener($event) { return ctx.validateMaxRsvp($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](239, "label", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](240, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](241, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](242, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_input_change_242_listener($event) { return ctx.validateMaxRsvp($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](243, "label", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](244, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](245, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](246, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](247, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](248, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](249, "label", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](250, "Max Number of RSVP staff can do? (It can be less than or same as the total number of sessions.)");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](251, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](252, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](253, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](254, "input", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("keyup", function CreateEditEventsComponent_Template_input_keyup_254_listener() { return ctx.setValid(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](255, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](256, CreateEditEventsComponent_div_256_Template, 3, 0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](257, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](258, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](259, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](260, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](261, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_261_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r87); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1); ctx.sessionsForm.valid && _r0.next(); return ctx.sessionsFormError(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](262, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](263, "mat-step", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](264, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](265, CreateEditEventsComponent_ng_template_265_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](266, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](267, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](268, "EVENT BOARD");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](269, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](270, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](271, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](272, "label", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](273, " Do you require Event Board? ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](274, "span", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](275, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](276, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](277, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](278, "input", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_input_change_278_listener() { return ctx.validateEventForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](279, "label", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](280, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](281, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](282, "input", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_input_change_282_listener() { return ctx.validateEventForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](283, "label", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](284, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](285, CreateEditEventsComponent_ng_template_285_Template, 34, 6, "ng-template", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](286, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](287, CreateEditEventsComponent_div_287_Template, 3, 0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](288, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](289, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](290, "button", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_290_listener() { return ctx.moveBackEvent(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](291, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](292, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_292_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r87); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](1); ctx.eventBoardFormGroup.valid && _r0.next(); return ctx.eventBoardFormGroupError(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](293, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](294, "mat-step", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](295, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](296, CreateEditEventsComponent_ng_template_296_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](297, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](298, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](299, "ADMINISTRATION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](300, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](301, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](302, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](303, "form", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](304, CreateEditEventsComponent_table_304_Template, 11, 1, "table", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](305, CreateEditEventsComponent_p_305_Template, 2, 0, "p", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](306, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](307, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](308, "Admin ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](309, "ng-select", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function CreateEditEventsComponent_Template_ng_select_change_309_listener($event) { return ctx.addLoginFields($event); })("search", function CreateEditEventsComponent_Template_ng_select_search_309_listener($event) { return ctx.onSeachCustomField($event); })("scrollToEnd", function CreateEditEventsComponent_Template_ng_select_scrollToEnd_309_listener($event) { return ctx.loadMoreCustomFieldItems($event); })("clear", function CreateEditEventsComponent_Template_ng_select_clear_309_listener($event) { return ctx.onClearCustomFieldDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](310, CreateEditEventsComponent_ng_option_310_Template, 2, 3, "ng-option", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](311, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](312, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](313, CreateEditEventsComponent_div_313_Template, 4, 2, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](314, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](315, CreateEditEventsComponent_div_315_Template, 3, 0, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](316, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](317, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](318, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](319, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](320, "button", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_320_listener() { ctx.onSubmitEvents(1); return ctx.adminstrationFormGroupError(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](321);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](322, CreateEditEventsComponent_span_322_Template, 1, 0, "span", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](323, "button", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_323_listener() { return ctx.saveAsDraft(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](324, " Save As Draft ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](325, "button", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function CreateEditEventsComponent_Template_button_click_325_listener() { return ctx.addDepartment(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](326, " Preview ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](327, CreateEditEventsComponent_ng_template_327_Template, 47, 14, "ng-template", null, 89, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](329, CreateEditEventsComponent_ng_template_329_Template, 18, 1, "ng-template", null, 90, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("linear", ctx.isLinear);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.eventFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.eventFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.listingType);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.eventFormGroup.get("listingType").value != 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.eventFormGroup.get("image").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.eventFormGroupErr);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.contentFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.contentFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx.options);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.eventFormGroup.get("listingType").value != 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.contentFormGroup.get("isTeaserImage").value != true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("froalaEditor", ctx.otheroptions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", "single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", "multi");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.contentFormGroup.get("eventType").value == "multi");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.contentFormGroupErr);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.publicationFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.publicationFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.channelArray)("searchable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.categoriesArray)("searchable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.publicationFormGroupErr);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.sessionsForm)("aria-labelledby", ctx.publicationFormGroup.value.isRSVPRequired == "false" ? "step_disable" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.sessionsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("hidden", ctx.sessionsForm.controls.isAttendanceRequired.value == false || ctx.sessionsForm.controls.isAttendanceRequired.value == "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("required", ctx.sessionsForm.get("isAttendanceRequired").value == true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.sessionsForm.get("isLimitRequired").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.formArr.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("hidden", ctx.sessionsForm.controls.isLimitRsvp.value == false || ctx.sessionsForm.controls.isLimitRsvp.value == "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.sessionsFormErr);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.eventBoardFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.eventBoardFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.eventBoardFormGroup.controls.isEventWallRequired.value == true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.eventBoardFormGroupErr);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.adminstrationFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.adminstrationFormGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.sessionsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.publicationFormGroup.get("isRSVPRequired").value == "true");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.publicationFormGroup.get("isRSVPRequired").value != "true");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("disabled", ctx.publicationFormGroup.get("isRSVPRequired").value != "true");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("loading", ctx.CustomFieldDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.fieldNeedsToUpdate);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.LoginFieldsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.adminstrationFormGroupErr);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", !ctx.adminstrationFormGroup.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.eventId ? "Update Event" : " Create Event", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.eventLoader);
} }, directives: [_angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__["MatHorizontalStepper"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__["MatStep"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__["MatStepLabel"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_14__["NgForOf"], angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_15__["FroalaEditorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_14__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RadioControlValueAccessor"], _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_16__["DateTimePickerComponent"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_12__["MatStepperPrevious"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RequiredValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_14__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupName"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__["ɵr"], angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_15__["FroalaViewDirective"], _angular_material_button__WEBPACK_IMPORTED_MODULE_18__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_19__["MatIcon"], ngx_image_cropper__WEBPACK_IMPORTED_MODULE_20__["ImageCropperComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_14__["DatePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_21__["SafeHtmlPipe"]], styles: [".smartphone[_ngcontent-%COMP%] {\n position: relative;\n width: 360px;\n height: 640px;\n margin: auto;\n border: 16px black solid;\n border-top-width: 60px;\n border-bottom-width: 60px;\n border-radius: 36px;\n}\n.ck.ck-editor__top[_ngcontent-%COMP%] {\n display: none;\n}\n.ck.ck-content[_ngcontent-%COMP%] {\n border: 1px solid #c4c4c4 !important;\n}\n\n.smartphone[_ngcontent-%COMP%]:before {\n content: \"\";\n display: block;\n width: 60px;\n height: 5px;\n position: absolute;\n top: -30px;\n left: 50%;\n transform: translate(-50%, -50%);\n background: #333;\n border-radius: 10px;\n}\n\n.smartphone[_ngcontent-%COMP%]:after {\n content: \"\";\n display: block;\n width: 35px;\n height: 35px;\n position: absolute;\n left: 50%;\n bottom: -65px;\n transform: translate(-50%, -50%);\n background: #333;\n border-radius: 50%;\n}\n\n.smartphone[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] {\n width: 327px;\n height: 517px;\n background: white;\n}\n.close-icon[_ngcontent-%COMP%] {\n width: 30px;\n float: right;\n margin: 20px;\n}\n.mat-stepper-horizontal[_ngcontent-%COMP%] .mat-horizontal-stepper-header-container {\n background-color: #fff;\n border-radius: 0.25rem;\n margin-bottom: 1rem;\n}\n.mat-stepper-horizontal[_ngcontent-%COMP%] .mat-horizontal-content-container {\n padding: 0;\n}\n.mat-form-field[_ngcontent-%COMP%] {\n margin-top: 16px;\n}\n.text-items[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n}\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n.parent[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-column-gap: 10px;\n grid-row-gap: 10px;\n}\n.child[_ngcontent-%COMP%] {\n height: 20px;\n}\n.wall-name-input[_ngcontent-%COMP%] {\n font-size: 20px;\n}\n.mat-form-field[_ngcontent-%COMP%] {\n margin-top: 16px;\n}\n.text-items[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n}\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n.parent[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-column-gap: 10px;\n grid-row-gap: 10px;\n}\n.child[_ngcontent-%COMP%] {\n height: 20px;\n}\n.criteria-source[_ngcontent-%COMP%] {\n color: #a42138;\n font-weight: 500;\n}\n.criteria-subtext[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n color: black;\n font-weight: 500;\n}\n.criteria-source-radio[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n.flex-direction[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n margin-left: -10px;\n width: 350px;\n}\n.btn-save[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n width: 100px;\n}\n.btn-danger[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n width: auto;\n}\n.btn-add[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n width: auto;\n}\n.btn-warning[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n width: auto;\n}\n.channels-section[_ngcontent-%COMP%] {\n position: relative;\n left: -20px;\n}\n.criteria-radio[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n.reward-points-button[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n border: none;\n}\n.reward-points-button-alt[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n border-color: #a42138;\n width: auto;\n}\n.rewards-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: whitesmoke;\n padding: 10px 20px 10px 20px;\n border-radius: 5px;\n margin-top: 20px;\n}\n.assign-users-buttons[_ngcontent-%COMP%] {\n margin-top: 35px;\n}\n.borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n border: none;\n}\n.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 0;\n}\n.modal-body[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n height: auto;\n}\n.channel-name[_ngcontent-%COMP%] {\n font-size: 16px;\n}\n.content-container[_ngcontent-%COMP%] {\n width: 50%;\n}\n.hidden[_ngcontent-%COMP%] {\n visibility: hidden;\n}\n.ng-select.disabled[_ngcontent-%COMP%] .ng-select-container, .ng-select.disabled[_ngcontent-%COMP%] .ng-select-container .ng-value-container, .ng-select.disabled[_ngcontent-%COMP%] .ng-select-container .ng-value-container .ng-input > input {\n cursor: not-allowed;\n}\n.text-theme[_ngcontent-%COMP%] {\n color: #a42138;\n}\n.container-scroll[_ngcontent-%COMP%] {\n overflow: auto;\n height: 100%;\n}\n.spinner-border[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n .mat-step-header[aria-labelledby=step_disable] {\n pointer-events: none !important;\n opacity: 0.6;\n}\n.myImg[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n width: 100%;\n height: auto;\n}\n.img-cropper[_ngcontent-%COMP%] {\n float: left;\n width: 70%;\n}\n.cropped-image[_ngcontent-%COMP%] {\n float: right;\n width: 28%;\n}\n.bg-wrapper[_ngcontent-%COMP%] {\n border: 1 solid;\n background: #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtZXZlbnRzL2NyZWF0ZS1lZGl0LWV2ZW50cy9jcmVhdGUtZWRpdC1ldmVudHMuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNEJBQUE7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0VBQ0Esd0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0VBQ0EsbUJBQUE7QUFDRjtBQUNBO0VBQ0UsYUFBQTtBQUVGO0FBQUE7RUFDRSxvQ0FBQTtBQUdGO0FBREEsaURBQUE7QUFDQTtFQUNFLFdBQUE7RUFDQSxjQUFBO0VBQ0EsV0FBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxTQUFBO0VBQ0EsZ0NBQUE7RUFDQSxnQkFBQTtFQUNBLG1CQUFBO0FBSUY7QUFEQSwyQ0FBQTtBQUNBO0VBQ0UsV0FBQTtFQUNBLGNBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsU0FBQTtFQUNBLGFBQUE7RUFDQSxnQ0FBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFJRjtBQURBLDBDQUFBO0FBQ0E7RUFDRSxZQUFBO0VBQ0EsYUFBQTtFQUNBLGlCQUFBO0FBSUY7QUFEQTtFQUNFLFdBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtBQUlGO0FBQUU7RUFDRSxzQkFBQTtFQUNBLHNCQUFBO0VBQ0EsbUJBQUE7QUFHSjtBQUFFO0VBQ0UsVUFBQTtBQUVKO0FBRUE7RUFDRSxnQkFBQTtBQUNGO0FBQ0E7RUFDRSx5QkFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSx1QkFBQTtFQUNBLFlBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0Esd0JBQUE7RUFDQSxxQkFBQTtFQUNBLDBCQUFBO0VBQ0EsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFFRjtBQUFBO0VBQ0UscUJBQUE7QUFHRjtBQURBO0VBQ0UsYUFBQTtFQUNBLHFDQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTtBQUlGO0FBRkE7RUFDRSxZQUFBO0FBS0Y7QUFGQTtFQUNFLGVBQUE7QUFLRjtBQUZBO0VBQ0UsZ0JBQUE7QUFLRjtBQUZBO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0VBQ0EsdUJBQUE7RUFDQSxZQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTtFQUNBLHdCQUFBO0VBQ0EscUJBQUE7RUFDQSwwQkFBQTtFQUNBLGVBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0FBS0Y7QUFIQTtFQUNFLHFCQUFBO0FBTUY7QUFKQTtFQUNFLGFBQUE7RUFDQSxxQ0FBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7QUFPRjtBQUxBO0VBQ0UsWUFBQTtBQVFGO0FBREE7RUFDRSxjQUFBO0VBQ0EsZ0JBQUE7QUFJRjtBQURBO0VBQ0UsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFJRjtBQURBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBSUY7QUFEQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtBQUlGO0FBREE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFlBQUE7QUFJRjtBQURBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxXQUFBO0FBSUY7QUFEQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtFQUNBLHFCQUFBO0VBQ0EsV0FBQTtBQUlGO0FBREE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFdBQUE7QUFJRjtBQURBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0FBSUY7QUFEQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUlGO0FBREE7RUFDRSx5QkFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSx1QkFBQTtFQUNBLFlBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0Esd0JBQUE7RUFDQSxxQkFBQTtFQUNBLDBCQUFBO0VBQ0EsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0FBSUY7QUFEQTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtFQUNBLHFCQUFBO0VBQ0EsV0FBQTtBQUlGO0FBREE7RUFDRSx5QkFBQTtFQUNBLGlCQUFBO0VBQ0EsNEJBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBSUY7QUFEQTtFQUNFLGdCQUFBO0FBSUY7QUFGQTs7RUFFRSxZQUFBO0FBS0Y7QUFIQTs7RUFFRSxVQUFBO0FBTUY7QUFIQTtFQUNFLGFBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsWUFBQTtBQU1GO0FBSEE7RUFDRSxlQUFBO0FBTUY7QUFIQTtFQUNFLFVBQUE7QUFNRjtBQUhBO0VBQ0Usa0JBQUE7QUFNRjtBQUhBOzs7RUFRRSxtQkFBQTtBQUNGO0FBRUE7RUFDRSxjQUFBO0FBQ0Y7QUFFQTtFQUNFLGNBQUE7RUFDQSxZQUFBO0FBQ0Y7QUFFQTtFQUNFLHNCQUFBO0FBQ0Y7QUFFQTtFQUNFLCtCQUFBO0VBQ0EsWUFBQTtBQUNGO0FBRUE7RUFDRSxXQUFBO0VBQ0EsWUFBQTtBQUNGO0FBRUE7RUFDRSxXQUFBO0VBQ0EsVUFBQTtBQUNGO0FBRUE7RUFDRSxZQUFBO0VBQ0EsVUFBQTtBQUNGO0FBRUE7RUFDRSxlQUFBO0VBQ0EsbUJBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vbWFuYWdlLWV2ZW50cy9jcmVhdGUtZWRpdC1ldmVudHMvY3JlYXRlLWVkaXQtZXZlbnRzLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLyogVGhlIGRldmljZSB3aXRoIGJvcmRlcnMgKi9cbi5zbWFydHBob25lIHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB3aWR0aDogMzYwcHg7XG4gIGhlaWdodDogNjQwcHg7XG4gIG1hcmdpbjogYXV0bztcbiAgYm9yZGVyOiAxNnB4IGJsYWNrIHNvbGlkO1xuICBib3JkZXItdG9wLXdpZHRoOiA2MHB4O1xuICBib3JkZXItYm90dG9tLXdpZHRoOiA2MHB4O1xuICBib3JkZXItcmFkaXVzOiAzNnB4O1xufVxuLmNrLmNrLWVkaXRvcl9fdG9wIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cbi5jay5jay1jb250ZW50IHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2M0YzRjNCAhaW1wb3J0YW50O1xufVxuLyogVGhlIGhvcml6b250YWwgbGluZSBvbiB0aGUgdG9wIG9mIHRoZSBkZXZpY2UgKi9cbi5zbWFydHBob25lOmJlZm9yZSB7XG4gIGNvbnRlbnQ6IFwiXCI7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICB3aWR0aDogNjBweDtcbiAgaGVpZ2h0OiA1cHg7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAtMzBweDtcbiAgbGVmdDogNTAlO1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbiAgYmFja2dyb3VuZDogIzMzMztcbiAgYm9yZGVyLXJhZGl1czogMTBweDtcbn1cblxuLyogVGhlIGNpcmNsZSBvbiB0aGUgYm90dG9tIG9mIHRoZSBkZXZpY2UgKi9cbi5zbWFydHBob25lOmFmdGVyIHtcbiAgY29udGVudDogXCJcIjtcbiAgZGlzcGxheTogYmxvY2s7XG4gIHdpZHRoOiAzNXB4O1xuICBoZWlnaHQ6IDM1cHg7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgbGVmdDogNTAlO1xuICBib3R0b206IC02NXB4O1xuICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbiAgYmFja2dyb3VuZDogIzMzMztcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xufVxuXG4vKiBUaGUgc2NyZWVuIChvciBjb250ZW50KSBvZiB0aGUgZGV2aWNlICovXG4uc21hcnRwaG9uZSAuY29udGVudCB7XG4gIHdpZHRoOiAzMjdweDtcbiAgaGVpZ2h0OiA1MTdweDtcbiAgYmFja2dyb3VuZDogd2hpdGU7XG59XG5cbi5jbG9zZS1pY29uIHtcbiAgd2lkdGg6IDMwcHg7XG4gIGZsb2F0OiByaWdodDtcbiAgbWFyZ2luOiAyMHB4O1xufVxuXG4ubWF0LXN0ZXBwZXItaG9yaXpvbnRhbCB7XG4gICY6Om5nLWRlZXAgLm1hdC1ob3Jpem9udGFsLXN0ZXBwZXItaGVhZGVyLWNvbnRhaW5lciB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICBib3JkZXItcmFkaXVzOiAwLjI1cmVtO1xuICAgIG1hcmdpbi1ib3R0b206IDFyZW07XG4gIH1cblxuICAmOjpuZy1kZWVwIC5tYXQtaG9yaXpvbnRhbC1jb250ZW50LWNvbnRhaW5lciB7XG4gICAgcGFkZGluZzogMDtcbiAgfVxufVxuXG4ubWF0LWZvcm0tZmllbGQge1xuICBtYXJnaW4tdG9wOiAxNnB4O1xufVxuLnRleHQtaXRlbXMge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBmb250LXNpemU6IDEzcHg7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIGxpbmUtaGVpZ2h0OiAyO1xuICAvKiBtYXJnaW4tcmlnaHQ6IDJweDsgKi9cbiAgY29sb3I6IHdoaXRlO1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgdmVydGljYWwtYWxpZ246IGJhc2VsaW5lO1xuICBib3JkZXItcmFkaXVzOiAwLjI1ZW07XG4gIHBhZGRpbmc6IDAuMmVtIDAuNmVtIDAuM2VtO1xuICBtYXJnaW46IDVweCA1cHg7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgcGFkZGluZy1yaWdodDogMzNweDtcbn1cbnVsIHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xufVxuLnBhcmVudCB7XG4gIGRpc3BsYXk6IGdyaWQ7XG4gIGdyaWQtdGVtcGxhdGUtY29sdW1uczogcmVwZWF0KDQsIDFmcik7XG4gIGdyaWQtY29sdW1uLWdhcDogMTBweDtcbiAgZ3JpZC1yb3ctZ2FwOiAxMHB4O1xufVxuLmNoaWxkIHtcbiAgaGVpZ2h0OiAyMHB4O1xufVxuXG4ud2FsbC1uYW1lLWlucHV0IHtcbiAgZm9udC1zaXplOiAyMHB4O1xufVxuXG4ubWF0LWZvcm0tZmllbGQge1xuICBtYXJnaW4tdG9wOiAxNnB4O1xufVxuXG4udGV4dC1pdGVtcyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGZvbnQtc2l6ZTogMTNweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgbGluZS1oZWlnaHQ6IDI7XG4gIC8qIG1hcmdpbi1yaWdodDogMnB4OyAqL1xuICBjb2xvcjogd2hpdGU7XG4gIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmU7XG4gIGJvcmRlci1yYWRpdXM6IDAuMjVlbTtcbiAgcGFkZGluZzogMC4yZW0gMC42ZW0gMC4zZW07XG4gIG1hcmdpbjogNXB4IDVweDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICBwYWRkaW5nLXJpZ2h0OiAzM3B4O1xufVxudWwge1xuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG59XG4ucGFyZW50IHtcbiAgZGlzcGxheTogZ3JpZDtcbiAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiByZXBlYXQoNCwgMWZyKTtcbiAgZ3JpZC1jb2x1bW4tZ2FwOiAxMHB4O1xuICBncmlkLXJvdy1nYXA6IDEwcHg7XG59XG4uY2hpbGQge1xuICBoZWlnaHQ6IDIwcHg7XG59XG5cbi8vIHNlbGVjdHtcbi8vICAgaGVpZ2h0OiAzMHB4O1xuLy8gfVxuXG4uY3JpdGVyaWEtc291cmNlIHtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG59XG5cbi5jcml0ZXJpYS1zdWJ0ZXh0IHtcbiAgbWFyZ2luLWJvdHRvbTogMXJlbTtcbiAgY29sb3I6IGJsYWNrO1xuICBmb250LXdlaWdodDogNTAwO1xufVxuXG4uY3JpdGVyaWEtc291cmNlLXJhZGlvIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG4uZmxleC1kaXJlY3Rpb24ge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIG1hcmdpbi1sZWZ0OiAtMTBweDtcbiAgd2lkdGg6IDM1MHB4O1xufVxuXG4uYnRuLXNhdmUge1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzMzN2FiNztcbiAgYm9yZGVyLWNvbG9yOiAjMmU2ZGE0O1xuICB3aWR0aDogMTAwcHg7XG59XG5cbi5idG4tZGFuZ2VyIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICNkOTUzNGY7XG4gIGJvcmRlci1jb2xvcjogI2Q0M2YzYTtcbiAgd2lkdGg6IGF1dG87XG59XG5cbi5idG4tYWRkIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICNkOTUzNGY7XG4gIGJvcmRlci1jb2xvcjogI2Q0M2YzYTtcbiAgd2lkdGg6IGF1dG87XG59XG5cbi5idG4td2FybmluZyB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjBhZDRlO1xuICBib3JkZXItY29sb3I6ICNlZWEyMzY7XG4gIHdpZHRoOiBhdXRvO1xufVxuXG4uY2hhbm5lbHMtc2VjdGlvbiB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgbGVmdDogLTIwcHg7XG59XG5cbi5jcml0ZXJpYS1yYWRpbyB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2Vlbjtcbn1cblxuLnJld2FyZC1wb2ludHMtYnV0dG9uIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBsaW5lLWhlaWdodDogMjtcbiAgLyogbWFyZ2luLXJpZ2h0OiAycHg7ICovXG4gIGNvbG9yOiB3aGl0ZTtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTtcbiAgYm9yZGVyLXJhZGl1czogMC4yNWVtO1xuICBwYWRkaW5nOiAwLjJlbSAwLjZlbSAwLjNlbTtcbiAgbWFyZ2luOiA1cHggNXB4O1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHBhZGRpbmctcmlnaHQ6IDMzcHg7XG4gIGJvcmRlcjogbm9uZTtcbn1cblxuLnJld2FyZC1wb2ludHMtYnV0dG9uLWFsdCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xuICBib3JkZXItY29sb3I6ICNhNDIxMzg7XG4gIHdpZHRoOiBhdXRvO1xufVxuXG4ucmV3YXJkcy1oZWFkaW5nIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6IHdoaXRlc21va2U7XG4gIHBhZGRpbmc6IDEwcHggMjBweCAxMHB4IDIwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgbWFyZ2luLXRvcDogMjBweDtcbn1cblxuLmFzc2lnbi11c2Vycy1idXR0b25zIHtcbiAgbWFyZ2luLXRvcDogMzVweDtcbn1cbi5ib3JkZXJsZXNzIHRkLFxuLmJvcmRlcmxlc3MgdGgge1xuICBib3JkZXI6IG5vbmU7XG59XG4udGFibGUgdGgsXG4udGFibGUgdGQge1xuICBwYWRkaW5nOiAwO1xufVxuXG4ubW9kYWwtYm9keSB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBoZWlnaHQ6IGF1dG87XG59XG5cbi5jaGFubmVsLW5hbWUge1xuICBmb250LXNpemU6IDE2cHg7XG59XG5cbi5jb250ZW50LWNvbnRhaW5lciB7XG4gIHdpZHRoOiA1MCU7XG59XG5cbi5oaWRkZW4ge1xuICB2aXNpYmlsaXR5OiBoaWRkZW47XG59XG5cbi5uZy1zZWxlY3QuZGlzYWJsZWQgOjpuZy1kZWVwIC5uZy1zZWxlY3QtY29udGFpbmVyLFxuLm5nLXNlbGVjdC5kaXNhYmxlZCA6Om5nLWRlZXAgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcixcbi5uZy1zZWxlY3QuZGlzYWJsZWRcbiAgOjpuZy1kZWVwXG4gIC5uZy1zZWxlY3QtY29udGFpbmVyXG4gIC5uZy12YWx1ZS1jb250YWluZXJcbiAgLm5nLWlucHV0XG4gID4gaW5wdXQge1xuICBjdXJzb3I6IG5vdC1hbGxvd2VkO1xufVxuXG4udGV4dC10aGVtZSB7XG4gIGNvbG9yOiAjYTQyMTM4O1xufVxuXG4uY29udGFpbmVyLXNjcm9sbCB7XG4gIG92ZXJmbG93OiBhdXRvO1xuICBoZWlnaHQ6IDEwMCU7XG59XG5cbi5zcGlubmVyLWJvcmRlciB7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG59XG5cbjo6bmctZGVlcCAubWF0LXN0ZXAtaGVhZGVyW2FyaWEtbGFiZWxsZWRieT1cInN0ZXBfZGlzYWJsZVwiXSB7XG4gIHBvaW50ZXItZXZlbnRzOiBub25lICFpbXBvcnRhbnQ7XG4gIG9wYWNpdHk6IDAuNjtcbn1cblxuLm15SW1nIGltZyB7XG4gIHdpZHRoOiAxMDAlO1xuICBoZWlnaHQ6IGF1dG87XG59XG5cbi5pbWctY3JvcHBlciB7XG4gIGZsb2F0OiBsZWZ0O1xuICB3aWR0aDogNzAlO1xufVxuXG4uY3JvcHBlZC1pbWFnZSB7XG4gIGZsb2F0OiByaWdodDtcbiAgd2lkdGg6IDI4JTtcbn1cblxuLmJnLXdyYXBwZXIge1xuICBib3JkZXI6IDEgc29saWQ7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](CreateEditEventsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
args: [{
selector: 'app-create-edit-events',
templateUrl: './create-edit-events.component.html',
styleUrls: ['./create-edit-events.component.scss'],
providers: [
{
provide: _angular_cdk_stepper__WEBPACK_IMPORTED_MODULE_1__["STEPPER_GLOBAL_OPTIONS"],
useValue: { showError: true },
},
],
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_7__["HttpClient"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_9__["UsersService"] }, { type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_10__["NewsEventsService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_11__["ToastrService"] }]; }, { AddDepartment: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['AddDepartment', { static: true }]
}], AddImageCropper: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['AddImageCropper', { static: true }]
}], stepper: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['stepper']
}], eventId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
}], myInputVariable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['myInput']
}] }); })();
/***/ }),
/***/ "mCAl":
/*!*****************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-balloting/leave-balloting.component.ts ***!
\*****************************************************************************************/
/*! exports provided: LeaveBallotingComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LeaveBallotingComponent", function() { return LeaveBallotingComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/human-resources/leave-planner.service */ "Z/ig");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _create_ballot_create_ballot_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./create-ballot/create-ballot.component */ "0UIz");
/* harmony import */ var _view_ballot_view_ballot_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./view-ballot/view-ballot.component */ "qm94");
/* harmony import */ var _manage_ballot_manage_ballot_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./manage-ballot/manage-ballot.component */ "SOWo");
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function LeaveBallotingComponent_ng_template_5_ngx_skeleton_loader_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 18);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_1_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, ", Cancelled");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Draft");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_1_span_2_Template, 2, 0, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r7.isCanceled);
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r7.isPublish ? item_r7.isCanceled ? "Cancelled" : "Open" : item_r7.isCanceled ? "Cancelled" : "Pending Publication");
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r7.isCanceled ? "Cancelled" : "Closed", " ");
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, ", Computed ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, ", Results Released ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_1_Template, 3, 1, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_2_Template, 2, 1, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_3_Template, 2, 1, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_4_Template, 2, 0, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_span_5_Template, 2, 0, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r7.isDraft);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r7.isDraft && ctx_r9.statusByTime(item_r7.applicationCloseDateTime));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r7.isDraft && !ctx_r9.statusByTime(item_r7.applicationCloseDateTime));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r7.isConduct);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r7.isResultRelease);
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_22_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "To be Auto-Assigned");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_22_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", item_r7.isCanceled ? "Cancelled" : "Closed", ", Computed ");
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_22_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", item_r7.isCanceled ? "Cancelled" : "Closed", ", Computed, Results Released ");
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_22_span_1_Template, 2, 0, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_22_span_2_Template, 2, 1, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_22_span_3_Template, 2, 1, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r7.isConduct);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r7.isConduct);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r7.isConduct && item_r7.isResultRelease);
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_button_29_Template(rf, ctx) { if (rf & 1) {
const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveBallotingComponent_ng_template_5_table_5_tr_18_button_29_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const i_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r28.manageBallot(i_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Manage ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function LeaveBallotingComponent_ng_template_5_table_5_tr_18_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "span", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](11, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "span", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](15, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "span", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](19, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_21_Template, 6, 5, "ng-container", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, LeaveBallotingComponent_ng_template_5_table_5_tr_18_ng_container_22_Template, 4, 3, "ng-container", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "button", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveBallotingComponent_ng_template_5_table_5_tr_18_Template_button_click_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r32); const i_r8 = ctx.index; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r31.viewBallot(i_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveBallotingComponent_ng_template_5_table_5_tr_18_Template_button_click_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r32); const i_r8 = ctx.index; const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r33.editBallot(i_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, LeaveBallotingComponent_ng_template_5_table_5_tr_18_button_29_Template, 2, 0, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r7 = ctx.$implicit;
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r7.ballotRound != 0 ? item_r7.ballotName + " - Round " + (item_r7.ballotRound + 1) : item_r7.ballotName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 10, item_r7.createdAt, "mediumDate"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](10, 13, item_r7.ballotStartDate, "mediumDate"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](11, 16, item_r7.ballotEndDate, "mediumDate"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](15, 19, item_r7.applicationOpenDateTime, "mediumDate"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](19, 22, item_r7.applicationCloseDateTime, "mediumDate"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r7.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r7.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", item_r7.isPublish || item_r7.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r6.onlyViewAccess);
} }
function LeaveBallotingComponent_ng_template_5_table_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "BALLOT TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "DATE CREATED");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "BALLOT PERIOD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "OPENING DATE FOR APPLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "CLOSING DATE FOR APPLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "ACTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, LeaveBallotingComponent_ng_template_5_table_5_tr_18_Template, 30, 25, "tr", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.ballotDataTable.data);
} }
function LeaveBallotingComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
const _r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Leave Balloting");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, LeaveBallotingComponent_ng_template_5_ngx_skeleton_loader_4_Template, 1, 2, "ngx-skeleton-loader", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LeaveBallotingComponent_ng_template_5_table_5_Template, 19, 1, "table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function LeaveBallotingComponent_ng_template_5_Template_ngb_pagination_pageChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r35); const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r34.ballotDataTable.page = $event; })("pageChange", function LeaveBallotingComponent_ng_template_5_Template_ngb_pagination_pageChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r35); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r36.onPageChangeballotData($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r1.ballotLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r1.ballotLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total records ", ctx_r1.ballotDataTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx_r1.ballotDataTable.total)("page", ctx_r1.ballotDataTable.page)("maxSize", 5)("pageSize", ctx_r1.ballotDataTable.limit);
} }
function LeaveBallotingComponent_li_6_ng_template_3_create_ballot_0_Template(rf, ctx) { if (rf & 1) {
const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "create-ballot", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("back", function LeaveBallotingComponent_li_6_ng_template_3_create_ballot_0_Template_create_ballot_back_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r41); const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r40.backTo($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ballot", ctx_r38.ballotData)("autoBallot", ctx_r38.autoBallotData)("roundBallot", ctx_r38.roundBallot);
} }
function LeaveBallotingComponent_li_6_ng_template_3_view_ballot_1_Template(rf, ctx) { if (rf & 1) {
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "view-ballot", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("back", function LeaveBallotingComponent_li_6_ng_template_3_view_ballot_1_Template_view_ballot_back_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r43); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r42.backTo($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ballot", ctx_r39.ballotData);
} }
function LeaveBallotingComponent_li_6_ng_template_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, LeaveBallotingComponent_li_6_ng_template_3_create_ballot_0_Template, 1, 3, "create-ballot", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, LeaveBallotingComponent_li_6_ng_template_3_view_ballot_1_Template, 1, 1, "view-ballot", 31);
} if (rf & 2) {
const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r37.view);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r37.view);
} }
function LeaveBallotingComponent_li_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeaveBallotingComponent_li_6_ng_template_3_Template, 2, 2, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r2.view ? "View" : ctx_r2.edit ? "Edit" : ctx_r2.auto ? "Auto-Assign" : "Create", " Ballot");
} }
function LeaveBallotingComponent_li_7_ng_template_3_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "manage-ballot", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ballotRound", function LeaveBallotingComponent_li_7_ng_template_3_Template_manage_ballot_ballotRound_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r45.addBallotRound($event); })("ballotAuto", function LeaveBallotingComponent_li_7_ng_template_3_Template_manage_ballot_ballotAuto_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r46); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r47.autoBallot($event); })("redirectToOverview", function LeaveBallotingComponent_li_7_ng_template_3_Template_manage_ballot_redirectToOverview_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r46); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r48.fromManageToOverview(); })("back", function LeaveBallotingComponent_li_7_ng_template_3_Template_manage_ballot_back_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r46); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r49.backTo($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ballot", ctx_r44.ballotData);
} }
function LeaveBallotingComponent_li_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Manage Ballot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeaveBallotingComponent_li_7_ng_template_3_Template, 1, 1, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3)("disabled", ctx_r3.manage);
} }
class LeaveBallotingComponent {
constructor(leaveService, roleService) {
this.leaveService = leaveService;
this.roleService = roleService;
this.active = 1;
// ballot: any;
this.ballotDataTable = {
data: [],
page: 1,
total: 0,
limit: 10,
};
this.manage = true;
this.ballotLoader = true;
this.onlyViewAccess = true;
this.onlyViewAccesstemp = true;
}
ngOnInit() {
this.getBallot();
this.showOnlyView();
}
showOnlyView() {
const rolePrivileges = this.roleService
.getUserPrivilege()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
rolePrivileges.unsubscribe();
}))
.subscribe((res) => {
this.onlyViewAccess = res.data.hasOwnProperty('viewBallot')
? res.data.viewBallot
: false;
this.onlyViewAccesstemp = this.onlyViewAccess;
});
}
autoBallot(e) {
this.auto = true;
this.autoBallotData = e;
this.active = 2;
}
fromManageToOverview() {
this.active = 1;
this.getBallot();
}
statusByTime(i) {
return moment__WEBPACK_IMPORTED_MODULE_1__().isBefore(i);
}
manageBallot(i) {
this.manage = true;
this.ballotData = this.ballotDataTable.data[i];
this.active = 3;
}
editBallot(i) {
if (!i.isPublish) {
this.edit = true;
this.ballotData = this.ballotDataTable.data[i];
this.active = 2;
}
}
viewBallot(i) {
this.onlyViewAccesstemp = false;
this.view = true;
this.ballotData = this.ballotDataTable.data[i];
this.active = 2;
}
backTo(e) {
this.onlyViewAccesstemp = this.onlyViewAccess;
this.active = e;
this.view = false;
this.edit = false;
this.auto = false;
this.ballotData = null;
this.autoBallotData = null;
this.roundBallot = null;
this.getBallot();
}
addBallotRound(e) {
this.active = 2;
this.roundBallot = e;
}
navChanged1(event) {
if (event.nextId === 3 && !this.manage) {
event.preventDefault();
}
if (event.nextId !== 2) {
this.onlyViewAccesstemp = this.onlyViewAccess;
this.view = false;
this.edit = false;
this.auto = false;
this.autoBallotData = null;
this.roundBallot = null;
this.ballotData = null;
}
if (event.activeId == 3 && event.nextId == 2) {
this.view = false;
this.edit = false;
this.auto = false;
this.autoBallotData = null;
this.roundBallot = null;
this.ballotData = null;
}
}
getBallot() {
this.ballotLoader = true;
const ballot = this.leaveService
.getBallot(this.ballotDataTable.page)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.ballotLoader = false;
ballot.unsubscribe();
}))
.subscribe((res) => {
var _a;
this.ballotDataTable.data = (res === null || res === void 0 ? void 0 : res.data) || [];
this.ballotDataTable.total = (res === null || res === void 0 ? void 0 : res.total) || 0;
(_a = this.ballotDataTable.data) === null || _a === void 0 ? void 0 : _a.sort((a, b) => { var _a, _b; return (((_a = new Date(a.createdAt)) === null || _a === void 0 ? void 0 : _a.getTime()) < ((_b = new Date(b.createdAt)) === null || _b === void 0 ? void 0 : _b.getTime()) ? 1 : -1); });
});
}
//method to pagination
onPageChangeballotData(page) {
this.ballotDataTable.page = page;
this.getBallot();
}
}
LeaveBallotingComponent.ɵfac = function LeaveBallotingComponent_Factory(t) { return new (t || LeaveBallotingComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_3__["LeavePlannerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_4__["RoleService"])); };
LeaveBallotingComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LeaveBallotingComponent, selectors: [["app-leave-balloting"]], decls: 12, vars: 6, consts: [["ngbNav", "", 1, "nav-tabs", "mb-3", "rounded", 3, "activeId", "activeIdChange", "navChange"], ["nav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 1, "text-uppercase", 3, "click"], ["ngbNavContent", ""], [3, "ngbNavItem", 4, "ngIf"], [3, "ngbNavItem", "disabled", 4, "ngIf"], [1, "align-self-center", "ml-auto", "nav-item", "pr-2", 3, "ngbNavItem"], [1, "btn", "btn-primary", 3, "click"], [3, "ngbNavOutlet"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body", "table-responsive", "p-0"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table table-hover", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], ["count", "6", 3, "theme"], [1, "table", "table-hover"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "noWrap"], [4, "ngIf"], [1, "d-flex"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "btn", "btn-warning", "btn-sm", "ml-2", 3, "disabled", "click"], ["class", "btn btn-success btn-sm ml-2", 3, "click", 4, "ngIf"], [1, "btn", "btn-success", "btn-sm", "ml-2", 3, "click"], ["ngbNavLink", "", 1, "text-uppercase"], [3, "ballot", "autoBallot", "roundBallot", "back", 4, "ngIf"], [3, "ballot", "back", 4, "ngIf"], [3, "ballot", "autoBallot", "roundBallot", "back"], [3, "ballot", "back"], [3, "ngbNavItem", "disabled"], [3, "ballot", "ballotRound", "ballotAuto", "redirectToOverview", "back"]], template: function LeaveBallotingComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function LeaveBallotingComponent_Template_ul_activeIdChange_0_listener($event) { return ctx.active = $event; })("navChange", function LeaveBallotingComponent_Template_ul_navChange_0_listener($event) { return ctx.navChanged1($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveBallotingComponent_Template_a_click_3_listener() { return ctx.backTo(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Overview");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LeaveBallotingComponent_ng_template_5_Template, 11, 7, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, LeaveBallotingComponent_li_6_Template, 4, 2, "li", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, LeaveBallotingComponent_li_7_Template, 4, 2, "li", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "li", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeaveBallotingComponent_Template_button_click_9_listener() { return ctx.getBallot(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Refresh");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "div", 9);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.active);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.onlyViewAccesstemp);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.onlyViewAccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNavOutlet"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbPagination"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_7__["NgxSkeletonLoaderComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _create_ballot_create_ballot_component__WEBPACK_IMPORTED_MODULE_8__["CreateBallotComponent"], _view_ballot_view_ballot_component__WEBPACK_IMPORTED_MODULE_9__["ViewBallotComponent"], _manage_ballot_manage_ballot_component__WEBPACK_IMPORTED_MODULE_10__["ManageBallotComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["DatePipe"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtYmFsbG90aW5nL2xlYXZlLWJhbGxvdGluZy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHNCQUFBO0FBQ0Y7QUFBRTtFQUNFLHlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSx5QkFBQTtBQUVKO0FBQUk7RUFDRSxjQUFBO0FBRU47QUFDSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFDTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2h1bWFuLXJlc291cmNlL2xlYXZlLWJhbGxvdGluZy9sZWF2ZS1iYWxsb3RpbmcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubmF2LXRhYnMge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAubmF2LWxpbmsge1xuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICAgYm9yZGVyOiBub25lO1xuICAgIHBhZGRpbmc6IDEycHggMjBweDtcbiAgICB0cmFuc2l0aW9uOiBjb2xvciAwLjJzO1xuICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIH1cblxuICAgICYuYWN0aXZlIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgI2E0MjEzODtcbiAgICAgIGJvcmRlci1ib3R0b206IDNweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LeaveBallotingComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-leave-balloting',
templateUrl: './leave-balloting.component.html',
styleUrls: ['./leave-balloting.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_3__["LeavePlannerService"] }, { type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_4__["RoleService"] }]; }, null); })();
/***/ }),
/***/ "mD8N":
/*!**************************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/form-manage-edit/form-manage-edit.component.ts ***!
\**************************************************************************************************************/
/*! exports provided: FormManageEditComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormManageEditComponent", function() { return FormManageEditComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/drag-drop */ "5+WD");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/input */ "qFsG");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["myImage"];
function FormManageEditComponent_div_0_div_13_div_7_Template(rf, ctx) { if (rf & 1) {
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "textarea", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_7_Template_textarea_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r24); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r3.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r3.answer);
} }
function FormManageEditComponent_div_0_div_13_div_8_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r27 == null ? null : option_r27.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function FormManageEditComponent_div_0_div_13_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_8_div_1_div_1_Template, 2, 1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_8_div_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r32); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r3.answer = $event; })("change", function FormManageEditComponent_div_0_div_13_div_8_div_1_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r32); const option_r27 = ctx.$implicit; const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r33.setChild(item_r3, option_r27); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r27 = ctx.$implicit;
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r27.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r27._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", item_r3._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", option_r27 == null ? null : option_r27.value)("ngModel", item_r3.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r27.value);
} }
function FormManageEditComponent_div_0_div_13_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_8_div_1_Template, 5, 6, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3.options);
} }
function FormManageEditComponent_div_0_div_13_div_9_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r38 == null ? null : option_r38.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function FormManageEditComponent_div_0_div_13_div_9_div_1_Template(rf, ctx) { if (rf & 1) {
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_9_div_1_div_1_Template, 2, 1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_9_div_1_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r43); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r3.answer = $event; })("change", function FormManageEditComponent_div_0_div_13_div_9_div_1_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r43); const option_r38 = ctx.$implicit; const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r44.setChild(item_r3, option_r38); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r38 = ctx.$implicit;
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r38.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r38._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", item_r3._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", option_r38 == null ? null : option_r38.value)("ngModel", item_r3.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", option_r38._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r38.value);
} }
function FormManageEditComponent_div_0_div_13_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_9_div_1_Template, 5, 7, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3.options);
} }
function FormManageEditComponent_div_0_div_13_div_10_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "img", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_div_13_div_10_div_2_img_2_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r55); const i_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r3.selected = i_r50; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", option_r49.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function FormManageEditComponent_div_0_div_13_div_10_div_2_span_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", option_r49.percentage, " %");
} }
const _c1 = function (a0) { return { "width": a0 }; };
const _c2 = function (a0) { return { "pollingSelect": a0 }; };
function FormManageEditComponent_div_0_div_13_div_10_div_2_Template(rf, ctx) { if (rf & 1) {
const _r61 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FormManageEditComponent_div_0_div_13_div_10_div_2_img_2_Template, 1, 1, "img", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_div_13_div_10_div_2_Template_div_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r61); const option_r49 = ctx.$implicit; const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r59.selectPolling(item_r3._id, option_r49); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "img", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "h4", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_div_13_div_10_div_2_Template_h4_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r61); const i_r50 = ctx.index; const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r3.selected = i_r50; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, FormManageEditComponent_div_0_div_13_div_10_div_2_span_11_Template, 2, 1, "span", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r49 = ctx.$implicit;
const i_r50 = ctx.index;
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", option_r49._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r49.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](7, _c1, option_r49.imageSrc ? "270px" : "150px"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", "./assets/images/" + (option_r49.answer ? "like1" : "like0") + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](9, _c2, item_r3.selected === i_r50));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r49.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r49.percentage);
} }
function FormManageEditComponent_div_0_div_13_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FormManageEditComponent_div_0_div_13_div_10_div_2_Template, 12, 11, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3.options);
} }
function FormManageEditComponent_div_0_div_13_div_11_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "img", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r67.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function FormManageEditComponent_div_0_div_13_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
const _r73 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_11_div_2_div_1_Template, 3, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function FormManageEditComponent_div_0_div_13_div_11_div_2_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r73); const option_r67 = ctx.$implicit; const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); const item_r3 = ctx_r72.$implicit; const i_r4 = ctx_r72.index; const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); ctx_r71.setChild(item_r3, option_r67, i_r4); return ctx_r71.setCheckboxAnswer($event, i_r4, option_r67, item_r3["answer"]); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r67 = ctx.$implicit;
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r67.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", option_r67._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r67._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r66.getCheckedValue(option_r67, item_r3["answer"]));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("\u00A0", option_r67.value, "");
} }
function FormManageEditComponent_div_0_div_13_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FormManageEditComponent_div_0_div_13_div_11_div_2_Template, 5, 5, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3.options);
} }
function FormManageEditComponent_div_0_div_13_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", item_r3.answer, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function FormManageEditComponent_div_0_div_13_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FormManageEditComponent_div_0_div_13_div_12_div_2_Template, 2, 1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "mat-icon", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.answer);
} }
function FormManageEditComponent_div_0_div_13_div_13_Template(rf, ctx) { if (rf & 1) {
const _r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "textarea", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_13_Template_textarea_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r81); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r3.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("maxlength", !!(item_r3 == null ? null : item_r3.maxlength) ? item_r3 == null ? null : item_r3.maxlength : 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r3.answer);
} }
function FormManageEditComponent_div_0_div_13_div_14_Template(rf, ctx) { if (rf & 1) {
const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_14_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r85); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r3.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r3.answer);
} }
function FormManageEditComponent_div_0_div_13_div_15_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
const _r95 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "input", 65, 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_15_div_1_div_1_Template_input_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r3.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "ngb-timepicker", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_15_div_1_div_1_Template_ngb_timepicker_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r3.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r3.answer["date"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r3.answer["time"])("meridian", true)("hourStep", ctx_r89.hourStep)("minuteStep", ctx_r89.minuteStep);
} }
function FormManageEditComponent_div_0_div_13_div_15_div_1_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
const _r103 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 65, 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_15_div_1_div_2_div_1_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r103); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit; return (item_r3.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r3.answer["date"]);
} }
function FormManageEditComponent_div_0_div_13_div_15_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_15_div_1_div_2_div_1_Template, 6, 1, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r88 === 1);
} }
function FormManageEditComponent_div_0_div_13_div_15_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
const _r108 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ngb-timepicker", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_15_div_1_div_3_Template_ngb_timepicker_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r108); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r3.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
const ctx_r91 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r3.answer["time"])("meridian", true)("hourStep", ctx_r91.hourStep)("minuteStep", ctx_r91.minuteStep);
} }
function FormManageEditComponent_div_0_div_13_div_15_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_15_div_1_div_1_Template, 11, 5, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FormManageEditComponent_div_0_div_13_div_15_div_1_div_2_Template, 2, 1, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, FormManageEditComponent_div_0_div_13_div_15_div_1_div_3_Template, 5, 4, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r88 = ctx.$implicit;
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r3.dateTime == null ? null : item_r3.dateTime.length) === 2 && option_r88 === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r3.dateTime == null ? null : item_r3.dateTime.length) === 1 && option_r88 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r88 === 2 && (item_r3.dateTime == null ? null : item_r3.dateTime.length) === 1);
} }
function FormManageEditComponent_div_0_div_13_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_15_div_1_Template, 4, 3, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3.dateTime);
} }
function FormManageEditComponent_div_0_div_13_div_16_ng_option_3_img_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 76);
} if (rf & 2) {
const choice_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", choice_r113.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function FormManageEditComponent_div_0_div_13_div_16_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_div_0_div_13_div_16_ng_option_3_img_1_Template, 1, 1, "img", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r113 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", choice_r113.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", choice_r113.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" \u00A0", choice_r113.value, " ");
} }
function FormManageEditComponent_div_0_div_13_div_16_Template(rf, ctx) { if (rf & 1) {
const _r118 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ng-select", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_16_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r118); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r3.answer = $event; })("change", function FormManageEditComponent_div_0_div_13_div_16_Template_ng_select_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r118); const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const item_r3 = ctx_r120.$implicit; const i_r4 = ctx_r120.index; const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r119.setChild(item_r3, item_r3.answer, i_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, FormManageEditComponent_div_0_div_13_div_16_ng_option_3_Template, 3, 3, "ng-option", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", false)("ngModel", item_r3.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3.options);
} }
function FormManageEditComponent_div_0_div_13_div_17_span_7_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, ", ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function FormManageEditComponent_div_0_div_13_div_17_span_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FormManageEditComponent_div_0_div_13_div_17_span_7_span_2_Template, 2, 0, "span", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const fileType_r123 = ctx.$implicit;
const index_r124 = ctx.index;
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", fileType_r123.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r3.options == null ? null : item_r3.options.length) != index_r124 + 1);
} }
function FormManageEditComponent_div_0_div_13_div_17_Template(rf, ctx) { if (rf & 1) {
const _r128 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function FormManageEditComponent_div_0_div_13_div_17_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r128); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r127 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r127.fileUpload($event, item_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "a", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, FormManageEditComponent_div_0_div_13_div_17_span_7_Template, 3, 2, "span", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("download", (item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.fileName) ? item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.fileName : item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("href", ctx_r15.safeUrl(item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.url), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", (item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.fileName) ? item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.fileName : item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3 == null ? null : item_r3.options);
} }
function FormManageEditComponent_div_0_div_13_div_18_Template(rf, ctx) { if (rf & 1) {
const _r133 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ngb-rating", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("rateChange", function FormManageEditComponent_div_0_div_13_div_18_Template_ngb_rating_rateChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r133); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r3.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("max", item_r3.value)("rate", item_r3.answer);
} }
function FormManageEditComponent_div_0_div_13_div_19_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r137 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", choice_r137._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", choice_r137.name, " ");
} }
function FormManageEditComponent_div_0_div_13_div_19_div_8_Template(rf, ctx) { if (rf & 1) {
const _r142 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "img", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_div_13_div_19_div_8_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r142); const index_r139 = ctx.index; const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r140 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r140.deleteDropDownValue(item_r3 == null ? null : item_r3.answer, index_r139); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const obj_r138 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", obj_r138 == null ? null : obj_r138.name, " ");
} }
function FormManageEditComponent_div_0_div_13_div_19_Template(rf, ctx) { if (rf & 1) {
const _r144 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function FormManageEditComponent_div_0_div_13_div_19_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r144); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r143 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r143.multiSelect($event, item_r3); })("ngModelChange", function FormManageEditComponent_div_0_div_13_div_19_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r144); const ctx_r146 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r146.user = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, FormManageEditComponent_div_0_div_13_div_19_ng_option_4_Template, 2, 2, "ng-option", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, FormManageEditComponent_div_0_div_13_div_19_div_8_Template, 4, 1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", true)("searchable", true)("ngModel", ctx_r17.user)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r17.typeFourteenQuestion);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3 == null ? null : item_r3.answer);
} }
function FormManageEditComponent_div_0_div_13_div_20_div_2_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r149 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", imagObj_r149.src, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function FormManageEditComponent_div_0_div_13_div_20_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FormManageEditComponent_div_0_div_13_div_20_div_2_div_2_Template, 2, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r149 = ctx.$implicit;
const ctx_r148 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("cdkDragDisabled", ctx_r148.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", imagObj_r149.src);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](imagObj_r149.value);
} }
function FormManageEditComponent_div_0_div_13_div_20_Template(rf, ctx) { if (rf & 1) {
const _r153 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("cdkDropListDropped", function FormManageEditComponent_div_0_div_13_div_20_Template_div_cdkDropListDropped_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r153); const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r152 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r152.drop($event, item_r3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, FormManageEditComponent_div_0_div_13_div_20_div_2_Template, 7, 3, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3.images);
} }
function FormManageEditComponent_div_0_div_13_div_21_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const value_r159 = ctx.$implicit;
const j_r160 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("left", value_r159 == null ? null : value_r159.coordinates == null ? null : value_r159.coordinates.x, "%")("top", value_r159 == null ? null : value_r159.coordinates == null ? null : value_r159.coordinates.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](j_r160 + 1);
} }
function FormManageEditComponent_div_0_div_13_div_21_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r3 == null ? null : item_r3.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
const _c3 = function (a0) { return { "position": a0 }; };
function FormManageEditComponent_div_0_div_13_div_21_Template(rf, ctx) { if (rf & 1) {
const _r164 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_div_13_div_21_Template_div_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r164); const ctx_r163 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const item_r3 = ctx_r163.$implicit; const i_r4 = ctx_r163.index; const ctx_r162 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r162.openPopup(item_r3.imageSrc, i_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "img", 100, 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_div_13_div_21_Template_img_click_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r164); const i_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r165 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r165.onImageClick($event, i_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, FormManageEditComponent_div_0_div_13_div_21_div_6_Template, 3, 5, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "- ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, FormManageEditComponent_div_0_div_13_div_21_div_9_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](4, _c3, ctx_r19.isPopupOpen ? "sticky" : "relative"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", item_r3.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3 == null ? null : item_r3.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r19.isFormSubmitted && (item_r3 == null ? null : item_r3.explanation));
} }
function FormManageEditComponent_div_0_div_13_div_22_tr_13_td_5_Template(rf, ctx) { if (rf & 1) {
const _r174 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "img", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_div_13_div_22_tr_13_td_5_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r174); const index_r170 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r172 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r172.conditionQuestionDelete(index_r170); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function FormManageEditComponent_div_0_div_13_div_22_tr_13_Template(rf, ctx) { if (rf & 1) {
const _r176 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function FormManageEditComponent_div_0_div_13_div_22_tr_13_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r176); const field_r169 = ctx.$implicit; return field_r169.value = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, FormManageEditComponent_div_0_div_13_div_22_tr_13_td_5_Template, 2, 0, "td", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r169 = ctx.$implicit;
const index_r170 = ctx.index;
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r168 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", index_r170 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", field_r169.value)("disabled", ctx_r168.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.length) >= 1);
} }
function FormManageEditComponent_div_0_div_13_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "strong", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Spot descriptions");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "table", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "SNO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "DESCRIPTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, FormManageEditComponent_div_0_div_13_div_22_tr_13_Template, 6, 4, "tr", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r3.answer);
} }
function FormManageEditComponent_div_0_div_13_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function FormManageEditComponent_div_0_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "strong", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "p", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, FormManageEditComponent_div_0_div_13_div_7_Template, 3, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, FormManageEditComponent_div_0_div_13_div_8_Template, 3, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, FormManageEditComponent_div_0_div_13_div_9_Template, 3, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, FormManageEditComponent_div_0_div_13_div_10_Template, 4, 1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, FormManageEditComponent_div_0_div_13_div_11_Template, 4, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, FormManageEditComponent_div_0_div_13_div_12_Template, 5, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, FormManageEditComponent_div_0_div_13_div_13_Template, 5, 2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, FormManageEditComponent_div_0_div_13_div_14_Template, 5, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, FormManageEditComponent_div_0_div_13_div_15_Template, 3, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, FormManageEditComponent_div_0_div_13_div_16_Template, 5, 5, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, FormManageEditComponent_div_0_div_13_div_17_Template, 9, 4, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, FormManageEditComponent_div_0_div_13_div_18_Template, 4, 2, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, FormManageEditComponent_div_0_div_13_div_19_Template, 10, 6, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, FormManageEditComponent_div_0_div_13_div_20_Template, 4, 1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, FormManageEditComponent_div_0_div_13_div_21_Template, 10, 6, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, FormManageEditComponent_div_0_div_13_div_22_Template, 14, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, FormManageEditComponent_div_0_div_13_div_23_Template, 2, 0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r3 = ctx.$implicit;
const i_r4 = ctx.index;
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", i_r4 + 1, ") \u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](6, 19, item_r3 == null ? null : item_r3.question), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r3.type === 16 && (item_r3 == null ? null : item_r3.answer == null ? null : item_r3.answer.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.viewQuestions.length == 0);
} }
function FormManageEditComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r180 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r180); const ctx_r179 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r179.back(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "img", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "h3", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, FormManageEditComponent_div_0_div_13_Template, 24, 21, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_div_0_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r180); const ctx_r181 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r181.submit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "submit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 5, ctx_r0.selectedModule == null ? null : ctx_r0.selectedModule.moduleName), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r0.selectedModule.welComeAttachement, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.selectedModule == null ? null : ctx_r0.selectedModule.welComeMessage, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.viewQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.selectedModule == null ? null : ctx_r0.selectedModule.Message, " ");
} }
function FormManageEditComponent_ng_container_1_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r184 = ctx.$implicit;
const i_r185 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("left", item_r184 == null ? null : item_r184.coordinates == null ? null : item_r184.coordinates.x, "%")("top", item_r184 == null ? null : item_r184.coordinates == null ? null : item_r184.coordinates.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r185 + 1);
} }
function FormManageEditComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
const _r187 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_ng_container_1_Template_div_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r187); const ctx_r186 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r186.closePopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "i", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "img", 118, 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormManageEditComponent_ng_container_1_Template_img_click_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r187); const ctx_r188 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r188.onImageClick($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, FormManageEditComponent_ng_container_1_div_8_Template, 3, 5, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r1.typeSixteenImageSRC, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.typeSixteenImageField);
} }
class FormManageEditComponent {
constructor(centralBuilderService, toastService, notificationService, sanitizer, customFormService) {
this.centralBuilderService = centralBuilderService;
this.toastService = toastService;
this.notificationService = notificationService;
this.sanitizer = sanitizer;
this.customFormService = customFormService;
this.questionId = null;
this.customFormId = null;
this.selectedWorkFlowID = null;
this.takeQuestion = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.viewPage = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.formTitleviewPage = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.questions = [];
this.viewQuestions = [];
this.subMittedAnswer = [];
this.time = { hour: 0o0, minute: 0o0, second: 0o0 };
this.dateTime = { hour: 0o0, minute: 0o0, second: 0o0 };
this.dataTimeOnly = { hour: 0o0, minute: 0o0, second: 0o0 };
this.hourStep = 1;
this.minuteStep = 1;
this.secondStep = 30;
this.secondsArray = ['AM', 'PM'];
this.hourArray = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];
this.minuteArray = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59'];
this.hasParent = question => { var _a; return 0 === ((_a = question === null || question === void 0 ? void 0 : question.conditionalQuestions) === null || _a === void 0 ? void 0 : _a.length); };
this.meridian = true;
this.user = { _id: null, name: null };
this.items = [];
this.images = [];
this.isModuleView = false;
this.fileToUpload = null;
this.questionDropDownToClear = null;
this.imagePath = src_environments_environment__WEBPACK_IMPORTED_MODULE_2__["environment"].imageUrl;
this.typeSixteenImageField = [];
this.isPopupOpen = false;
}
ngOnInit() {
this.questionId && this.getQuestions(this.questionId);
}
getSubMittedAnswer() {
}
toggleMeridian() {
this.meridian = !this.meridian;
}
multiSelect(value, question) {
value === null || value === void 0 ? void 0 : value.map(x => {
var _a, _b, _c;
if ((_a = question.answer) === null || _a === void 0 ? void 0 : _a.find(a => a._id == x)) {
this.toastService.error("Already added");
}
else {
let data = null;
if ((_b = this.typeFourteenQuestion) === null || _b === void 0 ? void 0 : _b.find(qus => qus._id == x)) {
data = (_c = this.typeFourteenQuestion) === null || _c === void 0 ? void 0 : _c.find(qus => qus._id == x);
question.answer.push(data);
}
}
});
this.user = { _id: null, name: null };
}
/*openDialog(questionid) {
const modalRef = this.dialogRef.open(SignatureQuestionsComponent, {
height: '500px',
width: '600px',
});
modalRef.componentInstance.takeSignature.subscribe((signURL: any) => {
this.signatureImg = signURL;
questionid.answer = signURL;
this.close(modalRef);
});
}*/
close(modalRef) {
modalRef.close();
}
drop(event, question) {
Object(_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_1__["moveItemInArray"])(question.images, event.previousIndex, event.currentIndex);
this.typeFifteen(question);
}
typeFifteen(question) {
let payload;
payload = question.images.map((data) => {
return { "value": data.value, "_id": data.option, correctAns: false };
});
question.images.map((data, i) => {
if (data.src !== '')
payload[i].imageSrc = data.src;
});
question.answer = payload;
}
back() {
this.takeQuestion.emit(false);
}
formatHoursTo12(date) {
let hour = date.hour % 12 || 12;
let minute;
if (hour < 10)
hour = '0' + hour;
if (date.minute < 10)
minute = '0' + date.minute;
else
minute = date.minute;
let seconds;
if (date.hour < 12)
seconds = 'am';
else
seconds = 'pm';
const time = hour + "-" + minute + "-" + seconds;
return time;
}
submit() {
const answers = this.viewQuestions.reduce((prev, question, i) => {
var _a, _b, _c, _d, _e, _f, _g, _h;
let answer = null, _id = question._id, type = question.type;
switch (question.type) {
case 1:
case 6:
case 8:
case 9:
case 14:
case 12:
case 13:
case 16:
case 5:
case 15:
answer = question.answer;
break;
case 2:
case 3:
case 11:
answer = ((_a = question.options) === null || _a === void 0 ? void 0 : _a.find(item => item.value == question.answer)) || null;
break;
case 10:
if (-1 !== question.dateTime.indexOf(1) && !!question.answer && !!question.answer.date) {
answer = answer || {};
answer["date"] = question.answer.date ? question.answer.date.split("-").reverse().join("-") : null;
}
if (-1 !== question.dateTime.indexOf(2) &&
!!question.answer &&
!!question.answer.time) {
answer = answer || {};
if (((_b = question === null || question === void 0 ? void 0 : question.answer.time) === null || _b === void 0 ? void 0 : _b.hour) && ((_c = question === null || question === void 0 ? void 0 : question.answer.time) === null || _c === void 0 ? void 0 : _c.minute)) {
answer["time"] = this.convert24hourTo12HourFormat(((_d = question.answer.time) === null || _d === void 0 ? void 0 : _d.hour) + ':' + ((_e = question.answer.time) === null || _e === void 0 ? void 0 : _e.minute));
}
}
if ((-1 !== question.dateTime.indexOf(1) && -1 !== question.dateTime.indexOf(2)) &&
!(!!question.answer && !!question.answer.date && !!((_f = question.answer.time) === null || _f === void 0 ? void 0 : _f.hour) && !!((_g = question.answer.time) === null || _g === void 0 ? void 0 : _g.minute))) {
answer = false;
}
break;
case 4:
answer = ((_h = question.options) === null || _h === void 0 ? void 0 : _h.filter(v => v.answer)) || null;
if (!answer.length) {
answer = null;
}
break;
default:
answer = false;
break;
}
return prev.concat({ _id, answer, type });
}, []);
if (answers === null || answers === void 0 ? void 0 : answers.some(v => v.type === 9 && !(!!v.answer))) {
this.toastService.error('Please enter valid numeric values');
return;
}
if (answers.some(v => !!!v.answer)) {
this.toastService.error("Answer all questions");
return;
}
let _questions = this.questions.map(v => v._id);
const payload = {
answers: answers,
manageFormId: this.customFormId,
questions: _questions
};
answers.length > 0 ? this.centralBuilderService.editAnswers(payload).subscribe((data) => {
this.toastService.success("Form Updated Successfully!!");
this.viewPage.emit(this.customFormId);
this.formTitleviewPage.emit(this.selectedModule.moduleName);
//redirect to manage page
this.takeQuestion.emit(true);
}) : '';
}
;
downloadAttachMent(answer) {
let a = document.createElement("a");
document.body.appendChild(a);
a.href = answer === null || answer === void 0 ? void 0 : answer.url;
a.download = answer === null || answer === void 0 ? void 0 : answer.fileName;
a.click();
document.body.removeChild(a);
}
getQuestions(moduleId) {
let payload = {
"customFormId": this.customFormId,
"moduleId": moduleId,
"moduleType": "customForms",
"trackQns": true
};
this.notificationService
.getModuleQuestions(payload)
.subscribe(({ data }) => {
var _a, _b, _c;
this.isModuleView = true;
this.selectedModule = (data === null || data === void 0 ? void 0 : data.data) || null;
if ((_b = (_a = this.selectedModule) === null || _a === void 0 ? void 0 : _a.questions) === null || _b === void 0 ? void 0 : _b.length) {
this.selectedModule.questions = ((_c = this.selectedModule.questions) === null || _c === void 0 ? void 0 : _c.filter(v => 7 !== v.type)) || [];
}
this.questions = this.selectedModule.questions.filter(v => 7 !== v.type) || [];
this.viewQuestions = this.questions.filter(x => 0 === x.conditionalQuestions.length) || [];
let typeFourteen;
const apiPayload = {
_id: this.selectedWorkFlowID
};
this.notificationService.getManageQuestions(apiPayload).subscribe(({ data }) => {
var _a, _b;
this.subMittedAnswer = (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.questionId;
(_b = this.viewQuestions) === null || _b === void 0 ? void 0 : _b.map((item, index) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1;
if (item._id == ((_a = this.subMittedAnswer[index]) === null || _a === void 0 ? void 0 : _a.questionId))
item.answer = (_c = (_b = this.subMittedAnswer[index]) === null || _b === void 0 ? void 0 : _b.answer) === null || _c === void 0 ? void 0 : _c.value;
if (item.type == 10) {
item.answer = { date: null, time: null };
const time = (_f = (_e = (_d = this.subMittedAnswer[index]) === null || _d === void 0 ? void 0 : _d.answer) === null || _e === void 0 ? void 0 : _e.time) === null || _f === void 0 ? void 0 : _f.split(':');
item.answer.date = ((_g = this.subMittedAnswer[index]) === null || _g === void 0 ? void 0 : _g.answer.date) ? (_h = this.subMittedAnswer[index]) === null || _h === void 0 ? void 0 : _h.answer.date.split("-").reverse().join("-") : null;
item.answer.time = time ? { hour: parseInt(time[0]), minute: parseInt(time[1]), second: 0 } : null;
}
if (item.type == 8 || item.type == 9 || item.type == 1 || item.type == 13 || item.type == 16)
item.answer = (_j = this.subMittedAnswer[index]) === null || _j === void 0 ? void 0 : _j.answer;
if (item.type == 2 || item.type == 3) {
const answer = (_k = this.subMittedAnswer[index]) === null || _k === void 0 ? void 0 : _k.answer;
item.answer = typeof answer == 'object' ? answer === null || answer === void 0 ? void 0 : answer.value : answer;
}
if (item.type == 11) {
item.answer = ((_l = this.subMittedAnswer[index]) === null || _l === void 0 ? void 0 : _l.answer) ? typeof ((_m = this.subMittedAnswer[index]) === null || _m === void 0 ? void 0 : _m.answer) === 'object' ? (_p = (_o = this.subMittedAnswer[index]) === null || _o === void 0 ? void 0 : _o.answer) === null || _p === void 0 ? void 0 : _p.value : (_q = this.subMittedAnswer[index]) === null || _q === void 0 ? void 0 : _q.answer : null;
}
if (item.type == 12) {
item.answer = (_r = this.subMittedAnswer[index]) === null || _r === void 0 ? void 0 : _r.answer;
}
if (item.type == 6) {
item.answer = `${((_s = this.subMittedAnswer[index]) === null || _s === void 0 ? void 0 : _s.answer) || ''}`.startsWith(`data:image/png;base64,`) ? (_t = this.subMittedAnswer[index]) === null || _t === void 0 ? void 0 : _t.answer : `data:image/png;base64,${(_u = this.subMittedAnswer[index]) === null || _u === void 0 ? void 0 : _u.answer}`;
}
if (item.type == 5 || item.type == 4) {
item.answer = (_v = this.subMittedAnswer[index]) === null || _v === void 0 ? void 0 : _v.answer;
}
if (item.type == 4) {
this.selectPolling(item === null || item === void 0 ? void 0 : item._id, (_w = this.subMittedAnswer[index]) === null || _w === void 0 ? void 0 : _w.answer[0]);
}
if (item.type === 14) {
typeFourteen = item._id;
item.answer = ((_x = this.subMittedAnswer[index]) === null || _x === void 0 ? void 0 : _x.answer) || [];
this.getNominateUserType(typeFourteen);
}
if (item.type === 15) {
item.answer = ((_y = this.subMittedAnswer[index]) === null || _y === void 0 ? void 0 : _y.answer) ? JSON.parse(JSON.stringify((_z = this.subMittedAnswer[index]) === null || _z === void 0 ? void 0 : _z.answer)) : [];
(_1 = (_0 = this.subMittedAnswer[index]) === null || _0 === void 0 ? void 0 : _0.answer) === null || _1 === void 0 ? void 0 : _1.map((final, index) => {
item['images'][index] = { "src": (final === null || final === void 0 ? void 0 : final.imageSrc) || "", "value": final === null || final === void 0 ? void 0 : final.value, "option": final._id };
});
}
});
});
});
}
getNominateUserType(questionId) {
let finalData = {
questionId: questionId
};
this.centralBuilderService.getNominateUser(finalData).subscribe((data) => {
this.setDropdown(data.data, questionId);
});
}
fileUpload(event, item) {
var _a;
let typeList = ((_a = item.options) === null || _a === void 0 ? void 0 : _a.map(data => { return data.value.toLowerCase(); })) || [];
if (event.target.files && event.target.files.length) {
const file = event.target.files[0];
let fileType = file.name.split('.');
let fileExe = (fileType === null || fileType === void 0 ? void 0 : fileType.length) ? fileType[fileType.length - 1].toLowerCase() : null;
if (fileExe && (typeList === null || typeList === void 0 ? void 0 : typeList.includes(fileExe))) {
var useraddData = new FormData();
useraddData.append("file", file);
const fileUpload = this.customFormService
.uploadFiles(useraddData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
item.answer = { url: (data === null || data === void 0 ? void 0 : data.filePath) || null, fileName: file.name };
}, (error) => {
this.toastService.error((error === null || error === void 0 ? void 0 : error.message) || 'File upload error');
});
}
else {
this.toastService.error("Only this format are accecpted", typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
// }
}
else {
this.toastService.error("Only this format are accecpted", typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
}
setDropdown(data, questionId) {
this.typeFourteenQuestion = (data === null || data === void 0 ? void 0 : data.items) || [];
this.questionIDFourteen = questionId;
}
setChild(question, answer, index) {
if (question.type == 11) {
this.selectedModule.questions[index].answer = answer;
this.selectedModule.questions[index].isVisibleList = !this.selectedModule.questions[index].isVisibleList;
}
this.checkQuestions(question, answer._id);
}
;
checkQuestions(question, a) {
var _a, _b;
let q = question._id;
const filteredQuestions = (_b = (_a = this.questions) === null || _a === void 0 ? void 0 : _a.filter(v => {
var _a;
return !this.hasParent(v) && ((_a = v === null || v === void 0 ? void 0 : v.conditionalQuestions) === null || _a === void 0 ? void 0 : _a.some(c => c.questionId === q && c.optionId === a));
})) === null || _b === void 0 ? void 0 : _b.map(c => {
c["cQuestion"] = q;
c["cOption"] = a;
return JSON.parse(JSON.stringify(c));
});
if (question.type == 5) {
setTimeout(() => {
var _a, _b, _c;
if (!question.options.filter(option => option._id === a)[0].answer) {
let allQuestionsadded = filteredQuestions.map(v => v._id);
let questionsNeedToDelete = (_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.reduce((prev, curr, i) => {
return allQuestionsadded.includes(curr._id) ? prev.concat(i) : prev;
}, []);
questionsNeedToDelete.sort((a, b) => b - a);
questionsNeedToDelete.forEach(v => {
this.viewQuestions.splice(v, 1);
});
}
else {
const index = ((_b = this.viewQuestions) === null || _b === void 0 ? void 0 : _b.findIndex(ques => ques._id == q)) + 1;
this.viewQuestions.splice(index, 0, ...filteredQuestions);
}
this.viewQuestions = (_c = this.viewQuestions) === null || _c === void 0 ? void 0 : _c.reduce((prev, curr, i) => {
const index = prev.findIndex(v => v._id === curr._id);
return -1 === index ? prev.concat(curr) : prev;
}, []);
}, 100);
}
else {
setTimeout(() => {
var _a;
this.viewQuestions = (_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.filter(ques => "cQuestion" in ques ? ques.cQuestion !== q : true);
const index = this.viewQuestions.findIndex(ques => ques._id == q) + 1;
this.viewQuestions.splice(index, 0, ...filteredQuestions);
this.viewQuestions = this.viewQuestions.reduce((prev, curr, i) => {
const index = prev.findIndex(v => v._id === curr._id);
return -1 === index ? prev.concat(curr) : prev;
}, []);
});
}
}
;
setCheckboxAnswer(event, index, option, answer) {
var _a;
if (event.target.checked) {
option.correctAns = true;
this.selectedModule.questions[index].answer.push(option);
}
else {
let ansIndex = this.selectedModule.questions[index].answer.findIndex(item => item._id == option._id);
(_a = this.selectedModule.questions[index].answer) === null || _a === void 0 ? void 0 : _a.splice(ansIndex, 1);
}
}
selectPolling(questionId, option) {
var _a;
let question = this.questions.find(q => q._id.toString() === questionId.toString());
if (!question.pollingSelectionCount || (1 === question.pollingSelectionCount)) {
question.options.forEach(opt => opt.answer = (option._id.toString() === opt._id.toString()));
}
else if ((question.options.filter(op => op.answer).length === question.pollingSelectionCount) && !option.answer) {
this.toastService.error('maxinum options reach for this question');
}
else {
question.options.find(op => op._id.toString() === option._id.toString()).answer =
!((_a = question.options) === null || _a === void 0 ? void 0 : _a.find(op => op._id.toString() === option._id.toString()).answer);
}
}
convert24hourTo12HourFormat(time) {
const time_part_array = time.split(":");
let ampm = 'am';
if (time_part_array[0] >= 12) {
ampm = 'pm';
}
if (time_part_array[0] > 12) {
time_part_array[0] = time_part_array[0] - 12;
}
const formatted_time = time_part_array[0] + ':' + time_part_array[1] + ':' + ampm;
return formatted_time;
}
deleteDropDownValue(data, index) {
data === null || data === void 0 ? void 0 : data.splice(index, 1);
}
onImageClick(event, index) {
var _a;
if (index >= 0) {
this.typeSixteenImageField = ((_a = this.viewQuestions[index]) === null || _a === void 0 ? void 0 : _a.answer) || [];
const imageElement = event.target;
const imageWidth = imageElement.offsetWidth;
const imageHeight = imageElement.offsetHeight;
const offsetX = event.offsetX;
const offsetY = event.offsetY;
const percentageX = ((offsetX / imageWidth) * 100) - 3.3;
const percentageY = ((offsetY / imageHeight) * 100) - 5.8;
let field = {
value: '',
coordinates: {
x: percentageX,
y: percentageY,
radious: 36,
imgWidth: imageWidth,
imgHeight: imageHeight,
},
};
this.typeSixteenImageField.push(field);
this.viewQuestions[index].answer = this.typeSixteenImageField;
}
}
openPopup(img, index) {
this.typeSixteenImageField = this.viewQuestions[index].answer;
this.typeSixteenImageSRC = img;
this.isPopupOpen = true;
}
closePopup() {
this.isPopupOpen = false;
}
conditionQuestionDelete(index) {
this.typeSixteenImageField.splice(index, 1);
}
getCheckedValue(option, answers) {
let value = false;
if (typeof answers === 'object' && Array.isArray(answers)) {
answers.map(answer => {
if ((answer === null || answer === void 0 ? void 0 : answer._id) === (option === null || option === void 0 ? void 0 : option._id)) {
value = true;
}
});
}
return value;
}
safeUrl(url) {
const safeUrl = this.sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].URL, this.imagePath + '/' + url);
return safeUrl ? this.sanitizer.bypassSecurityTrustUrl(safeUrl.toString()) : null;
}
}
FormManageEditComponent.ɵfac = function FormManageEditComponent_Factory(t) { return new (t || FormManageEditComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_4__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__["CustomFormService"])); };
FormManageEditComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FormManageEditComponent, selectors: [["app-form-manage-edit"]], viewQuery: function FormManageEditComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.myImage = _t.first);
} }, inputs: { questionId: "questionId", customFormId: "customFormId", selectedWorkFlowID: "selectedWorkFlowID" }, outputs: { takeQuestion: "takeQuestion", viewPage: "viewPage", formTitleviewPage: "formTitleviewPage" }, decls: 2, vars: 2, consts: [["class", "card", 4, "ngIf"], [4, "ngIf"], [1, "card"], [1, "card-header", "flexi-header", "pt-4"], [2, "display", "inline"], [1, "btn", "pull-right", 2, "color", "ivory", 3, "click"], [1, "card-header"], [1, "card-body", "centered-image", "text-center"], ["crossorigin", "anonymous", "width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", 1, "image", 3, "src"], [2, "text-align", "center"], [1, "card-body", 2, "word-break", "break-word", "padding", "10px", "height", "max-content"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [2, "margin-left", "400px", "margin-top", "20px"], ["type", "submit", 1, "btn-submit", 3, "click"], [1, "box", "d-flex", "flex-column"], [1, "topHead", "d-flex"], [1, "mr-1"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["class", "card-body", 4, "ngIf"], ["class", "box-body ", 4, "ngIf"], ["class", "box-body-16", 4, "ngIf"], ["class", "row imgSrc", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "box-body"], ["matInput", "", "rows", "5", "cols", "100", 3, "ngModel", "ngModelChange"], ["class", "box", 4, "ngFor", "ngForOf"], [1, "box"], ["type", "radio", 1, "card-header-flexi", 3, "id", "name", "value", "ngModel", "ngModelChange", "change"], ["for", "consolidated"], [1, "card-body"], ["crossorigin", "anonymous", "id", "4", "alt", "Image Preview", 1, "image-size", 3, "src"], ["class", "boxx", 4, "ngFor", "ngForOf"], [1, "boxx"], [3, "for"], ["crossorigin", "anonymous", "width", "250px", "height", "320px", "alt", "Image Preview", 3, "src"], [1, "d-flex", 2, "overflow", "auto"], ["class", "question-radio-inline", 4, "ngFor", "ngForOf"], [1, "question-radio-inline"], [1, "card", 2, "border-radius", "10px", "width", "min-content", 3, "for"], ["crossorigin", "anonymous", "alt", "", "style", "width: 270px;height: 201px;border-radius: 10px 10px 0px 0px;", 3, "src", "click", 4, "ngIf"], [1, "card-container", 2, "background-color", "#6eb96e", "display", "flex", "justify-content", "space-between", "border-radius", "0px 0px 10px 10px", "padding", "5px", 3, "ngStyle", "click"], ["crossorigin", "anonymous", "alt", "", "height", "10px", 2, "width", "12%", "min-width", "30px", "height", "1%", "margin", "3px", 3, "src"], [2, "text-align", "center", 3, "ngClass", "click"], ["class", "text-success", 4, "ngIf"], ["crossorigin", "anonymous", "alt", "", 2, "width", "270px", "height", "201px", "border-radius", "10px 10px 0px 0px", 3, "src", "click"], [1, "text-success"], [1, "form-group", "d-flex", "flex-column", "answers-options"], ["type", "checkbox", 3, "name", "id", "checked", "change"], ["id", "4", "alt", "Image Preview", 1, "image-size", 3, "src"], ["class", "signature-div", 4, "ngIf"], ["aria-hidden", "false", "aria-label", "Example home icon", "fontIcon", "home"], [1, "signature-div"], [1, "signature-img", 3, "src"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "box", "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["rows", "5", 1, "form-control", 3, "ngModel", "maxlength", "ngModelChange"], ["type", "number", 1, "form-control", 3, "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], ["class", "box", 4, "ngIf"], ["class", "box form-group", 4, "ngIf"], ["style", "margin-left: 10px;", "class", "box", 4, "ngIf"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["for", "my-input"], ["id", "my-input", "type", "date", 1, "form-control", 3, "ngModel", "ngModelChange"], ["myDate", ""], [1, "box", 2, "margin-left", "10px"], [3, "ngModel", "meridian", "hourStep", "minuteStep", "ngModelChange"], [1, "box", "form-group"], ["class", "d-flex flex-wrap answers-options", 4, "ngIf"], [1, "box", "form-group", "ng-select-img-container"], ["placeholder", "Select Options", "bindLabel", "name", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelChange", "change"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["crossorigin", "anonymous", "class", "dropdown-img", 3, "src", 4, "ngIf"], ["crossorigin", "anonymous", 1, "dropdown-img", 3, "src"], ["id", "my-input", "type", "file", 1, "form-control-file", 3, "change"], [1, "btn", "btn-link", 3, "href", "download"], ["class", "mt-1", 4, "ngFor", "ngForOf"], [1, "mt-1"], [1, "d-flex"], [3, "max", "rate", "rateChange"], [1, "row"], [1, "col-md-6"], ["bindLabel", "name", "placeholder", "Select Users", 1, "custom", 3, "multiple", "searchable", "ngModel", "clearable", "change", "ngModelChange"], [1, "col-md-12"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap"], [1, "text-items", "list-ui", "pr-1"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-3", 3, "click"], ["cdkDropList", "", 3, "cdkDropListDropped"], ["cdkDrag", "", 3, "cdkDragDisabled", 4, "ngFor", "ngForOf"], ["cdkDrag", "", 3, "cdkDragDisabled"], [1, "img-thumbnail"], [1, "caption"], ["height", "150px", "width", "150px", "id", "4", "alt", "Image Preview", 3, "src"], [1, "box-body-16"], [3, "ngStyle"], ["ngbTooltip", "Expand", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-expand"], ["alt", "Image Preview", 1, "qus-image-size", 3, "src", "click"], ["myImage", ""], ["class", "circle", 3, "left", "top", 4, "ngFor", "ngForOf"], [1, "circle"], [1, "text"], [1, "row", "imgSrc"], [1, "pb-3"], [1, "table"], [1, "width-5"], [1, "srNo"], ["type", "text", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["class", "cancel-button", 4, "ngIf"], [1, "cancel-button"], ["alt", "", "src", "./assets/images/cancel.png", "height", "20px", "crossorigin", "anonymous", 1, "image", 3, "click"], [1, "popup-overlay", "zoom-popup-overlay"], [1, "popup", "zoom-image-popup"], ["ngbTooltip", "Exit fullscreen", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-compress"], ["width", "100%", "alt", "Image Preview", "crossorigin", "anonymous", 1, "qus-image", 3, "src", "click"], ["class", "circlePopup", 3, "left", "top", 4, "ngFor", "ngForOf"], [1, "circlePopup"]], template: function FormManageEditComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, FormManageEditComponent_div_0_Template, 19, 7, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormManageEditComponent_ng_container_1_Template, 9, 2, "ng-container", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isModuleView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isPopupOpen);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgForOf"], _angular_material_input__WEBPACK_IMPORTED_MODULE_10__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["RadioControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgStyle"], _angular_common__WEBPACK_IMPORTED_MODULE_9__["NgClass"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_13__["MatIcon"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_11__["NumberValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbTimepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_15__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbRating"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_1__["CdkDropList"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_1__["CdkDrag"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_14__["NgbTooltip"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_9__["UpperCasePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_16__["SafeHtmlPipe"]], styles: [".imgSrc[_ngcontent-%COMP%] {\n padding: 2.5% 3%;\n}\n\n.circle[_ngcontent-%COMP%] {\n position: absolute;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: black;\n border: 2px solid black;\n}\n\n.circlePopup[_ngcontent-%COMP%] {\n position: absolute;\n width: 70px;\n height: 70px;\n border-radius: 50%;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: black;\n border: 2px solid black;\n}\n\n.text[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n.srNo[_ngcontent-%COMP%] {\n width: 20px;\n font-weight: 700;\n text-align: center;\n}\n\n.full-icon[_ngcontent-%COMP%] {\n position: absolute;\n background: white;\n padding: 6px;\n text-align: center;\n border-radius: 6px;\n z-index: 99999999999;\n cursor: pointer;\n width: 50px;\n top: 10px;\n right: 10px;\n border: 1px solid #e9e9e9;\n}\n\n.full-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 25px;\n}\n\n.picturePopup[_ngcontent-%COMP%] {\n margin: auto !important;\n max-width: 80% !important;\n}\n\n.popup-overlay[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 99;\n}\n\n.popup[_ngcontent-%COMP%] {\n background-color: #fff;\n padding: 10px;\n border-radius: 4px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.cancel-button[_ngcontent-%COMP%] {\n position: relative;\n right: 20px;\n top: 10px;\n left: 10px;\n}\n\n.zoom-image-popup[_ngcontent-%COMP%] {\n width: 65%;\n}\n\n.zoom-popup-overlay[_ngcontent-%COMP%] {\n position: fixed;\n right: 0;\n bottom: 0;\n z-index: 1050 !important;\n background-color: rgba(0, 0, 0, 0.5) !important;\n}\n\n.qus-image-size[_ngcontent-%COMP%] {\n object-fit: cover;\n width: 100%;\n height: 80%;\n}\n\n.dropdown-img[_ngcontent-%COMP%] {\n width: 100px !important;\n height: 70px !important;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n margin: 1rem;\n box-shadow: 0px 0px 8px #ccc;\n padding: 1.2rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n padding: 1rem;\n width: 30%;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body-16[_ngcontent-%COMP%] {\n padding: 1rem;\n width: 50%;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] {\n padding-bottom: 1rem;\n word-wrap: break-word;\n font-weight: 600;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 1rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] ngb-rating[_ngcontent-%COMP%] {\n color: yellow;\n font-size: 50px;\n}\n\n.card-header-flexi[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n padding: 1rem;\n color: #a42138;\n text-transform: uppercase;\n}\n\n.image-size[_ngcontent-%COMP%] {\n height: 200px !important;\n width: 100% !important;\n object-fit: cover !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2Zvcm0tbWFuYWdlLWVkaXQvZm9ybS1tYW5hZ2UtZWRpdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsaUJBQUE7RUFDQSxZQUFBO0VBQ0EsdUJBQUE7QUFDRjs7QUFFQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLDZCQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0VBQ0EsdUJBQUE7RUFDQSxpQkFBQTtFQUNBLFlBQUE7RUFDQSx1QkFBQTtBQUNGOztBQUVBO0VBQ0Usa0JBQUE7QUFDRjs7QUFFQTtFQUNFLFdBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxrQkFBQTtFQUNBLGlCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxvQkFBQTtFQUNBLGVBQUE7RUFDQSxXQUFBO0VBQ0EsU0FBQTtFQUNBLFdBQUE7RUFDQSx5QkFBQTtBQUVGOztBQUFFO0VBQ0UsZUFBQTtBQUVKOztBQUNBO0VBQ0UsdUJBQUE7RUFDQSx5QkFBQTtBQUVGOztBQUNBO0VBQ0UsZUFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsV0FBQTtFQUNBLG9DQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0VBQ0EsdUJBQUE7RUFDQSxXQUFBO0FBRUY7O0FBQ0E7RUFDRSxzQkFBQTtFQUNBLGFBQUE7RUFDQSxrQkFBQTtFQUNBLHdDQUFBO0FBRUY7O0FBQ0E7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxTQUFBO0VBQ0EsVUFBQTtBQUVGOztBQUFDO0VBQ0MsVUFBQTtBQUdGOztBQURBO0VBQ0UsZUFBQTtFQUNBLFFBQUE7RUFDQSxTQUFBO0VBQ0Esd0JBQUE7RUFDQSwrQ0FBQTtBQUlGOztBQUZBO0VBQ0UsaUJBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtBQUtGOztBQUhBO0VBQ0UsdUJBQUE7RUFDQSx1QkFBQTtBQU1GOztBQUpBO0VBQ0UsWUFBQTtFQUNBLDRCQUFBO0VBQ0EsZUFBQTtBQU9GOztBQUxFO0VBQ0UsYUFBQTtFQUNBLFVBQUE7QUFPSjs7QUFMRTtFQUNFLGFBQUE7RUFDQSxVQUFBO0FBT0o7O0FBTEU7RUFDRSxvQkFBQTtFQUNBLHFCQUFBO0VBQ0EsZ0JBQUE7QUFPSjs7QUFOSTtFQUNFLGVBQUE7QUFRTjs7QUFMRTtFQUNFLGFBQUE7RUFDQSxlQUFBO0FBT0o7O0FBSkE7RUFDRSw2QkFBQTtFQUNBLGFBQUE7RUFDQSxjQUFBO0VBQ0EseUJBQUE7QUFPRjs7QUFKQTtFQUNFLHdCQUFBO0VBQ0Esc0JBQUE7RUFDQSw0QkFBQTtBQU9GIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2Zvcm0tbWFuYWdlLWVkaXQvZm9ybS1tYW5hZ2UtZWRpdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5pbWdTcmN7XG4gIHBhZGRpbmc6IDIuNSUgMyU7XG59XG5cbi5jaXJjbGUge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiA1MHB4O1xuICBoZWlnaHQ6IDUwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgY29sb3I6IGJsYWNrO1xuICBib3JkZXI6IDJweCBzb2xpZCBibGFjaztcbn1cblxuLmNpcmNsZVBvcHVwe1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiA3MHB4O1xuICBoZWlnaHQ6IDcwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgY29sb3I6IGJsYWNrO1xuICBib3JkZXI6IDJweCBzb2xpZCBibGFjaztcbn1cblxuLnRleHQge1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5zck5ve1xuICB3aWR0aDogMjBweDtcbiAgZm9udC13ZWlnaHQ6IDcwMDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuLmZ1bGwtaWNvbntcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBiYWNrZ3JvdW5kOiB3aGl0ZTtcbiAgcGFkZGluZzogNnB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgei1pbmRleDogOTk5OTk5OTk5OTk7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgd2lkdGg6IDUwcHg7XG4gIHRvcDogMTBweDtcbiAgcmlnaHQ6IDEwcHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNlOWU5ZTk7XG5cbiAgaXtcbiAgICBmb250LXNpemU6IDI1cHg7XG4gIH1cbn1cbi5waWN0dXJlUG9wdXB7XG4gIG1hcmdpbjogYXV0byAhaW1wb3J0YW50O1xuICBtYXgtd2lkdGg6IDgwJSAhaW1wb3J0YW50O1xufVxuXG4ucG9wdXAtb3ZlcmxheSB7XG4gIHBvc2l0aW9uOiBmaXhlZDtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICB3aWR0aDogMTAwJTtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgei1pbmRleDogOTk7XG59XG5cbi5wb3B1cCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIHBhZGRpbmc6IDEwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYm94LXNoYWRvdzogMCAycHggNHB4IHJnYmEoMCwgMCwgMCwgMC4xKTtcbn1cblxuLmNhbmNlbC1idXR0b257XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgcmlnaHQ6IDIwcHg7XG4gIHRvcDogMTBweDtcbiAgbGVmdDogMTBweDtcbiB9XG4gLnpvb20taW1hZ2UtcG9wdXB7XG4gIHdpZHRoOiA2NSU7XG59XG4uem9vbS1wb3B1cC1vdmVybGF5e1xuICBwb3NpdGlvbjogZml4ZWQ7XG4gIHJpZ2h0OiAwO1xuICBib3R0b206IDA7XG4gIHotaW5kZXg6IDEwNTAgIWltcG9ydGFudDtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpICFpbXBvcnRhbnQ7XG59XG4ucXVzLWltYWdlLXNpemV7XG4gIG9iamVjdC1maXQ6IGNvdmVyO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiA4MCU7XG59XG4uZHJvcGRvd24taW1nIHtcbiAgd2lkdGg6IDEwMHB4ICFpbXBvcnRhbnQ7XG4gIGhlaWdodDogNzBweCAhaW1wb3J0YW50O1xufVxuLmNhcmQtYm9keSAuYm94IHtcbiAgbWFyZ2luOiAxcmVtO1xuICBib3gtc2hhZG93OiAwcHggMHB4IDhweCAjY2NjO1xuICBwYWRkaW5nOiAxLjJyZW07XG5cbiAgLmJveC1ib2R5IHtcbiAgICBwYWRkaW5nOiAxcmVtO1xuICAgIHdpZHRoOiAzMCU7XG4gIH1cbiAgLmJveC1ib2R5LTE2e1xuICAgIHBhZGRpbmc6IDFyZW07XG4gICAgd2lkdGg6IDUwJTtcbiAgfVxuICAuYm94LWhlYWRpbmcge1xuICAgIHBhZGRpbmctYm90dG9tOiAxcmVtO1xuICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDtcbiAgICBmb250LXdlaWdodDogNjAwO1xuICAgIHNwYW4ge1xuICAgICAgcGFkZGluZzogMCAxcmVtO1xuICAgIH1cbiAgfVxuICBuZ2ItcmF0aW5nIHtcbiAgICBjb2xvcjogeWVsbG93O1xuICAgIGZvbnQtc2l6ZTogNTBweDtcbn1cbn1cbi5jYXJkLWhlYWRlci1mbGV4aSB7XG4gIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjY2NjO1xuICBwYWRkaW5nOiAxcmVtO1xuICBjb2xvcjogI2E0MjEzODtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbn1cblxuLmltYWdlLXNpemV7XG4gIGhlaWdodDogMjAwcHggIWltcG9ydGFudDtcbiAgd2lkdGg6IDEwMCUgIWltcG9ydGFudDtcbiAgb2JqZWN0LWZpdDogY292ZXIgIWltcG9ydGFudDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormManageEditComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-form-manage-edit',
templateUrl: './form-manage-edit.component.html',
styleUrls: ['./form-manage-edit.component.scss']
}]
}], function () { return [{ type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_4__["CentralBuilderService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }, { type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__["NotificationService"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_7__["DomSanitizer"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__["CustomFormService"] }]; }, { questionId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], customFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], selectedWorkFlowID: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], takeQuestion: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], viewPage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], formTitleviewPage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], myImage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['myImage', { static: false }]
}] }); })();
/***/ }),
/***/ "mIF3":
/*!**********************************************************!*\
!*** ./src/app/shared/dynamic-fields/fields/text-box.ts ***!
\**********************************************************/
/*! exports provided: TextBoxComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextBoxComponent", function() { return TextBoxComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _text_area__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./text-area */ "jrlu");
function TextBoxComponent_input_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "input", 2);
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx_r0.field.name)("name", ctx_r0.field.name)("formControl", ctx_r0.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("type", ctx_r0.field.type)("disabled", ctx_r0.field.disabled ? ctx_r0.field.disabled : null);
} }
function TextBoxComponent_textarea_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "textarea", 3);
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("is-invalid", ctx_r1.isDirty && !ctx_r1.isValid);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControl", ctx_r1.form)("id", ctx_r1.field.name)("placeholder", ctx_r1.field.placeholder);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx_r1.field.disabled ? ctx_r1.field.disabled : null);
} }
// text,email,tel,textarea,password,
class TextBoxComponent {
constructor() {
this.field = {};
}
get isValid() { return this.form.valid; }
get isDirty() { return this.form.dirty; }
}
TextBoxComponent.ɵfac = function TextBoxComponent_Factory(t) { return new (t || TextBoxComponent)(); };
TextBoxComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TextBoxComponent, selectors: [["textbox"]], inputs: { field: "field", form: "form" }, decls: 2, vars: 2, consts: [["class", "form-control", 3, "id", "name", "formControl", 4, "ngIf"], ["rows", "9", "class", "form-control", 3, "is-invalid", "formControl", "id", "placeholder", 4, "ngIf"], [1, "form-control", 3, "id", "name", "formControl"], ["rows", "9", 1, "form-control", 3, "formControl", "id", "placeholder"]], template: function TextBoxComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, TextBoxComponent_input_0_Template, 1, 5, "input", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TextBoxComponent_textarea_1_Template, 1, 6, "textarea", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.field.multiline);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.field.multiline);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlDirective"], _text_area__WEBPACK_IMPORTED_MODULE_3__["TextAreaComponent"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TextBoxComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'textbox',
template: `
`
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "mSQx":
/*!***************************************************************!*\
!*** ./src/app/shared/dynamic-questions/fields/text-areas.ts ***!
\***************************************************************/
/*! exports provided: TextAreasComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TextAreasComponent", function() { return TextAreasComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _dynamic_fields_fields_text_area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../dynamic-fields/fields/text-area */ "jrlu");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
// text,email,tel,textarea,password,
class TextAreasComponent {
constructor() {
this.field = {};
}
get isValid() { return this.form.valid; }
get isDirty() { return this.form.dirty; }
}
TextAreasComponent.ɵfac = function TextAreasComponent_Factory(t) { return new (t || TextAreasComponent)(); };
TextAreasComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TextAreasComponent, selectors: [["textareas"]], inputs: { field: "field", form: "form" }, decls: 1, vars: 6, consts: [["rows", "9", 1, "form-control", 3, "formControl", "id", "placeholder"]], template: function TextAreasComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "textarea", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("is-invalid", ctx.isDirty && !ctx.isValid);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControl", ctx.form)("id", ctx.field.name)("placeholder", ctx.field.placeholder);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.field.disabled ? ctx.field.disabled : null);
} }, directives: [_dynamic_fields_fields_text_area__WEBPACK_IMPORTED_MODULE_1__["TextAreaComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlDirective"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TextAreasComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'textareas',
template: `
`
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "nFLZ":
/*!********************************************************************!*\
!*** ./src/app/users/service/custom-field/custom-field.service.ts ***!
\********************************************************************/
/*! exports provided: CustomFieldService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomFieldService", function() { return CustomFieldService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class CustomFieldService {
constructor(http) {
this.http = http;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getCustomField(data) {
return this.http.get(`${this.baseUrl}/custom-field/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createCustomField(data) {
return this.http.post(`${this.baseUrl}/userField/create`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateCustomField(data) {
return this.http.post(`${this.baseUrl}/userField/update`, data, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
DeleteCustomField(Id) {
return this.http.delete(`${this.baseUrl}/custom-field/${Id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getCustomFieldList() {
return this.http.get(`${this.baseUrl}/userField/read`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteCustomField(Id) {
return this.http.get(`${this.baseUrl}/userField/remove/${Id}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
CustomFieldService.ɵfac = function CustomFieldService_Factory(t) { return new (t || CustomFieldService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
CustomFieldService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: CustomFieldService, factory: CustomFieldService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CustomFieldService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "nL9/":
/*!**********************************************************!*\
!*** ./src/app/users/service/user-roles/role.service.ts ***!
\**********************************************************/
/*! exports provided: RoleService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RoleService", function() { return RoleService; });
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class RoleService {
constructor(http, storageService) {
this.http = http;
this.storageService = storageService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getRoles(data) {
return this.http.get(`${this.baseUrl}/role/?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_0__["queryParam"])(data)}`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((res) => res));
}
getUserRoles() {
return this.http.post(`${this.baseUrl}/role/read`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((res) => res));
}
getUserPrivilege() {
return this.http.get(`${this.baseUrl}/companyUser/getUserPrivilege`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((res) => res));
}
getNewUserPrivilege() {
const data = {
getPriv: true
};
return this.http.get(`${this.baseUrl}/companyuser/checkWithRole?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_0__["queryParam"])(data)}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((res) => res));
}
getAllPrevileges() {
return this.http.post(`${this.baseUrl}/privilegecategory/read`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((res) => res));
}
getOneRole(roleId) {
return this.http.get(`${this.baseUrl}/role/${roleId}`)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((res) => res));
}
createUserRole(roleData) {
return this.http
.post(`${this.baseUrl}/role/create`, roleData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((res) => res));
}
updateUserRole(roleData) {
return this.http
.post(`${this.baseUrl}/role/update`, roleData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((res) => res));
}
}
RoleService.ɵfac = function RoleService_Factory(t) { return new (t || RoleService)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
RoleService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjectable"]({ token: RoleService, factory: RoleService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](RoleService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "nYYO":
/*!**************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/custom-fields/custom-fields.component.ts ***!
\**************************************************************************************/
/*! exports provided: CustomFieldsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomFieldsComponent", function() { return CustomFieldsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_6__);
/* harmony import */ var _service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
const _c0 = ["AddDepartment"];
function CustomFieldsComponent_table_25_tr_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Free Text");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CustomFieldsComponent_table_25_tr_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Staff Id");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Free Text");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CustomFieldsComponent_table_25_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Appointment");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Dropdown");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CustomFieldsComponent_table_25_tr_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Free Text");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CustomFieldsComponent_table_25_tr_18_div_6_ul_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r14 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r14.value);
} }
function CustomFieldsComponent_table_25_tr_18_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CustomFieldsComponent_table_25_tr_18_div_6_ul_1_Template, 3, 1, "ul", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.options);
} }
function CustomFieldsComponent_table_25_tr_18_ng_template_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "-");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CustomFieldsComponent_table_25_tr_18_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, CustomFieldsComponent_table_25_tr_18_div_6_Template, 2, 1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, CustomFieldsComponent_table_25_tr_18_ng_template_7_Template, 3, 0, "ng-template", null, 30, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CustomFieldsComponent_table_25_tr_18_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const item_r8 = ctx.$implicit; const index_r9 = ctx.index; const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r16.editCustomField(item_r8, index_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "i", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CustomFieldsComponent_table_25_tr_18_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const item_r8 = ctx.$implicit; const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r18.deleteCustomField(item_r8._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r8.fieldName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.type);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.options.length > 0)("ngIfElse", _r11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r8.editable ? "Yes" : "No");
} }
function CustomFieldsComponent_table_25_Template(rf, ctx) { if (rf & 1) {
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function CustomFieldsComponent_table_25_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.onSortCustomField($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " FIELD NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function CustomFieldsComponent_table_25_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.onSortCustomField($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " FIELD TYPE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function CustomFieldsComponent_table_25_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.onSortCustomField($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " FIELD VALUE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function CustomFieldsComponent_table_25_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r20); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.onSortCustomField($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " EDITABLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, CustomFieldsComponent_table_25_tr_14_Template, 9, 0, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, CustomFieldsComponent_table_25_tr_15_Template, 9, 0, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, CustomFieldsComponent_table_25_tr_16_Template, 9, 0, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, CustomFieldsComponent_table_25_tr_17_Template, 9, 0, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, CustomFieldsComponent_table_25_tr_18_Template, 16, 5, "tr", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.hideDefaultFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.hideDefaultFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.hideDefaultFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.hideDefaultFields);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r0.CustomFieldPTable.data);
} }
function CustomFieldsComponent_ng_template_31_div_18_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r31 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", cnt_r31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", cnt_r31, " ");
} }
function CustomFieldsComponent_ng_template_31_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Order");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "select", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "option", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Select Order");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, CustomFieldsComponent_ng_template_31_div_18_option_7_Template, 2, 2, "option", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r26.orderList);
} }
function CustomFieldsComponent_ng_template_31_option_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const cnt_r32 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", cnt_r32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", cnt_r32, " ");
} }
function CustomFieldsComponent_ng_template_31_div_27_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "form", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Dropdown values");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "input", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CustomFieldsComponent_ng_template_31_div_27_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r34); const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r33.addOptions(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r28.dropDownForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r28.dropDownForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r28.isDropDownEdited ? "Update" : "Add", " ");
} }
function CustomFieldsComponent_ng_template_31_div_28_div_1_tr_3_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CustomFieldsComponent_ng_template_31_div_28_div_1_tr_3_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r40); const index_r38 = ctx.index; const field_r37 = ctx.$implicit; const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r39.onEditDropDown(index_r38, field_r37.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "i", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "button", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CustomFieldsComponent_ng_template_31_div_28_div_1_tr_3_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r40); const index_r38 = ctx.index; const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r41.deleteOption(index_r38); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "i", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r37 = ctx.$implicit;
const index_r38 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](field_r37.get("value").value);
} }
function CustomFieldsComponent_ng_template_31_div_28_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "table", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, CustomFieldsComponent_ng_template_31_div_28_div_1_tr_3_Template, 10, 2, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r35.OptionieldsControl.controls);
} }
function CustomFieldsComponent_ng_template_31_div_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, CustomFieldsComponent_ng_template_31_div_28_div_1_Template, 4, 1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r29.OptionieldsControl.controls.length != 0);
} }
const _c1 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function CustomFieldsComponent_ng_template_31_Template(rf, ctx) { if (rf & 1) {
const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CustomFieldsComponent_ng_template_31_Template_button_click_8_listener() { const c_r24 = ctx.close; return c_r24("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "Field name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, CustomFieldsComponent_ng_template_31_div_18_Template, 8, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "label", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](22, "Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "select", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "option", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, " Select Type ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, CustomFieldsComponent_ng_template_31_option_26_Template, 2, 2, "option", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, CustomFieldsComponent_ng_template_31_div_27_Template, 9, 3, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, CustomFieldsComponent_ng_template_31_div_28_Template, 2, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](31, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, " Editable by user ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](35, "button", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CustomFieldsComponent_ng_template_31_Template_button_click_35_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r44); const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r43.onSubmitCustomField(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](36, "i", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx_r2.isCustomFieldEdited ? "UPDATE FIELD" : "ADD FIELD");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r2.customFieldForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.isCustomFieldEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("selected", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r2.type);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.customFieldForm.get("type").value === "dropdown");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r2.customFieldForm.get("type").value === "dropdown");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r2.isLoading)("disabled", !ctx_r2.customFieldForm.valid);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](11, _c1, ctx_r2.isLoading, !ctx_r2.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx_r2.isCustomFieldEdited ? "Update" : "Add Field", " ");
} }
class CustomFieldsComponent {
constructor(formBuilder, customFieldService, toastService, storageService, modelService) {
this.formBuilder = formBuilder;
this.customFieldService = customFieldService;
this.toastService = toastService;
this.storageService = storageService;
this.modelService = modelService;
this.order = [];
this.type = ['text', 'date', 'dropdown'];
this.hideDefaultFields = true;
this.isDropDownEdited = false;
this.isCustomFieldEdited = false;
this.isLoading = false;
this.isTableLoading = false;
this.orderList = [];
this.CustomFieldsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.clearFormArray = (formArray) => {
while (formArray.length !== 0) {
formArray.removeAt(0);
}
};
this.CustomFieldPTable = {
sortWith: 'indexNum',
sortBy: 'asc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.companyName = this.storageService.getByKey('companyId');
this.CustomFieldSearchSubscription = this.CustomFieldsearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500)))).subscribe((input) => {
this.CustomFieldPTable.page = 1;
if (input === '') {
this.hideDefaultFields = true;
}
else {
this.hideDefaultFields = false;
}
this.loadCustomField();
});
}
/// bussiness unit over view table config
onSortCustomField({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.CustomFieldPTable.sortBy = column;
this.CustomFieldPTable.sortWith = direction;
this.loadCustomField();
}
onPageChangeCustomField(page) {
this.CustomFieldPTable.page = page;
if (this.CustomFieldPTable.page === 1) {
this.hideDefaultFields = true;
}
else {
this.hideDefaultFields = false;
}
this.loadCustomField();
}
onLimitChangeCustomFieldt() {
this.loadCustomField();
}
searchInputChange(value) {
console.log(value);
// this.hideDefaultFields = false;
}
ngOnInit() {
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroup"]({});
this.initForm();
this.loadCustomField();
}
initForm() {
this.customFieldForm = this.formBuilder.group({
fieldName: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
type: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
options: this.formBuilder.array([]),
required: [true],
editable: [false],
indexNum: [null],
status: ['active'],
order: [null],
fieldId: [null]
});
this.dropDownForm = this.formBuilder.group({
value: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
}
get customFieldFormValue() {
return this.customFieldForm.controls;
}
addDepartment() {
this.initForm();
this.modelService.open(this.AddDepartment, {
windowClass: 'modal-ui-fix right-align',
});
}
loadCustomField() {
// const {data,total ,...rest} = this.CustomFieldPTable
this.isTableLoading = true;
const subscribe = this.customFieldService.getCustomFieldList().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { total, fieldList } = response === null || response === void 0 ? void 0 : response.data;
this.isTableLoading = false;
this.CustomFieldPTable.data = fieldList || [];
this.CustomFieldPTable.data.forEach((e, i) => {
this.order.push(i + 1);
});
this.order.push(this.CustomFieldPTable.data.length + 1);
this.CustomFieldPTable.total = total;
}, (error) => {
this.CustomFieldPTable.data = [];
this.CustomFieldPTable.total = 0;
this.toastService.error('No list found');
this.isTableLoading = false;
});
}
get OptionieldsControl() {
return this.customFieldForm.get('options');
}
addOptions() {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const { value } = this.dropDownForm.value;
const Control = this.OptionieldsControl;
if (!this.isDropDownEdited) {
const index = yield Control.value.findIndex((x) => x.value === value);
if (index > -1) {
return;
}
else {
let field = this.formBuilder.group({
id: [null],
value: [value, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
this.dropDownForm.reset();
}
}
else {
Control.at(this.dropDownIndex).patchValue({
id: [null],
value: value,
});
this.dropDownIndex = null;
this.isDropDownEdited = false;
this.dropDownForm.reset();
}
});
}
onEditDropDown(index, { value }) {
this.isDropDownEdited = true;
this.dropDownIndex = index;
this.dropDownForm.patchValue({
value: value,
});
}
deleteOption(index) {
const Control = this.OptionieldsControl;
Control.removeAt(index);
this.toastService.error('Field deleted');
}
editCustomField(value, index) {
var _a;
this.order.pop();
const control = this.OptionieldsControl;
this.getOrderList((_a = this.CustomFieldPTable.data) === null || _a === void 0 ? void 0 : _a.length);
this.clearFormArray(control);
this.isCustomFieldEdited = true;
// this.customFieldID = value._id
this.customFieldForm.patchValue({
fieldName: value.fieldName,
type: value.type,
required: value.required,
editable: value.editable,
indexNum: value.indexNum,
status: value.status,
order: parseInt(index + 5),
fieldId: value._id
});
value.options.forEach(element => {
let field = this.formBuilder.group({
_id: [null],
value: [element, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
control.push(field);
});
this.modelService.open(this.AddDepartment, {
windowClass: 'modal-ui-fix right-align',
}).result.then((result) => {
this.isCustomFieldEdited = false;
this.order = [];
this.CustomFieldPTable.data.forEach((e, i) => {
this.order.push(i + 1);
});
this.order.push(this.CustomFieldPTable.data.length + 1);
}, (reason) => {
this.isCustomFieldEdited = false;
this.order = [];
this.CustomFieldPTable.data.forEach((e, i) => {
this.order.push(i + 1);
});
this.order.push(this.CustomFieldPTable.data.length + 1);
});
}
getOrderList(dataLength) {
this.orderList = [];
for (let i = 5; i < (dataLength + 5); i++) {
this.orderList.push(i);
}
}
deleteCustomField(id) {
sweetalert2__WEBPACK_IMPORTED_MODULE_6___default.a.fire({
title: 'Are you sure, you want to delete this Custom field?',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.customFieldService.deleteCustomField(id).subscribe((res) => {
this.toastService.success(res === null || res === void 0 ? void 0 : res.data);
this.order = [];
this.loadCustomField();
});
}
});
}
getDropDownOptionValue(valArr) {
let returnArr = [];
if (valArr && (valArr === null || valArr === void 0 ? void 0 : valArr.length) > 0) {
valArr.map(item => {
returnArr.push(item.value);
return returnArr;
});
}
return returnArr;
}
onSubmitCustomField() {
var _a;
this.order.push(this.CustomFieldPTable.data.length + 1);
if (!this.customFieldForm.valid) {
return;
}
this.isLoading = true;
let payload = {
fieldName: this.customFieldFormValue.fieldName.value,
type: this.customFieldFormValue.type.value,
options: this.getDropDownOptionValue(this.customFieldFormValue.options.value),
indexNum: this.isCustomFieldEdited ? (Number(this.customFieldFormValue.order.value) - 5) : (_a = this.CustomFieldPTable.data) === null || _a === void 0 ? void 0 : _a.length,
editable: this.customFieldFormValue.editable.value,
};
if (!this.isCustomFieldEdited) {
this.customFieldService
.createCustomField(payload)
.subscribe((res) => {
// this.customFieldForm.reset()
this.toastService.success(res === null || res === void 0 ? void 0 : res.message);
this.initForm();
const control = this.OptionieldsControl;
this.order = [];
this.clearFormArray(control);
this.loadCustomField();
this.isLoading = false;
this.modelService.dismissAll();
}, (error) => {
this.isLoading = false;
this.toastService.success((error === null || error === void 0 ? void 0 : error.message) || 'Something went wrong');
});
}
else {
payload.fieldId = this.customFieldFormValue.fieldId.value;
this.customFieldService.updateCustomField(payload).subscribe((res) => {
this.isCustomFieldEdited = false;
// this.customFieldForm.reset()
this.initForm();
const control = this.OptionieldsControl;
this.order = [];
this.clearFormArray(control);
this.loadCustomField();
this.toastService.success(res === null || res === void 0 ? void 0 : res.message);
this.isLoading = false;
this.modelService.dismissAll();
}, (error) => {
this.isLoading = false;
this.toastService.success((error === null || error === void 0 ? void 0 : error.message) || 'Something went wrong');
});
}
}
getValues(values) {
}
ngOnDestroy() {
this.CustomFieldSearchSubscription &&
this.CustomFieldSearchSubscription.unsubscribe();
}
}
CustomFieldsComponent.ɵfac = function CustomFieldsComponent_Factory(t) { return new (t || CustomFieldsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_7__["CustomFieldService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbModal"])); };
CustomFieldsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: CustomFieldsComponent, selectors: [["app-custom-fields"]], viewQuery: function CustomFieldsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddDepartment = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 33, vars: 11, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], [2, "margin-top", "10px"], ["type", "button", "aria-label", "Close", 1, "btn", "btn-success", 3, "click"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], ["AddDepartment", ""], [1, "table"], [1, "p-4"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col", "sortable", "Status", 3, "sort"], ["scope", "col"], [4, "ngIf"], [4, "ngFor", "ngForOf"], [1, "pb-4"], [4, "ngIf", "ngIfElse"], ["templateName", ""], [1, "btn", "btn-add", "p-2", "m-1", 2, "width", "40px", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-pencil-square-o", "fa-lg"], [1, "btn", "btn-clear", "p-2", "m-1", 2, "width", "40px", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-trash", "fa-lg"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card-header", "flexi-header", "pt-4"], ["type", "button", "aria-label", "Close", 1, "btn", "no-border", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [3, "formGroup"], [1, "row"], [1, "col-md-12"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "font-weight-bold", "red-heading"], ["type", "text", "placeholder", "Field Name", "formControlName", "fieldName", "maxlength", "40", 1, "form-control"], ["class", "row", 4, "ngIf"], [1, "row", "mt-3"], [1, "font-weight-bold", "red-heading"], ["formControlName", "type", 1, "dropdown-select", "w-100", "form-control"], ["value", "", "disabled", ""], [3, "ngValue", 4, "ngFor", "ngForOf"], ["class", "row mt-3", 4, "ngIf"], [1, "row", "p-3"], [1, "form-group", "pr-0"], ["type", "checkbox", "formControlName", "editable"], [1, "col-md-6"], [1, "btn", "btn-add", "btn-block", "p-1", "m-2", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], ["formControlName", "order", 1, "dropdown-select", "w-100", "form-control"], ["selected", "", 3, "value"], [1, "col-md-8"], ["for", "exampleInputEmail1", 1, "font-weight-bold"], ["type", "text", "placeholder", "DropDown values", "formControlName", "value", 1, "form-control"], [1, "btn", "btn-add", "mt-2", 3, "disabled", "click"], ["class", "col-md-8", 4, "ngIf"], [1, "table", "table-borderless"], ["formArrayName", "options", 4, "ngFor", "ngForOf"], ["formArrayName", "options"], [1, "text-items", 3, "formGroupName"], [1, "btn", "btn-pri", "p-2", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-pencil-square-o"], [1, "btn", "btn-clear", "p-2", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-trash"]], template: function CustomFieldsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "CREATE USER CUSTOM FIELDS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CustomFieldsComponent_Template_button_click_4_listener() { return ctx.addDepartment(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " Create custom field ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CustomFieldsComponent_Template_select_change_11_listener() { return ctx.onLimitChangeCustomFieldt(); })("ngModelChange", function CustomFieldsComponent_Template_select_ngModelChange_11_listener($event) { return ctx.CustomFieldPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "input", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function CustomFieldsComponent_Template_input_keyup_23_listener($event) { return ctx.CustomFieldsearchInput.next($event); })("ngModelChange", function CustomFieldsComponent_Template_input_ngModelChange_23_listener($event) { return ctx.CustomFieldPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](25, CustomFieldsComponent_table_25_Template, 19, 5, "table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](26, "app-skliton-loading-table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](31, CustomFieldsComponent_ng_template_31_Template, 38, 14, "ng-template", null, 18, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.CustomFieldPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.CustomFieldPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.CustomFieldPTable.total, "");
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_13__["SklitonLoadingTableComponent"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"]], styles: ["select[_ngcontent-%COMP%] {\n height: 35px;\n}\n\nul[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n\n.no-border[_ngcontent-%COMP%]:focus {\n box-shadow: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2N1c3RvbS1maWVsZHMvY3VzdG9tLWZpZWxkcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFlBQUE7QUFDRjs7QUFFQTtFQUNFLHFCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxnQkFBQTtBQUNGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2N1c3RvbS1maWVsZHMvY3VzdG9tLWZpZWxkcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbInNlbGVjdCB7XG4gIGhlaWdodDogMzVweDtcbn1cblxudWwge1xuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG59XG5cbi5uby1ib3JkZXI6Zm9jdXMge1xuICBib3gtc2hhZG93OiBub25lO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CustomFieldsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-custom-fields',
templateUrl: './custom-fields.component.html',
styleUrls: ['./custom-fields.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: _service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_7__["CustomFieldService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_9__["StorageService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_10__["NgbModal"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}], AddDepartment: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddDepartment', { static: true }]
}] }); })();
/***/ }),
/***/ "ngIS":
/*!***********************************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-planner/swap-restrictions/swap-restrictions.component.ts ***!
\***********************************************************************************************************/
/*! exports provided: SwapRestrictionsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SwapRestrictionsComponent", function() { return SwapRestrictionsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/human-resources/leave-planner.service */ "Z/ig");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
function SwapRestrictionsComponent_div_16_tr_13_Template(rf, ctx) { if (rf & 1) {
const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function SwapRestrictionsComponent_div_16_tr_13_Template_input_ngModelChange_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const i_r3 = ctx.index; const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return (ctx_r4.swapCheck[i_r3] = $event); })("change", function SwapRestrictionsComponent_div_16_tr_13_Template_input_change_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const item_r2 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r6.swapChange(item_r2); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r2 = ctx.$implicit;
const i_r3 = ctx.index;
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r1.swapCheck[i_r3]);
} }
function SwapRestrictionsComponent_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "thead", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "STAFF NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Tick To Allow Swapping");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, SwapRestrictionsComponent_div_16_tr_13_Template, 8, 3, "tr", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.swapListData.userId);
} }
class SwapRestrictionsComponent {
constructor(usersService, leaveService, toastService) {
this.usersService = usersService;
this.leaveService = leaveService;
this.toastService = toastService;
this.opsTeamUser = [];
this.swapCheck = [];
}
ngOnInit() {
this.swapOpsGroup();
}
swapList() {
let swap = {};
if (this.opsGrpSelect && !this.opsTeamSelect) {
swap = {
opsGroupId: this.opsGrpSelect.id,
};
}
else if (this.opsGrpSelect && this.opsTeamSelect) {
swap = {
opsGroupId: this.opsGrpSelect.id,
opsTeamId: this.opsTeamSelect.id,
};
}
this.leaveService.getSwapList(swap).subscribe((res) => {
var _a;
this.swapListData = res['data'];
this.swapCheck = [];
(_a = this.swapListData.userId) === null || _a === void 0 ? void 0 : _a.forEach((val) => {
this.swapCheck.push(val.isLeaveSwapAllowed);
});
});
}
swapChange(item) {
const swapList = this.leaveService
.swapRestrict(item._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
swapList.unsubscribe();
}))
.subscribe((res) => {
if (res.status) {
this.toastService.success(res.message ? res.message : 'Successfully updated', 'Successfull');
this.swapList();
}
else {
this.toastService.error(res.message ? res.message : 'Update Failed', 'Failed');
}
});
}
swapOpsGroup() {
const profile = this.usersService
.getUserProfile()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
profile.unsubscribe();
}))
.subscribe((res) => {
this.loggedInUser = res.data;
const grp = this.leaveService
.getSwapOpsGroup(this.loggedInUser._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
grp.unsubscribe();
}))
.subscribe((res) => {
this.leaveData = res.data.leavedata;
this.opsList = res.data.opsids;
});
});
}
getOpsTeamUser() {
this.opsTeamUserId = this.opsTeamSelect.id;
this.leaveData.forEach((element) => {
element.users.forEach((item) => {
if (item.teamId === this.opsTeamUserId) {
this.opsTeamUser.push(item);
}
});
});
}
getOpsTeam() {
this.opsTeam = this.opsGrpSelect.team;
}
}
SwapRestrictionsComponent.ɵfac = function SwapRestrictionsComponent_Factory(t) { return new (t || SwapRestrictionsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_2__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_3__["LeavePlannerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"])); };
SwapRestrictionsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SwapRestrictionsComponent, selectors: [["swap-restrictions"]], decls: 17, vars: 13, consts: [[1, "row"], [1, "col-md-12"], [1, "card"], [1, "card-body"], [1, "form-row"], [1, "form-group", "col-md-6"], ["for", "inputEmail4"], ["bindLabel", "name", "placeholder", "Select Ops Group", "appendTo", "body", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "change", "ngModelChange"], [1, "form-group", "col-md-4"], ["bindLabel", "name", "placeholder", "Select Ops Team", "appendTo", "body", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "change", "ngModelChange"], [1, "form-group", "col-md-2", "align-self-end"], ["type", "submit", 1, "btn", "btn-success", 3, "click"], ["class", "row mt-3", 4, "ngIf"], [1, "row", "mt-3"], [1, "table-responsive"], [1, "table", "table-hover", "border"], [1, "bg-theme"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "form-check"], ["type", "checkbox", "id", "exampleCheck1", 1, "form-check-input", 3, "ngModel", "ngModelChange", "change"]], template: function SwapRestrictionsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Select Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "ng-select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function SwapRestrictionsComponent_Template_ng_select_change_8_listener() { return ctx.getOpsTeam(); })("ngModelChange", function SwapRestrictionsComponent_Template_ng_select_ngModelChange_8_listener($event) { return ctx.opsGrpSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Select Ops Team");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "ng-select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function SwapRestrictionsComponent_Template_ng_select_change_12_listener() { return ctx.getOpsTeamUser(); })("ngModelChange", function SwapRestrictionsComponent_Template_ng_select_ngModelChange_12_listener($event) { return ctx.opsTeamSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SwapRestrictionsComponent_Template_button_click_14_listener() { return ctx.swapList(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, SwapRestrictionsComponent_div_16_Template, 14, 1, "div", 12);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.opsList)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx.opsGrpSelect);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.opsTeam)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx.opsTeamSelect);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.swapListData == null ? null : ctx.swapListData.userId);
} }, directives: [_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_5__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["CheckboxControlValueAccessor"]], styles: ["thead.bg-theme[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n color: #fff;\n font-size: smaller;\n font-weight: 500;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtcGxhbm5lci9zd2FwLXJlc3RyaWN0aW9ucy9zd2FwLXJlc3RyaWN0aW9ucy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLFdBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBQ0o7O0FBRUU7RUFDRSxXQUFBO0VBQ0EseUJBQUE7QUFDSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2h1bWFuLXJlc291cmNlL2xlYXZlLXBsYW5uZXIvc3dhcC1yZXN0cmljdGlvbnMvc3dhcC1yZXN0cmljdGlvbnMuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJ0aGVhZC5iZy10aGVtZSB0aCB7XG4gICAgY29sb3I6ICNmZmY7XG4gICAgZm9udC1zaXplOiBzbWFsbGVyO1xuICAgIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIH1cbiAgXG4gIC5iZy10aGVtZSB7XG4gICAgY29sb3I6ICNmZmY7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgfVxuICAiXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SwapRestrictionsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'swap-restrictions',
templateUrl: './swap-restrictions.component.html',
styleUrls: ['./swap-restrictions.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_2__["UsersService"] }, { type: src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_3__["LeavePlannerService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_4__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "njTu":
/*!*********************************************************************************!*\
!*** ./src/app/shared/skliton-loading-table/skliton-loading-table.component.ts ***!
\*********************************************************************************/
/*! exports provided: SklitonLoadingTableComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SklitonLoadingTableComponent", function() { return SklitonLoadingTableComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
function SklitonLoadingTableComponent_tbody_1_td_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SklitonLoadingTableComponent_tbody_1_td_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SklitonLoadingTableComponent_tbody_1_td_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SklitonLoadingTableComponent_tbody_1_td_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SklitonLoadingTableComponent_tbody_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, SklitonLoadingTableComponent_tbody_1_td_2_Template, 2, 0, "td", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, SklitonLoadingTableComponent_tbody_1_td_4_Template, 2, 0, "td", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SklitonLoadingTableComponent_tbody_1_td_6_Template, 2, 0, "td", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, SklitonLoadingTableComponent_tbody_1_td_8_Template, 2, 0, "td", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.counter(ctx_r0.numberOfCols));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.counter(ctx_r0.numberOfCols));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.counter(ctx_r0.numberOfCols));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.counter(ctx_r0.numberOfCols));
} }
class SklitonLoadingTableComponent {
constructor() {
this.numberOfCols = [];
this.width = (Math.floor(Math.random() * 51) + 50);
}
ngOnInit() {
}
counter(numbers) {
return new Array(numbers);
}
}
SklitonLoadingTableComponent.ɵfac = function SklitonLoadingTableComponent_Factory(t) { return new (t || SklitonLoadingTableComponent)(); };
SklitonLoadingTableComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SklitonLoadingTableComponent, selectors: [["app-skliton-loading-table"]], inputs: { numberOfCols: "numberOfCols", isTableLoading: "isTableLoading" }, decls: 2, vars: 1, consts: [["cellpadding", "0", "cellspacing", "0", "width", "100%", 1, "table_loader"], [4, "ngIf"], [4, "ngFor", "ngForOf"]], template: function SklitonLoadingTableComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, SklitonLoadingTableComponent_tbody_1_Template, 9, 4, "tbody", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isTableLoading);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"]], styles: [".table_loader[_ngcontent-%COMP%] {\n background-color: #fff;\n color: #666;\n width: 100%;\n padding: 0;\n}\n\n.table_loader[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n background: #f7f9fa;\n border-top: 1px solid #e5e5e5;\n border-bottom: 1px solid #e5e5e5;\n padding: 12px 10px;\n text-align: left;\n}\n\n.table_loader[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n border-top: 0px solid #e5e5e5;\n border-bottom: 1px solid #e5e5e5;\n padding: 12px 10px;\n vertical-align: top;\n}\n\n.table_loader[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n width: calc(100% - 5px);\n height: 15px;\n border-radius: 3px;\n background-image: linear-gradient(90deg, #ddd 0px, #e8e8e8 40px, #ddd 80px);\n background-size: 600px;\n animation: shine-lines-table 1.6s infinite linear;\n display: inline-block;\n min-width: 15px;\n}\n\n.table_loader[_ngcontent-%COMP%] span.sub-temp[_ngcontent-%COMP%] {\n width: calc(100% - 50%);\n margin-top: 5px;\n}\n\n.table_loader[_ngcontent-%COMP%] span.sub-temp-three[_ngcontent-%COMP%] {\n width: calc(100% - 70%);\n display: block;\n}\n\n@keyframes shine-lines-table {\n 0% {\n opacity: 0.4;\n }\n 40% {\n opacity: 0.8;\n }\n 100% {\n opacity: 0.4;\n }\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvc2hhcmVkL3NrbGl0b24tbG9hZGluZy10YWJsZS9za2xpdG9uLWxvYWRpbmctdGFibGUuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxzQkFBQTtFQUNBLFdBQUE7RUFDQSxXQUFBO0VBQ0EsVUFBQTtBQUNKOztBQUNBO0VBQ0ksbUJBQUE7RUFDQSw2QkFBQTtFQUNBLGdDQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtBQUVKOztBQUFBO0VBQ0ksNkJBQUE7RUFDQSxnQ0FBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFHSjs7QUFEQTtFQUNJLHVCQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsMkVBQUE7RUFDQSxzQkFBQTtFQUNBLGlEQUFBO0VBQ0EscUJBQUE7RUFDQSxlQUFBO0FBSUo7O0FBRkE7RUFDSSx1QkFBQTtFQUNBLGVBQUE7QUFLSjs7QUFIQTtFQUNJLHVCQUFBO0VBQ0EsY0FBQTtBQU1KOztBQUhBO0VBQ0k7SUFDSSxZQUFBO0VBTU47RUFKRTtJQUNJLFlBQUE7RUFNTjtFQUpFO0lBQ0ksWUFBQTtFQU1OO0FBQ0YiLCJmaWxlIjoic3JjL2FwcC9zaGFyZWQvc2tsaXRvbi1sb2FkaW5nLXRhYmxlL3NrbGl0b24tbG9hZGluZy10YWJsZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50YWJsZV9sb2FkZXIge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgY29sb3I6ICM2NjY7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgcGFkZGluZzogMDtcbn1cbi50YWJsZV9sb2FkZXIgdGgge1xuICAgIGJhY2tncm91bmQ6ICNmN2Y5ZmE7XG4gICAgYm9yZGVyLXRvcDogMXB4IHNvbGlkICNlNWU1ZTU7XG4gICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNlNWU1ZTU7XG4gICAgcGFkZGluZzogMTJweCAxMHB4O1xuICAgIHRleHQtYWxpZ246IGxlZnQ7XG59XG4udGFibGVfbG9hZGVyIHRkIHtcbiAgICBib3JkZXItdG9wOiAwcHggc29saWQgI2U1ZTVlNTtcbiAgICBib3JkZXItYm90dG9tOiAxcHggc29saWQgI2U1ZTVlNTtcbiAgICBwYWRkaW5nOiAxMnB4IDEwcHg7XG4gICAgdmVydGljYWwtYWxpZ246IHRvcDtcbn1cbi50YWJsZV9sb2FkZXIgc3BhbiB7XG4gICAgd2lkdGg6IGNhbGMoMTAwJSAtIDVweCk7XG4gICAgaGVpZ2h0OiAxNXB4O1xuICAgIGJvcmRlci1yYWRpdXM6IDNweDtcbiAgICBiYWNrZ3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQoOTBkZWcsICNkZGQgMHB4LCAjZThlOGU4IDQwcHgsICNkZGQgODBweCk7XG4gICAgYmFja2dyb3VuZC1zaXplOiA2MDBweDtcbiAgICBhbmltYXRpb246IHNoaW5lLWxpbmVzLXRhYmxlIDEuNnMgaW5maW5pdGUgbGluZWFyO1xuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICBtaW4td2lkdGg6IDE1cHg7XG59XG4udGFibGVfbG9hZGVyIHNwYW4uc3ViLXRlbXAge1xuICAgIHdpZHRoOiBjYWxjKDEwMCUgLSA1MCUpO1xuICAgIG1hcmdpbi10b3A6IDVweDtcbn1cbi50YWJsZV9sb2FkZXIgc3Bhbi5zdWItdGVtcC10aHJlZSB7XG4gICAgd2lkdGg6IGNhbGMoMTAwJSAtIDcwJSk7XG4gICAgZGlzcGxheTogYmxvY2s7XG59XG5cbkBrZXlmcmFtZXMgc2hpbmUtbGluZXMtdGFibGUge1xuICAgIDAlIHtcbiAgICAgICAgb3BhY2l0eTogMC40O1xuICAgIH1cbiAgICA0MCUge1xuICAgICAgICBvcGFjaXR5OiAwLjg7XG4gICAgfVxuICAgIDEwMCUge1xuICAgICAgICBvcGFjaXR5OiAwLjQ7XG4gICAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SklitonLoadingTableComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-skliton-loading-table',
templateUrl: './skliton-loading-table.component.html',
styleUrls: ['./skliton-loading-table.component.scss']
}]
}], function () { return []; }, { numberOfCols: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], isTableLoading: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "o1st":
/*!*********************************************************************!*\
!*** ./src/app/users/pages/notification/pushed/pushed.component.ts ***!
\*********************************************************************/
/*! exports provided: PushedComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PushedComponent", function() { return PushedComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var angular_datatables__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! angular-datatables */ "njyG");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/notification/notification.service */ "S+3j");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
const _c0 = ["content"];
function PushedComponent_span_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PushedComponent_table_28_tr_20_button_18_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PushedComponent_table_28_tr_20_button_18_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r8.onEditSchedule(item_r5._id, item_r5.status, "edit"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PushedComponent_table_28_tr_20_button_19_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PushedComponent_table_28_tr_20_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.onEditSchedule(item_r5._id, item_r5.status, "cancel"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function PushedComponent_table_28_tr_20_Template(rf, ctx) { if (rf & 1) {
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "td", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PushedComponent_table_28_tr_20_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const item_r5 = ctx.$implicit; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r14.onViewSchedule(item_r5._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, PushedComponent_table_28_tr_20_button_18_Template, 2, 0, "button", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, PushedComponent_table_28_tr_20_button_19_Template, 2, 0, "button", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.title, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.type, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.pushedDate, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.pushTime, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.notificationCount, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.createdBy, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r5.status);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r5.status !== "Completed" && item_r5.status !== "Cancelled");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r5.status == "Pending" || item_r5.status == "Draft");
} }
function PushedComponent_table_28_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function PushedComponent_table_28_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Title ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function PushedComponent_table_28_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Type ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function PushedComponent_table_28_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " Pushed Date ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function PushedComponent_table_28_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, " Pushed Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function PushedComponent_table_28_Template_th_sort_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Notification Count ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function PushedComponent_table_28_Template_th_sort_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " Created By ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "th", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function PushedComponent_table_28_Template_th_sort_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r17); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.onSortSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, " Status ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "th", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](18, " Action ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, PushedComponent_table_28_tr_20_Template, 20, 9, "tr", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.schedulePTable.data);
} }
function PushedComponent_ng_template_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "button", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PushedComponent_ng_template_35_Template_button_click_1_listener() { const modal_r24 = ctx.$implicit; return modal_r24.dismiss(0); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "\u00D7");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "p", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Do you want to cancel this notification?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PushedComponent_ng_template_35_Template_button_click_8_listener() { const modal_r24 = ctx.$implicit; return modal_r24.close(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function PushedComponent_ng_template_35_Template_button_click_10_listener() { const modal_r24 = ctx.$implicit; return modal_r24.dismiss(0); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
class PushedComponent {
constructor(notificationService, modalService, toastService) {
this.notificationService = notificationService;
this.modalService = modalService;
this.toastService = toastService;
this.dtOptions = {};
this.dtTrigger = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.pushView = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.isLoading = false;
this.isTableLoading = true;
this.scheduleSearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.scheduleView = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.buId = null;
this.schedulePTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.scheduleSearchSubscription = this.scheduleSearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500))))
.subscribe((input) => {
this.schedulePTable.page = 1;
this.loadSchedule();
});
// this.route.params.subscribe(params => {
// this.ngOnInit(); // reset and set based on new parameter this time
// });
}
onSortSchedule({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.schedulePTable.sortWith = !!direction ? column : 'lastFinishedAt';
this.schedulePTable.sortBy = !!direction ? direction : 'desc';
this.loadSchedule();
}
ngOnInit() {
this.loadSchedule();
}
ngOnDestroy() {
this.scheduleSearchSubscription && this.scheduleSearchSubscription.unsubscribe();
}
onPageChangeSchedule(page) {
this.schedulePTable.page = page;
this.loadSchedule();
}
loadSchedule() {
const _a = this.schedulePTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const body = {
timeZone: 'GMT+0530',
buId: this.buId,
};
const subscribe = this.notificationService
.getPushNotification(body, rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { totalRecords, data } = response;
this.schedulePTable.data = data;
this.schedulePTable.total = totalRecords;
this.isTableLoading = false;
}, (error) => {
this.schedulePTable.data = [];
this.schedulePTable.total = 0;
this.toastService.error('No list found');
});
}
onLimitChangeSchedule() {
this.loadSchedule();
}
onViewSchedule(notificationId) {
this.pushView.emit({ notificationId, isView: true });
}
onEditSchedule(notificationId, status, from) {
if (from === 'edit') {
this.pushView.emit({ notificationId, isView: false });
}
else {
this.modalService
.open(this.content, { ariaLabelledBy: 'modal-basic-title' })
.result.then((result) => {
if (result === 1) {
const data = { id: notificationId };
this.notificationService.cancelNotification(data).subscribe((response) => {
if (response.success) {
this.toastService.success(response.msg);
}
else {
this.toastService.error(response.msg);
}
this.loadSchedule();
}, (error) => {
if (error.error) {
this.toastService.error(error.error.msg);
}
else {
this.toastService.error('Something went wrong');
}
});
}
}, (reason) => { });
}
}
}
PushedComponent.ɵfac = function PushedComponent_Factory(t) { return new (t || PushedComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__["NotificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"])); };
PushedComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: PushedComponent, selectors: [["app-pushed"]], viewQuery: function PushedComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](angular_datatables__WEBPACK_IMPORTED_MODULE_2__["DataTableDirective"], true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_c0, true, _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.dtElement = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.content = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { buId: "buId" }, outputs: { pushView: "pushView", scheduleView: "scheduleView" }, decls: 37, vars: 16, consts: [[1, "tab-content"], [1, "row", "dashboardPanelCon"], [1, "col-xs-12", "col-sm-12", "col-md-12", "col-lg-12"], [1, "panel", "panel-default"], [1, "panel-heading"], [1, "panel-body", "lg-padding"], [1, "table-responsive"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], ["content", ""], [1, "table"], ["scope", "col", "sortable", "data.title", 3, "sort"], ["scope", "col", "sortable", "data.type", 3, "sort"], ["scope", "col", "sortable", "lastFinishedAt", 3, "sort"], ["scope", "col", "sortable", "totalSent", 3, "sort"], ["scope", "col", "sortable", "data.createdBy", 3, "sort"], ["scope", "col", "sortable", "data.status", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "active-status"], [1, "btn", "btn-submit", "p-2", "m-1", "pl-3", "pr-3", 3, "click"], ["class", "btn btn-add p-2 m-1 pl-3 pr-3", 3, "click", 4, "ngIf"], ["class", "btn btn-warning", 3, "click", 4, "ngIf"], [1, "btn", "btn-add", "p-2", "m-1", "pl-3", "pr-3", 3, "click"], [1, "btn", "btn-warning", 3, "click"], [1, "modal-header", 2, "border", "none"], ["type", "button", "aria-label", "Close", 1, "close", 3, "click"], ["aria-hidden", "true"], [1, "modal-body"], [2, "font-size", "16px", "color", "#a42138", "text-align", "center", "font-weight", "bold"], [1, "modal-footer", 2, "border", "none"], ["type", "button", 1, "btn", "btn-sm", "btn-success", 3, "click"], ["type", "button", 1, "btn", "btn-sm", "btn-danger", 3, "click"]], template: function PushedComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Pushed Notification List");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function PushedComponent_Template_select_change_13_listener() { return ctx.onLimitChangeSchedule(); })("ngModelChange", function PushedComponent_Template_select_ngModelChange_13_listener($event) { return ctx.schedulePTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "option", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](25, PushedComponent_span_25_Template, 2, 0, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function PushedComponent_Template_input_keyup_26_listener($event) { return ctx.scheduleSearchInput.next($event); })("ngModelChange", function PushedComponent_Template_input_ngModelChange_26_listener($event) { return ctx.schedulePTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](28, PushedComponent_table_28_Template, 21, 1, "table", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](29, "app-skliton-loading-table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "ngb-pagination", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function PushedComponent_Template_ngb_pagination_pageChange_34_listener($event) { return ctx.schedulePTable.page = $event; })("pageChange", function PushedComponent_Template_ngb_pagination_pageChange_34_listener($event) { return ctx.onPageChangeSchedule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](35, PushedComponent_ng_template_35_Template, 12, 0, "ng-template", null, 22, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.schedulePTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.schedulePTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.schedulePTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 8)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx.schedulePTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx.schedulePTable.total)("page", ctx.schedulePTable.page)("maxSize", 5)("pageSize", ctx.schedulePTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_9__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"]], styles: [".dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #ffffff;\n text-transform: uppercase;\n font-size: 13px;\n font-weight: 500;\n letter-spacing: 0.5px;\n padding: 20px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] {\n padding: 15px 0;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n padding: 10px 20px;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading.editHeader[_ngcontent-%COMP%] {\n background-color: #842b3a;\n}\n\n.dashboardPanelCon.userTable.viewUserSection[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] {\n padding-top: 0;\n}\n\n.dashboardPanelCon.userTable.viewUserSection[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .collapseWrapper[_ngcontent-%COMP%] button.closePlane[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #fff;\n}\n\n.dashboardPanelCon[_ngcontent-%COMP%] .customFieldList[_ngcontent-%COMP%] .panel[_ngcontent-%COMP%] .panel-heading[_ngcontent-%COMP%] {\n padding: 10px 20px !important;\n}\n\n.centerAlign[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n.table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n vertical-align: middle !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvbm90aWZpY2F0aW9uL3B1c2hlZC9wdXNoZWQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSx5QkFBQTtFQUNBLGNBQUE7RUFDQSx5QkFBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLHFCQUFBO0VBQ0EsYUFBQTtBQUNGOztBQUNBO0VBQ0UsZUFBQTtBQUVGOztBQUNBO0VBQ0Usa0JBQUE7QUFFRjs7QUFBQTtFQUNFLHlCQUFBO0FBR0Y7O0FBREE7RUFDRSxjQUFBO0FBSUY7O0FBRkE7RUFDRSxrQkFBQTtBQUtGOztBQUhBO0VBQ0UsV0FBQTtBQU1GOztBQUpBO0VBQ0UsNkJBQUE7QUFPRjs7QUFMQTtFQUNFLGtCQUFBO0FBUUY7O0FBTkE7RUFDRSxpQ0FBQTtBQVNGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvbm90aWZpY2F0aW9uL3B1c2hlZC9wdXNoZWQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZGFzaGJvYXJkUGFuZWxDb24gLnBhbmVsIC5wYW5lbC1oZWFkaW5nIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmZmZmY7XG4gIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gIGZvbnQtc2l6ZTogMTNweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgbGV0dGVyLXNwYWNpbmc6IDAuNXB4O1xuICBwYWRkaW5nOiAyMHB4O1xufVxuLmRhc2hib2FyZFBhbmVsQ29uIC5wYW5lbCAucGFuZWwtYm9keSB7XG4gIHBhZGRpbmc6IDE1cHggMDtcbn1cblxuLmRhc2hib2FyZFBhbmVsQ29uIC5wYW5lbC1ib2R5IC5wYW5lbC1oZWFkaW5nIHtcbiAgcGFkZGluZzogMTBweCAyMHB4O1xufVxuLmRhc2hib2FyZFBhbmVsQ29uIC5wYW5lbCAucGFuZWwtaGVhZGluZy5lZGl0SGVhZGVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiKDEzMiwgNDMsIDU4KTtcbn1cbi5kYXNoYm9hcmRQYW5lbENvbi51c2VyVGFibGUudmlld1VzZXJTZWN0aW9uIC5wYW5lbC1ib2R5IHtcbiAgcGFkZGluZy10b3A6IDA7XG59XG4uZGFzaGJvYXJkUGFuZWxDb24udXNlclRhYmxlLnZpZXdVc2VyU2VjdGlvbiB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbn1cbi5kYXNoYm9hcmRQYW5lbENvbiAuY29sbGFwc2VXcmFwcGVyIGJ1dHRvbi5jbG9zZVBsYW5lIGkge1xuICBjb2xvcjogI2ZmZjtcbn1cbi5kYXNoYm9hcmRQYW5lbENvbiAuY3VzdG9tRmllbGRMaXN0IC5wYW5lbCAucGFuZWwtaGVhZGluZyB7XG4gIHBhZGRpbmc6IDEwcHggMjBweCAhaW1wb3J0YW50O1xufVxuLmNlbnRlckFsaWdue1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7IFxufVxuLnRhYmxlIHRib2R5IHRkIHtcbiAgdmVydGljYWwtYWxpZ246IG1pZGRsZSAhaW1wb3J0YW50O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](PushedComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-pushed',
templateUrl: './pushed.component.html',
styleUrls: ['./pushed.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_notification_notification_service__WEBPACK_IMPORTED_MODULE_6__["NotificationService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }]; }, { dtElement: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: [angular_datatables__WEBPACK_IMPORTED_MODULE_2__["DataTableDirective"], { static: false }]
}], pushView: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], content: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['content', { read: _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"] }]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}], scheduleView: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], buId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}] }); })();
/***/ }),
/***/ "oImM":
/*!***********************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/my-forms/my-forms-view/my-forms-view.component.ts ***!
\***********************************************************************************************/
/*! exports provided: MyFormsViewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyFormsViewComponent", function() { return MyFormsViewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/drag-drop */ "5+WD");
/* harmony import */ var _signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../signature-questions/signature-questions.component */ "roDN");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/dialog */ "0IaG");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/input */ "qFsG");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/material/button */ "bTqV");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var _shared_directive_numberOnly_directive__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../shared/directive/numberOnly.directive */ "cYTg");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
const _c0 = ["ScoreAbleModal"];
const _c1 = ["myImage"];
function MyFormsViewComponent_div_0_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r4.validateURLImage(ctx_r4.selectedModule.welComeAttachement), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function MyFormsViewComponent_div_0_div_18_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MyFormsViewComponent_div_0_div_18_div_8_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_8_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "textarea", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_8_Template_textarea_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r33); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r9.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MyFormsViewComponent_div_0_div_18_div_8_div_3_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("maxlength", !!(item_r9 == null ? null : item_r9.maxlength) ? item_r9 == null ? null : item_r9.maxlength : 500);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r9.answer)("disabled", ctx_r12.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r12.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_9_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r37 == null ? null : option_r37.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function MyFormsViewComponent_div_0_div_18_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_div_0_div_18_div_9_div_2_div_1_Template, 2, 1, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_9_div_2_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r42); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r9.answer = $event; })("change", function MyFormsViewComponent_div_0_div_18_div_9_div_2_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r42); const option_r37 = ctx.$implicit; const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r43.setChild(item_r9, option_r37); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r37 = ctx.$implicit;
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r37.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r37._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", item_r9._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", option_r37)("ngModel", item_r9.answer)("disabled", ctx_r35.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r37.value);
} }
function MyFormsViewComponent_div_0_div_18_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_9_div_2_Template, 5, 7, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_9_div_4_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", item_r9.optionsView == 0 ? "image-container-vertically" : "image-container-horizontally");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r9.options);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r13.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_10_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r50 == null ? null : option_r50.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function MyFormsViewComponent_div_0_div_18_div_10_div_2_Template(rf, ctx) { if (rf & 1) {
const _r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_div_0_div_18_div_10_div_2_div_1_Template, 2, 1, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_10_div_2_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r55); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r9.answer = $event; })("change", function MyFormsViewComponent_div_0_div_18_div_10_div_2_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r55); const option_r50 = ctx.$implicit; const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r56.setChild(item_r9, option_r50); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r50 = ctx.$implicit;
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r50.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r50._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", item_r9._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", option_r50)("ngModel", item_r9.answer)("disabled", ctx_r48.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", option_r50._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r50.value);
} }
function MyFormsViewComponent_div_0_div_18_div_10_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_10_div_2_Template, 5, 8, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_10_div_4_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", item_r9.optionsView == 0 ? "image-container-vertically" : "image-container-horizontally");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r9.options);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r14.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_11_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
const _r69 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "img", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_div_18_div_11_div_2_img_2_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r69); const i_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r9.selected = i_r64; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", option_r63.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function MyFormsViewComponent_div_0_div_18_div_11_div_2_span_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", option_r63.percentage, " %");
} }
const _c2 = function (a0) { return { width: a0 }; };
const _c3 = function (a0) { return { pollingSelect: a0 }; };
function MyFormsViewComponent_div_0_div_18_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
const _r75 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_11_div_2_img_2_Template, 1, 1, "img", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_div_18_div_11_div_2_Template_div_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r75); const option_r63 = ctx.$implicit; const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r73.selectPolling(item_r9._id, option_r63); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "img", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "h4", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_div_18_div_11_div_2_Template_h4_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r75); const i_r64 = ctx.index; const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r9.selected = i_r64; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, MyFormsViewComponent_div_0_div_18_div_11_div_2_span_11_Template, 2, 1, "span", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r63 = ctx.$implicit;
const i_r64 = ctx.index;
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("for", option_r63._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r63.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](7, _c2, option_r63.imageSrc ? "" : "150px"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", "./assets/images/" + (option_r63.answer ? "like1" : "like0") + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](9, _c3, item_r9.selected === i_r64));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r63.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!option_r63.percentage);
} }
function MyFormsViewComponent_div_0_div_18_div_11_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_11_div_2_Template, 12, 11, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_11_div_4_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", item_r9.optionsView == 0 ? "image-container-vertically" : "image-container-horizontally");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r9.options);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_12_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", option_r83.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function MyFormsViewComponent_div_0_div_18_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
const _r87 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_div_0_div_18_div_12_div_2_div_1_Template, 2, 1, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_12_div_2_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const option_r83 = ctx.$implicit; return option_r83.answer = $event; })("change", function MyFormsViewComponent_div_0_div_18_div_12_div_2_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r87); const option_r83 = ctx.$implicit; const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r88 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r88.setChild(item_r9, option_r83); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r83 = ctx.$implicit;
const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r83.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("name", option_r83._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", option_r83._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", option_r83.answer)("disabled", ctx_r81.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r83.value);
} }
function MyFormsViewComponent_div_0_div_18_div_12_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_12_div_2_Template, 5, 6, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_12_div_4_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", item_r9.optionsView == 0 ? "image-container-vertically" : "image-container-horizontally");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r9.options);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r16.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_13_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", item_r9.answer, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function MyFormsViewComponent_div_0_div_18_div_13_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_13_Template(rf, ctx) { if (rf & 1) {
const _r98 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_13_div_2_Template, 2, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_div_18_div_13_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r98); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r96.openDialog(item_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Signature ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "mat-icon", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, MyFormsViewComponent_div_0_div_18_div_13_div_7_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r17.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r17.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
const _c4 = function () { return { standalone: true }; };
function MyFormsViewComponent_div_0_div_18_div_14_textarea_3_Template(rf, ctx) { if (rf & 1) {
const _r105 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "textarea", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_14_textarea_3_Template_textarea_ngModelChange_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r105); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r9.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r100 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("maxlength", item_r9 == null ? null : item_r9.maxlength);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r9.answer)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](4, _c4))("disabled", ctx_r100.isFormSubmitted);
} }
function MyFormsViewComponent_div_0_div_18_div_14_textarea_4_Template(rf, ctx) { if (rf & 1) {
const _r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "textarea", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_14_textarea_4_Template_textarea_ngModelChange_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r109); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; return item_r9.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("maxlength", item_r9 == null ? null : item_r9.maxlength);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("minlength", item_r9 == null ? null : item_r9.minlength);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r9.answer)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](5, _c4))("disabled", ctx_r101.isFormSubmitted);
} }
function MyFormsViewComponent_div_0_div_18_div_14_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MyFormsViewComponent_div_0_div_18_div_14_textarea_3_Template, 2, 5, "textarea", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_14_textarea_4_Template, 2, 6, "textarea", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyFormsViewComponent_div_0_div_18_div_14_div_6_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !item_r9.isNumeric);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!item_r9.isNumeric);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_15_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_15_Template(rf, ctx) { if (rf & 1) {
const _r117 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "input", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_15_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r117); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r9.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, MyFormsViewComponent_div_0_div_18_div_15_div_5_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r9.answer)("disabled", ctx_r19.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r19.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_1_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
const _r128 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "input", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_1_Template_input_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r128); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r9.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "ngb-timepicker", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_1_Template_ngb_timepicker_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r128); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r9.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, MyFormsViewComponent_div_0_div_18_div_16_div_1_div_1_div_11_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
const ctx_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r9.answer["date"])("disabled", ctx_r121.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r9.answer["time"])("meridian", true)("hourStep", ctx_r121.hourStep)("minuteStep", ctx_r121.minuteStep);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r121.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
const _r136 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_2_div_1_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r136); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit; return (item_r9.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit;
const ctx_r132 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r9.answer["date"])("disabled", ctx_r132.isFormSubmitted);
} }
function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_div_0_div_18_div_16_div_1_div_2_div_1_Template, 5, 2, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MyFormsViewComponent_div_0_div_18_div_16_div_1_div_2_div_3_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r122 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r120 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r122.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
const _r145 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ngb-timepicker", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_16_div_1_div_3_Template_ngb_timepicker_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r145); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit; return (item_r9.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyFormsViewComponent_div_0_div_18_div_16_div_1_div_3_div_6_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
const ctx_r123 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r9.answer["time"])("meridian", true)("hourStep", ctx_r123.hourStep)("minuteStep", ctx_r123.minuteStep);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r123.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_16_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_div_0_div_18_div_16_div_1_div_1_Template, 12, 7, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_16_div_1_div_2_Template, 4, 2, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MyFormsViewComponent_div_0_div_18_div_16_div_1_div_3_Template, 7, 5, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r120 = ctx.$implicit;
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r9.dateTime == null ? null : item_r9.dateTime.length) === 2 && option_r120 === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r9.dateTime == null ? null : item_r9.dateTime.length) === 1 && option_r120 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", option_r120 === 2 && (item_r9.dateTime == null ? null : item_r9.dateTime.length) === 1);
} }
function MyFormsViewComponent_div_0_div_18_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_div_0_div_18_div_16_div_1_Template, 4, 3, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r9.dateTime);
} }
function MyFormsViewComponent_div_0_div_18_div_17_ng_option_4_img_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 82);
} if (rf & 2) {
const choice_r152 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", choice_r152.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function MyFormsViewComponent_div_0_div_18_div_17_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_div_0_div_18_div_17_ng_option_4_img_1_Template, 1, 1, "img", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r152 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", choice_r152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", choice_r152.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" \u00A0", choice_r152.value, " ");
} }
function MyFormsViewComponent_div_0_div_18_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_17_Template(rf, ctx) { if (rf & 1) {
const _r158 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ng-select", 77, 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_17_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r158); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r9.answer = $event; })("change", function MyFormsViewComponent_div_0_div_18_div_17_Template_ng_select_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r158); const ctx_r160 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const item_r9 = ctx_r160.$implicit; const i_r10 = ctx_r160.index; const ctx_r159 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r159.setChild(item_r9, item_r9.answer, i_r10); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_17_ng_option_4_Template, 3, 3, "ng-option", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyFormsViewComponent_div_0_div_18_div_17_div_6_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", false)("ngModel", item_r9.answer)("readonly", ctx_r21.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r9.options);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r21.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_18_span_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, ", ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MyFormsViewComponent_div_0_div_18_div_18_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_18_span_4_span_2_Template, 2, 0, "span", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const fileType_r164 = ctx.$implicit;
const index_r165 = ctx.index;
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", fileType_r164.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (item_r9.options == null ? null : item_r9.options.length) != index_r165 + 1);
} }
function MyFormsViewComponent_div_0_div_18_div_18_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_18_Template(rf, ctx) { if (rf & 1) {
const _r170 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function MyFormsViewComponent_div_0_div_18_div_18_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r170); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r169 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r169.fileUpload($event, item_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_18_span_4_Template, 3, 2, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyFormsViewComponent_div_0_div_18_div_18_div_6_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r22.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r9 == null ? null : item_r9.options);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r22.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_19_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_19_Template(rf, ctx) { if (rf & 1) {
const _r177 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "ngb-rating", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("rateChange", function MyFormsViewComponent_div_0_div_18_div_19_Template_ngb_rating_rateChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r177); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r9.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_19_div_4_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("max", item_r9.value)("rate", item_r9.answer)("readonly", ctx_r23.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r23.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_20_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r181 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", choice_r181._id);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", choice_r181.name, " ");
} }
function MyFormsViewComponent_div_0_div_18_div_20_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_20_Template(rf, ctx) { if (rf & 1) {
const _r184 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function MyFormsViewComponent_div_0_div_18_div_20_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r184); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r183 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r183.multiSelect($event, item_r9); })("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_20_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r184); const ctx_r186 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r186.user = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_20_ng_option_4_Template, 2, 2, "ng-option", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyFormsViewComponent_div_0_div_18_div_20_div_6_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", true)("searchable", true)("ngModel", ctx_r24.user)("clearable", true)("disabled", ctx_r24.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r24.typeFourteenQuestion);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r24.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_21_div_2_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "img", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r190 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", imagObj_r190.src, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function MyFormsViewComponent_div_0_div_18_div_21_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_21_div_2_div_2_Template, 2, 1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r190 = ctx.$implicit;
const ctx_r188 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("cdkDragDisabled", ctx_r188.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", imagObj_r190.src);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](imagObj_r190.value);
} }
function MyFormsViewComponent_div_0_div_18_div_21_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_21_Template(rf, ctx) { if (rf & 1) {
const _r195 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("cdkDropListDropped", function MyFormsViewComponent_div_0_div_18_div_21_Template_div_cdkDropListDropped_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r195); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r194 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r194.drop($event, item_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_div_0_div_18_div_21_div_2_Template, 6, 3, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_div_21_div_4_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r9.images);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r25.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_22_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MyFormsViewComponent_div_0_div_18_div_22_div_3_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r26.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_23_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MyFormsViewComponent_div_0_div_18_div_23_div_3_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r27.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
} }
function MyFormsViewComponent_div_0_div_18_div_24_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r209 = ctx.$implicit;
const j_r210 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("left", item_r209 == null ? null : item_r209.coordinates == null ? null : item_r209.coordinates.x, "%")("top", item_r209 == null ? null : item_r209.coordinates == null ? null : item_r209.coordinates.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](j_r210 + 1);
} }
function MyFormsViewComponent_div_0_div_18_div_24_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 1, item_r9 == null ? null : item_r9.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_18_div_24_div_10_tr_13_td_5_Template(rf, ctx) { if (rf & 1) {
const _r218 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "img", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_div_18_div_24_div_10_tr_13_td_5_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r218); const index_r214 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r216 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r216.conditionQuestionDelete(index_r214); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MyFormsViewComponent_div_0_div_18_div_24_div_10_tr_13_Template(rf, ctx) { if (rf & 1) {
const _r220 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MyFormsViewComponent_div_0_div_18_div_24_div_10_tr_13_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r220); const field_r213 = ctx.$implicit; return field_r213.value = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, MyFormsViewComponent_div_0_div_18_div_24_div_10_tr_13_td_5_Template, 2, 0, "td", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r213 = ctx.$implicit;
const index_r214 = ctx.index;
const ctx_r212 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", index_r214 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", field_r213.value)("disabled", ctx_r212.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r212.typeSixteenImageField.length >= 1);
} }
function MyFormsViewComponent_div_0_div_18_div_24_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "strong", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Spot descriptions");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "table", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "SNO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "DESCRIPTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, MyFormsViewComponent_div_0_div_18_div_24_div_10_tr_13_Template, 6, 4, "tr", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r207 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r207.typeSixteenImageField);
} }
function MyFormsViewComponent_div_0_div_18_div_24_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
const _c5 = function (a0) { return { position: a0 }; };
function MyFormsViewComponent_div_0_div_18_div_24_Template(rf, ctx) { if (rf & 1) {
const _r223 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_div_18_div_24_Template_div_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r223); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r221 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r221.openPopup(item_r9.imageSrc); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "img", 98, 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_div_18_div_24_Template_img_click_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r223); const i_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r224 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r224.onImageClick($event, ctx_r224.viewQuestions, i_r10); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyFormsViewComponent_div_0_div_18_div_24_div_6_Template, 3, 5, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " - ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, MyFormsViewComponent_div_0_div_18_div_24_div_9_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, MyFormsViewComponent_div_0_div_18_div_24_div_10_Template, 14, 1, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, MyFormsViewComponent_div_0_div_18_div_24_div_11_Template, 2, 0, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](6, _c5, ctx_r28.isPopupOpen ? "sticky" : "relative"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", item_r9.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r28.typeSixteenImageField);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r28.isFormSubmitted && (item_r9 == null ? null : item_r9.explanation));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r28.typeSixteenImageField.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r28.viewQuestions.length == 0);
} }
function MyFormsViewComponent_div_0_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "strong", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_18_span_4_Template, 2, 0, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, MyFormsViewComponent_div_0_div_18_div_8_Template, 4, 4, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, MyFormsViewComponent_div_0_div_18_div_9_Template, 5, 3, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, MyFormsViewComponent_div_0_div_18_div_10_Template, 5, 3, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, MyFormsViewComponent_div_0_div_18_div_11_Template, 5, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, MyFormsViewComponent_div_0_div_18_div_12_Template, 5, 3, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, MyFormsViewComponent_div_0_div_18_div_13_Template, 8, 3, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, MyFormsViewComponent_div_0_div_18_div_14_Template, 7, 3, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, MyFormsViewComponent_div_0_div_18_div_15_Template, 6, 3, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, MyFormsViewComponent_div_0_div_18_div_16_Template, 3, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, MyFormsViewComponent_div_0_div_18_div_17_Template, 7, 7, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, MyFormsViewComponent_div_0_div_18_div_18_Template, 7, 3, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, MyFormsViewComponent_div_0_div_18_div_19_Template, 5, 4, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, MyFormsViewComponent_div_0_div_18_div_20_Template, 7, 7, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, MyFormsViewComponent_div_0_div_18_div_21_Template, 5, 2, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, MyFormsViewComponent_div_0_div_18_div_22_Template, 4, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, MyFormsViewComponent_div_0_div_18_div_23_Template, 4, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, MyFormsViewComponent_div_0_div_18_div_24_Template, 12, 8, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = ctx.$implicit;
const i_r10 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", i_r10 + 1, "\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 20, item_r9 == null ? null : item_r9.question), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r9.type === 16);
} }
function MyFormsViewComponent_div_0_div_19_div_1_div_6_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MyFormsViewComponent_div_0_div_19_div_1_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "strong", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MyFormsViewComponent_div_0_div_19_div_1_div_6_span_4_Template, 2, 0, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r231 = ctx.$implicit;
const i_r232 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", i_r232 + 1, "\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r231.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](7, 3, item_r231 == null ? null : item_r231.question), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
} }
function MyFormsViewComponent_div_0_div_19_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "strong", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MyFormsViewComponent_div_0_div_19_div_1_div_6_Template, 8, 5, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r234 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const j_r228 = ctx_r234.index;
const section_r227 = ctx_r234.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", j_r228 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", section_r227 == null ? null : section_r227.sectionName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", section_r227 == null ? null : section_r227.questions);
} }
function MyFormsViewComponent_div_0_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_div_0_div_19_div_1_Template, 7, 3, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r228 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", j_r228 !== 0);
} }
function MyFormsViewComponent_div_0_button_23_Template(rf, ctx) { if (rf & 1) {
const _r236 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_button_23_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r236); const ctx_r235 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r235.submit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MyFormsViewComponent_div_0_button_24_Template(rf, ctx) { if (rf & 1) {
const _r238 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_button_24_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r238); const ctx_r237 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r237.closePage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MyFormsViewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r240 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_div_0_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r240); const ctx_r239 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r239.back(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, MyFormsViewComponent_div_0_div_8_Template, 2, 1, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "h3", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "h3", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "strong", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "1 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, MyFormsViewComponent_div_0_div_18_Template, 25, 22, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, MyFormsViewComponent_div_0_div_19_Template, 2, 1, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, MyFormsViewComponent_div_0_button_23_Template, 2, 0, "button", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, MyFormsViewComponent_div_0_button_24_Template, 2, 0, "button", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 9, ctx_r0.selectedModule == null ? null : ctx_r0.selectedModule.moduleName), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.selectedModule.welComeAttachement);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" checked ", ctx_r0.selectedModule == null ? null : ctx_r0.selectedModule.welComeMessage, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.firstSection, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.viewQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.sectionList);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r0.selectedModule == null ? null : ctx_r0.selectedModule.Message, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.isFormSubmitted);
} }
function MyFormsViewComponent_ng_container_1_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r243 = ctx.$implicit;
const i_r244 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("left", item_r243 == null ? null : item_r243.x, "%")("top", item_r243 == null ? null : item_r243.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r244 + 1);
} }
function MyFormsViewComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
const _r246 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_ng_container_1_Template_div_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r246); const ctx_r245 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r245.closePopup(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "i", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "img", 121, 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_ng_container_1_Template_img_click_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r246); const ctx_r247 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r247.onImageClick($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, MyFormsViewComponent_ng_container_1_div_7_Template, 3, 5, "div", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r1.typeSixteenImageSRC, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.typeSixteenImageField);
} }
function MyFormsViewComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r251 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Score Details");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "mat-icon", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Thanks you...The form you submitted have scoring enabled ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "button", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MyFormsViewComponent_ng_template_2_Template_button_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r251); const ctx_r250 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r250.modalClose(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Your score:", ctx_r3.userScore == null ? null : ctx_r3.userScore.userScore, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Maximum score:", ctx_r3.userScore == null ? null : ctx_r3.userScore.totalScore, "");
} }
class MyFormsViewComponent {
constructor(centralBuilderService, dialogRef, toastService, customFormService, modelService, datePipe) {
this.centralBuilderService = centralBuilderService;
this.dialogRef = dialogRef;
this.toastService = toastService;
this.customFormService = customFormService;
this.modelService = modelService;
this.datePipe = datePipe;
this.questionId = null;
this.customFormId = null;
this.takeQuestion = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.viewPage = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.formTitleviewPage = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.questions = [];
this.viewQuestions = [];
this.time = { hour: 0o0, minute: 0o0, second: 0o0 };
this.dateTime = { hour: 0o0, minute: 0o0, second: 0o0 };
this.dataTimeOnly = { hour: 0o0, minute: 0o0, second: 0o0 };
this.hourStep = 1;
this.minuteStep = 1;
this.secondStep = 30;
this.secondsArray = ['AM', 'PM'];
this.hourArray = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'];
this.minuteArray = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59'];
this.hasParent = question => { var _a; return 0 === ((_a = question === null || question === void 0 ? void 0 : question.conditionalQuestions) === null || _a === void 0 ? void 0 : _a.length); };
this.meridian = true;
this.user = { _id: null, name: null };
this.items = [];
this.images = [];
this.isModuleView = false;
this.isPopupOpen = false;
this.fileToUpload = null;
this.questionDropDownToClear = null;
this.imagePath = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].imageUrl;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].imageUrl;
this.typeSixteenImageField = [];
}
ngOnInit() {
// this.questionId is moduleId
console.log('questionId', this.questionId, this.customFormId, this.takeQuestion);
this.questionId && this.getQuestions(this.questionId);
}
toggleMeridian() {
this.meridian = !this.meridian;
}
multiSelect(value, question) {
question.answer = value === null || value === void 0 ? void 0 : value.map(x => {
var _a, _b;
if ((_a = this.typeFourteenQuestion) === null || _a === void 0 ? void 0 : _a.find(qus => qus._id == x)) {
return (_b = this.typeFourteenQuestion) === null || _b === void 0 ? void 0 : _b.find(qus => qus._id == x);
}
});
}
openDialog(questionid) {
const modalRef = this.dialogRef.open(_signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_2__["SignatureQuestionsComponent"], {
height: '500px',
width: '600px',
});
modalRef.componentInstance.takeSignature.subscribe((signURL) => {
this.signatureImg = signURL;
questionid.answer = signURL;
this.close(modalRef);
});
}
close(modalRef) {
modalRef.close();
}
drop(event, question) {
Object(_angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_1__["moveItemInArray"])(question.images, event.previousIndex, event.currentIndex);
this.typeFifteen(question);
}
back() {
this.takeQuestion.emit(null);
}
closePage() {
this.takeQuestion.emit(null);
}
formatHoursTo12(date) {
let hour = date.hour % 12 || 12;
let minute;
if (hour < 10)
hour = '0' + hour;
if (date.minute < 10)
minute = '0' + date.minute;
else
minute = date.minute;
let seconds;
if (date.hour < 12)
seconds = 'am';
else
seconds = 'pm';
const time = hour + "-" + minute + "-" + seconds;
return time;
}
submit() {
const mandatoryQuestion = this.viewQuestions.filter((data) => {
if (data === null || data === void 0 ? void 0 : data.required)
return data === null || data === void 0 ? void 0 : data._id;
});
const answers = this.viewQuestions.reduce((prev, question, i) => {
var _a, _b, _c, _d, _e, _f, _g, _h;
let answer = null, _id = question._id, type = question.type, required = question === null || question === void 0 ? void 0 : question.required, sectionId = question === null || question === void 0 ? void 0 : question.sectionId, questionId = question._id, options = false || (question === null || question === void 0 ? void 0 : question.options), maxLength = (question === null || question === void 0 ? void 0 : question.maxlength) || 0, isNumeric = question === null || question === void 0 ? void 0 : question.isNumeric;
switch (question.type) {
case 1:
case 2:
case 3:
case 6:
case 8:
case 11:
case 14:
case 12:
case 13:
case 16:
case 15:
case 21:
case 22:
answer = question.answer;
break;
case 9:
answer = (_a = question.answer) === null || _a === void 0 ? void 0 : _a.toString();
break;
case 10:
if (-1 !== question.dateTime.indexOf(1) && !!question.answer && !!question.answer.date) {
answer = answer || {};
answer["date"] = this.datePipe.transform(new Date(question.answer.date), 'dd-MM-yyyy');
}
if (-1 !== question.dateTime.indexOf(2) &&
!!question.answer &&
!!question.answer.time) {
answer = answer || {};
if (((_b = question === null || question === void 0 ? void 0 : question.answer.time) === null || _b === void 0 ? void 0 : _b.hour) && ((_c = question === null || question === void 0 ? void 0 : question.answer.time) === null || _c === void 0 ? void 0 : _c.minute)) {
answer["time"] = this.convert24hourTo12HourFormat(((_d = question.answer.time) === null || _d === void 0 ? void 0 : _d.hour) + ':' + ((_e = question.answer.time) === null || _e === void 0 ? void 0 : _e.minute));
}
}
if ((-1 !== question.dateTime.indexOf(1) && -1 !== question.dateTime.indexOf(2)) &&
!(!!question.answer && !!question.answer.date && !!((_f = question.answer.time) === null || _f === void 0 ? void 0 : _f.hour) && !!((_g = question.answer.time) === null || _g === void 0 ? void 0 : _g.minute))) {
answer = false;
}
break;
case 5:
case 4:
answer = (_h = question.options) === null || _h === void 0 ? void 0 : _h.filter(v => v.answer);
if (!answer.length) {
answer = null;
}
break;
default:
answer = false;
break;
}
return prev.concat({ _id, answer, type, required, sectionId, questionId, options, maxLength, isNumeric });
}, []);
if (answers === null || answers === void 0 ? void 0 : answers.some(v => v.type === 9 && !(!!v.answer))) {
this.toastService.error('Please enter valid numeric values');
return;
}
if (answers.some(v => mandatoryQuestion.findIndex(el => el._id == v._id) > -1 && !!!v.answer)) {
this.toastService.error("Answer all mandatory questions");
return;
}
let maxLengthData = false;
answers.forEach(element => {
var _a;
if ((element === null || element === void 0 ? void 0 : element.type) === 8 && !!(element === null || element === void 0 ? void 0 : element.isNumeric)) {
if ((element === null || element === void 0 ? void 0 : element.maxLength) > ((_a = element === null || element === void 0 ? void 0 : element.answer) === null || _a === void 0 ? void 0 : _a.length)) {
maxLengthData = true;
this.toastService.error(`Minimum length ${element === null || element === void 0 ? void 0 : element.maxLength} is required to submit answer `);
}
}
});
if (!!maxLengthData)
return;
let _questions = this.questions.map(v => v._id);
const payload = {
answers: answers,
customFormId: this.customFormId,
questions: _questions
};
const answerList = answers === null || answers === void 0 ? void 0 : answers.map((val) => {
var _a, _b;
return ({
sectionId: val === null || val === void 0 ? void 0 : val.sectionId,
questionId: val.questionId,
option: typeof (val === null || val === void 0 ? void 0 : val.answer) !== 'object' ? null : (_a = val === null || val === void 0 ? void 0 : val.answer) === null || _a === void 0 ? void 0 : _a._id,
value: typeof (val === null || val === void 0 ? void 0 : val.answer) !== 'object' ? val === null || val === void 0 ? void 0 : val.answer : (_b = val === null || val === void 0 ? void 0 : val.answer) === null || _b === void 0 ? void 0 : _b.value,
type: val === null || val === void 0 ? void 0 : val.type
});
});
const mainPayload = {
customFormId: this.customFormId,
answers: answerList,
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
};
answers.length > 0 ? this.customFormService.submitForm(mainPayload).subscribe((data) => {
this.toastService.success("Form Submitted Successfully");
this.isFormSubmitted = true;
this.showScreableModal(data);
}, (error) => {
var _a, _b;
this.toastService.error((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
}) : '';
}
;
showScreableModal(data) {
var _a, _b;
if ((_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.score) {
this.userScore = (_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.score;
this.modelService.open(this.ScoreAbleModal, {
ariaLabelledBy: 'modal-basic-title'
});
}
}
modalClose() {
this.modelService.dismissAll(this.ScoreAbleModal);
}
getQuestions(moduleId) {
this.customFormService
.getQuestionList(this.customFormId, moduleId, 'submit')
.subscribe(({ data }) => {
var _a, _b;
// pending
console.log('data?.data', data);
this.isModuleView = true;
this.selectedModule = data || null;
this.sectionList = this.selectedModule.sections || [];
let sectionList = this.selectedModule.sections;
this.firstSection = (_a = sectionList[0]) === null || _a === void 0 ? void 0 : _a.sectionName;
for (let i = 0; i < sectionList.length; i++) {
const section = sectionList[0];
sectionList[0].questions = section.questions.filter(v => 7 !== v.type) || [];
this.viewQuestions = sectionList[0].questions.filter(x => 0 === x.conditionalQuestions.length) || [];
}
let typeFourteen = null;
(_b = this.viewQuestions) === null || _b === void 0 ? void 0 : _b.map(item => {
item.answer = null;
if (item.type === 10) {
item.answer = {};
item.answer['date'] = null;
item.answer['time'] = null;
}
if (item.type === 14) {
typeFourteen = item._id;
}
if (item.type === 15) {
item === null || item === void 0 ? void 0 : item.options.map((final, index) => {
item['images'][index] = { "src": final.imageSrc, "value": final.value, "option": final._id };
});
}
});
typeFourteen && this.getNominateUserType(typeFourteen);
this.selectedModule.sections = sectionList;
this.questions = sectionList;
});
}
getNominateUserType(questionId) {
let finalData = {
questionId: questionId
};
this.centralBuilderService.getNominateUser(finalData).subscribe((data) => {
this.setDropdown(data.data, questionId);
});
}
setDropdown(data, questionId) {
this.typeFourteenQuestion = (data === null || data === void 0 ? void 0 : data.items) || [];
this.questionIDFourteen = questionId;
}
fileUpload(event, question) {
var _a;
let typeList = ((_a = question.options) === null || _a === void 0 ? void 0 : _a.map(data => { return data.value.toLowerCase(); })) || [];
if (event.target.files && event.target.files.length) {
const file = event.target.files[0];
let fileType = file.name.split('.');
let fileExe = (fileType === null || fileType === void 0 ? void 0 : fileType.length) ? fileType[fileType.length - 1].toLowerCase() : null;
if (fileExe && (typeList === null || typeList === void 0 ? void 0 : typeList.includes(fileExe))) {
var useraddData = new FormData();
useraddData.append("file", file);
const fileUpload = this.customFormService
.uploadFiles(useraddData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
question.answer = { url: (data === null || data === void 0 ? void 0 : data.filePath) || null, fileName: file.name };
}, (error) => {
this.toastService.error((error === null || error === void 0 ? void 0 : error.message) || 'File upload error');
});
}
else {
this.toastService.error("Only this format are accecpted", typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
// }
}
else {
this.toastService.error("Only this format are accecpted", typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
}
toggleDropdown() {
//add dropdwn frun
}
typeFifteen(question) {
let payload;
payload = question.images.map((data) => {
return { "value": data.value, "_id": data.option, correctAns: false };
});
question.images.map((data, i) => {
if (data.src !== '')
payload[i].imageSrc = data.src;
});
question.answer = payload;
}
setChild(question, answer, index) {
if (question.type == 11) {
this.viewQuestions[index].answer = answer;
this.viewQuestions[index].isVisibleList = !this.viewQuestions[index].isVisibleList;
}
console.log(question, answer);
this.checkQuestions(question, answer._id);
}
;
checkQuestions(question, a) {
var _a;
let q = question._id;
const filteredData = (_a = this.questions) === null || _a === void 0 ? void 0 : _a.filter(v => {
var _a;
return !this.hasParent(v) && ((_a = v === null || v === void 0 ? void 0 : v.conditionalQuestions) === null || _a === void 0 ? void 0 : _a.some(c => { var _a, _b; return ((_a = c.questionId) === null || _a === void 0 ? void 0 : _a._id) === q && ((_b = c.optionId) === null || _b === void 0 ? void 0 : _b._id) === a; }));
});
const filteredQuestions = filteredData === null || filteredData === void 0 ? void 0 : filteredData.map(c => {
c["cQuestion"] = q;
c["cOption"] = a;
return JSON.parse(JSON.stringify(c));
});
if (question.type == 5) {
setTimeout(() => {
var _a, _b, _c;
if (!question.options.filter(option => option._id === a)[0].answer) {
let allQuestionsadded = filteredQuestions.map(v => v._id);
let questionsNeedToDelete = (_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.reduce((prev, curr, i) => {
return allQuestionsadded.includes(curr._id) ? prev.concat(i) : prev;
}, []);
questionsNeedToDelete.sort((a, b) => b - a);
questionsNeedToDelete.forEach(v => {
this.viewQuestions.splice(v, 1);
});
}
else {
const index = ((_b = this.viewQuestions) === null || _b === void 0 ? void 0 : _b.findIndex(ques => ques._id == q)) + 1;
this.viewQuestions.splice(index, 0, ...filteredQuestions);
}
this.viewQuestions = (_c = this.viewQuestions) === null || _c === void 0 ? void 0 : _c.reduce((prev, curr, i) => {
const index = prev.findIndex(v => v._id === curr._id);
return -1 === index ? prev.concat(curr) : prev;
}, []);
}, 100);
}
else {
setTimeout(() => {
var _a;
this.viewQuestions = (_a = this.viewQuestions) === null || _a === void 0 ? void 0 : _a.filter(ques => "cQuestion" in ques ? ques.cQuestion !== q : true);
const index = this.viewQuestions.findIndex(ques => ques._id == q) + 1;
this.viewQuestions.splice(index, 0, ...filteredQuestions);
this.viewQuestions = this.viewQuestions.reduce((prev, curr, i) => {
const index = prev.findIndex(v => v._id === curr._id);
return -1 === index ? prev.concat(curr) : prev;
}, []);
});
}
}
;
selectPolling(questionId, option) {
var _a;
let question = this.questions.find(q => q._id.toString() === questionId.toString());
if (!question.pollingSelectionCount || (1 === question.pollingSelectionCount)) {
question.options.forEach(opt => opt.answer = (option._id.toString() === opt._id.toString()));
}
else if ((question.options.filter(op => op.answer).length === question.pollingSelectionCount) && !option.answer) {
this.toastService.error('maxinum options reach for this question');
}
else {
question.options.find(op => op._id.toString() === option._id.toString()).answer =
!((_a = question.options) === null || _a === void 0 ? void 0 : _a.find(op => op._id.toString() === option._id.toString()).answer);
}
}
convert24hourTo12HourFormat(time) {
const time_part_array = time.split(":");
let ampm = 'am';
if (time_part_array[0] >= 12) {
ampm = 'pm';
}
if (time_part_array[0] > 12) {
time_part_array[0] = time_part_array[0] - 12;
}
const formatted_time = time_part_array[0] + ':' + time_part_array[1] + ':' + ampm;
return formatted_time;
}
onImageClick(event, viewQuestions, index) {
const imageElement = event.target;
const imageWidth = imageElement.offsetWidth;
const imageHeight = imageElement.offsetHeight;
const offsetX = event.offsetX;
const offsetY = event.offsetY;
const percentageX = ((offsetX / imageWidth) * 100) - 3.3;
const percentageY = ((offsetY / imageHeight) * 100) - 5.8;
let field = {
value: '',
coordinates: {
x: percentageX,
y: percentageY,
radious: 36,
imgWidth: imageWidth,
imgHeight: imageHeight,
},
};
this.typeSixteenImageField.push(field);
this.viewQuestions[index].answer = this.typeSixteenImageField;
}
onDeleteDescription(index) {
}
openPopup(img) {
this.typeSixteenImageSRC = img;
this.isPopupOpen = true;
}
closePopup() {
this.isPopupOpen = false;
}
conditionQuestionDelete(index) {
this.typeSixteenImageField.splice(index, 1);
}
validateURLImage(str) {
if (str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
}
MyFormsViewComponent.ɵfac = function MyFormsViewComponent_Factory(t) { return new (t || MyFormsViewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_5__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"])); };
MyFormsViewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MyFormsViewComponent, selectors: [["app-my-forms-view"]], viewQuery: function MyFormsViewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.ScoreAbleModal = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.myImage = _t.first);
} }, inputs: { questionId: "questionId", customFormId: "customFormId" }, outputs: { takeQuestion: "takeQuestion", viewPage: "viewPage", formTitleviewPage: "formTitleviewPage" }, decls: 4, vars: 2, consts: [["class", "card", 4, "ngIf"], [4, "ngIf"], ["ScoreAbleModal", ""], [1, "card"], [1, "card-header", "flexi-header", "pt-4"], [2, "display", "inline"], [1, "btn", "btn-warning", "pull-right", 2, "color", "ivory", 3, "click"], [1, "card-header"], ["class", "card-body centered-image", 4, "ngIf"], [2, "text-align", "center"], [1, "card-body", 2, "word-break", "break-word", "padding", "10px", "height", "max-content"], [1, "box", "d-flex", "flex-column"], [1, "mr-1"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], [2, "margin-left", "400px", "margin-top", "20px"], ["type", "submit", "class", "btn-submit", 3, "click", 4, "ngIf"], [1, "card-body", "centered-image"], ["crossorigin", "anonymous", "width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", 1, "image", 3, "src"], [1, "topHead", "d-flex"], ["class", "required", 4, "ngIf"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], ["class", "", 4, "ngIf"], ["class", "card-body", 4, "ngIf"], ["class", "box-body-16", 4, "ngIf"], [1, "required"], [1, "box-body"], ["matInput", "", "rows", "5", "cols", "100", 3, "ngModel", "maxlength", "disabled", "ngModelChange"], [1, "form-group", "answers-options", 3, "ngClass"], ["class", "box", 4, "ngFor", "ngForOf"], [1, "box"], ["type", "radio", 1, "card-header-flexi", 3, "id", "name", "value", "ngModel", "disabled", "ngModelChange", "change"], ["for", "consolidated"], [1, "card-body"], ["crossorigin", "anonymous", "id", "4", "alt", "Image Preview", 1, "image-size", 3, "src"], [1, ""], [3, "ngClass"], [3, "for"], ["crossorigin", "anonymous", "alt", "Image Preview", 1, "image-size", 3, "src"], [2, "overflow", "auto", 3, "ngClass"], ["class", "question-radio-inline box", 4, "ngFor", "ngForOf"], [1, "question-radio-inline", "box"], [1, "card", 2, "border-radius", "10px", 3, "for"], ["class", "image-size", "crossorigin", "anonymous", "alt", "", "style", "border-radius: 10px 10px 0px 0px", 3, "src", "click", 4, "ngIf"], [1, "card-container", 2, "background-color", "#6eb96e", "display", "flex", "justify-content", "space-between", "border-radius", "0px 0px 10px 10px", "padding", "5px", 3, "ngStyle", "click"], ["crossorigin", "anonymous", "alt", "", "height", "10px", 2, "width", "12%", "min-width", "30px", "height", "1%", "margin", "3px", 3, "src"], [2, "text-align", "center", 3, "ngClass", "click"], ["class", "text-success", 4, "ngIf"], ["crossorigin", "anonymous", "alt", "", 1, "image-size", 2, "border-radius", "10px 10px 0px 0px", 3, "src", "click"], [1, "text-success"], ["type", "checkbox", 3, "ngModel", "name", "id", "disabled", "ngModelChange", "change"], ["id", "4", "alt", "Image Preview", 1, "image-size", 3, "src"], ["class", "signature-div", 4, "ngIf"], ["mat-button", "", 1, "mat-sign-button", 3, "disabled", "click"], ["aria-hidden", "false", "aria-label", "Example home icon", "fontIcon", "home"], [1, "signature-div"], [1, "signature-img", 3, "src"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "box", "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["class", "form-control", "rows", "5", 3, "ngModel", "ngModelOptions", "maxlength", "disabled", "ngModelChange", 4, "ngIf"], ["class", "form-control", "rows", "5", "appNumberOnly", "", 3, "ngModel", "ngModelOptions", "maxlength", "minlength", "disabled", "ngModelChange", 4, "ngIf"], ["rows", "5", 1, "form-control", 3, "ngModel", "ngModelOptions", "maxlength", "disabled", "ngModelChange"], ["rows", "5", "appNumberOnly", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "maxlength", "minlength", "disabled", "ngModelChange"], ["type", "number", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["class", "box", 4, "ngIf"], ["class", "box form-group", 4, "ngIf"], ["style", "margin-left: 10px", "class", "box", 4, "ngIf"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["for", "my-input"], ["id", "my-input", "type", "date", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], [1, "box", 2, "margin-left", "10px"], [3, "ngModel", "meridian", "hourStep", "minuteStep", "ngModelChange"], [1, "box", "form-group"], ["class", "d-flex flex-wrap answers-options", 4, "ngIf"], [1, "box", "form-group", "ng-select-img-container"], ["placeholder", "Select Options", "bindLabel", "value", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "readonly", "ngModelChange", "change"], ["mySelect", ""], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], ["crossorigin", "anonymous", "class", "dropdown-img", 3, "src", 4, "ngIf"], ["crossorigin", "anonymous", 1, "dropdown-img", 3, "src"], ["id", "my-input", "type", "file", 1, "form-control-file", 3, "disabled", "change"], [1, "d-flex"], [3, "max", "rate", "readonly", "rateChange"], [1, "row"], [1, "col-md-6"], ["bindLabel", "name", "placeholder", "Select Users", 1, "custom", 3, "multiple", "searchable", "ngModel", "clearable", "disabled", "change", "ngModelChange"], ["cdkDropList", "", 3, "cdkDropListDropped"], ["cdkDrag", "", 3, "cdkDragDisabled", 4, "ngFor", "ngForOf"], ["cdkDrag", "", 3, "cdkDragDisabled"], [1, "img-thumbnail"], ["id", "4", "alt", "Image Preview", 1, "sequence-image", 3, "src"], [1, "box-body-16"], [3, "ngStyle"], ["ngbTooltip", "Expand", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-expand"], ["width", "100%", "alt", "Image Preview", 3, "src", "click"], ["myImage", ""], ["class", "circle", 3, "left", "top", 4, "ngFor", "ngForOf"], ["class", "row imgSrc", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "circle"], [1, "text"], [1, "row", "imgSrc"], [1, "pb-3"], [1, "table"], [1, "w-20"], [1, "srNo"], ["type", "text", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["class", "cancel-button", 4, "ngIf"], [1, "cancel-button"], ["alt", "", "src", "./assets/images/cancel.png", "height", "20px", "crossorigin", "anonymous", 1, "image", 3, "click"], ["lass", "box d-flex flex-column", 4, "ngIf"], ["lass", "box d-flex flex-column"], ["type", "submit", 1, "btn-submit", 3, "click"], [1, "popup-overlay", "zoom-popup-overlay"], [1, "popup", "zoom-image-popup"], ["ngbTooltip", "Exit fullscreen", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-compress"], ["alt", "Image Preview", "crossorigin", "anonymous", 3, "src", "click"], ["class", "circlePopup", 3, "left", "top", 4, "ngFor", "ngForOf"], [1, "circlePopup"], [1, "modal-content"], [1, "modal-body", 2, "padding", "0px"], [1, "card", "w-60"], [1, "card-header", "flexi-header"], [1, "modal-footer"], ["type", "button", 1, "btn", "pull-left", 3, "click"]], template: function MyFormsViewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, MyFormsViewComponent_div_0_Template, 25, 11, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, MyFormsViewComponent_ng_container_1_Template, 8, 2, "ng-container", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MyFormsViewComponent_ng_template_2_Template, 22, 2, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isModuleView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isPopupOpen);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_material_input__WEBPACK_IMPORTED_MODULE_11__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_13__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["MaxLengthValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["RadioControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgStyle"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["CheckboxControlValueAccessor"], _angular_material_button__WEBPACK_IMPORTED_MODULE_14__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_15__["MatIcon"], _shared_directive_numberOnly_directive__WEBPACK_IMPORTED_MODULE_16__["NumberOnlyDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["MinLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_12__["NumberValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbTimepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbRating"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_1__["CdkDropList"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_1__["CdkDrag"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbTooltip"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["UpperCasePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_18__["SafeHtmlPipe"]], styles: ["a.list-group-item[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n border: 1px dotted #cccccc;\n cursor: pointer;\n color: #555;\n}\n\na[_ngcontent-%COMP%] {\n text-decoration: none;\n}\n\na.list-group-item[_ngcontent-%COMP%]:hover {\n background-color: #e2e2e2;\n}\n\n.card-header-flexi[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n padding: 1rem;\n color: #a42138;\n text-transform: uppercase;\n}\n\n.centered-image[_ngcontent-%COMP%] {\n margin: auto;\n padding: 10px;\n text-align: center;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n margin: 1rem;\n box-shadow: 0px 0px 8px #ccc;\n padding: 1.2rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n padding: 1rem;\n width: 30%;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body-16[_ngcontent-%COMP%] {\n padding: 1rem;\n width: 50%;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] {\n padding-bottom: 1rem;\n word-wrap: break-word;\n font-weight: 600;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 1rem;\n}\n\n.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n\n.btn-white[_ngcontent-%COMP%] {\n background-color: whitesmoke;\n}\n\n.parent[_ngcontent-%COMP%] {\n content: \"\";\n display: table;\n clear: both;\n}\n\n.flex-child[_ngcontent-%COMP%] {\n float: left;\n height: 470px;\n width: 23%;\n padding: 0 10px;\n}\n\nimg[_ngcontent-%COMP%]:not(.image) {\n object-fit: cover;\n \n width: 100%;\n \n height: 80%;\n}\n\n.sequence-image[_ngcontent-%COMP%] {\n height: 150px !important;\n width: 150px !important;\n}\n\ninput[type=radio][_ngcontent-%COMP%] {\n margin: 0 10px 0 10px;\n}\n\ninput[type=checkbox][_ngcontent-%COMP%] {\n margin: 0 10px 0 10px;\n}\n\n.box[_ngcontent-%COMP%] {\n margin-bottom: 100px;\n}\n\n.questions-container[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n border: 1px solid #bdbdbd;\n border-radius: 10px;\n padding: 10px;\n}\n\nngb-rating[_ngcontent-%COMP%] {\n color: yellow;\n font-size: 50px;\n}\n\n.topHead[_ngcontent-%COMP%] {\n margin-bottom: 0 auto;\n}\n\n.signature-div[_ngcontent-%COMP%] {\n width: 15%;\n height: 100px;\n}\n\n.signature-img[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n object-fit: unset !important;\n}\n\n.box-body[_ngcontent-%COMP%] .profile[_ngcontent-%COMP%] {\n float: left;\n margin-bottom: auto;\n}\n\n.mat-sign-button[_ngcontent-%COMP%] {\n background-color: #0000001a;\n}\n\n.box.boxx[_ngcontent-%COMP%] {\n height: 1000px;\n}\n\ndiv.topHead.d-flex[_ngcontent-%COMP%] {\n margin-bottom: 0;\n}\n\n.tp-radio-group[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: column;\n}\n\n.onlytime[_ngcontent-%COMP%] {\n display: inline-flex;\n flex-direction: row;\n}\n\n.timedropdown[_ngcontent-%COMP%] {\n margin: 5px;\n}\n\n.tp-radio-button[_ngcontent-%COMP%] {\n margin: 5px;\n}\n\n.tp-selected-value[_ngcontent-%COMP%] {\n margin: 15px 0;\n}\n\n.grid-container[_ngcontent-%COMP%] {\n display: grid;\n grid-gap: 20px;\n}\n\n.pollingSelect[_ngcontent-%COMP%] {\n color: red;\n text-decoration: underline;\n}\n\n.question-radio-inline[_ngcontent-%COMP%] {\n max-width: 35%;\n margin: 1rem;\n}\n\n.dropdown-img[_ngcontent-%COMP%] {\n width: 100px !important;\n height: 70px !important;\n}\n\n.imgSrc[_ngcontent-%COMP%] {\n padding: 2.5% 3%;\n}\n\n.circle[_ngcontent-%COMP%] {\n position: absolute;\n width: 50px;\n height: 50px;\n border-radius: 50%;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: black;\n border: 2px solid black;\n}\n\n.circlePopup[_ngcontent-%COMP%] {\n position: absolute;\n width: 70px;\n height: 70px;\n border-radius: 50%;\n background-color: transparent;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: black;\n border: 2px solid black;\n}\n\n.text[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n.srNo[_ngcontent-%COMP%] {\n width: 20px;\n font-weight: 700;\n text-align: center;\n}\n\n.full-icon[_ngcontent-%COMP%] {\n position: absolute;\n background: white;\n padding: 6px;\n text-align: center;\n border-radius: 6px;\n z-index: 99999999999;\n cursor: pointer;\n width: 50px;\n top: 10px;\n right: 10px;\n border: 1px solid #e9e9e9;\n}\n\n.full-icon[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 25px;\n}\n\n.zoom-image-popup[_ngcontent-%COMP%] {\n width: 65%;\n}\n\n.zoom-popup-overlay[_ngcontent-%COMP%] {\n position: fixed;\n right: 0;\n bottom: 0;\n z-index: 1050 !important;\n background-color: rgba(0, 0, 0, 0.5) !important;\n}\n\n.picturePopup[_ngcontent-%COMP%] {\n margin: auto !important;\n max-width: 80% !important;\n}\n\n.popup-overlay[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 99;\n}\n\n.popup[_ngcontent-%COMP%] {\n background-color: #fff;\n padding: 10px;\n border-radius: 4px;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n}\n\n.cancel-button[_ngcontent-%COMP%] {\n position: relative;\n right: 20px;\n top: 10px;\n left: 10px;\n}\n\n.w-20[_ngcontent-%COMP%] {\n width: 20%;\n}\n\n.image-size[_ngcontent-%COMP%] {\n height: 200px !important;\n}\n\n.image-container-horizontally[_ngcontent-%COMP%] {\n white-space: nowrap;\n \n}\n\n.image-container-horizontally[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n display: inline-block;\n \n width: 23%;\n height: 23%;\n margin-right: 10px;\n \n}\n\n.image-container-vertically[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n}\n\n.image-container-vertically[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n display: block;\n \n \n width: 30%;\n \n height: 30%;\n margin-bottom: 10px;\n \n}\n\n.required[_ngcontent-%COMP%] {\n color: red;\n margin-left: 4px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL215LWZvcm1zL215LWZvcm1zLXZpZXcvbXktZm9ybXMtdmlldy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLG1CQUFBO0VBQ0EsMEJBQUE7RUFDQSxlQUFBO0VBQ0EsV0FBQTtBQUNKOztBQUNFO0VBQ0UscUJBQUE7QUFFSjs7QUFBRTtFQUNFLHlCQUFBO0FBR0o7O0FBQUU7RUFDRSw2QkFBQTtFQUNBLGFBQUE7RUFDQSxjQUFBO0VBQ0EseUJBQUE7QUFHSjs7QUFERTtFQUNFLFlBQUE7RUFDQSxhQUFBO0VBQ0Esa0JBQUE7QUFJSjs7QUFGRTtFQUNFLFlBQUE7RUFDQSw0QkFBQTtFQUNBLGVBQUE7QUFLSjs7QUFISTtFQUNFLGFBQUE7RUFDQSxVQUFBO0FBS047O0FBSEk7RUFDRSxhQUFBO0VBQ0EsVUFBQTtBQUtOOztBQUhJO0VBQ0Usb0JBQUE7RUFDQSxxQkFBQTtFQUNBLGdCQUFBO0FBS047O0FBSk07RUFDRSxlQUFBO0FBTVI7O0FBREU7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtBQUlKOztBQURFO0VBQ0UsNEJBQUE7QUFJSjs7QUFERTtFQUNFLFdBQUE7RUFDQSxjQUFBO0VBQ0EsV0FBQTtBQUlKOztBQUZFO0VBQ0UsV0FBQTtFQUNBLGFBQUE7RUFDQSxVQUFBO0VBQ0EsZUFBQTtBQUtKOztBQUhFO0VBQ0UsaUJBQUE7RUFBbUIsOERBQUE7RUFDbkIsV0FBQTtFQUFhLDRGQUFBO0VBQ2IsV0FBQTtBQVFKOztBQU5FO0VBQ0Usd0JBQUE7RUFDQSx1QkFBQTtBQVNKOztBQVBFO0VBQ0UscUJBQUE7QUFVSjs7QUFSRTtFQUNFLHFCQUFBO0FBV0o7O0FBVEU7RUFDRSxvQkFBQTtBQVlKOztBQVZFO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0VBQ0EseUJBQUE7RUFDQSxtQkFBQTtFQUNBLGFBQUE7QUFhSjs7QUFYRTtFQUNFLGFBQUE7RUFDQSxlQUFBO0FBY0o7O0FBWkE7RUFDRSxxQkFBQTtBQWVGOztBQWJBO0VBQ0ksVUFBQTtFQUNBLGFBQUE7QUFnQko7O0FBZEE7RUFDSSxXQUFBO0VBQ0EsWUFBQTtFQUNBLDRCQUFBO0FBaUJKOztBQWZBO0VBQ0UsV0FBQTtFQUNBLG1CQUFBO0FBa0JGOztBQWZBO0VBQ0UsMkJBQUE7QUFrQkY7O0FBZkE7RUFDRSxjQUFBO0FBa0JGOztBQWhCQTtFQUNFLGdCQUFBO0FBbUJGOztBQWpCQTtFQUNFLG9CQUFBO0VBQ0Esc0JBQUE7QUFvQkY7O0FBbEJBO0VBQ0Usb0JBQUE7RUFDQSxtQkFBQTtBQXFCRjs7QUFuQkE7RUFDRSxXQUFBO0FBc0JGOztBQXBCQTtFQUNFLFdBQUE7QUF1QkY7O0FBckJBO0VBQ0UsY0FBQTtBQXdCRjs7QUF0QkE7RUFDRSxhQUFBO0VBQ0EsY0FBQTtBQXlCRjs7QUF2QkE7RUFDRSxVQUFBO0VBQ0EsMEJBQUE7QUEwQkY7O0FBeEJBO0VBQ0UsY0FBQTtFQUNBLFlBQUE7QUEyQkY7O0FBekJBO0VBQ0UsdUJBQUE7RUFDQSx1QkFBQTtBQTRCRjs7QUExQkE7RUFDRSxnQkFBQTtBQTZCRjs7QUExQkE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSw2QkFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLHVCQUFBO0VBQ0EsaUJBQUE7RUFDQSxZQUFBO0VBQ0EsdUJBQUE7QUE2QkY7O0FBMUJBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0EsNkJBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSx1QkFBQTtFQUNBLGlCQUFBO0VBQ0EsWUFBQTtFQUNBLHVCQUFBO0FBNkJGOztBQTFCQTtFQUNFLGtCQUFBO0FBNkJGOztBQTFCQTtFQUNFLFdBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0FBNkJGOztBQTNCQTtFQUNFLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLG9CQUFBO0VBQ0EsZUFBQTtFQUNBLFdBQUE7RUFDQSxTQUFBO0VBQ0EsV0FBQTtFQUNBLHlCQUFBO0FBOEJGOztBQTVCRTtFQUNFLGVBQUE7QUE4Qko7O0FBM0JBO0VBQ0UsVUFBQTtBQThCRjs7QUE1QkE7RUFDRSxlQUFBO0VBQ0EsUUFBQTtFQUNBLFNBQUE7RUFDQSx3QkFBQTtFQUNBLCtDQUFBO0FBK0JGOztBQTVCQTtFQUNFLHVCQUFBO0VBQ0EseUJBQUE7QUErQkY7O0FBNUJBO0VBQ0UsZUFBQTtFQUNBLE1BQUE7RUFDQSxPQUFBO0VBQ0EsV0FBQTtFQUNBLG9DQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0VBQ0EsdUJBQUE7RUFDQSxXQUFBO0FBK0JGOztBQTVCQTtFQUNFLHNCQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0Esd0NBQUE7QUErQkY7O0FBNUJBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0EsU0FBQTtFQUNBLFVBQUE7QUErQkY7O0FBN0JDO0VBQ0MsVUFBQTtBQWdDRjs7QUE5QkE7RUFDRSx3QkFBQTtBQWlDRjs7QUE5QkE7RUFDRSxtQkFBQTtFQUFxQix3QkFBQTtBQWtDdkI7O0FBL0JBO0VBQ0UscUJBQUE7RUFBdUIsc0NBQUE7RUFDdkIsVUFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUFvQixtQ0FBQTtBQW9DdEI7O0FBbENBO0VBQ0UsYUFBQTtFQUNBLHNCQUFBO0FBcUNGOztBQW5DQTtFQUNFLGNBQUE7RUFBZ0IsMkNBQUE7RUFDaEIsOENBQUE7RUFDQSxVQUFBO0VBQVksb0JBQUE7RUFDWixXQUFBO0VBQ0EsbUJBQUE7RUFBcUIsbUNBQUE7QUF5Q3ZCOztBQXRDQTtFQUNFLFVBQUE7RUFDQSxnQkFBQTtBQXlDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9teS1mb3Jtcy9teS1mb3Jtcy12aWV3L215LWZvcm1zLXZpZXcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJhLmxpc3QtZ3JvdXAtaXRlbSB7XG4gICAgbWFyZ2luLWJvdHRvbTogMXJlbTtcbiAgICBib3JkZXI6IDFweCBkb3R0ZWQgcmdiKDIwNCwgMjA0LCAyMDQpO1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbiAgICBjb2xvcjogIzU1NTtcbiAgfVxuICBhIHtcbiAgICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIH1cbiAgYS5saXN0LWdyb3VwLWl0ZW06aG92ZXIge1xuICAgIGJhY2tncm91bmQtY29sb3I6IHJnYigyMjYsIDIyNiwgMjI2KTtcbiAgfVxuXG4gIC5jYXJkLWhlYWRlci1mbGV4aSB7XG4gICAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNjY2M7XG4gICAgcGFkZGluZzogMXJlbTtcbiAgICBjb2xvcjogI2E0MjEzODtcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICB9XG4gIC5jZW50ZXJlZC1pbWFnZXtcbiAgICBtYXJnaW46IGF1dG87XG4gICAgcGFkZGluZzogMTBweDtcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIH1cbiAgLmNhcmQtYm9keSAuYm94IHtcbiAgICBtYXJnaW46IDFyZW07XG4gICAgYm94LXNoYWRvdzogMHB4IDBweCA4cHggI2NjYztcbiAgICBwYWRkaW5nOiAxLjJyZW07XG5cbiAgICAuYm94LWJvZHkge1xuICAgICAgcGFkZGluZzogMXJlbTtcbiAgICAgIHdpZHRoOiAzMCU7XG4gICAgfVxuICAgIC5ib3gtYm9keS0xNntcbiAgICAgIHBhZGRpbmc6IDFyZW07XG4gICAgICB3aWR0aDogNTAlO1xuICAgIH1cbiAgICAuYm94LWhlYWRpbmcge1xuICAgICAgcGFkZGluZy1ib3R0b206IDFyZW07XG4gICAgICB3b3JkLXdyYXA6IGJyZWFrLXdvcmQ7XG4gICAgICBmb250LXdlaWdodDogNjAwO1xuICAgICAgc3BhbiB7XG4gICAgICAgIHBhZGRpbmc6IDAgMXJlbTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICAuYnRuLXN1Ym1pdCB7XG4gICAgY29sb3I6ICNmZmY7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogIzMzN2FiNztcbiAgICBib3JkZXItY29sb3I6ICMyZTZkYTQ7XG4gIH1cblxuICAuYnRuLXdoaXRlIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZXNtb2tlO1xuICB9XG5cbiAgLnBhcmVudHtcbiAgICBjb250ZW50OiBcIlwiO1xuICAgIGRpc3BsYXk6IHRhYmxlO1xuICAgIGNsZWFyOiBib3RoO1xuICB9XG4gIC5mbGV4LWNoaWxke1xuICAgIGZsb2F0OiBsZWZ0O1xuICAgIGhlaWdodDogNDcwcHg7XG4gICAgd2lkdGg6IDIzJTtcbiAgICBwYWRkaW5nOiAwIDEwcHg7XG4gIH1cbiAgaW1nOm5vdCguaW1hZ2Upe1xuICAgIG9iamVjdC1maXQ6IGNvdmVyOyAvKnRoaXMgbWFrZXMgdGhlIGltYWdlIGluIHNyYyBmaXQgdG8gdGhlIHNpemUgc3BlY2lmaWVkIGJlbG93Ki9cbiAgICB3aWR0aDogMTAwJTsgLyogSGVyZSB5b3UgY2FuIHVzZSB3aGVyZXZlciB5b3Ugd2FudCB0byBzcGVjaWZ5IHRoZSB3aWR0aCBhbmQgYWxzbyB0aGUgaGVpZ2h0IG9mIHRoZSA8aW1nPiovXG4gICAgaGVpZ2h0OiA4MCU7XG4gIH1cbiAgLnNlcXVlbmNlLWltYWdle1xuICAgIGhlaWdodDoxNTBweCAhaW1wb3J0YW50O1xuICAgIHdpZHRoOjE1MHB4ICFpbXBvcnRhbnQ7XG4gIH1cbiAgaW5wdXRbdHlwZT1cInJhZGlvXCJde1xuICAgIG1hcmdpbjogMCAxMHB4IDAgMTBweDtcbiAgfVxuICBpbnB1dFt0eXBlPVwiY2hlY2tib3hcIl17XG4gICAgbWFyZ2luOiAwIDEwcHggMCAxMHB4O1xuICB9XG4gIC5ib3h7XG4gICAgbWFyZ2luLWJvdHRvbTogMTAwcHg7XG4gIH1cbiAgLnF1ZXN0aW9ucy1jb250YWluZXJ7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gICAgYm9yZGVyOiAxcHggc29saWQgI2JkYmRiZDtcbiAgICBib3JkZXItcmFkaXVzOiAxMHB4O1xuICAgIHBhZGRpbmc6IDEwcHg7XG4gIH1cbiAgbmdiLXJhdGluZyB7XG4gICAgY29sb3I6IHllbGxvdztcbiAgICBmb250LXNpemU6IDUwcHg7XG59XG4udG9wSGVhZCB7XG4gIG1hcmdpbi1ib3R0b206IDAgYXV0bztcbn1cbi5zaWduYXR1cmUtZGl2IHtcbiAgICB3aWR0aDoxNSU7XG4gICAgaGVpZ2h0OjEwMHB4O1xufVxuLnNpZ25hdHVyZS1pbWcge1xuICAgIHdpZHRoOjEwMCU7XG4gICAgaGVpZ2h0OjEwMCU7XG4gICAgb2JqZWN0LWZpdDogdW5zZXQgIWltcG9ydGFudDtcbn1cbi5ib3gtYm9keSAucHJvZmlsZXtcbiAgZmxvYXQ6IGxlZnQ7XG4gIG1hcmdpbi1ib3R0b206IGF1dG87XG4gIC8vYm9yZGVyOiAxcHggc29saWQgb2xpdmU7XG59XG4ubWF0LXNpZ24tYnV0dG9ue1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMDAwMDAwMWE7XG59XG5cbi5ib3guYm94eHtcbiAgaGVpZ2h0OiAxMDAwcHg7XG59XG5kaXYudG9wSGVhZC5kLWZsZXh7XG4gIG1hcmdpbi1ib3R0b206IDA7XG59XG4udHAtcmFkaW8tZ3JvdXAge1xuICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbn1cbi5vbmx5dGltZXtcbiAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gIGZsZXgtZGlyZWN0aW9uOiByb3c7XG59XG4udGltZWRyb3Bkb3due1xuICBtYXJnaW46IDVweDtcbn1cbi50cC1yYWRpby1idXR0b24ge1xuICBtYXJnaW46IDVweDtcbn1cbi50cC1zZWxlY3RlZC12YWx1ZSB7XG4gIG1hcmdpbjogMTVweCAwO1xufVxuLmdyaWQtY29udGFpbmVyIHtcbiAgZGlzcGxheTogZ3JpZDtcbiAgZ3JpZC1nYXA6IDIwcHg7XG59XG4ucG9sbGluZ1NlbGVjdCB7XG4gIGNvbG9yOiByZWQ7XG4gIHRleHQtZGVjb3JhdGlvbjogdW5kZXJsaW5lO1xufVxuLnF1ZXN0aW9uLXJhZGlvLWlubGluZXtcbiAgbWF4LXdpZHRoOiAzNSU7XG4gIG1hcmdpbjoxcmVtO1xufVxuLmRyb3Bkb3duLWltZyB7XG4gIHdpZHRoOiAxMDBweCAhaW1wb3J0YW50O1xuICBoZWlnaHQ6IDcwcHggIWltcG9ydGFudDtcbn1cbi5pbWdTcmN7XG4gIHBhZGRpbmc6IDIuNSUgMyU7XG59XG5cbi5jaXJjbGUge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiA1MHB4O1xuICBoZWlnaHQ6IDUwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgY29sb3I6IGJsYWNrO1xuICBib3JkZXI6IDJweCBzb2xpZCBibGFjaztcbn1cblxuLmNpcmNsZVBvcHVwe1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHdpZHRoOiA3MHB4O1xuICBoZWlnaHQ6IDcwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgY29sb3I6IGJsYWNrO1xuICBib3JkZXI6IDJweCBzb2xpZCBibGFjaztcbn1cblxuLnRleHQge1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5zck5ve1xuICB3aWR0aDogMjBweDtcbiAgZm9udC13ZWlnaHQ6IDcwMDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuLmZ1bGwtaWNvbntcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBiYWNrZ3JvdW5kOiB3aGl0ZTtcbiAgcGFkZGluZzogNnB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIGJvcmRlci1yYWRpdXM6IDZweDtcbiAgei1pbmRleDogOTk5OTk5OTk5OTk7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgd2lkdGg6IDUwcHg7XG4gIHRvcDogMTBweDtcbiAgcmlnaHQ6IDEwcHg7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNlOWU5ZTk7XG5cbiAgaXtcbiAgICBmb250LXNpemU6IDI1cHg7XG4gIH1cbn1cbi56b29tLWltYWdlLXBvcHVwe1xuICB3aWR0aDogNjUlO1xufVxuLnpvb20tcG9wdXAtb3ZlcmxheXtcbiAgcG9zaXRpb246IGZpeGVkO1xuICByaWdodDogMDtcbiAgYm90dG9tOiAwO1xuICB6LWluZGV4OiAxMDUwICFpbXBvcnRhbnQ7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KSAhaW1wb3J0YW50O1xufVxuXG4ucGljdHVyZVBvcHVwe1xuICBtYXJnaW46IGF1dG8gIWltcG9ydGFudDtcbiAgbWF4LXdpZHRoOiA4MCUgIWltcG9ydGFudDtcbn1cblxuLnBvcHVwLW92ZXJsYXkge1xuICBwb3NpdGlvbjogZml4ZWQ7XG4gIHRvcDogMDtcbiAgbGVmdDogMDtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIHotaW5kZXg6IDk5O1xufVxuXG4ucG9wdXAge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBwYWRkaW5nOiAxMHB4O1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGJveC1zaGFkb3c6IDAgMnB4IDRweCByZ2JhKDAsIDAsIDAsIDAuMSk7XG59XG5cbi5jYW5jZWwtYnV0dG9ue1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHJpZ2h0OiAyMHB4O1xuICB0b3A6IDEwcHg7XG4gIGxlZnQ6IDEwcHg7XG4gfVxuIC53LTIwe1xuICB3aWR0aDogMjAlO1xuIH1cbi5pbWFnZS1zaXple1xuICBoZWlnaHQ6IDIwMHB4ICFpbXBvcnRhbnQ7XG59XG5cbi5pbWFnZS1jb250YWluZXItaG9yaXpvbnRhbGx5IHtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDsgLyogUHJldmVudCBsaW5lIGJyZWFrcyAqL1xufVxuXG4uaW1hZ2UtY29udGFpbmVyLWhvcml6b250YWxseSAuYm94IHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrOyAvKiBEaXNwbGF5IGltYWdlcyBhcyBpbmxpbmUgZWxlbWVudHMgKi9cbiAgd2lkdGg6IDIzJTtcbiAgaGVpZ2h0OiAyMyU7XG4gIG1hcmdpbi1yaWdodDogMTBweDsgLyogT3B0aW9uYWwgbWFyZ2luIGJldHdlZW4gaW1hZ2VzICovXG59XG4uaW1hZ2UtY29udGFpbmVyLXZlcnRpY2FsbHl7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG59XG4uaW1hZ2UtY29udGFpbmVyLXZlcnRpY2FsbHkgLmJveCB7XG4gIGRpc3BsYXk6IGJsb2NrOyAvKiBEaXNwbGF5IGltYWdlcyBhcyBibG9jay1sZXZlbCBlbGVtZW50cyAqL1xuICAvKiBPcHRpb25hbDogQWRqdXN0IGRpbWVuc2lvbnMsIG1hcmdpbiwgZXRjLiAqL1xuICB3aWR0aDogMzAlOyAvKiBTZXQgaW1hZ2Ugd2lkdGggKi9cbiAgaGVpZ2h0OiAzMCU7XG4gIG1hcmdpbi1ib3R0b206IDEwcHg7IC8qIE9wdGlvbmFsIG1hcmdpbiBiZXR3ZWVuIGltYWdlcyAqL1xufVxuXG4ucmVxdWlyZWQge1xuICBjb2xvcjogcmVkO1xuICBtYXJnaW4tbGVmdDogNHB4O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MyFormsViewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-my-forms-view',
templateUrl: './my-forms-view.component.html',
styleUrls: ['./my-forms-view.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_5__["CentralBuilderService"] }, { type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__["MatDialog"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_8__["CustomFormService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbModal"] }, { type: _angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"] }]; }, { questionId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], customFormId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], takeQuestion: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], viewPage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], formTitleviewPage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], ScoreAbleModal: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['ScoreAbleModal', { static: true }]
}], myImage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['myImage', { static: false }]
}] }); })();
/***/ }),
/***/ "p2yD":
/*!*************************************************************************************!*\
!*** ./src/app/users/pages/users/view-users/user-details/user-details.component.ts ***!
\*************************************************************************************/
/*! exports provided: UserDetailsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserDetailsComponent", function() { return UserDetailsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/admin/service/companyservice/company.service */ "RZ9m");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../../shared/dynamic-fields/dynamic-form.component */ "6CZB");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function UserDetailsComponent_img_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 32);
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", (ctx_r0.userData == null ? null : ctx_r0.userData.profilePicture) ? ctx_r0.userData == null ? null : ctx_r0.userData.profilePicture : "../assets/images/user1.png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
function UserDetailsComponent_img_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 32);
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("src", ctx_r1.IconUrl, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
} }
const _c0 = function (a0) { return { "is-invalid": a0 }; };
function UserDetailsComponent_ng_template_69_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "User Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Staff Id");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Recovery Mobile Number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Appoinment");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r3.userData == null ? null : ctx_r3.userData.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r3.userData == null ? null : ctx_r3.userData.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r3.userData == null ? null : ctx_r3.userData.primaryMobileNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r3.userData == null ? null : ctx_r3.userData.appointmentId == null ? null : ctx_r3.userData.appointmentId.name)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](5, _c0, ctx_r3.submitted1 && ctx_r3.f.staffId.errors));
} }
function UserDetailsComponent_ng_template_73_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Contact Number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r4.userData == null ? null : ctx_r4.userData.contactNumber)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](4, _c0, ctx_r4.submitted1 && ctx_r4.f.staffId.errors));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r4.userData == null ? null : ctx_r4.userData.email)("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](6, _c0, ctx_r4.submitted1 && ctx_r4.f.staffId.errors));
} }
function UserDetailsComponent_ng_template_77_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Roles");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Bussiness Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r5.userData.role == null ? null : ctx_r5.userData.role.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r5.userData.parentBussinessUnitId == null ? null : ctx_r5.userData.parentBussinessUnitId.orgName);
} }
function UserDetailsComponent_ng_template_81_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "form", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "dynamic-form-builder", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r6.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("gridView", "col-xs-12 col-sm-12 col-md-4 col-lg-4 ")("formGroup", ctx_r6.form)("fields", ctx_r6.getFields());
} }
function UserDetailsComponent_ng_template_85_ng_container_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r14 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r14 == null ? null : item_r14.orgName);
} }
function UserDetailsComponent_ng_template_85_ng_container_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r15 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r15.orgName);
} }
function UserDetailsComponent_ng_template_85_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Business Unit (Plan)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, UserDetailsComponent_ng_template_85_ng_container_7_Template, 2, 1, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Business Unit (View) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, UserDetailsComponent_ng_template_85_ng_container_12_Template, 2, 1, "ng-container", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r7.userData == null ? null : ctx_r7.userData.planBussinessUnitId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r7.userData == null ? null : ctx_r7.userData.viewBussinessUnitId);
} }
function UserDetailsComponent_ng_template_87_div_14_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_87_div_14_small_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Atleast one numeric letter is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_87_div_14_small_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Atleast one special character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_87_div_14_small_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Atleast one Capital character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_87_div_14_small_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Atleast one Small character is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_87_div_14_small_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Min Length Should 8 Charecter ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_87_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, UserDetailsComponent_ng_template_87_div_14_small_1_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, UserDetailsComponent_ng_template_87_div_14_small_3_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, UserDetailsComponent_ng_template_87_div_14_small_5_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, UserDetailsComponent_ng_template_87_div_14_small_7_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, UserDetailsComponent_ng_template_87_div_14_small_9_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, UserDetailsComponent_ng_template_87_div_14_small_11_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.passwordRestForm.get("password").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.passwordRestForm.get("password").errors.hasNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.passwordRestForm.get("password").errors.hasSpecialCharacters);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.passwordRestForm.get("password").errors.hasCapitalCase);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.passwordRestForm.get("password").errors.hasSmallCase);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.passwordRestForm.get("password").errors.minlength);
} }
function UserDetailsComponent_ng_template_87_div_19_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Confirm Password is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_87_div_19_small_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Password doesn't Match ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_87_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, UserDetailsComponent_ng_template_87_div_19_small_1_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, UserDetailsComponent_ng_template_87_div_19_small_2_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r19.passwordRestForm.get("confirmPassword").errors.required);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r19.passwordRestForm.get("confirmPassword").errors.mustMatch);
} }
function UserDetailsComponent_ng_template_87_Template(rf, ctx) { if (rf & 1) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "CHANGE PASSWORD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "form", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, UserDetailsComponent_ng_template_87_div_14_Template, 12, 6, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Confirm Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, UserDetailsComponent_ng_template_87_div_19_Template, 3, 2, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "button", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserDetailsComponent_ng_template_87_Template_button_click_21_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r29); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r28.onRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, " Reset Password ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserDetailsComponent_ng_template_87_Template_button_click_23_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r29); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r30.closeChangePasswordPopUp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r9.passwordRestForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](5, _c0, ctx_r9.submitted3 && ctx_r9.passwordRestForm.get("password").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.passwordRestForm.get("password").errors);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](7, _c0, ctx_r9.submitted3 && ctx_r9.passwordRestForm.get("confirmPassword").errors));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.passwordRestForm.get("confirmPassword").errors);
} }
function UserDetailsComponent_ng_template_89_div_13_small_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Mobile Number is required ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function UserDetailsComponent_ng_template_89_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, UserDetailsComponent_ng_template_89_div_13_small_1_Template, 2, 0, "small", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r33.f.primaryMobileNumber.errors.required);
} }
const _c1 = function (a1) { return { "form-control": 1, "is-invalid": a1 }; };
const _c2 = function (a0, a1) { return [a0, a1]; };
function UserDetailsComponent_ng_template_89_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "CHANGE MOBILE NUMBER");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "form", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Mobile Number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "ngx-intl-tel-input", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, UserDetailsComponent_ng_template_89_div_13_Template, 2, 1, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "button", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserDetailsComponent_ng_template_89_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r35.onRestPassword(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserDetailsComponent_ng_template_89_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r37.closeChangePasswordPopUp(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r11.forgetPasswordForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("preferredCountries", ctx_r11.preferredCountries)("cssClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](15, _c1, ctx_r11.submitted1 && ctx_r11.f.mobile.errors))("enableAutoCountrySelect", true)("enablePlaceholder", true)("searchCountryFlag", true)("searchCountryField", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](17, _c2, ctx_r11.SearchCountryField.Iso2, ctx_r11.SearchCountryField.Name))("selectFirstCountry", false)("selectedCountryISO", ctx_r11.CountryISO.India)("maxLength", 15)("tooltipField", ctx_r11.TooltipLabel.Name)("phoneValidation", false)("separateDialCode", ctx_r11.separateDialCode)("numberFormat", ctx_r11.PhoneNumberFormat.National);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r11.submitted1 && ctx_r11.f.primaryMobileNumber.errors);
} }
class UserDetailsComponent {
constructor(toastService, userService, companyService) {
this.toastService = toastService;
this.userService = userService;
this.companyService = companyService;
this.fields = [];
this.IconUrl = null;
this.userId = null;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.viewProfileData = null;
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroup"]({
fields: new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"](JSON.stringify(this.fields)),
});
this.unsubcribe = this.form.valueChanges.subscribe((update) => {
this.fields = JSON.parse(update.fields);
});
}
ngOnInit() {
this.userId && this.getSingleUserEdit(this.userId);
}
goBack() {
this.overViewEvent.emit(null);
}
getFields() {
return this.fields;
}
getSingleUserEdit(userId) {
const data = { userId: this.userId };
const subscribe = this.userService
.getOneUser(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a;
this.userData = (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.data;
const modifiedData = this.userData.otherFields.map((rawProduct) => {
return Object.assign({ disabled: true }, rawProduct);
});
this.fields = modifiedData.filter((field) => field.status === 1);
this.form = new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroup"]({});
this.fields.forEach((x) => {
if (x.type == 'checkbox') {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroup"]({}));
x.options.forEach((o) => {
this.form.get(x.fieldName).addControl(o.key, new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"](false));
});
}
else {
this.form.addControl(x.fieldName, new _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControl"](x.value || '', x.required ? _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required : null));
}
});
}, (error) => {
this.userData = null;
});
}
}
UserDetailsComponent.ɵfac = function UserDetailsComponent_Factory(t) { return new (t || UserDetailsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_5__["CompanyService"])); };
UserDetailsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: UserDetailsComponent, selectors: [["app-user-details"]], inputs: { userId: "userId" }, outputs: { overViewEvent: "overViewEvent" }, decls: 91, vars: 17, consts: [[1, "row"], [1, "col-md-5", 2, "padding", "0 6px 0 6px"], [1, "card"], [1, "card-body", "pr-1", "pl-1"], [1, "profile-details", "text-left"], [1, "profile-userpic"], ["type", "file", "disabled", ""], ["class", "img-responsive", "alt", "", 3, "src", 4, "ngIf"], [1, "profile-usertitle"], [1, "profile-usertitle-name"], [1, "profile-usertitle-job"], [1, "list-group", "text-dark"], [1, "list-group-item", "d-flex", "p-2"], [1, "text-muted"], [1, "fa", "fa-user", "mr-2"], [1, "fa", "fa-phone", "mr-2"], [1, "fa", "fa-envelope", "mr-2"], [1, "fa", "fa-flag", "mr-2"], [1, "fa", "fa-users", "mr-2"], [1, "fa", "fa-briefcase", "mr-2"], [1, "back-btn-container"], [1, "btn", "btn-clear", "pl-4", "pr-4", 3, "click"], [1, "col-md-7", 2, "padding", "0 6px 6px 0"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavOutlet"], ["changePassword", ""], ["changeMobileNumber", ""], ["alt", "", 1, "img-responsive", 3, "src"], [1, "card-body"], [1, "col-md-6", "col-sm-12"], [1, "form-group"], ["for", "exampleInputEmail1"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter User Name", "readonly", "", 1, "form-control", 3, "value"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter Staff Id", "readonly", "", 1, "form-control", 3, "value"], ["for", "exampleInputEmail1", 1, "pb-2", "form-bg"], [1, "input-group"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter Apoinment", "readonly", "", 1, "form-control", 3, "value", "ngClass"], [1, "col-md-6"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter Staff Id", "readonly", "", 1, "form-control", 3, "value", "ngClass"], ["for", "exampleInputPassword1"], ["type", "email", "placeholder", "Enter BussinnesUnit", "readonly", "", 1, "form-control", 3, "value"], [3, "formGroup"], [3, "gridView", "formGroup", "fields"], [4, "ngFor", "ngForOf"], ["type", "text", "aria-describedby", "emailHelp", "placeholder", "Enter Staff Id", "readonly", "", 1, "form-control", "mb-2", 3, "value"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "0vh"], [1, "card-header", "flexi-header"], ["type", "password", "placeholder", " Password", "formControlName", "password", 1, "form-control", 3, "ngClass"], ["class", "invalid-feedback", 4, "ngIf"], ["type", "password", "placeholder", " Confirm Password", "formControlName", "confirmPassword", 1, "form-control", 3, "ngClass"], ["type", "submit", 1, "btn", "btn-sm", "btn-submit", "float-right", "m-1", "p-1", 3, "click"], ["type", "submit", 1, "btn", "btn-sm", "btn-clear", "float-right", "m-1", "p-1", 3, "click"], [1, "invalid-feedback"], [4, "ngIf"], [1, "modal-body", 2, "padding", "10px", "min-height", "50vh"], ["formControlName", "primaryMobileNumber", 3, "preferredCountries", "cssClass", "enableAutoCountrySelect", "enablePlaceholder", "searchCountryFlag", "searchCountryField", "selectFirstCountry", "selectedCountryISO", "maxLength", "tooltipField", "phoneValidation", "separateDialCode", "numberFormat"]], template: function UserDetailsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "input", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, UserDetailsComponent_img_7_Template, 1, 1, "img", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, UserDetailsComponent_img_8_Template, 1, 1, "img", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "ul", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "i", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Staff ID :\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "i", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Phone :\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](31, "i", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Email :\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](38, "i", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Parent Business Unit :\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "i", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "Ops Group Name :\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "li", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](52, "i", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Ops Team Name :\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](57, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "button", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function UserDetailsComponent_Template_button_click_59_listener() { return ctx.goBack(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "ul", 24, 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function UserDetailsComponent_Template_ul_activeIdChange_64_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "li", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "a", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68, "GENERAL INFO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](69, UserDetailsComponent_ng_template_69_Template, 21, 7, "ng-template", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "li", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "a", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, "CONTACT INFO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](73, UserDetailsComponent_ng_template_73_Template, 12, 8, "ng-template", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "li", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "a", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](76, "OTHER INFO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](77, UserDetailsComponent_ng_template_77_Template, 12, 2, "ng-template", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "li", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "a", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](80, "CUSTOM FIELDS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](81, UserDetailsComponent_ng_template_81_Template, 4, 4, "ng-template", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "li", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](83, "a", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](84, "ASSIGNED BUSSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](85, UserDetailsComponent_ng_template_85_Template, 13, 2, "ng-template", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](86, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](87, UserDetailsComponent_ng_template_87_Template, 25, 9, "ng-template", null, 30, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](89, UserDetailsComponent_ng_template_89_Template, 19, 20, "ng-template", null, 31, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.IconUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.IconUrl);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.userData == null ? null : ctx.userData.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.userData == null ? null : ctx.userData.role == null ? null : ctx.userData.role.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.primaryMobileNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.email);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.parentBussinessUnitId == null ? null : ctx.userData.parentBussinessUnitId.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.opsGroupName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.userData == null ? null : ctx.userData.opsTeam);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r2);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_6__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_7__["NgbNavOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _shared_dynamic_fields_dynamic_form_component__WEBPACK_IMPORTED_MODULE_8__["DynamicFormBuilderComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NgxIntlTelInputComponent"]], styles: ["input[readonly][_ngcontent-%COMP%] {\n background-color: transparent;\n border: 1px solid #ced4da;\n font-size: 1em;\n}\n\n.content[_ngcontent-%COMP%] {\n flex: 1 0 auto;\n}\n\n.content[_ngcontent-%COMP%] {\n margin-top: 60px;\n}\n\n\n\n.profile[_ngcontent-%COMP%] {\n margin: 20px 0;\n}\n\n\n\n.profile-sidebar[_ngcontent-%COMP%] {\n padding: 20px 0 10px 0;\n background: #fff;\n}\n\n.profile-userpic[_ngcontent-%COMP%] {\n display: inline-block;\n position: relative;\n overflow: hidden;\n border-radius: 50%;\n width: 100%;\n}\n\n.profile-userpic[_ngcontent-%COMP%] img[_ngcontent-%COMP%] {\n float: none;\n display: block;\n margin: auto;\n width: 40%;\n height: 40%;\n border-radius: 50% !important;\n}\n\n.profile-userpic[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%] {\n position: absolute;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n z-index: 999;\n}\n\n.profile-usertitle[_ngcontent-%COMP%] {\n text-align: center;\n margin-top: 20px;\n}\n\n.editProfile[_ngcontent-%COMP%] {\n background-color: rgba(0, 0, 0, 0.5);\n position: absolute;\n bottom: 0;\n width: 100%;\n text-align: center;\n color: #fff;\n}\n\n.profile-usertitle-name[_ngcontent-%COMP%] {\n color: #5a7391;\n font-size: 16px;\n font-weight: 600;\n margin-bottom: 7px;\n}\n\n.profile-usertitle-job[_ngcontent-%COMP%] {\n text-transform: uppercase;\n color: #5b9bd1;\n font-size: 12px;\n font-weight: 600;\n margin-bottom: 15px;\n}\n\n.profile-userbuttons[_ngcontent-%COMP%] {\n text-align: center;\n margin-top: 10px;\n}\n\n.profile-userbuttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] {\n text-transform: uppercase;\n font-size: 11px;\n font-weight: 600;\n padding: 6px 15px;\n margin-right: 5px;\n}\n\n.profile-userbuttons[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:last-child {\n margin-right: 0px;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] {\n margin-top: 30px;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] {\n border-bottom: 1px solid #f0f4f7;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child {\n border-bottom: none;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #93a3b5;\n font-size: 14px;\n font-weight: 400;\n cursor: pointer;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n margin-right: 8px;\n font-size: 14px;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n background-color: #fafcfd;\n color: #a42138;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] {\n border-bottom: none;\n}\n\n.profile-usermenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #f6f9fb;\n border-left: 2px solid #a42138;\n margin-left: -2px;\n}\n\n\n\n.profile-content[_ngcontent-%COMP%] {\n padding: 20px;\n background: #fff;\n min-height: 460px;\n}\n\n.back-btn-container[_ngcontent-%COMP%] {\n float: right;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvdXNlcnMvdmlldy11c2Vycy91c2VyLWRldGFpbHMvdXNlci1kZXRhaWxzLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsNkJBQUE7RUFDQSx5QkFBQTtFQUNBLGNBQUE7QUFDRjs7QUFFQTtFQUNFLGNBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUEsc0JBQUE7O0FBQ0E7RUFDRSxjQUFBO0FBQ0Y7O0FBRUEsb0JBQUE7O0FBQ0E7RUFDRSxzQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBQ0E7RUFDRSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7QUFFRjs7QUFHQTtFQUNFLFdBQUE7RUFDQSxjQUFBO0VBQ0EsWUFBQTtFQUNBLFVBQUE7RUFDQSxXQUFBO0VBR0EsNkJBQUE7QUFBRjs7QUFHQTtFQUNFLGtCQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0VBQ0EsVUFBQTtFQUNBLFlBQUE7QUFBRjs7QUFFQTtFQUNFLGtCQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFLG9DQUFBO0VBQ0Esa0JBQUE7RUFDQSxTQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUNBO0VBQ0UsY0FBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLGtCQUFBO0FBRUY7O0FBQ0E7RUFDRSx5QkFBQTtFQUNBLGNBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxtQkFBQTtBQUVGOztBQUNBO0VBQ0Usa0JBQUE7RUFDQSxnQkFBQTtBQUVGOztBQUNBO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxpQkFBQTtFQUNBLGlCQUFBO0FBRUY7O0FBQ0E7RUFDRSxpQkFBQTtBQUVGOztBQUNBO0VBQ0UsZ0JBQUE7QUFFRjs7QUFDQTtFQUNFLGdDQUFBO0FBRUY7O0FBQ0E7RUFDRSxtQkFBQTtBQUVGOztBQUNBO0VBQ0UsY0FBQTtFQUNBLGVBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7QUFFRjs7QUFDQTtFQUNFLGlCQUFBO0VBQ0EsZUFBQTtBQUVGOztBQUNBO0VBQ0UseUJBQUE7RUFDQSxjQUFBO0FBRUY7O0FBQ0E7RUFDRSxtQkFBQTtBQUVGOztBQUNBO0VBQ0UsY0FBQTtFQUNBLHlCQUFBO0VBQ0EsOEJBQUE7RUFDQSxpQkFBQTtBQUVGOztBQUNBLG9CQUFBOztBQUNBO0VBQ0UsYUFBQTtFQUNBLGdCQUFBO0VBQ0EsaUJBQUE7QUFFRjs7QUFDQTtFQUNFLFlBQUE7QUFFRjs7QUFDQTtFQUNFLHNCQUFBO0FBRUY7O0FBREU7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0VBQ0EseUJBQUE7QUFHSjs7QUFESTtFQUNFLGNBQUE7QUFHTjs7QUFBSTtFQUNFLGNBQUE7RUFDQSxzQkFBQTtFQUNBLDZDQUFBO0VBQ0EsZ0NBQUE7QUFFTiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3VzZXJzL3ZpZXctdXNlcnMvdXNlci1kZXRhaWxzL3VzZXItZGV0YWlscy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImlucHV0W3JlYWRvbmx5XSB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2VkNGRhO1xuICBmb250LXNpemU6IDFlbTtcbn1cblxuLmNvbnRlbnQge1xuICBmbGV4OiAxIDAgYXV0bztcbn1cblxuLmNvbnRlbnQge1xuICBtYXJnaW4tdG9wOiA2MHB4O1xufVxuXG4vKiBQcm9maWxlIGNvbnRhaW5lciAqL1xuLnByb2ZpbGUge1xuICBtYXJnaW46IDIwcHggMDtcbn1cblxuLyogUHJvZmlsZSBzaWRlYmFyICovXG4ucHJvZmlsZS1zaWRlYmFyIHtcbiAgcGFkZGluZzogMjBweCAwIDEwcHggMDtcbiAgYmFja2dyb3VuZDogI2ZmZjtcbn1cbi5wcm9maWxlLXVzZXJwaWMge1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICB3aWR0aDogMTAwJTtcbiAgLy8gd2lkdGg6IDgwcHg7XG4gIC8vIGhlaWdodDogODBweDtcbn1cblxuLnByb2ZpbGUtdXNlcnBpYyBpbWcge1xuICBmbG9hdDogbm9uZTtcbiAgZGlzcGxheTogYmxvY2s7XG4gIG1hcmdpbjogYXV0bztcbiAgd2lkdGg6IDQwJTtcbiAgaGVpZ2h0OiA0MCU7XG4gIC13ZWJraXQtYm9yZGVyLXJhZGl1czogNTAlICFpbXBvcnRhbnQ7XG4gIC1tb3otYm9yZGVyLXJhZGl1czogNTAlICFpbXBvcnRhbnQ7XG4gIGJvcmRlci1yYWRpdXM6IDUwJSAhaW1wb3J0YW50O1xufVxuXG4ucHJvZmlsZS11c2VycGljIGlucHV0W3R5cGU9XCJmaWxlXCJdIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIG9wYWNpdHk6IDA7XG4gIHotaW5kZXg6IDk5OTtcbn1cbi5wcm9maWxlLXVzZXJ0aXRsZSB7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgbWFyZ2luLXRvcDogMjBweDtcbn1cblxuLmVkaXRQcm9maWxlIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGJvdHRvbTogMDtcbiAgd2lkdGg6IDEwMCU7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgY29sb3I6ICNmZmY7XG59XG4ucHJvZmlsZS11c2VydGl0bGUtbmFtZSB7XG4gIGNvbG9yOiAjNWE3MzkxO1xuICBmb250LXNpemU6IDE2cHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1ib3R0b206IDdweDtcbn1cblxuLnByb2ZpbGUtdXNlcnRpdGxlLWpvYiB7XG4gIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gIGNvbG9yOiAjNWI5YmQxO1xuICBmb250LXNpemU6IDEycHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIG1hcmdpbi1ib3R0b206IDE1cHg7XG59XG5cbi5wcm9maWxlLXVzZXJidXR0b25zIHtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBtYXJnaW4tdG9wOiAxMHB4O1xufVxuXG4ucHJvZmlsZS11c2VyYnV0dG9ucyAuYnRuIHtcbiAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgZm9udC1zaXplOiAxMXB4O1xuICBmb250LXdlaWdodDogNjAwO1xuICBwYWRkaW5nOiA2cHggMTVweDtcbiAgbWFyZ2luLXJpZ2h0OiA1cHg7XG59XG5cbi5wcm9maWxlLXVzZXJidXR0b25zIC5idG46bGFzdC1jaGlsZCB7XG4gIG1hcmdpbi1yaWdodDogMHB4O1xufVxuXG4ucHJvZmlsZS11c2VybWVudSB7XG4gIG1hcmdpbi10b3A6IDMwcHg7XG59XG5cbi5wcm9maWxlLXVzZXJtZW51IHVsIGxpIHtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNmMGY0Zjc7XG59XG5cbi5wcm9maWxlLXVzZXJtZW51IHVsIGxpOmxhc3QtY2hpbGQge1xuICBib3JkZXItYm90dG9tOiBub25lO1xufVxuXG4ucHJvZmlsZS11c2VybWVudSB1bCBsaSBhIHtcbiAgY29sb3I6ICM5M2EzYjU7XG4gIGZvbnQtc2l6ZTogMTRweDtcbiAgZm9udC13ZWlnaHQ6IDQwMDtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4ucHJvZmlsZS11c2VybWVudSB1bCBsaSBhIGkge1xuICBtYXJnaW4tcmlnaHQ6IDhweDtcbiAgZm9udC1zaXplOiAxNHB4O1xufVxuXG4ucHJvZmlsZS11c2VybWVudSB1bCBsaSBhOmhvdmVyIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZhZmNmZDtcbiAgY29sb3I6ICNhNDIxMzg7XG59XG5cbi5wcm9maWxlLXVzZXJtZW51IHVsIGxpLmFjdGl2ZSB7XG4gIGJvcmRlci1ib3R0b206IG5vbmU7XG59XG5cbi5wcm9maWxlLXVzZXJtZW51IHVsIGxpLmFjdGl2ZSBhIHtcbiAgY29sb3I6ICNhNDIxMzg7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmNmY5ZmI7XG4gIGJvcmRlci1sZWZ0OiAycHggc29saWQgI2E0MjEzODtcbiAgbWFyZ2luLWxlZnQ6IC0ycHg7XG59XG5cbi8qIFByb2ZpbGUgQ29udGVudCAqL1xuLnByb2ZpbGUtY29udGVudCB7XG4gIHBhZGRpbmc6IDIwcHg7XG4gIGJhY2tncm91bmQ6ICNmZmY7XG4gIG1pbi1oZWlnaHQ6IDQ2MHB4O1xufVxuXG4uYmFjay1idG4tY29udGFpbmVye1xuICBmbG9hdDogcmlnaHQ7XG59XG5cbi5uYXYtdGFicyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC5uYXYtbGluayB7XG4gICAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgIHRyYW5zaXRpb246IGNvbG9yIDAuMnM7XG4gICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UserDetailsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-user-details',
templateUrl: './user-details.component.html',
styleUrls: ['./user-details.component.scss'],
}]
}], function () { return [{ type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_4__["UsersService"] }, { type: src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_5__["CompanyService"] }]; }, { userId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "p826":
/*!**********************************************************************************************************!*\
!*** ./src/app/users/pages/gamification/challenges/add-edit-challenges/add-edit-challenges.component.ts ***!
\**********************************************************************************************************/
/*! exports provided: AddEditChallengesComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AddEditChallengesComponent", function() { return AddEditChallengesComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_material_stepper__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/stepper */ "xHqg");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../../../../../shared/angular-date-time-picker/date-time-picker.html/date-time-picker.html.component */ "d4JE");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../../../shared/assign-users/assign-users.component */ "9Zea");
const _c0 = ["stepper"];
const _c1 = ["myInputVariable"];
function AddEditChallengesComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "DESCRIPTION ");
} }
function AddEditChallengesComponent_div_40_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_40_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r10.onDeleteIcon(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r3.validateURLImage(ctx_r3.discriptioGroup.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_mat_step_104_ng_template_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "TEAMS");
} }
function AddEditChallengesComponent_mat_step_104_div_28_Template(rf, ctx) { if (rf & 1) {
const _r17 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_mat_step_104_div_28_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r17); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r16.onDeleteTeamIcon(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r14.validateURLImage(ctx_r14.teamsGroup.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_mat_step_104_div_33_tr_19_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "img", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "button", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_mat_step_104_div_33_tr_19_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r22); const item_r19 = ctx.$implicit; const index_r20 = ctx.index; const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r21.editTeamDetail(item_r19, index_r20); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "i", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "button", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_mat_step_104_div_33_tr_19_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r22); const index_r20 = ctx.index; const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r23.deleteTeamEntry(index_r20); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "i", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r19 = ctx.$implicit;
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r19.title);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r18.validateURLImage(item_r19.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", (item_r19 == null ? null : item_r19.teamUserDetails.length) || "-", " items Added");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r18.isEditTeam);
} }
function AddEditChallengesComponent_mat_step_104_div_33_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "TEAM DETAILS ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "th", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, " TEAM NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "th", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, " TEAM LOGO ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "th", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, " SELECTED USERS ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "th", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, AddEditChallengesComponent_mat_step_104_div_33_tr_19_Template, 16, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r15.teamDetails);
} }
function AddEditChallengesComponent_mat_step_104_Template(rf, ctx) { if (rf & 1) {
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mat-step", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, AddEditChallengesComponent_mat_step_104_ng_template_2_Template, 1, 0, "ng-template", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TEAMS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Team Name");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Team Logo");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "input", 55, 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_mat_step_104_Template_input_change_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r25); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r24.iconUpload($event, "teamLogo"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, " Choose file to upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](28, AddEditChallengesComponent_mat_step_104_div_28_Template, 4, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "assign-users", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("onSubmitAssignUsers", function AddEditChallengesComponent_mat_step_104_Template_assign_users_onSubmitAssignUsers_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r25); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r26.updateTeamUserDetails($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_mat_step_104_Template_button_click_31_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r25); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r27.addTeamData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](33, AddEditChallengesComponent_mat_step_104_div_33_Template, 20, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_mat_step_104_Template_button_click_35_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r25); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](6); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, " Prev ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "button", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_mat_step_104_Template_button_click_37_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r25); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r29.validateTeamStepper(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx_r4.teamsGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r4.teamsGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.teamsGroup.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("userDetails", ctx_r4.teamUserDetails)("isAdminView", false)("moduleName", "challengesteam");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r4.isEditTeam ? "Update Team" : "Add Team", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r4.teamDetails.length !== 0);
} }
function AddEditChallengesComponent_ng_template_107_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "RULES");
} }
function AddEditChallengesComponent_div_108_div_42_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r45 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r45.name, " ");
} }
function AddEditChallengesComponent_div_108_div_42_ul_6_img_4_Template(rf, ctx) { if (rf & 1) {
const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_42_ul_6_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r48); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r47.deleteChannel(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_42_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_42_ul_6_img_4_Template, 1, 0, "img", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r37.rulesGroup.get("selectedChannel.name").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r37.rulesGroup.get("selectedChannel.name").value);
} }
function AddEditChallengesComponent_div_108_div_42_ng_option_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r49 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r49.key, " ");
} }
function AddEditChallengesComponent_div_108_div_42_ul_16_img_4_Template(rf, ctx) { if (rf & 1) {
const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_42_ul_16_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r52); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r51.deleteChannelCreteria(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_42_ul_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_42_ul_16_img_4_Template, 1, 0, "img", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r39.creatiaView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r39.creatiaView);
} }
function AddEditChallengesComponent_div_108_div_42_div_56_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r55 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r55);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r55.title, " ");
} }
function AddEditChallengesComponent_div_108_div_42_div_56_ul_5_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 124);
} }
function AddEditChallengesComponent_div_108_div_42_div_56_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_42_div_56_ul_5_img_4_Template, 1, 0, "img", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r54.pointSytemView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r54.pointSytemView);
} }
function AddEditChallengesComponent_div_108_div_42_div_56_Template(rf, ctx) { if (rf & 1) {
const _r58 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "ng-select", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_42_div_56_Template_ng_select_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r58); const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r57.addPointSystem($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, AddEditChallengesComponent_div_108_div_42_div_56_ng_option_3_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, AddEditChallengesComponent_div_108_div_42_div_56_ul_5_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r40 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r40.poinstSystemData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r40.pointSytemView);
} }
function AddEditChallengesComponent_div_108_div_42_button_57_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_42_div_87_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_42_div_101_div_13_Template(rf, ctx) { if (rf & 1) {
const _r62 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_42_div_101_div_13_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r62); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r61.badgeiconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, " *");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_42_div_101_div_14_Template(rf, ctx) { if (rf & 1) {
const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_42_div_101_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r64); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r63.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r60.validateURLImage(ctx_r60.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_108_div_42_div_101_Template(rf, ctx) { if (rf & 1) {
const _r66 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, AddEditChallengesComponent_div_108_div_42_div_101_div_13_Template, 6, 0, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_108_div_42_div_101_div_14_Template, 4, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_42_div_101_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r66); const ctx_r65 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r65.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r43.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r43.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r43.createRanks.get("icon").value);
} }
function AddEditChallengesComponent_div_108_div_42_div_103_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r71 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "img", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_42_div_103_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r71); const index_r69 = ctx.index; const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r70.deleteBadge(index_r69); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r68 = ctx.$implicit;
const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r68.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r68.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r68.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r67.validateURLImage(field_r68.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_108_div_42_div_103_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_108_div_42_div_103_tr_16_Template, 14, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r44.badgeTieringArray);
} }
const _c2 = function () { return { standalone: true }; };
function AddEditChallengesComponent_div_108_div_42_Template(rf, ctx) { if (rf & 1) {
const _r73 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_42_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r73); const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r72.addChannel($event); })("ngModelChange", function AddEditChallengesComponent_div_108_div_42_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r73); const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r74.channelSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_42_ng_option_4_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_108_div_42_ul_6_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "ng-select", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_42_Template_ng_select_change_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r73); const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r75.addcriteriaSourceType($event, "Channel"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_42_Template_ng_select_ngModelChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r73); const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r76.criteriaSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_108_div_42_ng_option_14_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_108_div_42_ul_16_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "input", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_42_Template_input_click_21_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r73); const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r77.resetCriteriaCounter(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](24, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](30, "input", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](33, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](39, "input", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](41, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](42, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](47, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](49, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](50, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](52, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](54, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](55, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](56, AddEditChallengesComponent_div_108_div_42_div_56_Template, 6, 4, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](57, AddEditChallengesComponent_div_108_div_42_button_57_Template, 2, 0, "button", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](58, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "p", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](60, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](62, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](65, "input", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](67, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](68, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](70, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](72, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](73, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](75, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](78, "input", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](80, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](81, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](83, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](85, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](86, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](87, AddEditChallengesComponent_div_108_div_42_div_87_Template, 3, 0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "p", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](89, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](90, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](91, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](92, "input", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](93, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](94, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](95, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](97, "input", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](98, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](99, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](100, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](101, AddEditChallengesComponent_div_108_div_42_div_101_Template, 18, 3, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](102, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](103, AddEditChallengesComponent_div_108_div_42_div_103_Template, 17, 1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r30.channelSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](29, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r30.channelData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r30.rulesGroup.get("selectedChannel.name").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r30.criteriaSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](30, _c2))("multiple", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r30.channelCriteria);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r30.creatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r30.rulesGroup.get("criteriaCountType").value === 1 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r30.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r30.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r30.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r30.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r30.badgeTieringArray.length != 0);
} }
function AddEditChallengesComponent_div_108_div_43_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r87 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r87.wallName, " ");
} }
function AddEditChallengesComponent_div_108_div_43_ul_6_img_4_Template(rf, ctx) { if (rf & 1) {
const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_43_ul_6_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r90); const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r89.deleteBoards(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_43_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_43_ul_6_img_4_Template, 1, 0, "img", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r79.rulesGroup.get("selectedWall.name").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r79.rulesGroup.get("selectedWall.name").value);
} }
function AddEditChallengesComponent_div_108_div_43_ng_option_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r91 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r91.key, " ");
} }
function AddEditChallengesComponent_div_108_div_43_ul_14_img_4_Template(rf, ctx) { if (rf & 1) {
const _r94 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_43_ul_14_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r94); const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r93.deleteBoardsCreteria(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_43_ul_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_43_ul_14_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r81.boardcreatiaView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r81.boardcreatiaView);
} }
function AddEditChallengesComponent_div_108_div_43_div_54_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r97 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r97.title, " ");
} }
function AddEditChallengesComponent_div_108_div_43_div_54_ul_5_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 153);
} }
function AddEditChallengesComponent_div_108_div_43_div_54_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_43_div_54_ul_5_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r96.pointSytemView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r96.pointSytemView);
} }
function AddEditChallengesComponent_div_108_div_43_div_54_Template(rf, ctx) { if (rf & 1) {
const _r100 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "ng-select", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_43_div_54_Template_ng_select_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r100); const ctx_r99 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r99.addPointSystem($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, AddEditChallengesComponent_div_108_div_43_div_54_ng_option_3_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, AddEditChallengesComponent_div_108_div_43_div_54_ul_5_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r82.poinstSystemData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r82.pointSytemView);
} }
function AddEditChallengesComponent_div_108_div_43_button_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_43_div_85_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_43_div_99_div_13_Template(rf, ctx) { if (rf & 1) {
const _r104 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_43_div_99_div_13_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r104); const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r103.badgeiconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_43_div_99_div_14_Template(rf, ctx) { if (rf & 1) {
const _r106 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_43_div_99_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r106); const ctx_r105 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r105.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r102.validateURLImage(ctx_r102.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_108_div_43_div_99_Template(rf, ctx) { if (rf & 1) {
const _r108 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, AddEditChallengesComponent_div_108_div_43_div_99_div_13_Template, 4, 0, "div", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_108_div_43_div_99_div_14_Template, 4, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_43_div_99_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r108); const ctx_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r107.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r85 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r85.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r85.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r85.createRanks.get("icon").value);
} }
function AddEditChallengesComponent_div_108_div_43_div_101_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r113 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "img", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_43_div_101_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r113); const index_r111 = ctx.index; const ctx_r112 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r112.deleteBadge(index_r111); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r110 = ctx.$implicit;
const ctx_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r110.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r110.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r110.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r109.validateURLImage(field_r110.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_108_div_43_div_101_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_108_div_43_div_101_tr_16_Template, 14, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r86 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r86.badgeTieringArray);
} }
function AddEditChallengesComponent_div_108_div_43_Template(rf, ctx) { if (rf & 1) {
const _r115 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_43_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r115); const ctx_r114 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r114.addBoard($event); })("ngModelChange", function AddEditChallengesComponent_div_108_div_43_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r115); const ctx_r116 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r116.channelSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_43_ng_option_4_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_108_div_43_ul_6_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "ng-select", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_43_Template_ng_select_change_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r115); const ctx_r117 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r117.addcriteriaSourceType($event, "Boards"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_43_Template_ng_select_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r115); const ctx_r118 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r118.criteriaSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, AddEditChallengesComponent_div_108_div_43_ng_option_12_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_108_div_43_ul_14_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "input", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_43_Template_input_click_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r115); const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r119.resetCriteriaCounter(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "input", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](37, "input", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](40, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](45, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](47, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](48, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](50, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](53, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](54, AddEditChallengesComponent_div_108_div_43_div_54_Template, 6, 4, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](55, AddEditChallengesComponent_div_108_div_43_button_55_Template, 2, 0, "button", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](56, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "p", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](60, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](63, "input", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](65, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](66, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](68, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](70, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](71, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](73, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](76, "input", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](77, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](78, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](79, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](81, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](83, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](84, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](85, AddEditChallengesComponent_div_108_div_43_div_85_Template, 3, 0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](87, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](90, "input", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](91, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](92, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](93, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](94, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](95, "input", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](97, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](98, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](99, AddEditChallengesComponent_div_108_div_43_div_99_Template, 18, 3, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](100, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](101, AddEditChallengesComponent_div_108_div_43_div_101_Template, 17, 1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("virtualScroll", false)("clearable", true)("ngModel", ctx_r31.channelSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](29, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r31.boardData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r31.rulesGroup.get("selectedWall.name").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r31.criteriaSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](30, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r31.boardCriteria);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r31.boardcreatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r31.rulesGroup.get("criteriaCountType").value === 1 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r31.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r31.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r31.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r31.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r31.badgeTieringArray.length != 0);
} }
function AddEditChallengesComponent_div_108_div_44_ng_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r122 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r122.key, " ");
} }
function AddEditChallengesComponent_div_108_div_44_ul_9_img_4_Template(rf, ctx) { if (rf & 1) {
const _r125 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_44_ul_9_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r125); const ctx_r124 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r124.deleteSystemCreteria(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_44_ul_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_44_ul_9_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r121 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r121.systemCretiaView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r121.systemCretiaView);
} }
function AddEditChallengesComponent_div_108_div_44_Template(rf, ctx) { if (rf & 1) {
const _r127 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "p", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "ng-select", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_44_Template_ng_select_change_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r127); const ctx_r126 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r126.addcriteriaSourceType($event, "System"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_44_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r127); const ctx_r128 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r128.criteriaSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, AddEditChallengesComponent_div_108_div_44_ng_option_7_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, AddEditChallengesComponent_div_108_div_44_ul_9_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "input", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r32.criteriaSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](6, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r32.systemCriteria);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r32.systemCretiaView);
} }
function AddEditChallengesComponent_div_108_div_45_Template(rf, ctx) { if (rf & 1) {
const _r130 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "assign-users", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("onSubmitAssignUsers", function AddEditChallengesComponent_div_108_div_45_Template_assign_users_onSubmitAssignUsers_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r130); const ctx_r129 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r129.updatedUserDetails($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("userDetails", ctx_r33.userDetails)("isAdminView", false)("moduleName", "challenges");
} }
function AddEditChallengesComponent_div_108_div_46_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r143 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r143.title, " ");
} }
function AddEditChallengesComponent_div_108_div_46_ul_6_img_4_Template(rf, ctx) { if (rf & 1) {
const _r146 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_ul_6_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r146); const ctx_r145 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r145.deleteCustomForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_ul_6_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r132 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r132.rulesGroup.get("selectedCustomForm.title").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r132.rulesGroup.get("selectedCustomForm.title").value);
} }
function AddEditChallengesComponent_div_108_div_46_ng_option_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r147 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r147);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r147.key, " ");
} }
function AddEditChallengesComponent_div_108_div_46_ul_14_img_4_Template(rf, ctx) { if (rf & 1) {
const _r150 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_ul_14_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r150); const ctx_r149 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r149.customFormcreatiaView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_ul_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_ul_14_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r134 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r134.customFormcreatiaView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r134.customFormcreatiaView);
} }
function AddEditChallengesComponent_div_108_div_46_div_22_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r153 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r153);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r153.key, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_22_ul_5_img_4_Template(rf, ctx) { if (rf & 1) {
const _r156 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_22_ul_5_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r156); const ctx_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r155.criteriaCategoryView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_22_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_div_22_ul_5_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r152 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r152.criteriaCategoryView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r152.criteriaCategoryView);
} }
function AddEditChallengesComponent_div_108_div_46_div_22_Template(rf, ctx) { if (rf & 1) {
const _r158 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "ng-select", 169);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_22_Template_ng_select_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r158); const ctx_r157 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r157.addItemsInSelector($event, "Criteria_Category"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_22_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r158); const ctx_r159 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r159.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, AddEditChallengesComponent_div_108_div_46_div_22_ng_option_3_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, AddEditChallengesComponent_div_108_div_46_div_22_ul_5_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r135 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r135.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](6, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r135.criteriaCategory);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r135.criteriaCategoryView);
} }
function AddEditChallengesComponent_div_108_div_46_div_23_ng_option_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r162 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r162.question, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_23_ul_8_img_4_Template(rf, ctx) { if (rf & 1) {
const _r165 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_23_ul_8_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r165); const ctx_r164 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r164.deleteNominateCreteria(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_23_ul_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_div_23_ul_8_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r161 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r161.nominateView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r161.nominateView);
} }
function AddEditChallengesComponent_div_108_div_46_div_23_Template(rf, ctx) { if (rf & 1) {
const _r167 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Select Nominate question");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "ng-select", 170);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_23_Template_ng_select_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r167); const ctx_r166 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r166.addNomineeQuestion($event); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_23_Template_ng_select_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r167); const ctx_r168 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r168.nomineeQuestion = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_108_div_46_div_23_ng_option_6_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, AddEditChallengesComponent_div_108_div_46_div_23_ul_8_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r136 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r136.nomineeQuestion);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r136.nomineeQuestionData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r136.nominateView);
} }
function AddEditChallengesComponent_div_108_div_46_div_24_ng_option_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r172 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r172);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r172.fieldName, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_24_div_7_ng_option_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r174 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r174);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r174.fieldStatusValue, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_24_div_7_Template(rf, ctx) { if (rf & 1) {
const _r176 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "ng-select", 174);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_24_div_7_Template_ng_select_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r176); const ctx_r175 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r175.addWorkflowStatus($event); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_24_div_7_Template_ng_select_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r176); const ctx_r177 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r177.workFlowFieldValue = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, AddEditChallengesComponent_div_108_div_46_div_24_div_7_ng_option_2_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r170 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r170.workFlowFieldValue)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](5, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r170.workFlowstatusData);
} }
function AddEditChallengesComponent_div_108_div_46_div_24_div_9_Template(rf, ctx) { if (rf & 1) {
const _r181 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 175);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 176);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "img", 177);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_24_div_9_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r181); const index_r179 = ctx.index; const ctx_r180 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r180.deleteWorkFlowSttus(index_r179); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r178 = ctx.$implicit;
const index_r179 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r179);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"](" ", field_r178.get("workflowValue").value, " < ", field_r178.get("worflowStatusValue").value, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_24_Template(rf, ctx) { if (rf & 1) {
const _r183 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Workflow Status");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "ng-select", 171);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_24_Template_ng_select_change_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r183); const ctx_r182 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r182.addWorkFlow($event); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_24_Template_ng_select_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r183); const ctx_r184 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r184.workFlowDropdown = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_108_div_46_div_24_ng_option_6_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, AddEditChallengesComponent_div_108_div_46_div_24_div_7_Template, 3, 6, "div", 172);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, AddEditChallengesComponent_div_108_div_46_div_24_div_9_Template, 4, 3, "div", 173);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r137 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r137.workFlowDropdown)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](7, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r137.workFlowData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", (ctx_r137.workFlowstatusData == null ? null : ctx_r137.workFlowstatusData.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r137.workFlowFieldControl.controls);
} }
function AddEditChallengesComponent_div_108_div_46_div_49_div_12_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r188 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r188);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r188.title, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_49_div_12_ul_5_img_4_Template(rf, ctx) { if (rf & 1) {
const _r191 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_49_div_12_ul_5_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r191); const ctx_r190 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](6); return ctx_r190.pointSytemView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_49_div_12_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 183);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_div_49_div_12_ul_5_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r187 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r187.pointSytemView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r187.pointSytemView);
} }
function AddEditChallengesComponent_div_108_div_46_div_49_div_12_Template(rf, ctx) { if (rf & 1) {
const _r193 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "ng-select", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_49_div_12_Template_ng_select_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r193); const ctx_r192 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r192.addPointSystem($event); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_49_div_12_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r193); const ctx_r194 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r194.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, AddEditChallengesComponent_div_108_div_46_div_49_div_12_ng_option_3_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, AddEditChallengesComponent_div_108_div_46_div_49_div_12_ul_5_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r185 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("ngModel", ctx_r185.criteriaCategorySelect)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r185.poinstSystemData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r185.pointSytemView);
} }
function AddEditChallengesComponent_div_108_div_46_div_49_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 178);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Non-Reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, AddEditChallengesComponent_div_108_div_46_div_49_div_12_Template, 6, 5, "div", 179);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "input", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r138 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r138.rulesGroup.get("nonRewardPointSystemEnabled").value);
} }
function AddEditChallengesComponent_div_108_div_46_div_78_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_92_div_13_Template(rf, ctx) { if (rf & 1) {
const _r198 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_92_div_13_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r198); const ctx_r197 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r197.badgeiconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_92_div_14_Template(rf, ctx) { if (rf & 1) {
const _r200 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_92_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r200); const ctx_r199 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r199.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r196 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r196.validateURLImage(ctx_r196.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_108_div_46_div_92_Template(rf, ctx) { if (rf & 1) {
const _r202 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, AddEditChallengesComponent_div_108_div_46_div_92_div_13_Template, 4, 0, "div", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_108_div_46_div_92_div_14_Template, 4, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_92_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r202); const ctx_r201 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r201.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r140 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r140.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r140.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r140.createRanks.get("icon").value);
} }
function AddEditChallengesComponent_div_108_div_46_div_94_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r207 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "img", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_94_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r207); const index_r205 = ctx.index; const ctx_r206 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r206.deleteBadge(index_r205); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r204 = ctx.$implicit;
const ctx_r203 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r204.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r204.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r204.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r203.validateURLImage(field_r204.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_108_div_46_div_94_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_108_div_46_div_94_tr_16_Template, 14, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r141 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r141.badgeTieringArray);
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ng_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r217 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r217);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r217.key, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ul_9_img_4_Template(rf, ctx) { if (rf & 1) {
const _r220 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_102_ul_9_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r220); const ctx_r219 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r219.clearProgressTypeData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ul_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_div_102_ul_9_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r209 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r209.discriptioGroup.get("leaderBoard").value == true ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r209.progressTypesView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r209.progressTypesView);
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ng_option_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r221 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r221);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r221.key, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ul_18_img_4_Template(rf, ctx) { if (rf & 1) {
const _r224 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_102_ul_18_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r224); const ctx_r223 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r223.displaySelectionView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ul_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_div_102_ul_18_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r211 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r211.displaySelectionView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r211.displaySelectionView);
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ng_option_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r225 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r225);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r225.key, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ul_27_img_4_Template(rf, ctx) { if (rf & 1) {
const _r228 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_102_ul_27_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r228); const ctx_r227 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r227.displayDescriptionsView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ul_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_div_102_ul_27_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r213 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r213.displayDescriptionsView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r213.displayDescriptionsView);
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ng_option_34_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r229 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r229);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r229.key, " ");
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ul_36_img_4_Template(rf, ctx) { if (rf & 1) {
const _r232 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_46_div_102_ul_36_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r232); const ctx_r231 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r231.criteriaCategorySelectView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_102_ul_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_div_102_ul_36_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r215 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r215.criteriaCategorySelectView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r215.criteriaCategorySelectView);
} }
function AddEditChallengesComponent_div_108_div_46_div_102_div_44_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Number of criteria count\u200B");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "input", 191);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Target description\u200B");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "input", 192);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_46_div_102_Template(rf, ctx) { if (rf & 1) {
const _r234 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Progress Type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "ng-select", 185);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_102_Template_ng_select_change_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r234); const ctx_r233 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r233.addItemsInSelector($event, "Progress_Type"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_102_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r234); const ctx_r235 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r235.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](7, AddEditChallengesComponent_div_108_div_46_div_102_ng_option_7_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, AddEditChallengesComponent_div_108_div_46_div_102_ul_9_Template, 5, 3, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Display Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "ng-select", 186);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_102_Template_ng_select_change_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r234); const ctx_r236 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r236.addItemsInSelector($event, "Display_Selection"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_102_Template_ng_select_ngModelChange_15_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r234); const ctx_r237 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r237.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_108_div_46_div_102_ng_option_16_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, AddEditChallengesComponent_div_108_div_46_div_102_ul_18_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Display Description");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "ng-select", 187);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_102_Template_ng_select_change_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r234); const ctx_r238 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r238.addItemsInSelector($event, "Display_Description"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_102_Template_ng_select_ngModelChange_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r234); const ctx_r239 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r239.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](25, AddEditChallengesComponent_div_108_div_46_div_102_ng_option_25_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](27, AddEditChallengesComponent_div_108_div_46_div_102_ul_27_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Display Fields");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "ng-select", 188);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_div_102_Template_ng_select_change_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r234); const ctx_r240 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r240.addItemsInSelector($event, "Display_Fields"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_div_102_Template_ng_select_ngModelChange_33_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r234); const ctx_r241 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r241.criteriaCategorySelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](34, AddEditChallengesComponent_div_108_div_46_div_102_ng_option_34_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](36, AddEditChallengesComponent_div_108_div_46_div_102_ul_36_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Target Criteria Display");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](42, "input", 189);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](43, "span", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](44, AddEditChallengesComponent_div_108_div_46_div_102_div_44_Template, 13, 0, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r142 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r142.discriptioGroup.get("leaderBoard").value == true ? true : null)("multiple", false)("clearable", true)("ngModel", ctx_r142.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](27, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r142.progressTypes);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r142.progressTypesView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r142.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](28, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r142.displaySelectionData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r142.displaySelectionView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r142.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](29, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r142.displayDescriptions);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r142.displayDescriptionsView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r142.criteriaCategorySelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](30, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r142.displayFieldsData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r142.criteriaCategorySelectView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", ctx_r142.rulesGroup.get("isTargetCriteria").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r142.rulesGroup.get("isTargetCriteria").value === true);
} }
function AddEditChallengesComponent_div_108_div_46_Template(rf, ctx) { if (rf & 1) {
const _r243 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "ng-select", 160);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r243); const ctx_r242 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r242.addCustomForm($event); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r243); const ctx_r244 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r244.channelSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_46_ng_option_4_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_108_div_46_ul_6_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Who to reward for challenge");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "ng-select", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_46_Template_ng_select_change_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r243); const ctx_r245 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r245.addcriteriaSourceType($event, "Custom Form"); })("ngModelChange", function AddEditChallengesComponent_div_108_div_46_Template_ng_select_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r243); const ctx_r246 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r246.criteriaSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, AddEditChallengesComponent_div_108_div_46_ng_option_12_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_108_div_46_ul_14_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Criteria Categories");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](20, "input", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "span", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](22, AddEditChallengesComponent_div_108_div_46_div_22_Template, 6, 7, "div", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](23, AddEditChallengesComponent_div_108_div_46_div_23_Template, 9, 5, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](24, AddEditChallengesComponent_div_108_div_46_div_24_Template, 10, 8, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](29, "input", 166);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](30, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](31, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](32, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](36, "input", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](38, "input", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](41, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, "Challenge Reward Type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](47, "input", 167);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](48, "span", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](49, AddEditChallengesComponent_div_108_div_46_div_49_Template, 17, 3, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "p", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](51, "Points Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53, " Will points count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](56, "input", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](59, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](61, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](63, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](64, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66, " Do we need to limit the maximum points per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](69, "input", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](71, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](72, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](74, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](76, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](77, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](78, AddEditChallengesComponent_div_108_div_46_div_78_Template, 3, 0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](79, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](80, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](81, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](83, "input", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](85, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](86, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](87, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](88, "input", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](90, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](91, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](92, AddEditChallengesComponent_div_108_div_46_div_92_Template, 18, 3, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](93, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](94, AddEditChallengesComponent_div_108_div_46_div_94_Template, 17, 1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](95, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](98, "Progress Status Setup");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](99, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](100, "input", 168);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](101, "span", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](102, AddEditChallengesComponent_div_108_div_46_div_102_Template, 45, 31, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("virtualScroll", false)("clearable", true)("ngModel", ctx_r34.channelSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](33, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r34.customfromData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.rulesGroup.get("selectedCustomForm.title").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true)("ngModel", ctx_r34.criteriaSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](34, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r34.customCriteria);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.customFormcreatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", ctx_r34.rulesGroup.get("isCriteriaCategory").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.rulesGroup.get("isCriteriaCategory").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.shiftcriteriaSelectNumber === 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.workFlowStatus);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r34.rulesGroup.get("criteriaCountType").value === 1 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", ctx_r34.rulesGroup.get("isRewardChallenge").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.rulesGroup.get("isRewardChallenge").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.badgeTieringArray.length != 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", ctx_r34.rulesGroup.get("isProgressSetup").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r34.rulesGroup.get("isProgressSetup").value === true);
} }
function AddEditChallengesComponent_div_108_div_47_ul_16_img_4_Template(rf, ctx) { if (rf & 1) {
const _r256 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_47_ul_16_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r256); const ctx_r255 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r255.deleteShiftCriteria(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_47_ul_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_47_ul_16_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r247 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r247.shiftcriteriaSelect, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r247.shiftcriteriaSelect);
} }
function AddEditChallengesComponent_div_108_div_47_div_33_button_6_Template(rf, ctx) { if (rf & 1) {
const _r261 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 206);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_47_div_33_button_6_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r261); const i_r259 = ctx.$implicit; const ctx_r260 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r260.addDay(i_r259); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r259 = ctx.$implicit;
const ctx_r257 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("selected", ctx_r257.addedDay.indexOf(i_r259) != -1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", i_r259.day, " ");
} }
function AddEditChallengesComponent_div_108_div_47_div_33_div_20_div_1_Template(rf, ctx) { if (rf & 1) {
const _r266 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 208);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 209);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 210);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_47_div_33_div_20_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r266); const i_r264 = ctx.index; const ctx_r265 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r265.clearBundleLabel(i_r264); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r263 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", item_r263.day, " (", item_r263.count, ") ");
} }
function AddEditChallengesComponent_div_108_div_47_div_33_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, AddEditChallengesComponent_div_108_div_47_div_33_div_20_div_1_Template, 5, 2, "div", 207);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r258 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r258.bundleArr);
} }
function AddEditChallengesComponent_div_108_div_47_div_33_Template(rf, ctx) { if (rf & 1) {
const _r268 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 200);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Select Day");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_108_div_47_div_33_button_6_Template, 2, 3, "button", 201);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 200);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 197);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "input", 202);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function AddEditChallengesComponent_div_108_div_47_div_33_Template_input_ngModelChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r268); const ctx_r267 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r267.bundleCount = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 203);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "button", 204);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "button", 205);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_47_div_33_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r268); const ctx_r269 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r269.addBundle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, AddEditChallengesComponent_div_108_div_47_div_33_div_20_Template, 2, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r248 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r248.dayArr);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r248.bundleCount)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](4, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r248.bundleArr.length);
} }
function AddEditChallengesComponent_div_108_div_47_div_60_ng_option_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r272 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", item_r272);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r272.title, " ");
} }
function AddEditChallengesComponent_div_108_div_47_div_60_ul_5_img_4_Template(rf, ctx) { if (rf & 1) {
const _r275 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "img", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_47_div_60_ul_5_img_4_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r275); const ctx_r274 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r274.pointSytemView = null; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_47_div_60_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_108_div_47_div_60_ul_5_img_4_Template, 1, 0, "img", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r271 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r271.pointSytemView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r271.pointSytemView);
} }
function AddEditChallengesComponent_div_108_div_47_div_60_Template(rf, ctx) { if (rf & 1) {
const _r277 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "ng-select", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_47_div_60_Template_ng_select_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r277); const ctx_r276 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r276.addPointSystem($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, AddEditChallengesComponent_div_108_div_47_div_60_ng_option_3_Template, 2, 2, "ng-option", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, AddEditChallengesComponent_div_108_div_47_div_60_ul_5_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r249 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("multiple", false)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r249.poinstSystemData);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r249.pointSytemView);
} }
function AddEditChallengesComponent_div_108_div_47_button_61_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_47_div_91_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_47_div_105_div_13_Template(rf, ctx) { if (rf & 1) {
const _r281 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "input", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_div_108_div_47_div_105_div_13_Template_input_change_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r281); const ctx_r280 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r280.badgeiconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_108_div_47_div_105_div_14_Template(rf, ctx) { if (rf & 1) {
const _r283 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_47_div_105_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r283); const ctx_r282 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r282.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r279 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r279.validateURLImage(ctx_r279.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_108_div_47_div_105_Template(rf, ctx) { if (rf & 1) {
const _r285 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, AddEditChallengesComponent_div_108_div_47_div_105_div_13_Template, 4, 0, "div", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_108_div_47_div_105_div_14_Template, 4, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_47_div_105_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r285); const ctx_r284 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r284.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r252 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r252.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r252.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r252.createRanks.get("icon").value);
} }
function AddEditChallengesComponent_div_108_div_47_div_107_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r290 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "img", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_div_47_div_107_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r290); const index_r288 = ctx.index; const ctx_r289 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r289.deleteBadge(index_r288); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r287 = ctx.$implicit;
const ctx_r286 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r287.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r287.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r287.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r286.validateURLImage(field_r287.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_108_div_47_div_107_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_108_div_47_div_107_tr_16_Template, 14, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r253 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r253.badgeTieringArray);
} }
function AddEditChallengesComponent_div_108_div_47_Template(rf, ctx) { if (rf & 1) {
const _r292 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Selected Scheme");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "ng-select", 194);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function AddEditChallengesComponent_div_108_div_47_Template_ng_select_ngModelChange_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r292); const ctx_r291 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r291.schemeData = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "label", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "ng-select", 195);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function AddEditChallengesComponent_div_108_div_47_Template_ng_select_ngModelChange_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r292); const ctx_r293 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r293.shiftcriteriaSelect = $event; })("change", function AddEditChallengesComponent_div_108_div_47_Template_ng_select_change_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r292); const ctx_r294 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r294.addcriteriaSourceType($event, "shiftWork"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_108_div_47_ul_16_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 197);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](23, "input", 166);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 197);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](32, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](33, AddEditChallengesComponent_div_108_div_47_div_33_Template, 21, 5, "div", 198);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 197);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](39, "input", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 197);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](43, "input", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](46, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](48, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](51, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](52, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](54, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](56, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](59, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](60, AddEditChallengesComponent_div_108_div_47_div_60_Template, 6, 4, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](61, AddEditChallengesComponent_div_108_div_47_button_61_Template, 2, 0, "button", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](62, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "p", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](69, "input", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](71, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](72, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](74, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](76, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](77, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](79, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](81, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](82, "input", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](84, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](85, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](87, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](89, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](90, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](91, AddEditChallengesComponent_div_108_div_47_div_91_Template, 3, 0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](93, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](94, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](95, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](96, "input", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](98, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](99, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](100, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](101, "input", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](102, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](103, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](104, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](105, AddEditChallengesComponent_div_108_div_47_div_105_Template, 18, 3, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](106, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](107, AddEditChallengesComponent_div_108_div_47_div_107_Template, 17, 1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx_r35.schemeDataArr)("virtualScroll", false)("clearable", true)("multiple", true)("closeOnSelect", false)("searchable", true)("ngModel", ctx_r35.schemeData)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](32, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx_r35.shiftCriteriaArr)("multiple", false)("clearable", true)("ngModel", ctx_r35.shiftcriteriaSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](33, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r35.shiftcriteriaSelect);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r35.rulesGroup.get("criteriaCountType").value == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r35.rulesGroup.get("criteriaCountType").value === 1 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r35.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r35.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r35.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r35.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r35.badgeTieringArray.length != 0);
} }
function AddEditChallengesComponent_div_108_Template(rf, ctx) { if (rf & 1) {
const _r296 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "RULES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "p", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Criteria Source");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_Template_input_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r296); const ctx_r295 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r295.onSelectChalange("Channel", 1); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "Channel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_Template_input_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r296); const ctx_r297 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r297.onSelectChalange("Boards", 2); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Boards");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](20, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "input", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_Template_input_click_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r296); const ctx_r298 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r298.onSelectChalange("System", 3); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](24, "System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](25, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "input", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_Template_input_click_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r296); const ctx_r299 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r299.onSelectChalange("Direct Rewards", 4); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Direct Rewards");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](30, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "input", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_Template_input_click_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r296); const ctx_r300 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r300.onSelectChalange("CustomForm", 5); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Custom Form");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "input", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_Template_input_click_37_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r296); const ctx_r301 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r301.onSelectChalange("shiftWork", 6); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "label", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "Shift Work");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](40, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](41, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](42, AddEditChallengesComponent_div_108_div_42_Template, 104, 31, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](43, AddEditChallengesComponent_div_108_div_43_Template, 102, 31, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](44, AddEditChallengesComponent_div_108_div_44_Template, 14, 7, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](45, AddEditChallengesComponent_div_108_div_45_Template, 2, 3, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](46, AddEditChallengesComponent_div_108_div_46_Template, 103, 35, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](47, AddEditChallengesComponent_div_108_div_47_Template, 108, 34, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_Template_button_click_49_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r296); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](6); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, " Prev ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "button", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_108_Template_button_click_51_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r296); const ctx_r303 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r303.validateRulesStepper(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r6.discriptioGroup.get("isTeam").value == true ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r6.discriptioGroup.get("isTeam").value == true ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r6.discriptioGroup.get("isTeam").value == true ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r6.discriptioGroup.get("isTeam").value == true ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r6.discriptioGroup.get("isTeam").value == true ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("criteriaType").value === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("criteriaType").value === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("criteriaType").value === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("criteriaType").value === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("criteriaType").value === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r6.rulesGroup.get("criteriaType").value === 6);
} }
function AddEditChallengesComponent_div_109_ng_container_36_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r310 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r310.rulesGroup.get("selectedChannel.name").value, " ");
} }
function AddEditChallengesComponent_div_109_ng_container_36_ul_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r311 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r311.creatiaView, " ");
} }
function AddEditChallengesComponent_div_109_ng_container_36_div_52_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r317 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r317.pointSytemView, " ");
} }
function AddEditChallengesComponent_div_109_ng_container_36_div_52_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "select", 224);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, AddEditChallengesComponent_div_109_ng_container_36_div_52_ul_5_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r312 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r312.pointSytemView);
} }
function AddEditChallengesComponent_div_109_ng_container_36_button_53_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_ng_container_36_div_83_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_ng_container_36_div_97_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 237);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_ng_container_36_div_97_div_14_Template(rf, ctx) { if (rf & 1) {
const _r321 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_36_div_97_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r321); const ctx_r320 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r320.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r319 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r319.validateURLImage(ctx_r319.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_109_ng_container_36_div_97_Template(rf, ctx) { if (rf & 1) {
const _r323 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, AddEditChallengesComponent_div_109_ng_container_36_div_97_div_13_Template, 4, 0, "div", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_109_ng_container_36_div_97_div_14_Template, 4, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_36_div_97_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r323); const ctx_r322 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r322.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r315 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r315.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r315.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r315.createRanks.get("icon").value);
} }
function AddEditChallengesComponent_div_109_ng_container_36_div_99_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r328 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "img", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_36_div_99_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r328); const index_r326 = ctx.index; const ctx_r327 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r327.deleteBadge(index_r326); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r325 = ctx.$implicit;
const ctx_r324 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r325.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r325.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r325.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r324.validateURLImage(field_r325.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_109_ng_container_36_div_99_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_109_ng_container_36_div_99_tr_16_Template, 14, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r316 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r316.badgeTieringArray);
} }
function AddEditChallengesComponent_div_109_ng_container_36_Template(rf, ctx) { if (rf & 1) {
const _r330 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "select", 224);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_109_ng_container_36_ul_6_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "select", 224);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_109_ng_container_36_ul_14_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "input", 225);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_36_Template_input_click_19_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r330); const ctx_r329 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r329.resetCriteriaCounter(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "input", 226);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 227);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "input", 228);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](38, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](43, "input", 229);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](46, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](48, "input", 230);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](51, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](52, AddEditChallengesComponent_div_109_ng_container_36_div_52_Template, 6, 1, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](53, AddEditChallengesComponent_div_109_ng_container_36_button_53_Template, 2, 0, "button", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](54, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "p", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](61, "input", 231);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](63, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](64, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](66, "input", 232);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](68, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](69, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](71, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](74, "input", 233);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](76, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](77, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](79, "input", 234);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](81, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](82, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](83, AddEditChallengesComponent_div_109_ng_container_36_div_83_Template, 3, 0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](85, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](87, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](88, "input", 235);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](90, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](91, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](93, "input", 236);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](94, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](95, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](96, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](97, AddEditChallengesComponent_div_109_ng_container_36_div_97_Template, 18, 3, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](98, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](99, AddEditChallengesComponent_div_109_ng_container_36_div_99_Template, 17, 1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r304 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r304.rulesGroup.get("selectedChannel.name").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r304.creatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r304.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r304.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r304.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r304.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r304.badgeTieringArray.length != 0);
} }
function AddEditChallengesComponent_div_109_div_37_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r331 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r331.rulesGroup.get("selectedWall.name").value, " ");
} }
function AddEditChallengesComponent_div_109_div_37_ul_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r332 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r332.boardcreatiaView, " ");
} }
function AddEditChallengesComponent_div_109_div_37_div_52_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r338 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r338.pointSytemView, " ");
} }
function AddEditChallengesComponent_div_109_div_37_div_52_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_37_div_52_ul_4_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r333 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r333.pointSytemView);
} }
function AddEditChallengesComponent_div_109_div_37_button_53_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_div_37_div_83_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_div_37_div_97_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 237);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_div_37_div_97_div_14_Template(rf, ctx) { if (rf & 1) {
const _r342 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_37_div_97_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r342); const ctx_r341 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r341.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r340 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r340.validateURLImage(ctx_r340.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_109_div_37_div_97_Template(rf, ctx) { if (rf & 1) {
const _r344 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, AddEditChallengesComponent_div_109_div_37_div_97_div_13_Template, 4, 0, "div", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_109_div_37_div_97_div_14_Template, 4, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_37_div_97_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r344); const ctx_r343 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r343.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r336 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r336.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r336.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r336.createRanks.get("icon").value);
} }
function AddEditChallengesComponent_div_109_div_37_div_99_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r349 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "img", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_37_div_99_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r349); const index_r347 = ctx.index; const ctx_r348 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r348.deleteBadge(index_r347); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r346 = ctx.$implicit;
const ctx_r345 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r346.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r346.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r346.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r345.validateURLImage(field_r346.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_109_div_37_div_99_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_109_div_37_div_99_tr_16_Template, 14, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r337 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r337.badgeTieringArray);
} }
function AddEditChallengesComponent_div_109_div_37_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "select", 224);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](4, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_109_div_37_ul_6_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "select", 224);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_109_div_37_ul_14_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](19, "input", 238);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](26, "input", 239);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 240);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "input", 241);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](38, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](40, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](43, "input", 229);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](46, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](48, "input", 230);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](51, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](52, AddEditChallengesComponent_div_109_div_37_div_52_Template, 5, 1, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](53, AddEditChallengesComponent_div_109_div_37_button_53_Template, 2, 0, "button", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](54, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "p", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](58, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](61, "input", 231);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](63, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](64, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](66, "input", 232);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](68, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](69, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](70, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](71, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](73, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](74, "input", 233);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](76, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](77, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](79, "input", 234);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](81, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](82, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](83, AddEditChallengesComponent_div_109_div_37_div_83_Template, 3, 0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](85, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](87, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](88, "input", 235);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](90, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](91, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](93, "input", 236);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](94, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](95, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](96, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](97, AddEditChallengesComponent_div_109_div_37_div_97_Template, 18, 3, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](98, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](99, AddEditChallengesComponent_div_109_div_37_div_99_Template, 17, 1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r305 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r305.rulesGroup.get("selectedWall.name").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r305.boardcreatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r305.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r305.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r305.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r305.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r305.badgeTieringArray.length != 0);
} }
function AddEditChallengesComponent_div_109_div_38_ul_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r350 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r350.systemCretiaView, " ");
} }
function AddEditChallengesComponent_div_109_div_38_ul_16_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 249);
} }
function AddEditChallengesComponent_div_109_div_38_ul_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_38_ul_16_img_4_Template, 1, 0, "img", 248);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r351 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r351.rewardPoints, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r351.rewardPoints);
} }
function AddEditChallengesComponent_div_109_div_38_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "p", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 243);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "select", 224);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "option");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 244);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, AddEditChallengesComponent_div_109_div_38_ul_9_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 245);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](14, "input", 246);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 247);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_109_div_38_ul_16_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r306 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r306.systemCretiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r306.rewardPoints);
} }
function AddEditChallengesComponent_div_109_div_39_div_1_tr_18_ul_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r361 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r361.name);
} }
function AddEditChallengesComponent_div_109_div_39_div_1_tr_18_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r362 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r362.name);
} }
function AddEditChallengesComponent_div_109_div_39_div_1_tr_18_ul_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r363 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r363.name);
} }
function AddEditChallengesComponent_div_109_div_39_div_1_tr_18_Template(rf, ctx) { if (rf & 1) {
const _r365 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, AddEditChallengesComponent_div_109_div_39_div_1_tr_18_ul_2_Template, 3, 1, "ul", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_39_div_1_tr_18_ul_4_Template, 3, 1, "ul", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_109_div_39_div_1_tr_18_ul_6_Template, 3, 1, "ul", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "button", 251);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_39_div_1_tr_18_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r365); const item_r356 = ctx.$implicit; const index_r357 = ctx.index; const ctx_r364 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r364.editUserDetail(item_r356, index_r357); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "i", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "button", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_39_div_1_tr_18_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r365); const index_r357 = ctx.index; const ctx_r366 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r366.deleteUserDetail(index_r357); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "i", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r356 = ctx.$implicit;
const ctx_r354 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", item_r356.businessUnits);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", item_r356.appointments);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", item_r356.user);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r354.isUserEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx_r354.isUserEdited);
} }
function AddEditChallengesComponent_div_109_div_39_div_1_button_19_Template(rf, ctx) { if (rf & 1) {
const _r368 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 252);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_39_div_1_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r368); const ctx_r367 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r367.onClearAllFrom(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Clear All ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_div_39_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "SELECTED INFORMATION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "APPOINTMENTS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "SELECTED USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, AddEditChallengesComponent_div_109_div_39_div_1_tr_18_Template, 12, 5, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, AddEditChallengesComponent_div_109_div_39_div_1_button_19_Template, 2, 0, "button", 250);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r353 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r353.userDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r353.userDetails.length != 0);
} }
function AddEditChallengesComponent_div_109_div_39_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, AddEditChallengesComponent_div_109_div_39_div_1_Template, 20, 2, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r307 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r307.userDetails.length != 0);
} }
function AddEditChallengesComponent_div_109_div_40_ul_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r369 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r369.rulesGroup.get("selectedCustomForm.title").value, " ");
} }
function AddEditChallengesComponent_div_109_div_40_ul_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r370 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r370.customFormcreatiaView, " ");
} }
function AddEditChallengesComponent_div_109_div_40_div_20_ul_4_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 153);
} }
function AddEditChallengesComponent_div_109_div_40_div_20_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_40_div_20_ul_4_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r379 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r379.criteriaCategoryView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r379.criteriaCategoryView);
} }
function AddEditChallengesComponent_div_109_div_40_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_40_div_20_ul_4_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r371 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r371.criteriaCategoryView);
} }
function AddEditChallengesComponent_div_109_div_40_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, "Nominate question");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "span", 256);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r372 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx_r372.nomineeQuestion, " ");
} }
function AddEditChallengesComponent_div_109_div_40_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 175);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 176);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r381 = ctx.$implicit;
const index_r382 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r382);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", field_r381, " ");
} }
function AddEditChallengesComponent_div_109_div_40_div_50_div_12_ul_4_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 153);
} }
function AddEditChallengesComponent_div_109_div_40_div_50_div_12_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 183);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_40_div_50_div_12_ul_4_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r384 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r384.pointSytemView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r384.pointSytemView);
} }
function AddEditChallengesComponent_div_109_div_40_div_50_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_40_div_50_div_12_ul_4_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r383 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r383.pointSytemView);
} }
function AddEditChallengesComponent_div_109_div_40_div_50_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 178);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "input", 257);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, "Reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](8, "input", 258);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "Non-Reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, AddEditChallengesComponent_div_109_div_40_div_50_div_12_Template, 5, 1, "div", 179);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "label", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "input", 241);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r374 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r374.rulesGroup.get("nonRewardPointSystemEnabled").value);
} }
function AddEditChallengesComponent_div_109_div_40_div_79_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_div_40_div_93_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 237);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_div_40_div_93_div_14_Template(rf, ctx) { if (rf & 1) {
const _r389 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_40_div_93_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r389); const ctx_r388 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r388.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r387 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r387.validateURLImage(ctx_r387.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_109_div_40_div_93_Template(rf, ctx) { if (rf & 1) {
const _r391 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, AddEditChallengesComponent_div_109_div_40_div_93_div_13_Template, 4, 0, "div", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_109_div_40_div_93_div_14_Template, 4, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_40_div_93_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r391); const ctx_r390 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r390.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r376 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r376.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r376.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r376.createRanks.get("icon").value);
} }
function AddEditChallengesComponent_div_109_div_40_div_95_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r396 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "img", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_div_40_div_95_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r396); const index_r394 = ctx.index; const ctx_r395 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r395.deleteBadge(index_r394); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r393 = ctx.$implicit;
const ctx_r392 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r393.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r393.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r393.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r392.validateURLImage(field_r393.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_109_div_40_div_95_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_109_div_40_div_95_tr_16_Template, 14, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r377 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r377.badgeTieringArray);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_ul_8_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 153);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_ul_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_40_div_103_ul_8_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r397 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r397.progressTypesView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r397.progressTypesView);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_ul_16_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 153);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_ul_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_40_div_103_ul_16_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r398 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r398.displaySelectionView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r398.displaySelectionView);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_ul_24_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 153);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_ul_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_40_div_103_ul_24_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r399 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r399.displayDescriptionsView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r399.displayDescriptionsView);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_ul_32_img_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 153);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_ul_32_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_div_40_div_103_ul_32_img_4_Template, 1, 0, "img", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r400 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r400.criteriaCategorySelectView, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r400.customFormcreatiaView);
} }
function AddEditChallengesComponent_div_109_div_40_div_103_div_40_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Number of criteria count\u200B");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "input", 260);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Target description\u200B");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "input", 261);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_div_40_div_103_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Progress Type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](8, AddEditChallengesComponent_div_109_div_40_div_103_ul_8_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Display Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](14, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_109_div_40_div_103_ul_16_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Display Description");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](24, AddEditChallengesComponent_div_109_div_40_div_103_ul_24_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "Display Fields");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](30, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](32, AddEditChallengesComponent_div_109_div_40_div_103_ul_32_Template, 5, 2, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "Target Criteria Display");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](38, "input", 259);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](39, "span", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](40, AddEditChallengesComponent_div_109_div_40_div_103_div_40_Template, 13, 0, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r378 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r378.progressTypesView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r378.displaySelectionView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r378.displayDescriptionsView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r378.criteriaCategorySelectView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", ctx_r378.rulesGroup.get("isTargetCriteria").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r378.rulesGroup.get("isTargetCriteria").value === true);
} }
function AddEditChallengesComponent_div_109_div_40_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](5, AddEditChallengesComponent_div_109_div_40_ul_5_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](10, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](12, AddEditChallengesComponent_div_109_div_40_ul_12_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Criteria Categories");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](18, "input", 253);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](19, "span", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, AddEditChallengesComponent_div_109_div_40_div_20_Template, 5, 1, "div", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](21, AddEditChallengesComponent_div_109_div_40_div_21_Template, 6, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23, "Select workflow status");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](25, AddEditChallengesComponent_div_109_div_40_div_25_Template, 3, 2, "div", 173);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](30, "input", 238);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](33, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "label", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](36, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](37, "input", 226);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](39, "input", 240);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](41, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](42, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](44, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, "Challenge Reward Type");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](48, "input", 254);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](49, "span", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](50, AddEditChallengesComponent_div_109_div_40_div_50_Template, 17, 3, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "p", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](54, " Will rewards count stop after 1st achievement ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](57, "input", 231);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](59, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](60, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](62, "input", 232);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](65, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](67, " Do we need to limit the maximum rewards per staff ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](70, "input", 233);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](72, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](73, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](75, "input", 234);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](77, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](78, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](79, AddEditChallengesComponent_div_109_div_40_div_79_Template, 3, 0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](80, "p", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](81, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](84, "input", 235);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](85, "label", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](86, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](87, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](89, "input", 236);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](90, "label", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](91, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](92, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](93, AddEditChallengesComponent_div_109_div_40_div_93_Template, 18, 3, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](94, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](95, AddEditChallengesComponent_div_109_div_40_div_95_Template, 17, 1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](98, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](99, "Progress Status Setup");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](100, "label", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](101, "input", 255);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](102, "span", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](103, AddEditChallengesComponent_div_109_div_40_div_103_Template, 41, 6, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r308 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.rulesGroup.get("selectedCustomForm.title").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.customFormcreatiaView);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", ctx_r308.rulesGroup.get("isCriteriaCategory").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.rulesGroup.get("isCriteriaCategory").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.rulesGroup.get("criteriaSourceType").value === 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r308.workFlowStatusInfo);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", ctx_r308.rulesGroup.get("isRewardChallenge").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.rulesGroup.get("isRewardChallenge").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.badgeTieringArray.length != 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("checked", ctx_r308.rulesGroup.get("isProgressSetup").value === true ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r308.rulesGroup.get("isProgressSetup").value === true);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 284);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 209);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r414 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", item_r414 == null ? null : item_r414.schemeName, " ");
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "label", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " \u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_ng_container_41_div_9_div_4_Template, 3, 1, "div", 283);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r406 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r406.schemeData);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_33_button_6_Template(rf, ctx) { if (rf & 1) {
const _r420 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 206);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_41_div_33_button_6_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r420); const i_r418 = ctx.$implicit; const ctx_r419 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r419.addDay(i_r418); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r418 = ctx.$implicit;
const ctx_r416 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵclassProp"]("selected", ctx_r416.addedDay.indexOf(i_r418) != -1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", i_r418.day, " ");
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_33_div_20_div_1_Template(rf, ctx) { if (rf & 1) {
const _r425 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 208);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 209);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 210);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_41_div_33_div_20_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r425); const i_r423 = ctx.index; const ctx_r424 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](5); return ctx_r424.clearBundleLabel(i_r423); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r422 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate2"]("", item_r422.day, " (", item_r422.count, ") ");
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_33_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, AddEditChallengesComponent_div_109_ng_container_41_div_33_div_20_div_1_Template, 5, 2, "div", 207);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r417 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r417.bundleArr);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_33_Template(rf, ctx) { if (rf & 1) {
const _r427 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 200);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, "Select Day");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](6, AddEditChallengesComponent_div_109_ng_container_41_div_33_button_6_Template, 2, 3, "button", 201);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 200);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "div", 197);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "input", 202);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function AddEditChallengesComponent_div_109_ng_container_41_div_33_Template_input_ngModelChange_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r427); const ctx_r426 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r426.bundleCount = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 203);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "button", 204);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "button", 205);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_41_div_33_Template_button_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r427); const ctx_r428 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r428.addBundle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, AddEditChallengesComponent_div_109_ng_container_41_div_33_div_20_Template, 2, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r407 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r407.dayArr);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r407.bundleCount)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](4, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r407.bundleArr.length);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_61_ul_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "li");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "span", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r429 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", ctx_r429.pointSytemView, " ");
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_61_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](2, "select", 242);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_ng_container_41_div_61_ul_4_Template, 4, 1, "ul", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r408 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r408.pointSytemView);
} }
function AddEditChallengesComponent_div_109_ng_container_41_button_62_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 204);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, " Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_94_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_109_div_13_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "span", 287);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_109_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "input", 237);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "label", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, " Upload Image ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](4, AddEditChallengesComponent_div_109_ng_container_41_div_109_div_13_span_4_Template, 1, 0, "span", 286);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r430 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r430.imageLoader);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_109_div_14_Template(rf, ctx) { if (rf & 1) {
const _r434 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "i", 140);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_41_div_109_div_14_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r434); const ctx_r433 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r433.onDeleteBadgeImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](3, "img", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r431 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r431.validateURLImage(ctx_r431.createRanks.get("icon").value), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_109_Template(rf, ctx) { if (rf & 1) {
const _r436 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "table", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](7, "input", 285);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](9, "input", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "input", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, AddEditChallengesComponent_div_109_ng_container_41_div_109_div_13_Template, 5, 1, "div", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](14, AddEditChallengesComponent_div_109_ng_container_41_div_109_div_14_Template, 4, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "button", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_41_div_109_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r436); const ctx_r435 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3); return ctx_r435.addRank(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r411 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx_r411.createRanks);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r411.createRanks.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r411.createRanks.get("icon").value);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_111_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r441 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](11, "img", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "img", 146);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_ng_container_41_div_111_tr_16_Template_img_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r441); const index_r439 = ctx.index; const ctx_r440 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4); return ctx_r440.deleteBadge(index_r439); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r438 = ctx.$implicit;
const ctx_r437 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r438.name);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r438.startRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](field_r438.endRange);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("src", ctx_r437.validateURLImage(field_r438.icon), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
} }
function AddEditChallengesComponent_div_109_ng_container_41_div_111_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "table", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, "TIER TITLE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8, "FROM");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](9, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10, "TO");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12, "BADGE ICON");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "th", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](16, AddEditChallengesComponent_div_109_ng_container_41_div_111_tr_16_Template, 14, 4, "tr", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r412 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r412.badgeTieringArray);
} }
function AddEditChallengesComponent_div_109_ng_container_41_Template(rf, ctx) { if (rf & 1) {
const _r443 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "label", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5, " Selected Scheme ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "ng-select", 262);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function AddEditChallengesComponent_div_109_ng_container_41_Template_ng_select_ngModelChange_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r443); const ctx_r442 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r442.schemeData = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, AddEditChallengesComponent_div_109_ng_container_41_div_9_Template, 5, 1, "div", 263);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "label", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "Criteria Selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](15, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "ng-select", 264);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function AddEditChallengesComponent_div_109_ng_container_41_Template_ng_select_ngModelChange_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r443); const ctx_r444 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2); return ctx_r444.shiftcriteriaSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "label", 265);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Criteria Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](24, "input", 266);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "label", 213);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Single");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 267);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 215);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Bundled");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](31, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](33, AddEditChallengesComponent_div_109_ng_container_41_div_33_Template, 21, 5, "div", 198);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](35, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](37, "label", 268);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](38, "Criteria Count");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](39, "input", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "label", 269);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](43, "Reward Points");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](44, "input", 270);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, "Non-reward Point System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "label", 271);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](51, "Do we need point system");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](52, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](54, "input", 272);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "label", 273);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](58, "input", 274);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "label", 275);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](60, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](61, AddEditChallengesComponent_div_109_ng_container_41_div_61_Template, 5, 1, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](62, AddEditChallengesComponent_div_109_ng_container_41_button_62_Template, 2, 0, "button", 276);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](63, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](64, "p", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](65, "Reward Counter");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "label", 271);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](70, "Will rewards count stop after 1st achievement");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](71, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](72, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](73, "input", 277);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "label", 273);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](75, "Once-off");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](77, "input", 278);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "label", 275);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](79, "Recurring");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](80, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](81, "div", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "label", 271);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](84, "Do we need to limit the maximum rewards per staff");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](85, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](87, "input", 279);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "label", 273);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](89, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](90, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](91, "input", 280);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "label", 275);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](93, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](94, AddEditChallengesComponent_div_109_ng_container_41_div_94_Template, 2, 0, "div", 172);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](95, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "div", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](98, "label", 271);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](99, "Badge Tiering required");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](100, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](101, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](102, "input", 281);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](103, "label", 273);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](104, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](105, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](106, "input", 282);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](107, "label", 275);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](108, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](109, AddEditChallengesComponent_div_109_ng_container_41_div_109_Template, 18, 3, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](110, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](111, AddEditChallengesComponent_div_109_ng_container_41_div_111_Template, 17, 1, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r309 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx_r309.schemeDataArr)("virtualScroll", false)("clearable", true)("multiple", true)("closeOnSelect", false)("searchable", true)("ngModel", ctx_r309.schemeData)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](30, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r309.schemeData.length);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx_r309.shiftCriteriaArr)("ngModel", ctx_r309.shiftcriteriaSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](31, _c2));
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r309.rulesGroup.get("criteriaCountType").value == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx_r309.rulesGroup.get("criteriaCountType").value === 1 ? true : false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r309.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx_r309.rulesGroup.get("nonRewardPointSystemEnabled").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r309.rulesGroup.get("setLimitToMaxRewards").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r309.rulesGroup.get("badgeTiering").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r309.badgeTieringArray.length != 0);
} }
function AddEditChallengesComponent_div_109_Template(rf, ctx) { if (rf & 1) {
const _r446 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "RULES");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "div", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "label", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Criteria Source");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](10, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](12, "input", 212);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "label", 213);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "Channel");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](16, "input", 214);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "label", 215);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](18, "Boards");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](20, "input", 216);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](21, "label", 217);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](22, "System");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](24, "input", 218);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "label", 219);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](26, "Direct Rewards");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](27, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](28, "input", 220);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "label", 221);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, "Custom Form");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](32, "input", 222);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "label", 223);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](34, "Shift Work");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](35, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](36, AddEditChallengesComponent_div_109_ng_container_36_Template, 100, 18, "ng-container", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](37, AddEditChallengesComponent_div_109_div_37_Template, 100, 18, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](38, AddEditChallengesComponent_div_109_div_38_Template, 17, 2, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](39, AddEditChallengesComponent_div_109_div_39_Template, 2, 1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](40, AddEditChallengesComponent_div_109_div_40_Template, 104, 22, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](41, AddEditChallengesComponent_div_109_ng_container_41_Template, 112, 32, "ng-container", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](42, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "button", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_Template_button_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r446); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](6); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, " Prev ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "button", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_109_Template_button_click_45_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r446); _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](6); return _r0.next(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("criteriaType").value === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("criteriaType").value === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("criteriaType").value === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("criteriaType").value === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("criteriaType").value === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx_r7.rulesGroup.get("criteriaType").value === 6);
} }
function AddEditChallengesComponent_ng_template_112_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](0, "ADMINSTRATOR");
} }
function AddEditChallengesComponent_div_130_Template(rf, ctx) { if (rf & 1) {
const _r451 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 288);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "span", 289);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "span", 290);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_div_130_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r451); const index_r449 = ctx.index; const ctx_r450 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return ctx_r450.deleteAdmin(index_r449); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r448 = ctx.$implicit;
const index_r449 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroupName", index_r449);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", field_r448.get("string").value, " ");
} }
class AddEditChallengesComponent {
constructor(formBuilder, toastService, gamificationService, userService, buUnit, customFieldService, setupService, storageService) {
this.formBuilder = formBuilder;
this.toastService = toastService;
this.gamificationService = gamificationService;
this.userService = userService;
this.buUnit = buUnit;
this.customFieldService = customFieldService;
this.setupService = setupService;
this.storageService = storageService;
this.challangesData = null;
this.dayArr = [
{ count: 0, day: 'M', dayName: 'Monday' },
{ count: 1, day: 'T', dayName: 'Tuesday' },
{ count: 2, day: 'W', dayName: 'Wednesday' },
{ count: 3, day: 'T', dayName: 'Thursday' },
{ count: 4, day: 'F', dayName: 'Friday' },
{ count: 5, day: 'S', dayName: 'Saturday' },
{ count: 6, day: 'S', dayName: 'Sunday' },
];
this.editScheme = null;
this.addedDay = [];
this.criteriaSelect = null;
this.criteriaCategorySelect = null;
this.adminSelect = [];
this.channelSelect = null;
this.workFlowDropdown = null;
this.workFlowStatus = false;
this.nominateQuestionStatus = false;
this.clickedRadio = '';
this.nomineeID = '';
this.fieldNeedsToUpdate = [];
this.badgeTieringArray = [];
this.businessUnitList = [];
this.workFlowFieldValue = [];
this.imagePreview = null;
this.userDetails = [];
this.teamUserDetails = [];
this.teamDetails = [];
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
/* criteria type 4*/
this.buDropDownToClear = null;
this.planBuUnitDropDownLoading = false;
this.apppoinmentDropDownLoading = false;
this.CustomFieldDropDownLoading = false;
this.planBuUnitDropDown = [];
this.criteriaCategory = [];
this.displayDescriptions = [];
this.displayFieldsData = [];
this.allCriteria = [
{
value: 1,
key: 'Reading articles',
},
{
value: 2,
key: 'Questionnaire attempted',
},
{
value: 3,
key: ' Event attended',
},
{
value: 4,
key: 'Posting Done',
},
{
value: 5,
key: 'First Login',
},
{
value: 6,
key: 'Visible to submitted User',
},
{
value: 7,
key: 'Visible to Nominated User',
},
{
value: 8,
key: 'Nominated User',
},
{
value: 9,
key: 'Questionnaire attempted',
},
{
value: 10,
key: 'On-time report',
},
{
value: 11,
key: 'No. of Shift worked (By Hour)',
},
{
value: 12,
key: 'No. of Shift worked (By Shift Count)',
},
];
this.channelCriteria = [
{
value: 1,
key: 'Reading articles',
},
{
value: 2,
key: 'Questionnaire attempted',
},
{
value: 3,
key: ' Event attended',
},
];
this.boardCriteria = [
{
value: 4,
key: 'Posting Done',
},
{
value: 9,
key: 'Questionnaire attempted',
},
{
value: 8,
key: 'Nominated User',
},
];
this.systemCriteria = [
{
value: 5,
key: 'First Login',
},
];
this.customCriteria = [
{
value: 6,
key: 'Visible to submitted User',
},
{
value: 7,
key: 'Visible to Nominated User',
},
];
this.progressTypes = [
{
value: 1,
key: 'Leader Board',
},
{
value: 2,
key: 'Digital Stamp',
},
];
this.rewardTypes = [
{
value: 1,
key: 'Point System',
},
{
value: 2,
key: 'Non-Reward Point System',
},
];
this.shiftCriteriaArr = [
{ value: 10, key: 'On-time report' },
{ value: 11, key: 'No. of Shift worked (By Hour)' },
{ value: 12, key: 'No. of Shift worked (By Shift Count)' },
];
this.displaySelectionData = [
{ value: 1, key: 'See own only' },
{ value: 2, key: 'See own or others' },
{ value: 3, key: 'See own + others' },
{ value: 4, key: 'See own + all combined' },
];
this.activeId = 1;
this.challangesId = null;
this.isUserEdited = false;
this.isChallengeEdited = false;
this.UpdateduserDetails = [];
this.UpdatedTeamUserDetails = [];
this.workFlowstatusData = [];
this.workFlowStatusInfo = [];
this.workFlowId = null;
this.schemeData = null;
this.shiftcriteriaSelect = null;
this.bundleArr = [];
this.loggedInUserId = null;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].imageUrl;
this.toggleSideNav = new _angular_core__WEBPACK_IMPORTED_MODULE_2__["EventEmitter"]();
this.clearFormArray = (formArray) => {
while (formArray.length !== 0) {
formArray.removeAt(0);
}
};
this.loggedInUserId = localStorage.getItem('loggedInUserId');
//this.loggedInUserId=JSON.parse(this.loggedInUserId);
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
filter: {
fields: ['name'],
},
search: '',
};
}
ngOnInit() {
!this.isUserEdited ? (this.challangesData = null) : '';
this.initRulesFrom();
this.initDiscriptionFrom();
this.initTeamsFrom();
this.initAdminFrom();
this.createRank();
this.loadAdminUsers();
// this.getChallenges();
this.getBoardsAndChannels();
// this.getBusinessUnitList();
this.initAssignuserDetailsFrom();
this.getSchemeList();
if (this.challangesData) {
// this.getSingleChallenges(this.challangesId);
this.getChallengeData();
}
}
initDiscriptionFrom() {
return (this.discriptioGroup = this.formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
description: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
challengeStart: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
challengeEnd: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
publishStart: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
publishEnd: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
isTeam: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
icon: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
status: 1,
leaderBoard: false,
}));
}
initTeamsFrom() {
return (this.teamsGroup = this.formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
icon: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
status: 1,
id: "",
teamUserDetails: [[], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
}));
}
initAdminFrom() {
return (this.adminGroup = this.formBuilder.group({
administrators: this.formBuilder.array([]),
}));
}
initRulesFrom() {
return (this.rulesGroup = this.formBuilder.group({
criteriaType: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
criteriaSourceType: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
criteriaCountType: ['1', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
maximumRewards: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
criteriaCount: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
selectedChannel: this.formBuilder.group({
name: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
}),
selectedWall: this.formBuilder.group({
name: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
}),
selectedCustomForm: this.formBuilder.group({
title: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
}),
rewardPoints: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
nonRewardPointSystem: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
nonRewardPointSystemEnabled: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
stopAfterAchievement: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
setLimitToMaxRewards: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
fieldOptions: this.formBuilder.array([]),
nomineeQuestion: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
badgeTiering: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
ranks: this.formBuilder.array([]),
isCriteriaCategory: false,
isProgressSetup: false,
isRewardChallenge: false,
isTargetCriteria: false,
targetCount: false,
targetCountDescription: "",
}));
}
getSchemeList() {
let companyId = this.storageService.getByKey('companyId');
this.gamificationService
.getSchemeList(companyId)
.subscribe((response) => {
this.schemeDataArr = (response === null || response === void 0 ? void 0 : response.data) || [];
});
}
get ranksControl() {
return this.rulesGroup.get('ranks');
}
get workFlowFieldControl() {
return this.rulesGroup.get('fieldOptions');
}
addRank() {
var _a, _b;
if (((_b = (_a = this.createRanks) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.name) !== '') {
this.badgeTieringArray.push(this.createRanks.value);
this.createRank();
}
else {
this.toastService.error('Please enter the badge details');
}
}
resetCriteriaCounter() {
this.rulesGroup.patchValue({
criteriaCount: 1,
});
}
deleteBadge(index) {
this.badgeTieringArray.splice(index, 1);
}
createRank() {
return (this.createRanks = this.formBuilder.group({
name: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
startRange: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
endRange: [0, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
icon: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
}));
}
addChannel(value) {
this.rulesGroup.patchValue({
selectedChannel: {
name: value.name,
_id: value._id,
},
});
this.channelSelect = [];
}
addBoard(value) {
this.rulesGroup.patchValue({
selectedWall: {
name: value.wallName,
_id: value._id,
},
});
this.channelSelect = [];
}
deleteChannel() {
this.rulesGroup.patchValue({
selectedChannel: {
name: null,
_id: null,
},
});
}
deleteBoards() {
this.rulesGroup.patchValue({
selectedWall: {
name: null,
_id: null,
},
});
}
deleteCustomForm() {
this.rulesGroup.patchValue({
selectedCustomForm: {
title: null,
_id: null,
},
});
this.displayDescriptionsView = "";
this.displayDescriptionsValue = "";
this.criteriaCategorySelectView = "";
this.criteriaCategorySelectValue = "";
this.criteriaCategoryView = "";
this.criteriaCategoryValue = "";
this.criteriaCategory = [];
this.displayDescriptions = [];
this.displayFieldsData = [];
}
deleteChannelCreteria() {
this.creatiaView = null;
}
deleteBoardsCreteria() {
this.boardcreatiaView = null;
}
deleteSystemCreteria() {
this.systemCretiaView = null;
}
deleteShiftCriteria() {
this.shiftcriteriaSelect = null;
}
deleteNominateCreteria() {
this.nominateView = null;
}
deleteCustomFormCreteria() {
this.customFormcreatiaView = null;
}
addCustomForm(value) {
const Control = this.workFlowFieldControl;
this.nomineeID = value._id;
this.workFlowStatus = true;
this.clearFormArray(Control);
this.workFlowstatusData = [];
this.selectWorkflow();
this.rulesGroup.patchValue({
selectedCustomForm: {
title: value.title,
_id: value._id,
},
});
this.getAllFieldsForCustomForm(value._id);
this.channelSelect = [];
this.displayDescriptionsView = "";
this.displayDescriptionsValue = "";
this.criteriaCategorySelectView = "";
this.criteriaCategorySelectValue = "";
this.criteriaCategoryView = "";
this.criteriaCategoryValue = "";
this.criteriaCategory = [];
this.displayDescriptions = [];
this.displayFieldsData = [];
if ((this.discriptioGroup.get('leaderBoard').value) != true) {
this.progressTypesView = "";
this.progressTypesValue = "";
}
this.displaySelectionView = "";
this.displaySelectionValue = "";
this.customFormcreatiaView = "";
}
addWorkFlow(workflow) {
this.workFlowId = workflow;
this.workFlowstatusData = workflow === null || workflow === void 0 ? void 0 : workflow.fieldStatus;
// this.workFlowDropdown = [];
}
addWorkflowStatus(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.workFlowFieldControl;
const index = yield Control.value.findIndex((x) => x.formStatusValue === value._id);
if (index > -1) {
this.toastService.error(`${value.fieldStatusValue} is already added`);
// this.workFlowstatusData = [];
this.workFlowFieldValue = [];
}
else {
let field = this.formBuilder.group({
fieldOptionValue: [
this.workFlowId._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]),
],
formStatusValue: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
workflowValue: [
this.workFlowId.fieldName,
_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]),
],
worflowStatusValue: [
value.fieldStatusValue,
_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]),
],
});
Control.push(field);
this.workFlowFieldValue = [];
// this.workFlowstatusData = [];
}
});
}
deleteWorkFlowSttus(index) {
const Control = this.workFlowFieldControl;
Control.removeAt(index);
}
selectWorkflow() {
this.gamificationService
.getNomineeQuestions(this.nomineeID)
.subscribe((response) => {
var _a, _b;
if (!!response.data.workflow && !!((_a = response.data.workflow) === null || _a === void 0 ? void 0 : _a.length)) {
let workflow = response.data.workflow;
workflow.forEach((wf) => {
wf.fieldName = wf.title;
wf.workflowStatus.forEach((wfs) => {
wfs.fieldStatusValue = wfs.field;
});
wf.fieldStatus = wf.workflowStatus;
});
this.workFlowData = workflow;
}
else {
this.workFlowData = (_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.formStatus;
}
});
}
clearteamsDataForm() {
this.teamsGroup.patchValue({
title: "",
icon: "",
id: "",
teamUserDetails: [],
});
this.teamUserDetails = [];
this.userDetails = [];
}
addTeamData() {
if (!this.teamsGroup.valid) {
this.toastService.error('Please fill the required team data');
return;
}
if (!!this.isEditTeam) {
this.teamDetails[this.editTeamIndex] = Object.assign(Object.assign({}, this.teamsGroup.value), { teamUserDetails: this.teamUserDetails });
this.isEditTeam = false;
}
else {
this.teamDetails.push(Object.assign(Object.assign({}, this.teamsGroup.value), { teamUserDetails: this.teamUserDetails }));
}
this.clearteamsDataForm();
}
selectNomineeQuestion() {
this.gamificationService
.getNomineeQuestions(this.nomineeID)
.subscribe((response) => {
this.nomineeQuestionData = response.data.questions;
this.nomineeQuestionData.map((item) => {
item.question = item.question.replace(/<[^>]*>/g, '');
});
});
}
addcriteriaSourceType(value, type) {
this.shiftcriteriaSelectNumber = value.value;
switch (type) {
case 'Channel':
this.creatiaView = value.key;
// this.rulesGroup.patchValue({
// criteriaSourceType: 1,
// });
this.criteriaSelect = [];
break;
case 'Boards':
this.boardcreatiaView = value.key;
// this.rulesGroup.patchValue({
// criteriaSourceType: 2,
// });
this.criteriaSelect = [];
break;
case 'Custom Form':
this.customFormcreatiaView = value.key;
this.nominateQuestionStatus = true;
this.selectNomineeQuestion();
// this.rulesGroup.patchValue({
// criteriaSourceType: 5,
// });
this.criteriaSelect = [];
break;
case 'System':
this.systemCretiaView = value.key;
// this.rulesGroup.patchValue({
// criteriaSourceType: 3,
// });
this.criteriaSelect = [];
break;
case 'shiftWork':
this.shiftcriteriaSelect = value.key;
// this.rulesGroup.patchValue({
// criteriaSourceType: 3,
// });
this.criteriaSelect = [];
break;
}
}
addItemsInSelector(value, type) {
switch (type) {
case 'Criteria_Category':
this.criteriaCategoryView = value.key;
this.criteriaCategoryValue = value.value;
this.criteriaCategorySelect = [];
break;
case 'Progress_Type':
this.progressTypesView = value.key;
this.progressTypesValue = value.value;
this.criteriaCategorySelect = [];
break;
case 'Display_Selection':
this.displaySelectionView = value.key;
this.displaySelectionValue = value.value;
this.criteriaCategorySelect = [];
break;
case 'Display_Fields':
this.criteriaCategorySelectView = value.key;
this.criteriaCategorySelectValue = value.value;
this.criteriaCategorySelect = [];
break;
case 'Display_Description':
this.displayDescriptionsView = value.key;
this.displayDescriptionsValue = value.value;
this.criteriaCategorySelect = [];
break;
case 'Reward_Type':
this.rewardTypesView = value.key;
this.rewardTypesValue = value.value;
this.criteriaCategorySelect = [];
break;
}
}
populateCriteria({ value, key }) {
if ([1, 2, 3].includes(value)) {
this.creatiaView = key;
}
if ([4, 8, 9].includes(value)) {
this.boardcreatiaView = key;
}
if ([6, 7].includes(value)) {
this.customFormcreatiaView = key;
}
if ([5].includes(value)) {
this.systemCretiaView = key;
}
if ([10, 11, 12].includes(value)) {
this.shiftcriteriaSelect = key;
}
}
addPointSystem(value) {
this.pointSytemView = value.title;
this.rulesGroup.patchValue({
nonRewardPointSystem: value._id,
});
}
addNomineeQuestion(value) {
this.nominateView = value.question;
this.rulesGroup.patchValue({
nomineeQuestion: value._id,
});
}
toggleMenu() {
this.toggleSideNav.emit();
}
clearProgressTypeData() {
if ((this.discriptioGroup.get('leaderBoard').value) == false) {
this.progressTypesView = null;
this.progressTypesValue = null;
}
}
onSelectChalange(name, value) {
const Control = this.workFlowFieldControl;
if ((this.discriptioGroup.get('leaderBoard').value) == true) {
this.progressTypesView = "Leader Board";
this.progressTypesValue = 1;
}
else {
this.progressTypesView = null;
this.progressTypesValue = null;
}
this.creatiaView = '';
this.boardcreatiaView = '';
this.customFormcreatiaView = '';
this.systemCretiaView = '';
this.clearFormArray(Control);
this.nominateView = '';
this.badgeTieringArray = [];
this.rulesGroup.patchValue({
criteriaSourceType: value,
});
this.rulesGroup.patchValue({
criteriaCountType: 1,
criteriaCount: 1,
isCriteriaCategory: false,
isRewardChallenge: false,
isProgressSetup: false,
isTargetCriteria: false,
selectedChannel: {
name: '',
_id: '',
},
selectedWall: {
name: null,
_id: '',
},
selectedCustomForm: {
title: '',
_id: '',
},
rewardPoints: 0,
nonRewardPointSystemEnabled: false,
stopAfterAchievement: false,
setLimitToMaxRewards: false,
badgeTiering: false,
ranks: [],
});
}
getSingleChallenges(id) {
this.isChallengeEdited = true;
const sub = this.gamificationService
.getOneChal(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe(({ data }) => {
const adminControl = this.AdminFieldsControl;
const rankControl = this.ranksControl;
data.ranks.forEach(({ name, startRange, endRange, icon }) => {
let field = this.formBuilder.group({
name,
startRange,
endRange,
icon,
});
rankControl.push(field);
});
data.administrators.forEach((element) => {
let field = this.formBuilder.group({
string: [element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
});
adminControl.push(field);
});
const creteria = this.allCriteria.find((cretia) => cretia.value === data.criteriaSourceType);
this.populateCriteria(creteria);
this.userDetails = data.assignUsers ? data.assignUsers : [];
this.UpdateduserDetails = data.assignUsers
? Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["getAssignedUsers"])(data.assignUsers)
: [];
this.discriptioGroup.patchValue({
title: data.title,
description: data.description,
challengeStart: data.challengeStart,
challengeEnd: data.challengeEnd,
publishStart: data.publishStart,
publishEnd: data.publishEnd,
isTeam: data === null || data === void 0 ? void 0 : data.isTeam,
icon: data.icon,
status: 1,
leaderBoard: data.leaderBoard,
});
this.rulesGroup.patchValue({
criteriaType: data.criteriaType,
criteriaSourceType: data.criteriaSourceType,
criteriaCountType: data.criteriaCountType,
maximumRewards: data.maximumRewards,
criteriaCount: data.criteriaCount,
selectedChannel: {
name: data.selectedChannel ? data.selectedChannel.name : '',
_id: data.selectedChannel ? data.selectedChannel._id : '',
},
selectedWall: {
name: data.selectedWall ? data.selectedWall.wallName : null,
_id: data.selectedWall ? data.selectedWall._id : '',
},
selectedCustomForm: {
title: data.selectedCustomForm
? data.selectedCustomForm.title
: '',
_id: data.selectedCustomForm ? data.selectedCustomForm._id : '',
},
rewardPoints: data.rewardPoints,
nonRewardPointSystem: data.nonRewardPointSystem,
nonRewardPointSystemEnabled: data.nonRewardPointSystemEnabled,
stopAfterAchievement: data.stopAfterAchievement,
setLimitToMaxRewards: data.setLimitToMaxRewards,
badgeTiering: data.badgeTiering,
});
this.rewardPoints = data.rewardPoints;
this.schemeData = data.selectedScheme;
}, (error) => {
this.toastService.error('No data found');
});
}
updatedUserDetails(userDetails) {
this.UpdateduserDetails = userDetails;
}
updateTeamUserDetails(teamUserDetails) {
this.UpdatedTeamUserDetails = teamUserDetails;
this.teamsGroup.patchValue({
teamUserDetails: teamUserDetails,
});
}
getModifiedTeams() {
var _a;
const newArrayOfObj = (_a = this.teamDetails) === null || _a === void 0 ? void 0 : _a.map(({ title: name, icon: logo, teamUserDetails: assignUsers, id: _id, }) => ({
name,
logo,
assignUsers,
_id,
}));
newArrayOfObj.forEach((data, index) => {
if (data._id == "")
delete data._id;
data === null || data === void 0 ? void 0 : data.assignUsers.forEach((item, index) => {
var _a;
if (((_a = item === null || item === void 0 ? void 0 : item.businessUnits[0]) === null || _a === void 0 ? void 0 : _a._id) == 1) {
item.businessUnits = [];
}
});
});
return newArrayOfObj;
}
selectIsTeamRequired(isTeam) {
if (isTeam) {
this.onSelectChalange('CustomForm', 5);
this.rulesGroup.patchValue({
criteriaType: 5,
});
}
}
onSubmitEvents(value) {
var _a;
this.isLoading = true;
const _b = this.rulesGroup.value, { selectedChannel, selectedWall, selectedCustomForm, criteriaSourceType } = _b, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_b, ["selectedChannel", "selectedWall", "selectedCustomForm", "criteriaSourceType"]);
if (criteriaSourceType && !this.shiftcriteriaSelectNumber) {
this.shiftcriteriaSelectNumber = criteriaSourceType;
}
const descriptionValid = this.validateDescription('submit');
if (!descriptionValid) {
this.isLoading = false;
return;
}
switch (value) {
case 1:
const data1 = {
challenge: Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { criteriaSourceType: this.shiftcriteriaSelectNumber, criteriaType: value, selectedChannel: this.rulesGroup.get('selectedChannel._id').value
? this.rulesGroup.get('selectedChannel._id').value
: '', assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) }),
};
this.challangesId
? this.gamificationService
.updateChallenges(data1, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challenge updated ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data1).subscribe((data) => {
this.toastService.success('Challenge created ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
});
break;
case 2:
const data2 = {
challenge: Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { criteriaSourceType: this.shiftcriteriaSelectNumber, criteriaType: value, selectedWall: this.rulesGroup.get('selectedWall._id').value
? this.rulesGroup.get('selectedWall._id').value
: null, assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) }),
};
this.challangesId
? this.gamificationService
.updateChallenges(data2, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challenge updated ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data2).subscribe((data) => {
this.toastService.success('Challenge created ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
});
break;
case 3:
const data3 = {
challenge: Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { criteriaSourceType: this.shiftcriteriaSelectNumber, criteriaType: value, assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) }),
};
this.challangesId
? this.gamificationService
.updateChallenges(data3, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challenge updated');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data3).subscribe((data) => {
this.toastService.success('Challenge created');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
});
break;
case 4:
const data4 = {
challenge: Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { selectedWall: this.rulesGroup.get('selectedWall._id').value
? this.rulesGroup.get('selectedWall._id').value
: null, assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id), directRewardCategory: false }),
};
this.challangesId
? this.gamificationService
.updateChallenges(data4, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challenge updated ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data4).subscribe((data) => {
this.toastService.success('Challenge created ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
});
break;
case 5:
const data5 = {
challenge: Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { criteriaSourceType: this.shiftcriteriaSelectNumber, criteriaType: value, isTeam: (this.discriptioGroup.get('isTeam').value), teams: this.getModifiedTeams(), fieldOptions: !this.challangesId
? this.workFlowFieldControl.length
? this.workFlowFieldControl.value.map(({ fieldOptionValue, formStatusValue }) => ({
fieldOptionValue,
formStatusValue,
}))
: []
: this.challangesData.fieldOptions, selectedCustomForm: this.rulesGroup.get('selectedCustomForm._id')
.value
? this.rulesGroup.get('selectedCustomForm._id').value
: '', assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) }),
};
if (data5.challenge.criteriaSourceType === 7 && this.challangesId) {
data5.challenge.nomineeQuestion = (_a = this.challangesData.nomineeQuestion) === null || _a === void 0 ? void 0 : _a._id;
}
if (this.discriptioGroup.get('isTeam').value) {
data5.challenge.isCriteriaCategories = this.rulesGroup.get('isCriteriaCategory').value,
data5.challenge.criteriaCategories = this.criteriaCategoryValue || null,
data5.challenge.isNormalCount = true,
data5.challenge.isRewardChallenge = this.rulesGroup.get('isRewardChallenge').value,
data5.challenge.rewardType = this.rewardTypesValue,
data5.challenge.isProgressStatusSetup = this.rulesGroup.get('isProgressSetup').value,
data5.challenge.progressType = this.progressTypesValue || null,
data5.challenge.displaySelection = this.displaySelectionValue || null,
data5.challenge.displayDescription = this.displayDescriptionsValue || null,
data5.challenge.displayField = this.criteriaCategorySelectValue || null,
data5.challenge.isTargetCriteria = this.rulesGroup.get('isTargetCriteria').value,
data5.challenge.targetCriteriaCount = this.rulesGroup.get('targetCount').value || null,
data5.challenge.targetDescription = this.rulesGroup.get('targetCountDescription').value || null;
}
;
this.challangesId
? this.gamificationService
.updateChallenges(data5, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challenge updated ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data5).subscribe((data) => {
this.toastService.success('Challenge created ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
this.toastService.error(error.error.message);
});
break;
case 6:
const data6 = Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { criteriaSourceType: this.shiftcriteriaSelectNumber, criteriaType: value, selectedScheme: this.schemeData.map((v) => v._id), ranks: this.badgeTieringArray, fieldOptions: !this.challangesId
? this.workFlowFieldControl.length
? this.workFlowFieldControl.value.map(({ fieldOptionValue, formStatusValue }) => ({
fieldOptionValue,
formStatusValue,
}))
: []
: this.challangesData.fieldOptions, assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) });
delete data6.nomineeQuestion;
delete data6.nonRewardPointSystem;
delete data6.nonRewardPointSystemEnabled;
const challengePayload = {
challenge: data6,
};
// return;
this.challangesId
? this.gamificationService
.updateChallenges(challengePayload, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challenge updated');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
})
: this.gamificationService
.createChallenges(challengePayload)
.subscribe((data) => {
this.toastService.success('Challenge created ');
this.isLoading = false;
this.overViewEvent.emit(null);
}, (error) => {
this.isLoading = false;
// this.toastService.error(error.error.message);
});
break;
}
}
saveASDraft(value) {
const _a = this.rulesGroup.value, { selectedChannel, selectedWall, selectedCustomForm, criteriaSourceType } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["selectedChannel", "selectedWall", "selectedCustomForm", "criteriaSourceType"]);
switch (value) {
case 1:
const data1 = Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { status: 1, criteriaSourceType, selectedChannel: this.rulesGroup.get('selectedChannel._id').value
? this.rulesGroup.get('selectedChannel._id').value
: '', assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) });
this.challangesId
? this.gamificationService
.updateChallenges(data1, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challange updated ');
this.overViewEvent.emit(null);
}, (error) => {
// this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data1).subscribe((data) => {
this.toastService.success('Challange created ');
this.overViewEvent.emit(null);
}, (error) => {
// this.toastService.error(error.error.message);
});
break;
case 2:
const data2 = Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { status: 1, criteriaSourceType, selectedWall: this.rulesGroup.get('selectedWall._id').value
? this.rulesGroup.get('selectedWall._id').value
: '', assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) });
this.challangesId
? this.gamificationService
.updateChallenges(data2, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challange updated ');
this.overViewEvent.emit(null);
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
})
: this.gamificationService.createChallenges(data2).subscribe((data) => {
this.toastService.success('Challange created ');
this.overViewEvent.emit(null);
}, (error) => {
var _a;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
break;
case 3:
const data3 = Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { status: 1, criteriaSourceType, assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) });
this.challangesId
? this.gamificationService
.updateChallenges(data3, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challange updated ');
this.overViewEvent.emit(null);
}, (error) => {
// this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data3).subscribe((data) => {
this.toastService.success('Challange created ');
this.overViewEvent.emit(null);
}, (error) => {
// this.toastService.error(error.error.message);
});
break;
case 4:
const data4 = Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { status: 1, assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) });
this.challangesId
? this.gamificationService
.updateChallenges(data4, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challange updated ');
this.overViewEvent.emit(null);
}, (error) => {
// this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data4).subscribe((data) => {
this.toastService.success('Challange created ');
this.overViewEvent.emit(null);
}, (error) => {
// this.toastService.error(error.error.message);
});
break;
case 5:
const data5 = Object.assign(Object.assign(Object.assign({}, this.discriptioGroup.value), rest), { status: 1, criteriaSourceType, fieldOptions: !this.challangesId
? this.workFlowFieldControl.length
? this.workFlowFieldControl.value.map(({ fieldOptionValue, formStatusValue }) => ({
fieldOptionValue,
formStatusValue,
}))
: []
: this.challangesData.fieldOptions, selectedCustomForm: this.rulesGroup.get('selectedCustomForm._id')
.value
? this.rulesGroup.get('selectedCustomForm._id').value
: '', assignUsers: this.userDetails.length > 0 ? this.UpdateduserDetails : [], administrators: this.AdminFieldsControl.value.map((item) => item._id) });
this.challangesId
? this.gamificationService
.updateChallenges(data5, this.challangesId)
.subscribe((data) => {
this.toastService.success('Challange updated ');
this.overViewEvent.emit(null);
}, (error) => {
// this.toastService.error(error.error.message);
})
: this.gamificationService.createChallenges(data5).subscribe((data) => {
this.toastService.success('Challange created ');
this.overViewEvent.emit(null);
}, (error) => {
// this.toastService.error(error.error.message);
});
break;
}
}
getChallenges() {
this.gamificationService.getChallenges(this.data).subscribe((data) => { }, (error) => {
// this.toastService.error(error.error.message);
});
}
validateTeamStepper(from = 'next') {
let valid = true;
if (!this.teamDetails.length) {
valid = false;
this.toastService.error('Please add atleast one team');
}
else if (from === 'next' && valid) {
return this.stepper.next();
}
return valid;
}
validateRulesStepper(from = 'next') {
let valid = true;
if (!this.rulesGroup.value.criteriaSourceType) {
valid = false;
this.toastService.error('CriteriaSource is required');
}
else if (!!this.rulesGroup.value.isCriteriaCategory && !this.criteriaCategoryValue) {
valid = false;
this.toastService.error('Please Select Criteria Category');
}
else if (!!this.rulesGroup.value.isRewardChallenge && this.rulesGroup.value.rewardPoints == "") {
valid = false;
this.toastService.error('Please Add Reward Points');
}
else if (!!this.rulesGroup.value.isProgressSetup && !this.progressTypesValue) {
valid = false;
this.toastService.error('Please Add Progress Type');
}
else if ((this.progressTypesValue == 2) && !this.criteriaCategoryValue) {
valid = false;
this.toastService.error('Please Select Criteria Category');
}
else if (!!this.rulesGroup.value.isProgressSetup && !this.displaySelectionValue) {
valid = false;
this.toastService.error('Please Add Display Selection');
}
else if (!!this.rulesGroup.value.isProgressSetup && !this.displayDescriptionsValue) {
valid = false;
this.toastService.error('Please Add Display Description');
}
else if (!!this.rulesGroup.value.isProgressSetup && !this.criteriaCategorySelectValue) {
valid = false;
this.toastService.error('Please Add Display Field');
}
else if (!!this.rulesGroup.value.isTargetCriteria && this.rulesGroup.value.targetCount == "") {
valid = false;
this.toastService.error('Please Add Target Count');
}
else if (!!this.rulesGroup.value.isTargetCriteria && this.rulesGroup.value.targetCountDescription == "") {
valid = false;
this.toastService.error('Please Add Target Count Description');
}
else if (this.discriptioGroup.value.isTeam && !this.teamDetails.length) {
valid = false;
this.toastService.error('Please add atleast one team');
}
else if (from === 'next' && valid) {
return this.stepper.next();
}
return valid;
}
validateDescription(from = 'next') {
let valid = true;
if (this.discriptioGroup.value.title.trim() === "") {
valid = false;
this.toastService.error('Title is required');
}
else if (this.discriptioGroup.value.description.trim() === "") {
valid = false;
this.toastService.error('Description is required');
}
else if (!this.discriptioGroup.value.icon) {
valid = false;
this.toastService.error('Icon is required');
}
else if (!this.discriptioGroup.value.publishStart) {
valid = false;
this.toastService.error('Publish start date is required');
}
else if (!this.discriptioGroup.value.publishEnd) {
valid = false;
this.toastService.error('Publish end date is required');
}
else if (!this.discriptioGroup.value.challengeStart) {
valid = false;
this.toastService.error('Challenge start date is required');
}
else if (!this.discriptioGroup.value.challengeEnd) {
valid = false;
this.toastService.error('Challenge end date is required');
}
else if (!this.challangesId &&
new Date().getTime() >
new Date(this.discriptioGroup.value.publishStart).getTime()) {
valid = false;
this.toastService.error('Publish start time should be from future');
}
else if (new Date(this.discriptioGroup.value.publishEnd).getTime() <
new Date(this.discriptioGroup.value.publishStart).getTime()) {
valid = false;
this.toastService.error('Publish end should be greater then publish start');
}
else if (new Date(this.discriptioGroup.value.challengeStart).getTime() <
new Date(this.discriptioGroup.value.publishStart).getTime()) {
valid = false;
this.toastService.error('challenge start should be greater then publish start');
}
else if (new Date(this.discriptioGroup.value.publishEnd).getTime() <
new Date(this.discriptioGroup.value.challengeEnd).getTime()) {
valid = false;
this.toastService.error('challenge end should be less then publish end');
}
else if (new Date(this.discriptioGroup.value.challengeEnd).getTime() <
new Date(this.discriptioGroup.value.challengeStart).getTime()) {
valid = false;
this.toastService.error('Challenge end should be greater then challenge start');
}
if (from === 'next' && valid) {
return this.stepper.next();
}
return valid;
}
getChallengeData() {
const subscribe = this.gamificationService
.getChallengesNewSingle(this.challangesData._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const data = response.data;
this.challangesData = data;
this.challangesId = this.challangesData._id;
this.setEditData();
}, (error) => {
this.toastService.error('Something went wrong');
});
}
getUpdatedTeams(data) {
const newArrayOfObj = data === null || data === void 0 ? void 0 : data.map(({ name: title, logo: icon, assignUsers: teamUserDetails, _id: id, }) => ({
title,
icon,
teamUserDetails,
id
}));
return newArrayOfObj;
}
setEditData() {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
let data = this.challangesData;
this.isChallengeEdited = true;
const adminControl = this.AdminFieldsControl;
const rankControl = this.ranksControl;
(_a = data.ranks) === null || _a === void 0 ? void 0 : _a.forEach(({ name, startRange, endRange, icon }) => {
let field = this.formBuilder.group({
name,
startRange,
endRange,
icon,
});
rankControl.push(field);
});
this.nomineeQuestion = (_b = data.nomineeQuestion) === null || _b === void 0 ? void 0 : _b.question;
(_c = data.administrators) === null || _c === void 0 ? void 0 : _c.forEach((element) => {
let field = this.formBuilder.group({
string: [element.name, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [element._id, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
});
adminControl.push(field);
});
const creteria = (_d = this.allCriteria) === null || _d === void 0 ? void 0 : _d.find((cretia) => cretia.value === data.criteriaSourceType);
this.populateCriteria(creteria);
const assignUsers1 = (_e = data.assignUsers) === null || _e === void 0 ? void 0 : _e.map((item) => {
var _a;
if (item.allBuToken) {
{
item.businessUnits = [
{ _id: 'All Business Unit', name: 'All Business Unit' },
];
}
}
else {
item.businessUnits = (_a = item === null || item === void 0 ? void 0 : item.businessUnits) === null || _a === void 0 ? void 0 : _a.map((bu) => {
bu.name =
(bu === null || bu === void 0 ? void 0 : bu.sectionId.departmentId.companyId.name) +
' > ' + (bu === null || bu === void 0 ? void 0 : bu.sectionId.departmentId.name) +
' > ' + (bu === null || bu === void 0 ? void 0 : bu.sectionId.name) +
'> ' + (bu === null || bu === void 0 ? void 0 : bu.name);
bu._id = bu._id;
delete bu.sectionId;
delete bu.status;
return bu;
});
}
return item;
});
data.assignUsers = assignUsers1;
this.userDetails = assignUsers1 ? assignUsers1 : [];
this.workFlowStatusInfo = data.workFlowStatusInfo || [];
this.UpdateduserDetails = data.assignUsers
? Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["getAssignedUsers"])(data.assignUsers)
: [];
this.discriptioGroup.patchValue({
title: data.title,
description: data.description,
challengeStart: data.challengeStart,
challengeEnd: data.challengeEnd,
publishStart: data.publishStart,
publishEnd: data.publishEnd,
icon: data.icon,
status: 1,
leaderBoard: data.leaderBoard,
isTeam: data.isTeam,
});
if (data.nonRewardPointSystemEnabled) {
this.pointSytemView = (_f = data.nonRewardPointSystem) === null || _f === void 0 ? void 0 : _f.title;
}
this.rulesGroup.patchValue({
criteriaType: data.criteriaType,
criteriaSourceType: data.criteriaSourceType,
criteriaCountType: data.criteriaCountType,
maximumRewards: data.maximumRewards,
criteriaCount: data.criteriaCount,
selectedChannel: {
name: data.selectedChannel ? data.selectedChannel.name : '',
_id: data.selectedChannel ? data.selectedChannel._id : '',
},
selectedWall: {
name: data.selectedWall ? data.selectedWall.wallName : null,
_id: data.selectedWall ? data.selectedWall._id : '',
},
selectedCustomForm: {
title: data.selectedCustomForm ? data.selectedCustomForm.title : '',
_id: data.selectedCustomForm ? data.selectedCustomForm._id : '',
},
rewardPoints: data.rewardPoints,
nonRewardPointSystem: data.nonRewardPointSystem,
nonRewardPointSystemEnabled: data.nonRewardPointSystemEnabled
? data.nonRewardPointSystemEnabled
: false,
stopAfterAchievement: data.stopAfterAchievement,
setLimitToMaxRewards: data.setLimitToMaxRewards,
badgeTiering: data.badgeTiering,
isCriteriaCategory: data.isCriteriaCategories,
isRewardChallenge: data.isRewardChallenge,
isProgressSetup: data.isProgressStatusSetup,
isTargetCriteria: data.isTargetCriteria,
targetCount: data.targetCriteriaCount,
targetCountDescription: data.targetDescription,
});
this.criteriaCategoryView = (_g = data.criteriaCategories) === null || _g === void 0 ? void 0 : _g.question,
this.progressTypesView = this.getViewNameForProgressType(data.progressType),
this.displaySelectionView = this.getViewNameForRewardType(data.displaySelection),
this.displayDescriptionsView = (_h = data.displayDescription) === null || _h === void 0 ? void 0 : _h.question,
this.criteriaCategorySelectView = (_j = data.displayField) === null || _j === void 0 ? void 0 : _j.question;
this.rewardPoints = data.rewardPoints || 0;
this.schemeData = data === null || data === void 0 ? void 0 : data.selectedScheme;
this.teamDetails = this.getUpdatedTeams(data.teams);
this.criteriaCategoryValue = (_k = data.criteriaCategories) === null || _k === void 0 ? void 0 : _k._id;
this.progressTypesValue = data.progressType;
this.displaySelectionValue = data.displaySelection;
this.criteriaCategorySelectValue = (_l = data === null || data === void 0 ? void 0 : data.displayField) === null || _l === void 0 ? void 0 : _l._id;
this.displayDescriptionsValue = (_m = data === null || data === void 0 ? void 0 : data.displayDescription) === null || _m === void 0 ? void 0 : _m._id;
this.rewardTypesValue = data === null || data === void 0 ? void 0 : data.rewardType;
}
getViewNameForProgressType(key) {
switch (key) {
case 1:
return 'Leader Board';
case 2:
return 'Digital Stamp';
}
}
getViewNameForRewardType(key) {
switch (key) {
case 1:
return 'See own only';
case 2:
return 'See own or other';
case 3:
return 'See own + others';
case 4:
return 'See own + all combined';
}
}
getBoardsAndChannels() {
this.gamificationService.getBoardsAndChannels().subscribe(({ data: { boards, channels, customForms, pointSystems, scheme } }) => {
this.allChannelAndBoards = {
boards,
channels,
customForms,
pointSystems,
scheme,
};
const boardData = boards.map(({ _id, wallName }) => ({
_id,
wallName,
}));
const channelData = channels.map(({ _id, name }) => ({ _id, name }));
const customFromData = customForms.map(({ _id, title }) => ({
_id,
title,
}));
this.boardData = boardData;
this.channelData = channelData;
this.customfromData = customFromData;
this.poinstSystemData = pointSystems;
// this.schemeDataArr = scheme;
}, (error) => {
// this.toastService.error(error.error.message);
});
}
deleteTeamEntry(index) {
this.teamDetails.splice(index, 1);
this.toastService.success('Team removed successfully', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}
getAllFieldsForCustomForm(id) {
const subscribe = this.gamificationService
.getFieldsfromCustomForm(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const data = response.data;
this.criteriaCategory = this.getRequiredFieldData(response.data, 'category_criteria');
this.displayDescriptions = this.getRequiredFieldData(response.data, 'display_desc');
this.displayFieldsData = this.getRequiredFieldData(response.data, 'fields_data');
}, (error) => {
this.toastService.error('Something went wrong');
});
}
getRequiredFieldData(items, key) {
if (key == "category_criteria") {
let filteredData = [];
items.filter((value) => ((value.type == 11) || (value.type == 2))).map((data) => {
let derivedData = {
value: data === null || data === void 0 ? void 0 : data._id,
key: data === null || data === void 0 ? void 0 : data.question,
};
filteredData.push(derivedData);
});
return filteredData;
}
if (key == "display_desc") {
let filteredData = [];
items.filter((value) => (value.type == 10)).map((data) => {
let derivedData = {
value: data === null || data === void 0 ? void 0 : data._id,
key: data === null || data === void 0 ? void 0 : data.question,
};
filteredData.push(derivedData);
});
return filteredData;
}
let filteredData = [];
items.filter((value) => ((value.type == 1) || (value.type == 8))).map((data) => {
let derivedData = {
value: data === null || data === void 0 ? void 0 : data._id,
key: data === null || data === void 0 ? void 0 : data.question,
};
filteredData.push(derivedData);
});
return filteredData;
}
editTeamDetail(item, index) {
this.isEditTeam = true;
this.editTeamIndex = index;
this.teamsGroup.patchValue({
icon: item === null || item === void 0 ? void 0 : item.icon,
title: item === null || item === void 0 ? void 0 : item.title,
id: item === null || item === void 0 ? void 0 : item.id,
teamUserDetails: item === null || item === void 0 ? void 0 : item.teamUserDetails,
});
this.teamUserDetails = item === null || item === void 0 ? void 0 : item.teamUserDetails;
}
iconUpload(event, key) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.gamificationService.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
var _a, _b;
if (key == "teamLogo") {
this.teamsGroup.patchValue({
icon: (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.exactPath,
});
}
else {
this.discriptioGroup.patchValue({
icon: (_b = data === null || data === void 0 ? void 0 : data.data) === null || _b === void 0 ? void 0 : _b.exactPath,
});
}
}, (error) => {
var _a;
this.imageLoader = false;
this.toastService.error((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
uploadImage(image) {
const fileUpload = this.gamificationService
.uploadImageChallange(image[(image === null || image === void 0 ? void 0 : image.length) - 1])
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.imagePreview = data;
}, (error) => {
});
}
onDeleteIcon() {
var _a;
this.discriptioGroup.patchValue({
icon: '',
});
((_a = this.myInputVariable) === null || _a === void 0 ? void 0 : _a.nativeElement) ? this.myInputVariable.nativeElement.value = '' : false;
}
onDeleteTeamIcon() {
this.teamsGroup.patchValue({
icon: '',
});
}
badgeiconUpload(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.gamificationService.uploadFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.createRanks.patchValue({
icon: data === null || data === void 0 ? void 0 : data.link,
});
}, (error) => {
console.error(error);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
onDeleteBadgeImage() {
this.createRanks.patchValue({
icon: '',
});
}
onSeachAdmin(value) {
this.userPTable.limit = 10;
this.userPTable.search = value.term;
this.loadAdminUsers();
}
loadMoreAdminItems(value) {
this.userPTable.limit = this.userPTable.limit + 10;
this.loadAdminUsers();
}
onClearAdminDropdown(value) {
if (value === undefined) {
this.discriptioGroup.patchValue({
admin: [],
});
this.userPTable.search = '';
this.loadAdminUsers();
this.fieldNeedsToUpdate = [];
this.userPTable.data = [];
}
}
get AdminFieldsControl() {
return this.adminGroup.get('administrators');
}
addLoginFields(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const Control = this.AdminFieldsControl;
const index = yield Control.value.findIndex((x) => x._id === value._id);
if (index > -1) {
this.toastService.error(`${value.name} is already added`, '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
this.adminSelect = [];
}
else {
let field = this.formBuilder.group({
string: [value.name, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
_id: [value._id, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required])],
});
Control.push(field);
this.adminSelect = [];
}
});
}
deleteAdmin(index) {
const Control = this.AdminFieldsControl;
Control.removeAt(index);
}
loadAdminUsers() {
// const { data, ...rest } = this.userPTable;
const subscribe = this.setupService
.getAdminWithfilter()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
var _a;
// const { count, data } = response.data;
this.userPTable.data = response.data;
if (this.userPTable.data && this.userPTable.data.length > 0) {
const Control = this.AdminFieldsControl;
const defaultSelectedData = (_a = this.userPTable.data) === null || _a === void 0 ? void 0 : _a.find((x) => x._id == this.loggedInUserId);
let dataIndex = Control.value.findIndex((item) => item._id == defaultSelectedData._id);
if (dataIndex <= -1 && defaultSelectedData) {
let field = this.formBuilder.group({
string: [
defaultSelectedData === null || defaultSelectedData === void 0 ? void 0 : defaultSelectedData.name,
_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]),
],
_id: [
defaultSelectedData === null || defaultSelectedData === void 0 ? void 0 : defaultSelectedData._id,
_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]),
],
});
Control.push(field);
}
}
}, (error) => {
this.userPTable.data = [];
// this.tostService.error('No list found');
});
}
getBusinessUnitList() {
let allBUAccess = JSON.parse(localStorage.getItem('allBUAccess'));
if (allBUAccess == 1) {
this.planBuUnitDropDown.unshift({
_id: 'all',
fullName: 'All Business Units',
});
}
this.planBuUnitDropDownLoading = true;
const payload = { userId: this.loggedInUserId };
this.buUnit.getBusinessUnit(payload).subscribe((res) => {
var _a, _b, _c, _d, _e;
if (((_c = (_b = (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.planBussinessUnitId) === null || _c === void 0 ? void 0 : _c.length) > 0) {
this.planBuUnitDropDown.push(...(_e = (_d = res === null || res === void 0 ? void 0 : res.data) === null || _d === void 0 ? void 0 : _d.data) === null || _e === void 0 ? void 0 : _e.planBussinessUnitId);
}
this.planBuUnitDropDownLoading = false;
}, (err) => {
this.planBuUnitDropDownLoading = false;
});
}
addDay(d) {
if (this.addedDay.indexOf(d) == -1) {
this.addedDay.push(d);
}
else {
this.addedDay.splice(this.addedDay.indexOf(d), 1);
}
}
addBundle() {
this.addedDay.forEach((val) => {
const bundle = {
day: val.dayName,
count: this.bundleCount,
};
this.bundleArr.push(bundle);
});
this.addedDay = [];
}
clearBundleLabel() { }
initAssignuserDetailsFrom() {
return (this.assignUserDetailsForm = this.formBuilder.group({
businessUnits: this.formBuilder.array([], [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]),
buFilterType: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
appointments: this.formBuilder.array([]),
subSkillSets: this.formBuilder.array([]),
user: this.formBuilder.array([]),
admin: this.formBuilder.array([]),
allBuToken: '',
allBuTokenStaffId: '',
customField: this.formBuilder.array([]),
}));
}
onClearPlanBuUnitDropdown(event) {
console.log(event);
}
validateURLImage(str) {
console.log('ssss', str);
const e = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["generateImageUrl"])(str);
console.log('eeee', e);
return e;
}
}
AddEditChallengesComponent.ɵfac = function AddEditChallengesComponent_Factory(t) { return new (t || AddEditChallengesComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__["CustomFieldService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_11__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_12__["StorageService"])); };
AddEditChallengesComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: AddEditChallengesComponent, selectors: [["add-edit-challenges"]], viewQuery: function AddEditChallengesComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵviewQuery"](_c1, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.stepper = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵloadQuery"]()) && (ctx.myInputVariable = _t.first);
} }, inputs: { challangesData: "challangesData", challangesId: "challangesId", isUserEdited: "isUserEdited" }, outputs: { overViewEvent: "overViewEvent", toggleSideNav: "toggleSideNav" }, decls: 139, vars: 30, consts: [[1, "card"], [1, "card-header", "flexi-header", "p-4"], ["id", "parita", 1, "card-body"], [3, "linear"], ["stepper", ""], [3, "stepControl"], [3, "formGroup"], ["matStepLabel", ""], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], [1, "card-body"], [1, "row"], [1, "col-md-12", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "font-weight-bold"], [1, "field-mandatory"], ["type", "text", "maxlength", "100", "placeholder", "Title", "formControlName", "title", "required", "", 1, "form-control"], ["maxlength", "1000", "name", "", "id", "", "cols", "5", "rows", "5", "formControlName", "description", 1, "form-control"], [1, "col-md-3"], [1, "custom-file", "mt-0", "pt-4", "pb-4"], ["type", "file", "accept", "image/png, image/gif, image/jpeg", "id", "c", 1, "custom-file-input", 3, "change"], ["myInputVariable", ""], ["for", "i", 1, "custom-file-label"], ["class", "col-md-3", 4, "ngIf"], [1, "form-check", "m-3"], ["type", "checkbox", "value", "", "formControlName", "leaderBoard", "id", "flexCheckChecked", 1, "form-check-input"], ["for", "flexCheckChecked", 1, "form-check-label", "ml-2", "checkbox-label"], ["for", "challengeParticipant", 1, "pb-2", "font-weight-bold"], [1, "criteria-radio", "col-6"], ["type", "radio", "id", "individual", "formControlName", "isTeam", 1, "mt-1", "ml-2", 3, "value", "click"], ["for", "individual"], ["type", "radio", "id", "team", "formControlName", "isTeam", 1, "mt-1", "ml-2", 3, "value", "click"], ["for", "team"], [1, "col-md-6"], [1, "row", "mt-2"], ["for", "activeEndDate", 1, "pb-2", "font-weight-bold"], ["formControlName", "publishStart", 3, "disabled"], ["formControlName", "publishEnd"], ["formControlName", "challengeStart", 3, "disabled"], ["formControlName", "challengeEnd"], [1, "btn", "btn-success", "mt-2", 3, "click"], [3, "stepControl", 4, "ngIf"], ["class", "card my-3 w-100", 4, "ngIf"], [1, "col-md-4"], [1, "font-weight-bold"], ["bindLabel", "name", "placeholder", "Admin", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "loading", "ngModel", "ngModelOptions", "virtualScroll", "change", "search", "scrollToEnd", "ngModelChange", "clear"], ["class", "labels mb-1 mr-1", "formArrayName", "administrators", 4, "ngFor", "ngForOf"], [1, "flex-direction", "mt-2"], [1, "btn", "btn-danger", 3, "click"], [1, "btn", "btn-success", "ml-2", 3, "disabled", "click"], [1, "image-with-delete-icon", "width-180"], ["title", "Delete", 1, "fa", "fa-close", 3, "click"], ["crossorigin", "anonymous", "alt", "Image Preview", 3, "src"], [1, "col-md-4", "mt-1"], ["type", "text", "maxlength", "100", "placeholder", "Team Name", "formControlName", "title", "required", "", 1, "form-control"], ["accept", "image/png, image/gif, image/jpeg", "type", "file", "id", "c", 1, "custom-file-input", 3, "change"], [3, "userDetails", "isAdminView", "moduleName", "onSubmitAssignUsers"], [1, "justify-content-center", "text-center", "align-items-center"], [1, "btn", "btn-primary", "mt-4", "mb-4", 3, "click"], [1, "btn", "btn-warning", "mt-4", 3, "click"], [1, "btn", "btn-danger", "ml-1", "mt-4", 3, "click"], [1, "image-with-delete-icon", "logo-image-with-delete-icon", "width-50"], ["crossorigin", "anonymous", "alt", "Image Preview", 2, "height", "80px", "width", "80px", "border-radius", "50%", 3, "src"], [1, "table-responsive"], [1, "table"], [1, "p-3"], ["scope", "col", 1, "p-3"], [4, "ngFor", "ngForOf"], ["crossorigin", "anonymous", 2, "height", "50px", "width", "50px", "border-radius", "50%", 3, "src"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-pencil-square-o"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "disabled", "click"], ["aria-hidden", "true", 1, "fa", "fa-trash"], [1, "criteria-source"], [1, "criteria-source-radio", "col-10"], ["type", "radio", "formControlName", "criteriaType", "id", "1", "name", "criteriaType", 1, "mt-1", "ml-2", 3, "value", "click"], ["for", "channel"], ["type", "radio", "formControlName", "criteriaType", "id", "2", "name", "criteriaType", 1, "mt-1", "ml-2", 3, "value", "click"], ["for", "boards"], ["type", "radio", "formControlName", "criteriaType", "id", "3", "name", "criteriaType", 1, "mt-1", "ml-2", 3, "value", "click"], ["for", "system"], ["type", "radio", "formControlName", "criteriaType", "id", "4", "name", "criteriaType", 1, "mt-1", "ml-2", 3, "value", "click"], ["for", "direct-rewards"], ["type", "radio", "formControlName", "criteriaType", "id", "5", "name", "criteriaType", 1, "mt-1", "ml-2", 3, "value", "click"], ["for", "custom-form"], ["type", "radio", "formControlName", "criteriaType", "id", "6", "name", "criteriaType", 1, "mt-1", "ml-2", 3, "value", "click"], [4, "ngIf"], [1, "channels-section", "col-12", "flex-direction", "mt-3"], ["bindLabel", "name", "placeholder", "Select Channels", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [1, "criteria-source", "mt-3"], [1, "channels-section", "col-12", "flex-direction"], ["bindLabel", "name", "placeholder", "Select Criteria", "appendTo", "body", 1, "custom", 3, "ngModel", "ngModelOptions", "multiple", "clearable", "change", "ngModelChange"], ["type", "radio", "id", "single", "formControlName", "criteriaCountType", 1, "mt-1", "ml-2", 3, "value", "click"], [1, "form-group", "ml-1"], ["for", "criteria-count", 1, "criteria-subtext"], ["type", "number", "min", "1", "placeholder", "Criteria Count", "formControlName", "criteriaCount", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 10) return false;", 1, "form-control", 3, "value"], ["type", "radio", "id", "bundled", "formControlName", "criteriaCountType", 1, "mt-1", "ml-2", 3, "value"], ["for", "reward-points", 1, "criteria-subtext"], ["type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", "min", "0", "placeholder", "Reward Points", "formControlName", "rewardPoints", 1, "form-control"], [1, "criteria-subtext", "mt-0"], [1, "criteria-radio", "col-3"], ["type", "radio", "id", "1", "formControlName", "nonRewardPointSystemEnabled", 1, "mt-1", "ml-2", 3, "value"], ["for", "yes"], ["type", "radio", "id", "2", "formControlName", "nonRewardPointSystemEnabled", 1, "mt-1", "ml-2", 3, "value"], ["for", "no"], ["class", "row", 4, "ngIf"], ["class", "reward-points-button", 4, "ngIf"], [1, "criteria-source", "mt-0"], ["type", "radio", "id", "1", "formControlName", "stopAfterAchievement", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "formControlName", "stopAfterAchievement", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "1", "formControlName", "setLimitToMaxRewards", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "formControlName", "setLimitToMaxRewards", 1, "mt-1", "ml-2", 3, "value"], [1, "criteria-subtext", "mt-3"], ["type", "radio", "id", "1", "formControlName", "badgeTiering", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "formControlName", "badgeTiering", 1, "mt-1", "ml-2", 3, "value"], ["class", "col-8", 4, "ngIf"], [3, "value"], [1, "text-items", "list-ui", "selected-list"], ["crossorigin", "anonymous", "class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 3, "click", 4, "ngIf"], ["crossorigin", "anonymous", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", 3, "click"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "change"], [1, "text-items", "list-ui", "mt-3"], ["crossorigin", "anonymous", "class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 4, "ngIf"], ["crossorigin", "anonymous", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3"], [1, "reward-points-button"], ["type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", "min", "0", "placeholder", "setLimitToMaxRewards", "formControlName", "maximumRewards", "required", "", 1, "form-control"], [1, "table", "borderless"], ["type", "text", "placeholder", "Badge", "formControlName", "name", "required", "", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==50) return false;", 1, "form-control"], [1, "ml-3"], ["type", "number", "min", "0", "placeholder", "From", "formControlName", "startRange", "required", "", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", 1, "form-control"], [1, "columns"], ["type", "number", "min", "0", "placeholder", "To", "formControlName", "endRange", "required", "", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", 1, "form-control", "columns"], ["style", "\n width: 130px;\n height: 30px;\n margin-left: 10px;\n ", "class", "custom-file", 4, "ngIf"], [1, "add-button", "columns"], [1, "btn", "btn-submit", "btn-lg", "ml-1", "pl-3", "pr-3", 3, "click"], [1, "custom-file", 2, "width", "130px", "height", "30px", "margin-left", "10px"], ["type", "file", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "80%", "opacity", "0", 3, "change"], ["for", "b", 1, "custom-file-label", "columns"], [1, "image-with-delete-icon", "ml-5", "ml-0", "badge-image", 2, "width", "100px"], ["title", "Delete", "for", "4", 1, "fa", "fa-close", 3, "click"], ["crossorigin", "anonymous", "id", "4", "alt", "Image Preview", 3, "src"], [1, "col-8"], ["scope", "col"], [1, "mt-2"], ["width", "50px", "height", "50px", "alt", "icon Preview", "crossorigin", "anonymous", 1, "mt-2", 3, "src"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-3", "mt-2", 3, "click"], ["bindLabel", "name", "placeholder", "Select Board", "appendTo", "body", 1, "custom", 3, "virtualScroll", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select Criteria", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["type", "number", "min", "0", "placeholder", "Reward Points", "onKeyPress", "if(this.value.length==10) return false;", "formControlName", "rewardPoints", 1, "form-control"], ["class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 3, "click", 4, "ngIf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-3", 3, "click"], ["class", "ml-3", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 4, "ngIf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-3"], ["class", "custom-file", "style", "\n width: 130px;\n height: 30px;\n margin-left: 10px;\n ", 4, "ngIf"], ["for", "b", 1, "custom-file-label"], ["id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], [1, "col-md-4", "ml-1"], [1, "col-3", "mt-2"], ["type", "number", "formControlName", "rewardPoints", "required", "", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", 1, "form-control"], ["bindLabel", "name", "placeholder", "Select Custom Form", "appendTo", "body", 1, "custom", 3, "virtualScroll", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], [1, "flex-direction"], [1, "switch", "criteria-source", "mt-3", "ml-4"], ["type", "checkbox", "formControlName", "isCriteriaCategory", 3, "checked"], [1, "slider", "round"], ["class", "channels-section col-12 flex-direction", 4, "ngIf"], ["type", "radio", "id", "single", "formControlName", "criteriaCountType", 1, "mt-1", "ml-2", 3, "value"], ["type", "checkbox", "formControlName", "isRewardChallenge", 3, "checked"], ["type", "checkbox", "formControlName", "isProgressSetup", 3, "checked"], ["bindLabel", "name", "placeholder", "Select Criteria Category", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "change", "ngModelChange"], ["bindLabel", "fieldName", "placeholder", "Select workflow status", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["class", "col-md-4", 4, "ngIf"], ["formArrayName", "fieldOptions", 4, "ngFor", "ngForOf"], ["bindLabel", "fieldStatusValue", "placeholder", "", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["formArrayName", "fieldOptions"], [1, "text-items", "list-ui", "mt-2", 3, "formGroupName"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", 3, "click"], [1, "criteria-radio", "col-8"], ["class", "row pt-4 pl-4 pb-2", 4, "ngIf"], [1, "form-group", "col-md-3"], [1, "row", "pt-4", "pl-4", "pb-2"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", 1, "custom", 3, "multiple", "ngModel", "clearable", "change", "ngModelChange"], [1, "text-items", "list-ui"], [1, "my-3"], ["bindLabel", "name", "placeholder", "Select Progress Type", "appendTo", "body", 1, "custom", 3, "disabled", "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select Display Selection", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select Display Description", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["bindLabel", "name", "placeholder", "Select Display Fields", "appendTo", "body", 1, "custom", 3, "multiple", "clearable", "ngModel", "ngModelOptions", "change", "ngModelChange"], ["type", "checkbox", "formControlName", "isTargetCriteria", 3, "checked"], [1, "text-items", "list-ui", "selected-list", 3, "disabled"], ["type", "number", "min", "0", "placeholder", "Criteria Count", "onKeyPress", "if(this.value.length==10) return false;", "formControlName", "targetCount", 1, "form-control"], ["type", "text", "placeholder", "Description", "onKeyPress", "", "formControlName", "targetCountDescription", 1, "form-control"], [1, "text-theme", "font-weight-500"], ["bindLabel", "schemeName", "placeholder", "Select scheme", "appendTo", "body", 1, "custom", 3, "items", "virtualScroll", "clearable", "multiple", "closeOnSelect", "searchable", "ngModel", "ngModelOptions", "ngModelChange"], ["bindLabel", "key", "placeholder", "Select Criteria", "appendTo", "body", 1, "custom", 3, "items", "multiple", "clearable", "ngModel", "ngModelOptions", "ngModelChange", "change"], [1, "form-row"], [1, "form-group", "col-md-6"], ["class", "col-md-12", 4, "ngIf"], [1, "col-md-12"], [1, "form-group", "col-md-4"], ["class", "dayButton", 3, "selected", "click", 4, "ngFor", "ngForOf"], ["type", "text", "placeholder", "", 1, "form-control", 3, "ngModel", "ngModelOptions", "ngModelChange"], [1, "form-group", "col-md-6", "align-self-end"], [1, "btn", "btn-danger"], [1, "btn", "btn-primary", 3, "click"], [1, "dayButton", 3, "click"], ["class", "labels my-1", 4, "ngFor", "ngForOf"], [1, "labels", "my-1"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], [1, "form-check", "form-check-inline"], ["type", "radio", "formControlName", "criteriaType", "id", "1", "name", "criteriaType", "disabled", "", 1, "form-check-input", 3, "value"], ["for", "channel", 1, "form-check-label"], ["type", "radio", "formControlName", "criteriaType", "id", "2", "name", "criteriaType", "disabled", "", 1, "form-check-input", 3, "value"], ["for", "boards", 1, "form-check-label"], ["type", "radio", "formControlName", "criteriaType", "id", "3", "name", "criteriaType", "disabled", "", 1, "form-check-input", 3, "value"], ["for", "system", 1, "form-check-label"], ["type", "radio", "formControlName", "criteriaType", "id", "4", "name", "criteriaType", "disabled", "", 1, "form-check-input", 3, "value"], ["for", "direct-rewards", 1, "form-check-label"], ["type", "radio", "formControlName", "criteriaType", "id", "5", "name", "criteriaType", "disabled", "", 1, "form-check-input", 3, "value"], ["for", "custom-form", 1, "form-check-label"], ["type", "radio", "formControlName", "criteriaType", "id", "6", "name", "criteriaType", "disabled", "", 1, "form-check-input", 3, "value"], [1, "form-check-label"], ["disabled", "", 1, "form-control"], ["type", "radio", "id", "single", "formControlName", "criteriaCountType", "disabled", "", 1, "mt-1", "ml-2", 3, "value", "click"], ["type", "number", "min", "1", "disabled", "", "placeholder", "Criteria Count", "formControlName", "criteriaCount", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 10) return false;", 1, "form-control", 3, "value"], ["type", "radio", "id", "bundled", "formControlName", "criteriaCountType", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==10) return false;", "min", "0", "placeholder", "Reward Points", "formControlName", "rewardPoints", "disabled", "", 1, "form-control"], ["type", "radio", "id", "1", "disabled", "", "formControlName", "nonRewardPointSystemEnabled", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "disabled", "", "formControlName", "nonRewardPointSystemEnabled", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "1", "disabled", "", "formControlName", "stopAfterAchievement", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "disabled", "", "formControlName", "stopAfterAchievement", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "1", "disabled", "", "formControlName", "setLimitToMaxRewards", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "disabled", "", "formControlName", "setLimitToMaxRewards", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "1", "disabled", "", "formControlName", "badgeTiering", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "2", "disabled", "", "formControlName", "badgeTiering", 1, "mt-1", "ml-2", 3, "value"], ["type", "file", "disabled", "", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "80%", "opacity", "0"], ["type", "radio", "id", "single", "disabled", "", "formControlName", "criteriaCountType", 1, "mt-1", "ml-2", 3, "value"], ["type", "number", "min", "1", "placeholder", "Criteria Count", "formControlName", "criteriaCount", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 10) return false;", "disabled", "", 1, "form-control", 3, "value"], ["type", "radio", "id", "bundled", "disabled", "", "formControlName", "criteriaCountType", 1, "mt-1", "ml-2", 3, "value"], ["type", "number", "min", "0", "placeholder", "Reward Points", "onKeyPress", "if(this.value.length==10) return false;", "formControlName", "rewardPoints", "disabled", "", 1, "form-control"], ["name", "cars", "id", "cars", "disabled", ""], [1, "col-3", "ml-1"], [1, "col-4"], [1, "row", "ml-0"], ["type", "text", "formControlName", "rewardPoints", "disabled", "", "required", "", 1, "form-control"], [1, "col-4", 2, "margin-top", "35px"], ["class", "ml-0", "src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 4, "ngIf"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", "crossorigin", "anonymous", 1, "ml-0"], ["class", "btn btn-clear", 3, "click", 4, "ngIf"], [1, "btn", "btn-add", "p-2", "m-1", 3, "disabled", "click"], [1, "btn", "btn-clear", 3, "click"], ["type", "checkbox", "formControlName", "isCriteriaCategory", "disabled", "", 3, "checked"], ["type", "checkbox", "formControlName", "isRewardChallenge", "disabled", "", 3, "checked"], ["type", "checkbox", "formControlName", "isProgressSetup", "disabled", "", 3, "checked"], [1, "text-items", "list-ui", "mt-2"], ["type", "radio", "id", "2", "formControlName", "nonRewardPointSystemEnabled", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["type", "radio", "id", "1", "formControlName", "nonRewardPointSystemEnabled", "disabled", "", 1, "mt-1", "ml-2", 3, "value"], ["type", "checkbox", "formControlName", "isTargetCriteria", "disabled", "", 3, "checked"], ["type", "number", "min", "0", "placeholder", "Criteria Count", "onKeyPress", "if(this.value.length==10) return false;", "formControlName", "targetCount", "disabled", "", 1, "form-control"], ["type", "text", "placeholder", "Description", "onKeyPress", "", "formControlName", "targetCountDescription", "disabled", "", 1, "form-control"], ["bindLabel", "schemeName", "appendTo", "body", "disabled", "", 1, "custom", 3, "items", "virtualScroll", "clearable", "multiple", "closeOnSelect", "searchable", "ngModel", "ngModelOptions", "ngModelChange"], ["class", "form-group", 4, "ngIf"], ["bindLabel", "key", "appendTo", "body", "disabled", "", 1, "custom", 3, "items", "ngModel", "ngModelOptions", "ngModelChange"], ["for", "", 1, "text-theme", "font-weight-bold"], ["type", "radio", "id", "single", "formControlName", "criteriaCountType", "disabled", "", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "bundled", "formControlName", "criteriaCountType", "disabled", "", 1, "form-check-input", 3, "value"], ["for", "criteria-count", 1, ""], ["for", "reward-points", 1, ""], ["type", "number", "min", "0", "placeholder", "Reward Points", "formControlName", "rewardPoints", "disabled", "", 1, "form-control"], ["for", ""], ["type", "radio", "id", "1", "formControlName", "nonRewardPointSystemEnabled", "disabled", "", 1, "form-check-input", 3, "value"], ["for", "yes", 1, "form-check-label"], ["type", "radio", "id", "2", "formControlName", "nonRewardPointSystemEnabled", "disabled", "", 1, "form-check-input", 3, "value"], ["for", "no", 1, "form-check-label"], ["class", "btn btn-danger", 4, "ngIf"], ["type", "radio", "id", "1", "formControlName", "stopAfterAchievement", "disabled", "", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "2", "formControlName", "stopAfterAchievement", "disabled", "", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "1", "formControlName", "setLimitToMaxRewards", "disabled", "", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "2", "formControlName", "setLimitToMaxRewards", "disabled", "", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "1", "formControlName", "badgeTiering", "disabled", "", 1, "form-check-input", 3, "value"], ["type", "radio", "id", "2", "formControlName", "badgeTiering", "disabled", "", 1, "form-check-input", 3, "value"], ["class", "labels mb-1 mr-1", 4, "ngFor", "ngForOf"], [1, "labels", "mb-1", "mr-1"], ["type", "text", "placeholder", "Badge", "formControlName", "name", "required", "", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length==50) return false;", "disabled", "", 1, "form-control"], ["class", "spinner-border spinner-border-sm ml-2", "role", "status", "aria-hidden", "true", 4, "ngIf"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "spinner-border-sm", "ml-2"], ["formArrayName", "administrators", 1, "labels", "mb-1", "mr-1"], [1, "d-flex", 3, "formGroupName"], [1, "material-icons", "bg-danger", "rounded", "btn-close", "ml-2", 3, "click"]], template: function AddEditChallengesComponent_Template(rf, ctx) { if (rf & 1) {
const _r452 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "CHALLENGE");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "mat-horizontal-stepper", 3, 4);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "mat-step", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, AddEditChallengesComponent_ng_template_9_Template, 1, 0, "ng-template", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, "Title");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](22, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](25, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "label", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "Description");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](30, "textarea", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](32, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](34, "input", 20, 21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_Template_input_change_34_listener($event) { return ctx.iconUpload($event, "teaser"); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "label", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37, " Choose file to upload ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](38, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](40, AddEditChallengesComponent_div_40_Template, 4, 1, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](41, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](42, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](44, " Leader board required ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](45, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "label", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](47, "Challenge participants selection");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](49, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "input", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_Template_input_click_50_listener() { return ctx.selectIsTeamRequired(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52, "Individual challenge");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](53, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](55, "input", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_Template_input_click_55_listener() { return ctx.selectIsTeamRequired(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](57, "Team challenge");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](58, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](59, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](60, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](62, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](64, "PUBLISH PERIOD");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](65, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](66, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](68, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](70, "Start Date and Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](72, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](73, "app-date-time-picker", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](74, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](75, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](77, "End Date and Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](78, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](79, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](80, "app-date-time-picker", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](81, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](82, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](83, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](84, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](85, "CHALLENGE PERIOD");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](86, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](87, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](88, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](89, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](90, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](91, "Start Date and Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](92, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](93, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](94, "app-date-time-picker", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](95, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](96, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](97, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](98, "End Date and Time");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](99, "span", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](100, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](101, "app-date-time-picker", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](102, "button", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_Template_button_click_102_listener() { return ctx.validateDescription(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](103, " Next ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](104, AddEditChallengesComponent_mat_step_104_Template, 39, 9, "mat-step", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](105, "mat-step", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](106, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](107, AddEditChallengesComponent_ng_template_107_Template, 1, 0, "ng-template", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](108, AddEditChallengesComponent_div_108_Template, 53, 17, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](109, AddEditChallengesComponent_div_109_Template, 47, 12, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](110, "mat-step", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](111, "form", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](112, AddEditChallengesComponent_ng_template_112_Template, 1, 0, "ng-template", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](113, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](114, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](115, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](116, "ADMINSTRATOR");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](117, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](118, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](119, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](120, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](121, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](122, "Admin ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](123, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](124, "ng-select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("change", function AddEditChallengesComponent_Template_ng_select_change_124_listener($event) { return ctx.addLoginFields($event); })("search", function AddEditChallengesComponent_Template_ng_select_search_124_listener($event) { return ctx.onSeachAdmin($event); })("scrollToEnd", function AddEditChallengesComponent_Template_ng_select_scrollToEnd_124_listener($event) { return ctx.loadMoreAdminItems($event); })("ngModelChange", function AddEditChallengesComponent_Template_ng_select_ngModelChange_124_listener($event) { return ctx.adminSelect = $event; })("clear", function AddEditChallengesComponent_Template_ng_select_clear_124_listener($event) { return ctx.onClearAdminDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](125, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](126, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](127, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](128, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](129, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](130, AddEditChallengesComponent_div_130_Template, 5, 2, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](131, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](132, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](133, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_Template_button_click_133_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r452); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](6); return _r0.previous(); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](134, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](135, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](136, "button", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function AddEditChallengesComponent_Template_button_click_136_listener() { return ctx.onSubmitEvents(ctx.rulesGroup.get("criteriaType").value); });
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](137);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](138, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("linear", ctx.isLinear);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.discriptioGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.discriptioGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](32);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.discriptioGroup.get("icon").value);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.progressTypesValue == 2 ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.challangesId ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵattribute"]("disabled", ctx.challangesId ? true : null);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx.challangesId ? true : false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx.challangesId ? true : false);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.discriptioGroup.get("isTeam").value === true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.rulesGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.rulesGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.challangesId);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.challangesId);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("stepControl", ctx.adminGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("formGroup", ctx.adminGroup);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("items", ctx.userPTable.data)("multiple", false)("searchable", true)("clearable", true)("loading", ctx.CustomFieldDropDownLoading)("ngModel", ctx.adminSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](29, _c2))("virtualScroll", true);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.AdminFieldsControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("disabled", ctx.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.isUserEdited ? "Update" : "Submit", " ");
} }, directives: [_angular_material_stepper__WEBPACK_IMPORTED_MODULE_13__["MatHorizontalStepper"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_13__["MatStep"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_material_stepper__WEBPACK_IMPORTED_MODULE_13__["MatStepLabel"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RequiredValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_15__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _shared_angular_date_time_picker_date_time_picker_html_date_time_picker_html_component__WEBPACK_IMPORTED_MODULE_16__["DateTimePickerComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_15__["NgForOf"], _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_18__["AssignUsersComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["PatternValidator"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_17__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupName"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.mat-stepper-horizontal[_ngcontent-%COMP%] {\n margin-top: 8px;\n}.mat-form-field[_ngcontent-%COMP%] {\n margin-top: 16px;\n}.text-items[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n}ul[_ngcontent-%COMP%] {\n list-style-type: none;\n}.parent[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n grid-column-gap: 10px;\n grid-row-gap: 10px;\n}.child[_ngcontent-%COMP%] {\n height: 20px;\n}.criteria-source[_ngcontent-%COMP%] {\n color: #A42138;\n font-weight: 500;\n}.criteria-subtext[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n color: black;\n font-weight: 500;\n}.criteria-source-radio[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}.flex-direction[_ngcontent-%COMP%] {\n display: flex;\n}.btn-save[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n width: 100px;\n}.btn-danger[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #d9534f;\n border-color: #d43f3a;\n width: auto;\n}.btn-success[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #5cb85c;\n border-color: #4cae4c;\n width: auto;\n}.btn-warning[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #f0ad4e;\n border-color: #eea236;\n width: auto;\n}.channels-section[_ngcontent-%COMP%] {\n position: relative;\n left: -20px;\n}.criteria-radio[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n width: 500px;\n}.reward-points-button[_ngcontent-%COMP%] {\n background-color: #a42138;\n font-size: 13px;\n font-weight: 500;\n line-height: 2;\n \n color: white;\n display: inline-block;\n text-align: center;\n vertical-align: baseline;\n border-radius: 0.25em;\n padding: 0.2em 0.6em 0.3em;\n margin: 5px 5px;\n position: relative;\n padding-right: 33px;\n border: none;\n}.reward-points-button-alt[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n border-color: #a42138;\n width: auto;\n}.rewards-heading[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: whitesmoke;\n padding: 10px 20px 10px 20px;\n border-radius: 5px;\n margin-top: 20px;\n}.assign-users-buttons[_ngcontent-%COMP%] {\n margin-top: 35px;\n}.borderless[_ngcontent-%COMP%] td[_ngcontent-%COMP%], .borderless[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n border: none;\n}.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: 0;\n}.selected-list[_ngcontent-%COMP%] {\n margin-top: 0px;\n}.checkbox-label[_ngcontent-%COMP%] {\n font-size: 14px;\n}.add-button[_ngcontent-%COMP%] {\n margin-top: -2px;\n}.columns[_ngcontent-%COMP%] {\n margin-left: 10px;\n}.badge-image[_ngcontent-%COMP%] {\n margin-top: -30px;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}.dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-left: 10px;\n font-weight: 500;\n color: #942a57 !important;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}.dayButton[_ngcontent-%COMP%]:hover, .selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #a42138;\n color: white !important;\n}.dayButton[_ngcontent-%COMP%]:hover {\n opacity: 0.8;\n}.dayButton[_ngcontent-%COMP%]:first-of-type {\n margin: 0;\n}.selected[_ngcontent-%COMP%] {\n opacity: 1 !important;\n}.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-block;\n border-radius: 4px;\n}.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n margin-bottom: 2px;\n}.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n cursor: pointer;\n}.text-theme[_ngcontent-%COMP%] {\n color: #a42138;\n}.logo-image-with-delete-icon[_ngcontent-%COMP%] {\n padding: 5px;\n display: flex;\n align-items: center;\n position: relative;\n z-index: 0;\n border-radius: 6px;\n overflow: hidden;\n width: 60%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2dhbWlmaWNhdGlvbi9jaGFsbGVuZ2VzL2FkZC1lZGl0LWNoYWxsZW5nZXMvYWRkLWVkaXQtY2hhbGxlbmdlcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxpREFBaUQsZUFBZSxDQUFDLGlDQUFpQyxDQUFDLHVEQUF1RCxlQUFlLENBQUMsMkRBQTJELFFBQVEsQ0FBQyx5Q0FBeUMsQ0FBQyxzQkFBc0IsQ0FBQyxpRUFBaUUseUNBQXlDLENBQUMsa0VBQWtFLDRCQUE0QixDQUFDLDJCQUEyQixDQUFDLCtEQUErRCx5QkFBeUIsQ0FBQyx3QkFBd0IsQ0FBQyx5RUFBeUUsb0JBQW9CLENBQUMsMEVBQTBFLENBQUMsbURBQW1ELHdCQUF3QixDQUFDLHlDQUF5QyxZQUFZLENBQUMsZ0NBQWdDLFVBQVUsQ0FBQyxxQkFBcUIsQ0FBQyxpQkFBaUIsQ0FBQyxxQkFBcUIsQ0FBQyxlQUFlLENBQUMsa0JBQWtCLENBQUMsc0NBQXNDLG1DQUFtQyxDQUFDLG9EQUFvRCxrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxnRUFBZ0Usa0JBQWtCLENBQUMsY0FBYyxDQUFDLG9FQUFvRSxVQUFVLENBQUMsaURBQWlELFdBQVcsQ0FBQywrRUFBK0UsT0FBTyxDQUFDLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxrQkFBa0IsQ0FBQywyRkFBMkYsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsb0dBQW9HLHdCQUF3QixDQUFDLHdCQUF3QixDQUFDLG9IQUFvSCxhQUFhLENBQUMsdUVBQXVFLGVBQWUsQ0FBQyxnQkFBZ0IsQ0FBQyxtRkFBbUYsaUJBQWlCLENBQUMsY0FBYyxDQUFDLGlGQUFpRixjQUFjLENBQUMsaUJBQWlCLENBQUMsd0JBQXdCLENBQUMsaUJBQWlCLENBQUMsZ0JBQWdCLENBQUMsNkZBQTZGLGNBQWMsQ0FBQyxlQUFlLENBQUMsbUdBQW1HLHdCQUF3QixDQUFDLG1IQUFtSCxnQkFBZ0IsQ0FBQywrSEFBK0gsY0FBYyxDQUFDLGlCQUFpQixDQUFDLGlHQUFpRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsZ0dBQWdHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxzR0FBc0csd0JBQXdCLENBQUMscUdBQXFHLDhCQUE4QixDQUFDLGlIQUFpSCw2QkFBNkIsQ0FBQyxpQkFBaUIsQ0FBQyxzR0FBc0csNkJBQTZCLENBQUMsa0hBQWtILGFBQWEsQ0FBQyw4QkFBOEIsQ0FBQyxpRkFBaUYsbUJBQW1CLENBQUMsNkZBQTZGLG1CQUFtQixDQUFDLHVGQUF1RixPQUFPLENBQUMsa0JBQWtCLENBQUMsZ0JBQWdCLENBQUMsbUdBQW1HLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLDZDQUE2QyxhQUFhLENBQUMsNEJBQTRCLG1CQUFtQixDQUFDLHdDQUF3QyxtQkFBbUIsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLGlCQUFpQixDQUFDLHlDQUF5QyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsNkNBQTZDLHFCQUFxQixDQUFDLHVDQUF1Qyx5Q0FBeUMsQ0FBQyxrQkFBa0IsQ0FBQywwQkFBMEIsQ0FBQyxtQkFBbUIscUJBQXFCLENBQUMscUJBQXFCLENBQUMsbUNBQW1DLENBQUMsTUFBTSxDQUFDLG9DQUFvQyxRQUFRLENBQUMsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsd0JBQXdCLENBQUMsZUFBZSxDQUFDLG1GQUFtRiw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyxpQ0FBaUMsV0FBVyxDQUFDLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLDJCQUEyQixDQUFDLGtCQUFrQixDQUFDLGlGQUFpRiwyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQyx1Q0FBdUMsNEJBQTRCLENBQUMsZUFBZSxDQUFDLHVDQUF1Qyx5QkFBeUIsQ0FBQyxlQUFlLENBQUMseURBQXlELHdCQUFnQixDQUFoQixnQkFBZ0IsQ0FBQyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsc0JBQXNCLENBQUMsY0FBYyxDQUFDLDRFQUE0RSxjQUFjLENBQUMsMEVBQTBFLHdCQUF3QixDQUFDLHlLQUF5Syx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsdURBQXVELHFCQUFxQixDQUFDLHNCQUFzQixDQUFDLGdCQUFnQixDQUFDLHFLQUFxSyxVQUFVLENBQUMsd0JBQXdCLENBQUMsdU1BQXVNLGVBQWUsQ0FBQyx3RUFBd0Usd0JBQXdCLENBQUMsVUFBVSxDQUFDLDBFQUEwRSxVQUFVLENBQUMsdUVBQXVFLGlCQUFpQixDQUFDLG1GQUFtRixrQkFBa0IsQ0FBQyxjQUFjLENBQUMscUVBQXFFLGFBQWEsQ0FBQyxlQUFlLENBQUMsaUJBQWlCLENBQUMsaUZBQWlGLGdCQUFnQixDQUFDLGVBQWUsQ0FBQywrQkFBK0IsYUFBYSxDQUFDLGdCQUFnQixDQ0UxNE87RUFDRSxlQUFBO0FBQUYsQ0FHQTtFQUNFLGdCQUFBO0FBQUYsQ0FFQTtFQUFZLHlCQUFBO0VBQ1YsZUFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLHVCQUFBO0VBQ0EsWUFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSx3QkFBQTtFQUNBLHFCQUFBO0VBQ0EsMEJBQUE7RUFDQSxlQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtBQUVGLENBQUE7RUFDRSxxQkFBQTtBQUdGLENBREE7RUFDRSxhQUFBO0VBQ0EscUNBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0FBSUYsQ0FGQTtFQUNFLFlBQUE7QUFLRixDQUdBO0VBQ0UsY0FBQTtFQUNBLGdCQUFBO0FBQUYsQ0FHQTtFQUNFLG1CQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0FBQUYsQ0FHQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtBQUFGLENBR0E7RUFDRSxhQUFBO0FBQUYsQ0FHQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtFQUNBLHFCQUFBO0VBQ0EsWUFBQTtBQUFGLENBR0E7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLFdBQUE7QUFBRixDQUdBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxXQUFBO0FBQUYsQ0FHQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtFQUNBLHFCQUFBO0VBQ0EsV0FBQTtBQUFGLENBR0E7RUFDRSxrQkFBQTtFQUNBLFdBQUE7QUFBRixDQUdBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0VBQ0EsWUFBQTtBQUFGLENBR0E7RUFDRSx5QkFBQTtFQUNFLGVBQUE7RUFDQSxnQkFBQTtFQUNBLGNBQUE7RUFDQSx1QkFBQTtFQUNBLFlBQUE7RUFDQSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0Esd0JBQUE7RUFDQSxxQkFBQTtFQUNBLDBCQUFBO0VBQ0EsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0FBQUosQ0FHQTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtFQUNBLHFCQUFBO0VBQ0EsV0FBQTtBQUFGLENBSUE7RUFDRSx5QkFBQTtFQUNBLGlCQUFBO0VBQ0EsNEJBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBREYsQ0FJQTtFQUNFLGdCQUFBO0FBREYsQ0FHQTtFQUNFLFlBQUE7QUFBRixDQUVBO0VBQ0UsVUFBQTtBQUNGLENBR0E7RUFDRSxlQUFBO0FBQUYsQ0FHQTtFQUNFLGVBQUE7QUFBRixDQUdBO0VBQ0UsZ0JBQUE7QUFBRixDQUdBO0VBQ0UsaUJBQUE7QUFBRixDQUdBO0VBQ0UsaUJBQUE7QUFBRixDQUdBO0VBQ0Usb0NBQUE7RUFDQSx1QkFBQTtBQUFGLENBR0E7RUFDRSxjQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7RUFDQSxnQkFBQTtFQUNBLHlCQUFBO0VBQ0EsNkJBQUE7RUFDQSxrQkFBQTtFQUNBLHVCQUFBO0FBQUYsQ0FHQTs7RUFFRSxhQUFBO0VBQ0EseUJBQUE7RUFDQSx1QkFBQTtBQUFGLENBR0E7RUFDRSxZQUFBO0FBQUYsQ0FHQTtFQUNFLFNBQUE7QUFBRixDQUdBO0VBQ0UscUJBQUE7QUFBRixDQUdBO0VBQ0UsZ0JBQUE7RUFDQSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0VBQ0EscUJBQUE7RUFDQSxrQkFBQTtBQUFGLENBRUU7RUFDRSxrQkFBQTtBQUFKLENBR0U7RUFDRSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7QUFESixDQUtBO0VBQ0UsY0FBQTtBQUZGLENBS0E7RUFDRSxZQUFBO0VBQ0EsYUFBQTtFQUNBLG1CQUFBO0VBQ0Esa0JBQUE7RUFDQSxVQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLFVBQUE7QUFGRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2dhbWlmaWNhdGlvbi9jaGFsbGVuZ2VzL2FkZC1lZGl0LWNoYWxsZW5nZXMvYWRkLWVkaXQtY2hhbGxlbmdlcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbi5tYXQtc3RlcHBlci1ob3Jpem9udGFsIHtcbiAgbWFyZ2luLXRvcDogOHB4O1xufVxuXG4ubWF0LWZvcm0tZmllbGQge1xuICBtYXJnaW4tdG9wOiAxNnB4O1xufVxuLnRleHQtaXRlbXN7YmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBsaW5lLWhlaWdodDogMjtcbiAgLyogbWFyZ2luLXJpZ2h0OiAycHg7ICovXG4gIGNvbG9yOiB3aGl0ZTtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTtcbiAgYm9yZGVyLXJhZGl1czogLjI1ZW07XG4gIHBhZGRpbmc6IC4yZW0gLjZlbSAuM2VtO1xuICBtYXJnaW46IDVweCA1cHg7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgcGFkZGluZy1yaWdodDogMzNweDtcbn1cbnVse1xuICBsaXN0LXN0eWxlLXR5cGU6IG5vbmU7XG59XG4ucGFyZW50IHtcbiAgZGlzcGxheTogZ3JpZDtcbiAgZ3JpZC10ZW1wbGF0ZS1jb2x1bW5zOiByZXBlYXQoNCwgMWZyKTtcbiAgZ3JpZC1jb2x1bW4tZ2FwOiAxMHB4O1xuICBncmlkLXJvdy1nYXA6IDEwcHg7XG59XG4uY2hpbGQge1xuICBoZWlnaHQ6IDIwcHg7XG5cbn1cblxuLy8gc2VsZWN0e1xuLy8gICBoZWlnaHQ6IDMwcHg7XG4vLyB9XG5cbi5jcml0ZXJpYS1zb3VyY2V7XG4gIGNvbG9yOiAjQTQyMTM4O1xuICBmb250LXdlaWdodDogNTAwO1xufVxuXG4uY3JpdGVyaWEtc3VidGV4dHtcbiAgbWFyZ2luLWJvdHRvbTogMXJlbTtcbiAgY29sb3I6IGJsYWNrO1xuICBmb250LXdlaWdodDogNTAwO1xufVxuXG4uY3JpdGVyaWEtc291cmNlLXJhZGlve1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG5cbi5mbGV4LWRpcmVjdGlvbntcbiAgZGlzcGxheTogZmxleDtcbn1cblxuLmJ0bi1zYXZle1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzMzN2FiNztcbiAgYm9yZGVyLWNvbG9yOiAjMmU2ZGE0O1xuICB3aWR0aDogMTAwcHg7XG59XG5cbi5idG4tZGFuZ2Vye1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2Q5NTM0ZjtcbiAgYm9yZGVyLWNvbG9yOiAjZDQzZjNhO1xuICB3aWR0aDogYXV0bztcbn1cblxuLmJ0bi1zdWNjZXNze1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzVjYjg1YztcbiAgYm9yZGVyLWNvbG9yOiAjNGNhZTRjO1xuICB3aWR0aDogYXV0bztcbn1cblxuLmJ0bi13YXJuaW5ne1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2YwYWQ0ZTtcbiAgYm9yZGVyLWNvbG9yOiAjZWVhMjM2O1xuICB3aWR0aDogYXV0bztcbn1cblxuLmNoYW5uZWxzLXNlY3Rpb257XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgbGVmdDogLTIwcHg7XG59XG5cbi5jcml0ZXJpYS1yYWRpb3tcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICB3aWR0aDogNTAwcHg7XG59XG5cbi5yZXdhcmQtcG9pbnRzLWJ1dHRvbntcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgICBmb250LXNpemU6IDEzcHg7XG4gICAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgICBsaW5lLWhlaWdodDogMjtcbiAgICAvKiBtYXJnaW4tcmlnaHQ6IDJweDsgKi9cbiAgICBjb2xvcjogd2hpdGU7XG4gICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmU7XG4gICAgYm9yZGVyLXJhZGl1czogLjI1ZW07XG4gICAgcGFkZGluZzogLjJlbSAuNmVtIC4zZW07XG4gICAgbWFyZ2luOiA1cHggNXB4O1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBwYWRkaW5nLXJpZ2h0OiAzM3B4O1xuICAgIGJvcmRlcjogbm9uZTtcbn1cblxuLnJld2FyZC1wb2ludHMtYnV0dG9uLWFsdHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG4gIGJvcmRlci1jb2xvcjogI2E0MjEzODtcbiAgd2lkdGg6IGF1dG87XG59XG5cblxuLnJld2FyZHMtaGVhZGluZ3tcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6IHdoaXRlc21va2U7XG4gIHBhZGRpbmc6IDEwcHggMjBweCAxMHB4IDIwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgbWFyZ2luLXRvcDogMjBweDtcbn1cblxuLmFzc2lnbi11c2Vycy1idXR0b25ze1xuICBtYXJnaW4tdG9wOiAzNXB4O1xufVxuLmJvcmRlcmxlc3MgdGQsIC5ib3JkZXJsZXNzIHRoIHtcbiAgYm9yZGVyOiBub25lO1xufVxuLnRhYmxlIHRoLCAudGFibGUgdGR7XG4gIHBhZGRpbmc6IDA7XG59XG5cblxuLnNlbGVjdGVkLWxpc3R7XG4gIG1hcmdpbi10b3A6IDBweDtcbn1cblxuLmNoZWNrYm94LWxhYmVse1xuICBmb250LXNpemU6IDE0cHg7XG59XG5cbi5hZGQtYnV0dG9ue1xuICBtYXJnaW4tdG9wOiAtMnB4O1xufVxuXG4uY29sdW1uc3tcbiAgbWFyZ2luLWxlZnQ6IDEwcHg7XG59XG5cbi5iYWRnZS1pbWFnZXtcbiAgbWFyZ2luLXRvcDogLTMwcHg7XG59XG5cbjo6bmctZGVlcCAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZCB7XG4gIGJhY2tncm91bmQtY29sb3I6ICMyMTk2ZjMgIWltcG9ydGFudDtcbiAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG59XG5cbi5kYXlCdXR0b24ge1xuICBoZWlnaHQ6IDIuNXJlbTtcbiAgd2lkdGg6IDIuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBtYXJnaW4tbGVmdDogMTBweDtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgY29sb3I6ICM5NDJhNTcgIWltcG9ydGFudDtcbiAgYm9yZGVyOiAxcHggc29saWQgdHJhbnNwYXJlbnQ7XG4gIGJvcmRlci1jb2xvcjogI2NjYztcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG59XG5cbi5kYXlCdXR0b246aG92ZXIsXG4uc2VsZWN0ZWQge1xuICBvdXRsaW5lOiBub25lO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cblxuLmRheUJ1dHRvbjpob3ZlciB7XG4gIG9wYWNpdHk6IDAuODtcbn1cblxuLmRheUJ1dHRvbjpmaXJzdC1vZi10eXBlIHtcbiAgbWFyZ2luOiAwO1xufVxuXG4uc2VsZWN0ZWQge1xuICBvcGFjaXR5OiAxICFpbXBvcnRhbnQ7XG59XG5cbi5sYWJlbHMge1xuICBwYWRkaW5nOiA2cHggOHB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcblxuICAudGV4dCB7XG4gICAgbWFyZ2luLWJvdHRvbTogMnB4O1xuICB9XG5cbiAgLmJ0bi1jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIHBhZGRpbmc6IDJweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gIH1cbn1cblxuLnRleHQtdGhlbWUge1xuICBjb2xvcjogI2E0MjEzODtcbn1cblxuLmxvZ28taW1hZ2Utd2l0aC1kZWxldGUtaWNvbiB7XG4gIHBhZGRpbmc6IDVweDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB6LWluZGV4OiAwO1xuICBib3JkZXItcmFkaXVzOiA2cHg7XG4gIG92ZXJmbG93OiBoaWRkZW47XG4gIHdpZHRoOiA2MCU7XG59Il19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](AddEditChallengesComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Component"],
args: [{
selector: 'add-edit-challenges',
templateUrl: './add-edit-challenges.component.html',
styleUrls: ['./add-edit-challenges.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_7__["GamificationService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_8__["UsersService"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_10__["CustomFieldService"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_11__["SetupService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_12__["StorageService"] }]; }, { stepper: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['stepper']
}], myInputVariable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["ViewChild"],
args: ['myInputVariable']
}], challangesData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"]
}], challangesId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], isUserEdited: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
}], toggleSideNav: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Output"],
args: ['toggleSideNav']
}] }); })();
/***/ }),
/***/ "pKXl":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/gamification/challenges/challenges-log/challenges-log.component.ts ***!
\************************************************************************************************/
/*! exports provided: ChallengesLogComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChallengesLogComponent", function() { return ChallengesLogComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/gamification/gamification.service */ "ErXd");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function ChallengesLogComponent_table_23_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ChallengesLogComponent_table_23_tr_14_Template_button_click_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r4); const item_r2 = ctx.$implicit; const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r3.onViewUser(item_r2); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r2 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r2 == null ? null : item_r2.user == null ? null : item_r2.user.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](5, 4, item_r2 == null ? null : item_r2.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2 == null ? null : item_r2.title);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r2 == null ? null : item_r2.logDescription, "");
} }
function ChallengesLogComponent_table_23_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function ChallengesLogComponent_table_23_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " USER ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function ChallengesLogComponent_table_23_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " DATE AND TIME ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function ChallengesLogComponent_table_23_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " CHALLENGE TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function ChallengesLogComponent_table_23_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.onSortUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " DESCRIPTION ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ChallengesLogComponent_table_23_tr_14_Template, 13, 6, "tr", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.usersPTable.data);
} }
class ChallengesLogComponent {
constructor(gamificationService, toastService, tableService) {
this.gamificationService = gamificationService;
this.toastService = toastService;
this.tableService = tableService;
this.ViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.logTableColumn = ['user.name', 'createdAt', 'title', 'logDescription', 'challenge.criteriaSourceType'];
this.tableQueryParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_3__["tableParam"];
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this.isTableLoading = false;
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortBy = direction;
this.usersPTable.sortWith = column;
direction && this.loadUsers();
}
onPageChangeUsers(page) {
var _a;
this.usersPTable.page = page;
this.tableQueryParams.start = (_a = this.usersPTable.data) === null || _a === void 0 ? void 0 : _a.length;
this.loadUsers();
}
onLimitChangeUsers() {
this.tableQueryParams.start = 0;
this.loadUsers();
}
ngOnInit() {
this.tableQueryParams.draw = 0;
this.loadUsers();
}
onViewUser(data) {
this.ViewEvent.emit(data);
}
loadUsers() {
// const { data, total, ...rest } = this.usersPTable
let tableCol = this.tableService.initializeTableParamsColums(this.logTableColumn, [0, 1, 2, 3, 4], [0, 1, 2, 3, 4]) || [];
this.tableQueryParams['userId'] = "";
this.tableQueryParams.columns = tableCol;
this.tableQueryParams.draw++;
this.tableQueryParams.length = this.usersPTable.limit;
this.isTableLoading = true;
const subscribe = this.gamificationService
.getLogs(this.tableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
// const { count, data } = response.data;
this.usersPTable.data = response === null || response === void 0 ? void 0 : response.data;
this.usersPTable.total = response === null || response === void 0 ? void 0 : response.recordsTotal;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
ChallengesLogComponent.ɵfac = function ChallengesLogComponent_Factory(t) { return new (t || ChallengesLogComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__["GamificationService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__["TableService"])); };
ChallengesLogComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ChallengesLogComponent, selectors: [["challenges-log"]], viewQuery: function ChallengesLogComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { ViewEvent: "ViewEvent" }, decls: 30, vars: 15, consts: [[1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-submit", "p-2", "m-1", 3, "click"]], template: function ChallengesLogComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "USER LOG LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ChallengesLogComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function ChallengesLogComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function ChallengesLogComponent_Template_input_search_21_listener() { return ctx.loadUsers(); })("keyup", function ChallengesLogComponent_Template_input_keyup_21_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function ChallengesLogComponent_Template_input_ngModelChange_21_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, ChallengesLogComponent_table_23_Template, 15, 1, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "app-skliton-loading-table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "ngb-pagination", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function ChallengesLogComponent_Template_ngb_pagination_pageChange_29_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function ChallengesLogComponent_Template_ngb_pagination_pageChange_29_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2dhbWlmaWNhdGlvbi9jaGFsbGVuZ2VzL2NoYWxsZW5nZXMtbG9nL2NoYWxsZW5nZXMtbG9nLmNvbXBvbmVudC5zY3NzIn0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ChallengesLogComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'challenges-log',
templateUrl: './challenges-log.component.html',
styleUrls: ['./challenges-log.component.scss']
}]
}], function () { return [{ type: src_app_users_service_gamification_gamification_service__WEBPACK_IMPORTED_MODULE_5__["GamificationService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__["TableService"] }]; }, { ViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "psV7":
/*!**************************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/manage-service/manage-service-tab/manage-service-tab.component.ts ***!
\**************************************************************************************************************************/
/*! exports provided: ManageServiceTabComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageServiceTabComponent", function() { return ManageServiceTabComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/constants */ "l207");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_loading_loading_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../../../../shared/loading/loading.component */ "Frqi");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function ManageServiceTabComponent_button_15_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_button_15_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const day_r5 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.onDaySelect(day_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const day_r5 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selected", day_r5 === ctx_r0.selectedDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", day_r5.name, " ");
} }
function ManageServiceTabComponent_ng_container_16_div_1_span_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const service_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" To ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, service_r9.serviceEndDateTime, "HH:mm"), " ");
} }
function ManageServiceTabComponent_ng_container_16_div_1_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Cancelled ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_ng_container_16_div_1_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_ng_container_16_div_1_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const service_r9 = ctx.$implicit; const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r13.onServiceSelect(service_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "span", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ManageServiceTabComponent_ng_container_16_div_1_span_8_Template, 3, 4, "span", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ManageServiceTabComponent_ng_container_16_div_1_div_11_Template, 2, 0, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const service_r9 = ctx.$implicit;
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selectedService", service_r9 === ctx_r8.selectedService);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r8.selectedServiceName.serviceName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](7, 8, service_r9.serviceStartDateTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r8.selectedServiceName.showServiceEndTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", service_r9.status === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", service_r9.confirmSlot, "/", service_r9.standBySlot, " ");
} }
function ManageServiceTabComponent_ng_container_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageServiceTabComponent_ng_container_16_div_1_Template, 14, 11, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.dayServices);
} }
function ManageServiceTabComponent_ng_template_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "No items found");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_div_19_form_6_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "End Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_div_19_form_6_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "StandBy Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_div_19_form_6_div_29_div_6_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_div_19_form_6_div_29_div_6_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r26); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r25.openConfirmationDialog("Are you sure you want to cancel this service?", "SERVICE", ctx_r25.selectedServiceName._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Cancel Service ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_div_19_form_6_div_29_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_div_19_form_6_div_29_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r28); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r27.adjustServicebtn = !ctx_r27.adjustServicebtn; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Adjust Service ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "i", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageServiceTabComponent_div_19_form_6_div_29_div_6_Template, 3, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r18.adjustServicebtn ? "expand_less" : "expand_more", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.selectedServiceName.cancelService);
} }
function ManageServiceTabComponent_div_19_form_6_div_30_Template(rf, ctx) { if (rf & 1) {
const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Confirm Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Adjust to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 54, 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_div_19_form_6_div_30_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r31); const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](10); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r30.adjustService(_r29.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_div_19_form_6_div_30_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r31); const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r32.adjustServicebtn = !ctx_r32.adjustServicebtn; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !_r29.value);
} }
function ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Cancelled By Admin ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Cancelled By User ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_ng_container_6_button_1_Template(rf, ctx) { if (rf & 1) {
const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_ng_container_6_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r41); const user_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r39.openConfirmationDialog("Are you sure you want to cancel this booking?", "BOOKING", user_r34); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Cancel Booking ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_ng_container_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_ng_container_6_button_1_Template, 2, 0, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r37.hasManageAccess && !ctx_r37.isServiceStarted(ctx_r37.selectedService.serviceStartDateTime) && ctx_r37.selectedService.status !== 2);
} }
function ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](3, 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_div_4_Template, 2, 0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_div_5_Template, 2, 0, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_ng_container_6_Template, 2, 1, "ng-container", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const user_r34 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](user_r34.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", user_r34.status);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
} }
function ManageServiceTabComponent_div_19_form_6_ng_container_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageServiceTabComponent_div_19_form_6_ng_container_36_div_1_Template, 7, 4, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r20.serviceDetailsForm.get("bookedUsers").value);
} }
function ManageServiceTabComponent_div_19_form_6_ng_template_37_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "No users booked");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageServiceTabComponent_div_19_form_6_div_39_Template(rf, ctx) { if (rf & 1) {
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "h3", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "button", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_div_19_form_6_div_39_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r43); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r42.cancelRequest(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "button", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceTabComponent_div_19_form_6_div_39_Template_button_click_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r43); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r44.displayConfirmation = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("show", ctx_r23.displayConfirmation);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r23.confirmationMessage, " ");
} }
function ManageServiceTabComponent_div_19_form_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "form", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Service Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Start Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ManageServiceTabComponent_div_19_form_6_div_14_Template, 4, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Created By");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Confirm Slot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, ManageServiceTabComponent_div_19_form_6_div_24_Template, 4, 0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "label", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, "Booked Count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, ManageServiceTabComponent_div_19_form_6_div_29_Template, 7, 2, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](30, ManageServiceTabComponent_div_19_form_6_div_30_Template, 16, 1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "Booked Users");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](36, ManageServiceTabComponent_div_19_form_6_ng_container_36_Template, 2, 1, "ng-container", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](37, ManageServiceTabComponent_div_19_form_6_ng_template_37_Template, 2, 0, "ng-template", null, 45, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](39, ManageServiceTabComponent_div_19_form_6_div_39_Template, 11, 3, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](38);
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r15.serviceDetailsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.selectedServiceName.showServiceEndTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.selectedServiceName.standBySlot);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.hasManageAccess && !ctx_r15.isServiceStarted(ctx_r15.selectedService.serviceStartDateTime) && ctx_r15.selectedService.status !== 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.adjustServicebtn);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.serviceDetailsForm.get("bookedUsers").value == null ? null : ctx_r15.serviceDetailsForm.get("bookedUsers").value.length)("ngIfElse", _r21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.displayConfirmation);
} }
function ManageServiceTabComponent_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "CREATE SERVICE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageServiceTabComponent_div_19_form_6_Template, 40, 8, "form", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r4.isCreatingForm);
} }
class ManageServiceTabComponent {
constructor(fb, toastrService, setupService) {
this.fb = fb;
this.toastrService = toastrService;
this.setupService = setupService;
this.ChangeTabId = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.daySelected = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.isLoading = false;
this.daysOfWeek = src_app_constants__WEBPACK_IMPORTED_MODULE_4__["DAYS_OF_WEEK"];
this.weekDates = [];
this.hasManageAccess = false;
this.displayConfirmation = false;
this.confirmationBoxType = '';
this.confirmationMessage = '';
this.wantToCancelBooking = null;
this.adjustServicebtn = false;
}
ngOnInit() {
var _a;
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["formatGMTOffset"])(Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["getGmtOffSet"])());
this.hasManageAccess =
((_a = JSON.parse(localStorage.getItem('privilegeFlags') || '{}')) === null || _a === void 0 ? void 0 : _a.manageService) || false;
this.selectedDay = this.daysOfWeek[0];
this.fetchAllServices();
this.initServiceDetailsForm();
}
ngOnChanges(changes) {
if (changes.refreshNum && !changes.refreshNum.firstChange) {
this.handleRefresh();
}
}
handleRefresh() {
this.weekDates = [];
this.allServices = [];
this.dayServices = null;
this.serviceDetailsForm.reset();
this.fetchAllServices();
}
// Initialize service details form
initServiceDetailsForm() {
this.serviceDetailsForm = this.fb.group({
serviceName: [''],
date: [''],
startTime: [''],
endTime: [''],
createdBy: [''],
confirmSlot: [0],
standBySlot: [0],
bookedCount: [0],
bookedUsers: [''],
adjust: [0],
});
}
// Fetch all services
fetchAllServices() {
this.isLoading = true;
this.serviceRequest.timezone = this.gmtOffset;
const subscription = this.setupService
.getAllServices(this.serviceRequest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.isLoading = false;
subscription.unsubscribe();
}))
.subscribe((response) => {
this.allServices = response.data;
this.createWeekDates();
this.onDaySelect(this.selectedDay);
}, (error) => {
var _a;
const errorMessage = ((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message) || 'Failed to load services';
this.toastrService.error(errorMessage);
});
}
// Create week dates
createWeekDates() {
const baseDate = moment__WEBPACK_IMPORTED_MODULE_1__(this.serviceRequest.weekRangeStartAt);
for (let i = 0; i < 7; i++) {
this.weekDates.push(baseDate.format('YYYY-MM-DD'));
baseDate.add(1, 'days');
}
}
// Handle day selection
onDaySelect(day) {
this.daySelected.emit(day);
this.selectedDay = day;
this.updateDayServices();
}
// Update day services based on selected day
updateDayServices() {
const selectedDate = this.weekDates[this.selectedDay.index];
this.dayServices = this.allServices.list.hasOwnProperty(selectedDate)
? this.allServices.list[selectedDate]
: [];
if (this.dayServices.length > 0) {
this.onServiceSelect(this.dayServices[0]);
}
else {
this.serviceDetailsForm.reset();
}
}
// Handle service selection
onServiceSelect(service) {
this.selectedService = service;
const serviceStartMoment = moment__WEBPACK_IMPORTED_MODULE_1__(service.serviceStartDateTime);
this.serviceDetailsForm.patchValue({
serviceName: this.selectedServiceName.serviceName,
date: serviceStartMoment.format('DD MMM YYYY'),
startTime: serviceStartMoment.format('HH:mm'),
endTime: service.serviceEndDateTime
? moment__WEBPACK_IMPORTED_MODULE_1__(service.serviceEndDateTime).format('HH:mm')
: '',
createdBy: `${service.createdBy.name} (${service.createdBy.staffId})`,
confirmSlot: service.confirmSlot,
standBySlot: service.standBySlot,
bookedCount: this.activeBookedUsersCount(service.bookedUsers),
bookedUsers: service.bookedUsers,
adjust: null,
});
this.adjustServicebtn = false;
}
activeBookedUsersCount(bookedUsers) {
return bookedUsers.filter((user) => user.status !== 3 && user.status !== 4).length;
}
openConfirmationDialog(message, type, item) {
this.confirmationBoxType = type;
this.confirmationMessage = message;
if (type === 'BOOKING')
this.wantToCancelBooking = {
userId: item.userId,
serviceId: this.selectedService._id,
};
this.displayConfirmation = true;
}
cancelRequest() {
if (this.confirmationBoxType === 'BOOKING' && this.wantToCancelBooking) {
this.cancelServiceBooking();
}
else if (this.confirmationBoxType === 'SERVICE' &&
this.selectedService._id) {
this.cancelService();
}
}
cancelServiceBooking() {
this.setupService
.cancelServiceBooking(this.wantToCancelBooking)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => (this.displayConfirmation = false)))
.subscribe((response) => {
this.ChangeTabId.emit(2);
this.toastrService.success((response === null || response === void 0 ? void 0 : response.message) || 'Booking Canceled Successfully');
}, (error) => {
var _a;
this.toastrService.error(((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message) || 'Failed to cancel this service booking');
});
}
cancelService() {
this.setupService
.cancelService(this.selectedService._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => (this.displayConfirmation = false)))
.subscribe((response) => {
this.ChangeTabId.emit(2);
this.toastrService.success((response === null || response === void 0 ? void 0 : response.message) || 'Service Canceled Successfully');
}, (error) => {
var _a;
this.toastrService.error(((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message) || 'Failed to cancel this service');
});
}
adjustService(serviceConfirmedCount) {
this.setupService
.adjustService({
serviceId: this.selectedService._id,
serviceConfirmedCount,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => (this.displayConfirmation = false)))
.subscribe((response) => {
this.ChangeTabId.emit(2);
const successMessage = (response === null || response === void 0 ? void 0 : response.message) || 'Service successfully adjusted.';
this.toastrService.success(successMessage, 'Success');
}, (error) => {
var _a;
const errorMessage = ((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message) ||
'An error occurred while adjusting the service. Please try again later.';
this.toastrService.error(errorMessage, 'Adjustment Failed');
});
}
isServiceStarted(serviceStartTime) {
const currentTime = new Date();
return currentTime >= new Date(serviceStartTime);
}
}
ManageServiceTabComponent.ɵfac = function ManageServiceTabComponent_Factory(t) { return new (t || ManageServiceTabComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_7__["SetupService"])); };
ManageServiceTabComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageServiceTabComponent, selectors: [["app-manage-service-tab"]], inputs: { serviceRequest: "serviceRequest", selectedServiceName: "selectedServiceName", serviceTypeInfo: "serviceTypeInfo", isLoading: "isLoading", refreshNum: "refreshNum" }, outputs: { ChangeTabId: "ChangeTabId", daySelected: "daySelected" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 21, vars: 7, consts: [[1, "card"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body"], [1, "row"], [1, "col-md-5"], [1, "form-group"], ["for", "", 1, "font-weight-500"], ["class", "dayButton", 3, "selected", "click", 4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["noItemsFound", ""], ["class", "col-md-6", 4, "ngIf"], [3, "isLoading", "message"], [1, "dayButton", 3, "click"], ["class", "serviceTab my-2", 3, "selectedService", "click", 4, "ngFor", "ngForOf"], [1, "serviceTab", "my-2", 3, "click"], [1, "d-flex", "justify-content-between"], [1, "text-secondary"], ["class", "m-0", 4, "ngIf"], [1, "d-flex", "justify-content-between", "align-items-center"], [1, "d-flex"], ["class", "badge badge-danger badge-pill me-2", 4, "ngIf"], [1, "badge", "badge-pill", "bg-theme", "text-white", "ms-auto"], [1, "badge", "badge-danger", "badge-pill", "me-2"], [1, "text-muted"], [1, "col-md-6"], [1, "card-header", "flexi-header"], [3, "formGroup", 4, "ngIf"], [3, "formGroup"], [1, "mb-3", "col-md-12"], [1, "form-input", "mb-2"], ["formControlName", "serviceName", "readonly", "", 1, "form-control"], [1, "mb-3", "row", "mr-0", "ml-0"], [1, "col"], ["formControlName", "date", "readonly", "", 1, "form-control"], ["formControlName", "startTime", "readonly", "", 1, "form-control"], ["class", "col", 4, "ngIf"], ["formControlName", "createdBy", "readonly", "", 1, "form-control"], [1, "mb-3", "row", "ml-0", "mr-0"], ["formControlName", "confirmSlot", "readonly", "", 1, "form-control"], [1, "col", "mb-3"], ["formControlName", "bookedCount", "readonly", "", 1, "form-control"], ["class", "mb-3 row mx-0", 4, "ngIf"], ["id", "adjustService", "class", "mt-3 border border-dark p-3", 4, "ngIf"], [1, "card", "mt-2"], ["noUsersFound", ""], ["class", "modal fade", "style", "display: block", "tabindex", "-1", "aria-labelledby", "confirmationModalLabel", "aria-hidden", "true", 3, "show", 4, "ngIf"], ["formControlName", "endTime", "readonly", "", 1, "form-control"], ["formControlName", "standBySlot", "readonly", "", 1, "form-control"], [1, "mb-3", "row", "mx-0"], [1, "btn", "btn-block", "bg-theme", "w-100", "d-flex", "justify-content-center", "align-items-center", "p-0", 3, "click"], [1, "material-icons", "text-white"], [1, "btn", "btn-block", "bg-theme", "w-100", 3, "click"], ["id", "adjustService", 1, "mt-3", "border", "border-dark", "p-3"], ["type", "number", "formControlName", "adjust", 1, "form-control"], ["adjustInput", ""], [1, "col-12", "d-flex", "justify-content-center", "mt-3"], [1, "btn", "btn-success", "mr-3", 3, "disabled", "click"], [1, "btn", "btn-danger", 3, "click"], ["class", "booked-user d-flex justify-content-between align-items-center mb-2 border border-success p-3", 4, "ngFor", "ngForOf"], [1, "booked-user", "d-flex", "justify-content-between", "align-items-center", "mb-2", "border", "border-success", "p-3"], [3, "ngSwitch"], ["class", "badge badge-danger badge-pill", "style", "font-size: smaller", 4, "ngSwitchCase"], [4, "ngSwitchDefault"], [1, "badge", "badge-danger", "badge-pill", 2, "font-size", "smaller"], ["class", "btn bg-theme", 3, "click", 4, "ngIf"], [1, "btn", "bg-theme", 3, "click"], ["tabindex", "-1", "aria-labelledby", "confirmationModalLabel", "aria-hidden", "true", 1, "modal", "fade", 2, "display", "block"], [1, "modal-dialog", "modal-dialog-centered", 2, "max-width", "400px"], [1, "modal-content"], [1, "modal-body", "text-center"], ["id", "confirmationModalLabel", 1, "modal-title", 2, "font-size", "18px", "color", "#333"], [1, "modal-footer", "justify-content-center"], [1, "btn", "btn-primary", "ml-1", 2, "width", "6rem", 3, "click"], [1, "btn", "btn-danger", "ml-1", 2, "width", "6rem", 3, "click"]], template: function ManageServiceTabComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "VIEW SERVICES");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Select Day");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ManageServiceTabComponent_button_15_Template, 2, 3, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ManageServiceTabComponent_ng_container_16_Template, 2, 1, "ng-container", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, ManageServiceTabComponent_ng_template_17_Template, 2, 0, "ng-template", null, 10, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, ManageServiceTabComponent_div_19_Template, 7, 1, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "app-loading", 12);
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Service: ", ctx.selectedServiceName.serviceName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.daysOfWeek);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.dayServices == null ? null : ctx.dayServices.length)("ngIfElse", _r2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.dayServices == null ? null : ctx.dayServices.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("isLoading", ctx.isLoading)("message", "Loading data, please wait...");
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _shared_loading_loading_component__WEBPACK_IMPORTED_MODULE_9__["LoadingComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_5__["NumberValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgSwitchCase"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgSwitchDefault"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DatePipe"]], styles: [".dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-right: 10px;\n font-weight: 500;\n color: #a42138 !important;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover, .selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #a42138;\n color: white !important;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover {\n opacity: 0.8;\n}\n\n.selected[_ngcontent-%COMP%] {\n opacity: 1 !important;\n}\n\n.serviceTab[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0.5rem 0.8rem;\n border-radius: 4px;\n min-height: 60px;\n}\n\n.serviceTab[_ngcontent-%COMP%]:hover {\n border-color: #a42138;\n cursor: pointer;\n}\n\n.selectedService[_ngcontent-%COMP%] {\n background-color: #d2d2d2;\n border: 1px solid #a42138;\n border-left-width: 5px;\n border-right-width: 5px;\n border-radius: 8px;\n}\n\n.font[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n\n.input[_ngcontent-%COMP%] {\n margin-left: 10px;\n font-weight: 600;\n color: #9f9f9f;\n}\n\n.form-input[_ngcontent-%COMP%] {\n font-weight: 500;\n}\n\n.redButton[_ngcontent-%COMP%] {\n background: #b61734;\n border: none;\n color: #ffffff;\n letter-spacing: 1px;\n width: auto;\n padding: 0.5rem;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.text-theme[_ngcontent-%COMP%] {\n color: #a42138;\n}\n\ninput[readonly][_ngcontent-%COMP%] {\n cursor: not-allowed;\n}\n\n.modal.show[_ngcontent-%COMP%] {\n display: block;\n background-color: rgba(0, 0, 0, 0.5);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNlcnZpY2UvbWFuYWdlLXNlcnZpY2UtdGFiL21hbmFnZS1zZXJ2aWNlLXRhYi5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGNBQUE7RUFDQSxhQUFBO0VBQ0Esa0JBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EseUJBQUE7RUFDQSw2QkFBQTtFQUNBLGtCQUFBO0VBQ0EsdUJBQUE7QUFDRjs7QUFFQTs7RUFFRSxhQUFBO0VBQ0EseUJBQUE7RUFDQSx1QkFBQTtBQUNGOztBQUVBO0VBQ0UsWUFBQTtBQUNGOztBQUVBO0VBQ0UscUJBQUE7QUFDRjs7QUFFQTtFQUNFLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxxQkFBQTtFQUNBLGVBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0VBQ0EseUJBQUE7RUFDQSxzQkFBQTtFQUNBLHVCQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGVBQUE7QUFDRjs7QUFFQTtFQUNFLGlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxjQUFBO0FBQ0Y7O0FBRUE7RUFDRSxnQkFBQTtBQUNGOztBQUVBO0VBQ0UsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7QUFDRjs7QUFFQTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtBQUNGOztBQUVBO0VBQ0UsY0FBQTtBQUNGOztBQUVBO0VBQ0UsbUJBQUE7QUFDRjs7QUFFQTtFQUNFLGNBQUE7RUFDQSxvQ0FBQTtBQUNGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNlcnZpY2UvbWFuYWdlLXNlcnZpY2UtdGFiL21hbmFnZS1zZXJ2aWNlLXRhYi5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5kYXlCdXR0b24ge1xuICBoZWlnaHQ6IDIuNXJlbTtcbiAgd2lkdGg6IDIuNXJlbTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xuICBtYXJnaW4tcmlnaHQ6IDEwcHg7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIGNvbG9yOiAjYTQyMTM4ICFpbXBvcnRhbnQ7XG4gIGJvcmRlcjogMXB4IHNvbGlkIHRyYW5zcGFyZW50O1xuICBib3JkZXItY29sb3I6ICNjY2M7XG4gIGJhY2tncm91bmQtY29sb3I6IHdoaXRlO1xufVxuXG4uZGF5QnV0dG9uOmhvdmVyLFxuLnNlbGVjdGVkIHtcbiAgb3V0bGluZTogbm9uZTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG59XG5cbi5kYXlCdXR0b246aG92ZXIge1xuICBvcGFjaXR5OiAwLjg7XG59XG5cbi5zZWxlY3RlZCB7XG4gIG9wYWNpdHk6IDEgIWltcG9ydGFudDtcbn1cblxuLnNlcnZpY2VUYWIge1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBwYWRkaW5nOiAwLjVyZW0gMC44cmVtO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIG1pbi1oZWlnaHQ6IDYwcHg7XG59XG5cbi5zZXJ2aWNlVGFiOmhvdmVyIHtcbiAgYm9yZGVyLWNvbG9yOiAjYTQyMTM4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5zZWxlY3RlZFNlcnZpY2Uge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZDJkMmQyO1xuICBib3JkZXI6IDFweCBzb2xpZCAjYTQyMTM4O1xuICBib3JkZXItbGVmdC13aWR0aDogNXB4O1xuICBib3JkZXItcmlnaHQtd2lkdGg6IDVweDtcbiAgYm9yZGVyLXJhZGl1czogOHB4O1xufVxuXG4uZm9udCB7XG4gIGZvbnQtc2l6ZTogMTRweDtcbn1cblxuLmlucHV0IHtcbiAgbWFyZ2luLWxlZnQ6IDEwcHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIGNvbG9yOiAjOWY5ZjlmO1xufVxuXG4uZm9ybS1pbnB1dCB7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG59XG5cbi5yZWRCdXR0b24ge1xuICBiYWNrZ3JvdW5kOiAjYjYxNzM0O1xuICBib3JkZXI6IG5vbmU7XG4gIGNvbG9yOiAjZmZmZmZmO1xuICBsZXR0ZXItc3BhY2luZzogMXB4O1xuICB3aWR0aDogYXV0bztcbiAgcGFkZGluZzogMC41cmVtO1xufVxuXG4uYmctdGhlbWUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbn1cblxuLnRleHQtdGhlbWUge1xuICBjb2xvcjogI2E0MjEzODtcbn1cblxuaW5wdXRbcmVhZG9ubHldIHtcbiAgY3Vyc29yOiBub3QtYWxsb3dlZDtcbn1cblxuLm1vZGFsLnNob3cge1xuICBkaXNwbGF5OiBibG9jaztcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageServiceTabComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-manage-service-tab',
templateUrl: './manage-service-tab.component.html',
styleUrls: ['./manage-service-tab.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_5__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_7__["SetupService"] }]; }, { ChangeTabId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], daySelected: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], serviceRequest: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], selectedServiceName: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], serviceTypeInfo: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], isLoading: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], refreshNum: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "pwIj":
/*!****************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/my-page/my-page.component.ts ***!
\****************************************************************************************/
/*! exports provided: MyPageComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MyPageComponent", function() { return MyPageComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function MyPageComponent_ng_option_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r4.wallName, " ");
} }
function MyPageComponent_div_12_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyPageComponent_div_12_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r8); const index_r6 = ctx.index; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r7.deleteCompliments(index_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", item_r5.wallName, " ");
} }
function MyPageComponent_ng_option_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r9.wallName, " ");
} }
function MyPageComponent_div_20_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyPageComponent_div_20_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const index_r11 = ctx.index; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.deleteSuggestionsArray(index_r11); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r10 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", item_r10.wallName, " ");
} }
class MyPageComponent {
constructor(tostService, companyService, storageService) {
this.tostService = tostService;
this.companyService = companyService;
this.storageService = storageService;
this.compliments = '';
this.complementsArray = [];
this.suggestionsArray = [];
this.suggestionId = [];
this.getDataArr = null;
this.suggestions = null;
this.companySettingId = null;
this.companyId = this.storageService.getByKey('companyId');
}
ngOnInit() {
this.getDropDownValues();
this.getData();
}
getData() {
this.companyService.getcompanySetting()
.subscribe((res) => {
this.companySettingId = res.data._id;
this.getDataArr = res.data;
this.setDropDownData();
// this.suggestionsArray = res.data.suggestions;
// this.complementsArray = res.data.compliments;
}, (error) => {
console.log(error);
});
}
setDropDownData() {
var _a, _b, _c, _d;
if (this.getDataArr && ((_a = this.getDataArr.suggestions) === null || _a === void 0 ? void 0 : _a.length) > 0 && ((_b = this.wallDropDowns) === null || _b === void 0 ? void 0 : _b.length) > 0) {
this.suggestionsArray = this.wallDropDowns.filter((x) => x._id == this.getDataArr.suggestions[0]);
}
if (this.getDataArr && ((_c = this.getDataArr.compliments) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((_d = this.wallDropDowns) === null || _d === void 0 ? void 0 : _d.length) > 0) {
this.complementsArray = this.wallDropDowns.filter((x) => x._id == this.getDataArr.compliments[0]);
}
}
addCompliments(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (this.complementsArray.includes(value)) {
this.tostService.error('Value already added');
this.ngSelectComponent.clearModel();
}
else {
if (typeof value === 'undefined') {
// console.log('Undefined')
}
else {
this.complementsArray = [];
this.complementsArray.push(value);
this.ngSelectComponent.clearModel();
}
}
});
}
addSuggestions(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (this.suggestionsArray.includes(value)) {
this.tostService.error('Value already added');
this.suggestions = [];
this.ngSelectComponent2.clearModel();
}
else {
if (typeof value === 'undefined') {
console.log('Undefined');
this.suggestions = [];
}
else {
this.suggestionsArray = [];
this.suggestionsArray.push(value);
this.suggestions = [];
this.ngSelectComponent2.clearModel();
}
}
});
}
deleteCompliments(index) {
this.complementsArray.splice(index, 1);
}
deleteSuggestionsArray(index) {
this.suggestionsArray.splice(index, 1);
}
getDropDownValues() {
this.companyService.getMyPageDropDowns().subscribe((res) => {
this.wallDropDowns = (res === null || res === void 0 ? void 0 : res.data) || [];
this.setDropDownData();
});
}
updateCompanySettings() {
let suggestionsString = this.suggestionsArray.map((item) => {
return item._id;
});
let complimentsString = this.complementsArray.map((item) => {
return item._id;
});
this.companyService.updateCompanySettings({ suggestions: suggestionsString, compliments: complimentsString, pageId: this.companySettingId })
.subscribe((res) => {
this.tostService.success('Updated SuccessFully');
}, (error) => {
console.log(error);
});
}
}
MyPageComponent.ɵfac = function MyPageComponent_Factory(t) { return new (t || MyPageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"])); };
MyPageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: MyPageComponent, selectors: [["app-my-page"]], viewQuery: function MyPageComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__["NgSelectComponent"], true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__["NgSelectComponent"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.ngSelectComponent = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.ngSelectComponent2 = _t.first);
} }, decls: 24, vars: 15, consts: [[1, "card"], [1, "card-header", "flexi-header"], [1, "card-body"], [1, "row", "col-10"], [1, "font-weight-bold", "ml-3", "mt-2"], [1, "flex-direction", "col-sm-4"], [1, "w-100"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "clearable", "hideSelected", "change"], [3, "value", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], [1, "row", "col-10", "suggestions-container"], [1, "flex-direction", "col-sm-4", "ml-2"], ["bindLabel", "name", "placeholder", "", "appendTo", "body", 1, "custom", 3, "ngModel", "virtualScroll", "multiple", "searchable", "clearable", "hideSelected", "change", "ngModelChange"], [1, "ml-2", 2, "margin-top", "30px"], [1, "btn", "btn-add", 3, "click"], [3, "value"], [1, "text-items", "list-ui", "mt-1"], ["src", "./assets/images/cancel.png", "width", "20px", "height", "20px", 1, "ml-3", "close-icon", 3, "click"]], template: function MyPageComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "MY PAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "label", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Compliments ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "ng-select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function MyPageComponent_Template_ng_select_change_10_listener($event) { return ctx.addCompliments($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, MyPageComponent_ng_option_11_Template, 2, 2, "ng-option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, MyPageComponent_div_12_Template, 4, 1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Suggestions ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "ng-select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function MyPageComponent_Template_ng_select_change_18_listener($event) { return ctx.addSuggestions($event); })("ngModelChange", function MyPageComponent_Template_ng_select_ngModelChange_18_listener($event) { return ctx.suggestions = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, MyPageComponent_ng_option_19_Template, 2, 2, "ng-option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, MyPageComponent_div_20_Template, 4, 1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "button", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function MyPageComponent_Template_button_click_22_listener() { return ctx.updateCompanySettings(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "Update");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("hideSelected", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.wallDropDowns);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.complementsArray);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.suggestions)("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true)("hideSelected", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.wallDropDowns);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.suggestionsArray);
} }, directives: [_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__["NgSelectComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_6__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_7__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_8__["NativeElementInjectorDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__["ɵr"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}.suggestions-container[_ngcontent-%COMP%] {\n margin-top: 70px;\n}.selected-list[_ngcontent-%COMP%] {\n background-color: #a51f38;\n height: 20px;\n width: 40px;\n}.close-icon[_ngcontent-%COMP%] {\n cursor: pointer;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL3N5c3RlbS1zZXR0aW5ncy9jb21wYW55LXNldHVwL215LXBhZ2UvbXktcGFnZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxpREFBaUQsZUFBZSxDQUFDLGlDQUFpQyxDQUFDLHVEQUF1RCxlQUFlLENBQUMsMkRBQTJELFFBQVEsQ0FBQyx5Q0FBeUMsQ0FBQyxzQkFBc0IsQ0FBQyxpRUFBaUUseUNBQXlDLENBQUMsa0VBQWtFLDRCQUE0QixDQUFDLDJCQUEyQixDQUFDLCtEQUErRCx5QkFBeUIsQ0FBQyx3QkFBd0IsQ0FBQyx5RUFBeUUsb0JBQW9CLENBQUMsMEVBQTBFLENBQUMsbURBQW1ELHdCQUF3QixDQUFDLHlDQUF5QyxZQUFZLENBQUMsZ0NBQWdDLFVBQVUsQ0FBQyxxQkFBcUIsQ0FBQyxpQkFBaUIsQ0FBQyxxQkFBcUIsQ0FBQyxlQUFlLENBQUMsa0JBQWtCLENBQUMsc0NBQXNDLG1DQUFtQyxDQUFDLG9EQUFvRCxrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxnRUFBZ0Usa0JBQWtCLENBQUMsY0FBYyxDQUFDLG9FQUFvRSxVQUFVLENBQUMsaURBQWlELFdBQVcsQ0FBQywrRUFBK0UsT0FBTyxDQUFDLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxrQkFBa0IsQ0FBQywyRkFBMkYsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsb0dBQW9HLHdCQUF3QixDQUFDLHdCQUF3QixDQUFDLG9IQUFvSCxhQUFhLENBQUMsdUVBQXVFLGVBQWUsQ0FBQyxnQkFBZ0IsQ0FBQyxtRkFBbUYsaUJBQWlCLENBQUMsY0FBYyxDQUFDLGlGQUFpRixjQUFjLENBQUMsaUJBQWlCLENBQUMsd0JBQXdCLENBQUMsaUJBQWlCLENBQUMsZ0JBQWdCLENBQUMsNkZBQTZGLGNBQWMsQ0FBQyxlQUFlLENBQUMsbUdBQW1HLHdCQUF3QixDQUFDLG1IQUFtSCxnQkFBZ0IsQ0FBQywrSEFBK0gsY0FBYyxDQUFDLGlCQUFpQixDQUFDLGlHQUFpRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsZ0dBQWdHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxzR0FBc0csd0JBQXdCLENBQUMscUdBQXFHLDhCQUE4QixDQUFDLGlIQUFpSCw2QkFBNkIsQ0FBQyxpQkFBaUIsQ0FBQyxzR0FBc0csNkJBQTZCLENBQUMsa0hBQWtILGFBQWEsQ0FBQyw4QkFBOEIsQ0FBQyxpRkFBaUYsbUJBQW1CLENBQUMsNkZBQTZGLG1CQUFtQixDQUFDLHVGQUF1RixPQUFPLENBQUMsa0JBQWtCLENBQUMsZ0JBQWdCLENBQUMsbUdBQW1HLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLDZDQUE2QyxhQUFhLENBQUMsNEJBQTRCLG1CQUFtQixDQUFDLHdDQUF3QyxtQkFBbUIsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLGlCQUFpQixDQUFDLHlDQUF5QyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsNkNBQTZDLHFCQUFxQixDQUFDLHVDQUF1Qyx5Q0FBeUMsQ0FBQyxrQkFBa0IsQ0FBQywwQkFBMEIsQ0FBQyxtQkFBbUIscUJBQXFCLENBQUMscUJBQXFCLENBQUMsbUNBQW1DLENBQUMsTUFBTSxDQUFDLG9DQUFvQyxRQUFRLENBQUMsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsd0JBQXdCLENBQUMsZUFBZSxDQUFDLG1GQUFtRiw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyxpQ0FBaUMsV0FBVyxDQUFDLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLDJCQUEyQixDQUFDLGtCQUFrQixDQUFDLGlGQUFpRiwyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQyx1Q0FBdUMsNEJBQTRCLENBQUMsZUFBZSxDQUFDLHVDQUF1Qyx5QkFBeUIsQ0FBQyxlQUFlLENBQUMseURBQXlELHdCQUFnQixDQUFoQixnQkFBZ0IsQ0FBQyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsc0JBQXNCLENBQUMsY0FBYyxDQUFDLDRFQUE0RSxjQUFjLENBQUMsMEVBQTBFLHdCQUF3QixDQUFDLHlLQUF5Syx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsdURBQXVELHFCQUFxQixDQUFDLHNCQUFzQixDQUFDLGdCQUFnQixDQUFDLHFLQUFxSyxVQUFVLENBQUMsd0JBQXdCLENBQUMsdU1BQXVNLGVBQWUsQ0FBQyx3RUFBd0Usd0JBQXdCLENBQUMsVUFBVSxDQUFDLDBFQUEwRSxVQUFVLENBQUMsdUVBQXVFLGlCQUFpQixDQUFDLG1GQUFtRixrQkFBa0IsQ0FBQyxjQUFjLENBQUMscUVBQXFFLGFBQWEsQ0FBQyxlQUFlLENBQUMsaUJBQWlCLENBQUMsaUZBQWlGLGdCQUFnQixDQUFDLGVBQWUsQ0FBQywrQkFBK0IsYUFBYSxDQUFDLGdCQUFnQixDQ0UxNE87RUFDSSxnQkFBQTtBQUFKLENBR0E7RUFDSSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxXQUFBO0FBQUosQ0FHQTtFQUNJLGVBQUE7QUFBSixDQUdBO0VBQ0ksb0NBQUE7RUFDQSx1QkFBQTtBQUFKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvbXktcGFnZS9teS1wYWdlLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQ6I2ZmZjtib3JkZXItY29sb3I6I2IzYjNiMyAjY2NjICNkOWQ5ZDl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyOmhvdmVye2JveC1zaGFkb3c6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLWFycm93e3RvcDotMnB4O2JvcmRlci1jb2xvcjp0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjOTk5O2JvcmRlci13aWR0aDowIDVweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvdzpob3Zlcntib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzMzM30ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LWJvdHRvbT4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czowO2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1vcGVuZWQubmctc2VsZWN0LXRvcD4ubmctc2VsZWN0LWNvbnRhaW5lcntib3JkZXItdG9wLXJpZ2h0LXJhZGl1czowO2JvcmRlci10b3AtbGVmdC1yYWRpdXM6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1mb2N1c2VkOm5vdCgubmctc2VsZWN0LW9wZW5lZCk+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWNvbG9yOiMwMDdlZmY7Ym94LXNoYWRvdzppbnNldCAwIDFweCAxcHggcmdiYSgwLDAsMCwwLjA3NSksMCAwIDAgM3B4IHJnYmEoMCwxMjYsMjU1LDAuMSl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXJ7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3QgLm5nLWhhcy12YWx1ZSAubmctcGxhY2Vob2xkZXJ7ZGlzcGxheTpub25lfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXJ7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Ym9yZGVyLXJhZGl1czo0cHg7Ym9yZGVyOjFweCBzb2xpZCAjY2NjO21pbi1oZWlnaHQ6MzZweDthbGlnbi1pdGVtczpjZW50ZXJ9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7YWxpZ24taXRlbXM6Y2VudGVyO3BhZGRpbmctbGVmdDoxMHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVye2hlaWdodDozNnB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHt0b3A6NXB4O2xlZnQ6MDtwYWRkaW5nLWxlZnQ6MTBweDtwYWRkaW5nLXJpZ2h0OjUwcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZy1yaWdodDoxMHB4O3BhZGRpbmctbGVmdDo1MHB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjk7Ym9yZGVyOjFweCBzb2xpZCAjZTZlNmU2fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlLm5nLXNlbGVjdC1kaXNhYmxlZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtbGFiZWx7cGFkZGluZzowIDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye3BhZGRpbmctdG9wOjVweDtwYWRkaW5nLWxlZnQ6N3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjdweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXtmb250LXNpemU6LjllbTttYXJnaW4tYm90dG9tOjVweDtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Ym9yZGVyLXJhZGl1czoycHg7bWFyZ2luLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVle21hcmdpbi1yaWdodDowO21hcmdpbi1sZWZ0OjVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmOWY5Zjl9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZS5uZy12YWx1ZS1kaXNhYmxlZCAubmctdmFsdWUtbGFiZWx7cGFkZGluZy1sZWZ0OjA7cGFkZGluZy1yaWdodDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse2Rpc3BsYXk6aW5saW5lLWJsb2NrO3BhZGRpbmc6MXB4IDVweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbntkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb246aG92ZXJ7YmFja2dyb3VuZC1jb2xvcjojZDFlOGZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ubGVmdHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZjtib3JkZXItcmlnaHQ6bm9uZX0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLnJpZ2h0e2JvcmRlci1sZWZ0OjA7Ym9yZGVyLXJpZ2h0OjFweCBzb2xpZCAjYjhkYmZmfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmc6MCAwIDNweCAzcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgM3B4IDNweCAwfS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXBsYWNlaG9sZGVye3RvcDo1cHg7cGFkZGluZy1ib3R0b206NXB4O3BhZGRpbmctbGVmdDozcHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntwYWRkaW5nLXJpZ2h0OjNweDtwYWRkaW5nLWxlZnQ6MH0ubmctc2VsZWN0IC5uZy1jbGVhci13cmFwcGVye2NvbG9yOiM5OTl9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcjpob3ZlciAubmctY2xlYXJ7Y29sb3I6I0QwMDIxQn0ubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggNXB4IDAgMH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNwaW5uZXItem9uZXtwYWRkaW5nOjVweCAwIDAgNXB4fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7d2lkdGg6MjVweDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXJ7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9Lm5nLXNlbGVjdCAubmctYXJyb3ctd3JhcHBlcjpob3ZlciAubmctYXJyb3d7Ym9yZGVyLXRvcC1jb2xvcjojNjY2fS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXIgLm5nLWFycm93e2JvcmRlci1jb2xvcjojOTk5IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50O2JvcmRlci1zdHlsZTpzb2xpZDtib3JkZXItd2lkdGg6NXB4IDVweCAyLjVweH0ubmctZHJvcGRvd24tcGFuZWx7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlcjoxcHggc29saWQgI2NjYztib3gtc2hhZG93OjAgMXB4IDAgcmdiYSgwLDAsMCwwLjA2KTtsZWZ0OjB9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b217dG9wOjEwMCU7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4O2JvcmRlci10b3AtY29sb3I6I2U2ZTZlNjttYXJnaW4tdG9wOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC1ib3R0b20gLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246bGFzdC1jaGlsZHtib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czo0cHg7Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czo0cHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3B7Ym90dG9tOjEwMCU7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tY29sb3I6I2U2ZTZlNjttYXJnaW4tYm90dG9tOi0xcHh9Lm5nLWRyb3Bkb3duLXBhbmVsLm5nLXNlbGVjdC10b3AgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb246Zmlyc3QtY2hpbGR7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci10b3AtbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24taGVhZGVye2JvcmRlci1ib3R0b206MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tZm9vdGVye2JvcmRlci10b3A6MXB4IHNvbGlkICNjY2M7cGFkZGluZzo1cHggN3B4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3Vwe3VzZXItc2VsZWN0Om5vbmU7cGFkZGluZzo4cHggMTBweDtmb250LXdlaWdodDo1MDA7Y29sb3I6cmdiYSgwLDAsMCwwLjU0KTtjdXJzb3I6cG9pbnRlcn0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tZGlzYWJsZWR7Y3Vyc29yOmRlZmF1bHR9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLXNlbGVjdGVkLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2JhY2tncm91bmQtY29sb3I6I2ViZjVmZjtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9ue2JhY2tncm91bmQtY29sb3I6I2ZmZjtjb2xvcjpyZ2JhKDAsMCwwLDAuODcpO3BhZGRpbmc6OHB4IDEwcHh9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWR7Y29sb3I6IzMzMztiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmZ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZCAubmctb3B0aW9uLWxhYmVsLC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZCAubmctb3B0aW9uLWxhYmVse2ZvbnQtd2VpZ2h0OjYwMH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNmNWZhZmY7Y29sb3I6IzMzM30ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWRpc2FibGVke2NvbG9yOiNjY2N9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1jaGlsZHtwYWRkaW5nLWxlZnQ6MjJweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1yaWdodDoyMnB4O3BhZGRpbmctbGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse2ZvbnQtc2l6ZTo4MCU7Zm9udC13ZWlnaHQ6NDAwO3BhZGRpbmctcmlnaHQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uIC5uZy10YWctbGFiZWx7cGFkZGluZy1sZWZ0OjVweDtwYWRkaW5nLXJpZ2h0OjB9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWx7ZGlyZWN0aW9uOnJ0bDt0ZXh0LWFsaWduOnJpZ2h0fVxuIiwiQGltcG9ydCBcIn5Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3NcIjtcblxuLnN1Z2dlc3Rpb25zLWNvbnRhaW5lciB7XG4gICAgbWFyZ2luLXRvcDogNzBweDtcbn1cblxuLnNlbGVjdGVkLWxpc3Qge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNhNTFmMzg7XG4gICAgaGVpZ2h0OiAyMHB4O1xuICAgIHdpZHRoOiA0MHB4O1xufVxuXG4uY2xvc2UtaWNvbiB7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG46Om5nLWRlZXAgLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWQge1xuICAgIGJhY2tncm91bmQtY29sb3I6ICMyMTk2ZjMgIWltcG9ydGFudDtcbiAgICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](MyPageComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-my-page',
templateUrl: './my-page.component.html',
styleUrls: ['./my-page.component.scss']
}]
}], function () { return [{ type: ngx_toastr__WEBPACK_IMPORTED_MODULE_3__["ToastrService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__["CompanySetupService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_5__["StorageService"] }]; }, { ngSelectComponent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: [_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__["NgSelectComponent"]]
}], ngSelectComponent2: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: [_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_2__["NgSelectComponent"]]
}] }); })();
/***/ }),
/***/ "q2vL":
/*!********************************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/user-shift-setup/user-shift-setup-overview/user-shift-setup-overview.component.ts ***!
\********************************************************************************************************************************/
/*! exports provided: UserShiftSetupOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserShiftSetupOverviewComponent", function() { return UserShiftSetupOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/directive/sortable.directive */ "z5qi");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function UserShiftSetupOverviewComponent_span_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UserShiftSetupOverviewComponent_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "div");
} }
function UserShiftSetupOverviewComponent_ng_template_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Not Found!");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function UserShiftSetupOverviewComponent_ng_template_22_table_0_tr_18_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "--");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UserShiftSetupOverviewComponent_ng_template_22_table_0_tr_18_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const item_r10 = ctx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r12.onViewUserShiftSetup(item_r10); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function UserShiftSetupOverviewComponent_ng_template_22_table_0_tr_18_Template_button_click_18_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const item_r10 = ctx.$implicit; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r14.onEditUserShiftSetup(item_r10); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r10 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r10.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r10.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r10.appointment == null ? null : item_r10.appointment.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r10.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r10.businessUnit, " ");
} }
function UserShiftSetupOverviewComponent_ng_template_22_table_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "USER NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "APPOINTMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "DATE OF JOINING");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "CONTACT NUMBER");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, "PARENT BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, UserShiftSetupOverviewComponent_ng_template_22_table_0_tr_18_Template, 20, 5, "tr", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r8.buShiftSetUpTable.data);
} }
function UserShiftSetupOverviewComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, UserShiftSetupOverviewComponent_ng_template_22_table_0_Template, 19, 1, "table", 19);
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r5.loader);
} }
const _c0 = function () { return { width: "calc(100% - 40px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function UserShiftSetupOverviewComponent_ngx_skeleton_loader_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "ngx-skeleton-loader", 32);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](1, _c0));
} }
function UserShiftSetupOverviewComponent_div_32_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "app-user-shift-setup-edit", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("isEdit", ctx_r7.isEdit);
} }
class UserShiftSetupOverviewComponent {
constructor(buShiftSetupService, toastService, storageService, formBuilder, roleService) {
this.buShiftSetupService = buShiftSetupService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.roleService = roleService;
this.changeActiveUserBu = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.changeActiveViewBu = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.userRoles = [];
this.isBuShiftSetUpEdited = false;
this.shouldOpen = false;
this.buShiftSetUpSearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.loader = true;
this.userShiftOverviewErr = false;
this.buShiftSetUpTable = {
sortBy: 'desc',
sortWith: 'desc',
data: [],
page: 1,
draw: 1,
start: 0,
length: 10,
limit: 10,
search: {
value: '',
regex: false
}
// searchBvalue: 'cargo',
//searchBregex: false,
};
// search: '',
this.companyName = this.storageService.getByKey('companyId');
this.buShiftSetUpSearchSubscription = this.buShiftSetUpSearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500))))
.subscribe((input) => {
this.buShiftSetUpTable.page = 1;
this.buShiftSetUpTable.start = 0;
this.loadBuShiftSetUp();
});
}
ngOnInit() {
this.loadBuShiftSetUp();
this.buShiftSetUpForm = this.formBuilder.group({
status: ['active', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]],
buUnit: [''],
});
}
onSortBuShiftSetup({ column, direction }) {
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.buShiftSetUpTable.sort = { key: column, order: direction };
this.loadBuShiftSetUp();
}
onPageChangeBuShiftSetUp(page) {
this.buShiftSetUpTable.page = page;
this.buShiftSetUpTable.draw = page;
this.buShiftSetUpTable.start = +page > 1 ? (page - 1) * this.buShiftSetUpTable.limit : 0;
;
this.loadBuShiftSetUp();
}
onLimitChangeBuShiftSetUp() {
this.loadBuShiftSetUp();
}
loadBuShiftSetUp() {
this.loader = true;
// this.buShiftSetUpTable?.search ? this.buShiftSetUpTable.search.value:''
const _a = this.buShiftSetUpTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
console.log(this.buShiftSetUpTable);
// companyuser/editList
const subscribe = this.buShiftSetupService
.getUserShift(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.loader = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsFiltered, data } = response, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(response, ["recordsFiltered", "data"]);
this.buShiftSetUpTable.data = data;
this.buShiftSetUpTable.total = recordsFiltered;
}, (error) => {
this.buShiftSetUpTable.data = [];
this.buShiftSetUpTable.total = 0;
this.toastService.error('No list found');
this.userShiftOverviewErr = true;
});
}
onUpdateBuShiftSetup() {
const data = {
name: this.buShiftSetUpForm.get('name').value,
status: this.buShiftSetUpForm.get('status').value,
};
this.buShiftSetupService
.updateSubsection(this.subSectionId, this.sectionId, data)
.subscribe((res) => {
console.log(res);
this.onClearBuUnitEdit();
}, (error) => {
switch (error.status) {
case 422:
for (const key in error.error.error) {
if (Object.prototype.hasOwnProperty.call(error.error.error, key)) {
const element = error.error.error[key];
this.toastService.error(element);
}
}
break;
case 401:
this.toastService.error(error.error.error);
break;
default:
this.toastService.error(error.error.error);
break;
}
});
}
onClearBuUnitEdit() {
this.isBuShiftSetUpEdited = false;
this.buShiftSetUpForm.reset();
this.sectionId = null;
this.subSectionId = null;
}
ngOnDestroy() {
this.buShiftSetUpSearchSubscription &&
this.buShiftSetUpSearchSubscription.unsubscribe();
}
onEditUserShiftSetup(value) {
this.changeActiveUserBu.emit(value);
}
onViewUserShiftSetup(value) {
this.changeActiveViewBu.emit(value);
}
}
UserShiftSetupOverviewComponent.ɵfac = function UserShiftSetupOverviewComponent_Factory(t) { return new (t || UserShiftSetupOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_9__["RoleService"])); };
UserShiftSetupOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: UserShiftSetupOverviewComponent, selectors: [["app-user-shift-setup-overview"]], viewQuery: function UserShiftSetupOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["NgbdSortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { changeActiveUserBu: "changeActiveUserBu", changeActiveViewBu: "changeActiveViewBu" }, decls: 33, vars: 18, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body", "table-responsive", "p-0"], [1, "d-flex", "justify-content-between", "m-2"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["name", "searchTerm", "placeholder", "Search here", "type", "search", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "search", "ngModelChange"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["thenBlock", ""], ["elseBlock", ""], ["count", "8", 3, "theme", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [3, "page", "collectionSize", "maxSize", "pageSize", "pageChange"], [1, "text-md", "text-black-50", "p-4"], ["class", "table table-striped", 4, "ngIf"], [1, "table", "table-striped"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "font-weight-500"], [1, "d-flex"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "btn", "btn-success", "btn-sm", "ml-1", 3, "click"], ["count", "8", 3, "theme"], [3, "isEdit"]], template: function UserShiftSetupOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "USER WITH SHIFT SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "select", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function UserShiftSetupOverviewComponent_Template_select_change_5_listener() { return ctx.onLimitChangeBuShiftSetUp(); })("ngModelChange", function UserShiftSetupOverviewComponent_Template_select_ngModelChange_5_listener($event) { return ctx.buShiftSetUpTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, UserShiftSetupOverviewComponent_span_17_Template, 2, 0, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function UserShiftSetupOverviewComponent_Template_input_keyup_18_listener($event) { return ctx.buShiftSetUpSearchInput.next($event); })("search", function UserShiftSetupOverviewComponent_Template_input_search_18_listener($event) { return ctx.buShiftSetUpSearchInput.next($event); })("ngModelChange", function UserShiftSetupOverviewComponent_Template_input_ngModelChange_18_listener($event) { return ctx.buShiftSetUpTable.search.value = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, UserShiftSetupOverviewComponent_div_19_Template, 1, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, UserShiftSetupOverviewComponent_ng_template_20_Template, 2, 0, "ng-template", null, 10, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, UserShiftSetupOverviewComponent_ng_template_22_Template, 1, 1, "ng-template", null, 11, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, UserShiftSetupOverviewComponent_ngx_skeleton_loader_24_Template, 1, 2, "ngx-skeleton-loader", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "p", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](28, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "b", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function UserShiftSetupOverviewComponent_Template_ngb_pagination_pageChange_31_listener($event) { return ctx.onPageChangeBuShiftSetUp($event); })("pageChange", function UserShiftSetupOverviewComponent_Template_ngb_pagination_pageChange_31_listener($event) { return ctx.buShiftSetUpTable.page = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](32, UserShiftSetupOverviewComponent_div_32_Template, 2, 1, "div", 7);
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](21);
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.buShiftSetUpTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.buShiftSetUpTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx.buShiftSetUpTable.search.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.userShiftOverviewErr)("ngIfThen", _r2)("ngIfElse", _r4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](ctx.buShiftSetUpTable.total);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("page", ctx.buShiftSetUpTable.page)("collectionSize", ctx.buShiftSetUpTable.total)("maxSize", 5)("pageSize", ctx.buShiftSetUpTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.shouldOpen);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_13__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_14__["NgxSkeletonLoaderComponent"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2V0dXAvdXNlci1zaGlmdC1zZXR1cC91c2VyLXNoaWZ0LXNldHVwLW92ZXJ2aWV3L3VzZXItc2hpZnQtc2V0dXAtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MifQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UserShiftSetupOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-user-shift-setup-overview',
templateUrl: './user-shift-setup-overview.component.html',
styleUrls: ['./user-shift-setup-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_6__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_9__["RoleService"] }]; }, { changeActiveUserBu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], changeActiveViewBu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["NgbdSortableHeader"]]
}] }); })();
/***/ }),
/***/ "qIT8":
/*!***************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-planner/approve/approve.component.ts ***!
\***************************************************************************************/
/*! exports provided: ApproveComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApproveComponent", function() { return ApproveComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/human-resources/leave-planner.service */ "Z/ig");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function ApproveComponent_ngx_skeleton_loader_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 37);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function ApproveComponent_table_23_tbody_17_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](13, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](14, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ApproveComponent_table_23_tbody_17_Template_button_click_18_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const data_r8 = ctx.$implicit; const i_r9 = ctx.index; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.viewUser(data_r8, i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const data_r8 = ctx.$implicit;
const i_r9 = ctx.index;
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selected", i_r9 === ctx_r7.highlightIndex);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 9, data_r8.createdAt, "dd-MM-yyyy HH:MM"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r8.userId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r8.userId.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](data_r8.leaveTypeId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](13, 12, data_r8.startDate, "dd MMM yyyy"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](14, 15, data_r8.endDate, "dd MMM yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", data_r8.status == 0 ? "Pending Approval" : data_r8.status == 1 ? "Approved" : data_r8.status == 2 ? "Rejected" : data_r8.status == 5 ? "Cancelled" : data_r8.status == 3 ? "-" : "-", " ");
} }
function ApproveComponent_table_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DATE SUBMITTED");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "STAFF NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "STAFF ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "LEAVE TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "PERIOD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "th", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, ApproveComponent_table_23_tbody_17_Template, 20, 18, "tbody", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.filterDataResult);
} }
function ApproveComponent_img_33_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "img", 43);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("src", (ctx_r2.viewUserDet == null ? null : ctx_r2.viewUserDet.userId == null ? null : ctx_r2.viewUserDet.userId.profilePicture) ? ctx_r2.generateImageUrl(ctx_r2.viewUserDet == null ? null : ctx_r2.viewUserDet.userId == null ? null : ctx_r2.viewUserDet.userId.profilePicture) : "./assets/images/user1.png", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("alt", (ctx_r2.viewUserDet == null ? null : ctx_r2.viewUserDet.userId == null ? null : ctx_r2.viewUserDet.userId.profilePicture) ? "Profile Picture" : "No Profile Picture");
} }
function ApproveComponent_ng_container_92_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("href", ctx_r3.safeUrl(ctx_r3.viewUserDet == null ? null : ctx_r3.viewUserDet.attachment), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r3.getAttachmentFileName(ctx_r3.viewUserDet == null ? null : ctx_r3.viewUserDet.attachment));
} }
function ApproveComponent_div_97_div_18_Template(rf, ctx) { if (rf & 1) {
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ApproveComponent_div_97_div_18_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r14.add(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " remove");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ApproveComponent_div_97_div_18_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r16.add(2); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ApproveComponent_div_97_div_27_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ApproveComponent_div_97_div_27_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r17.approveLeave(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Approve ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ApproveComponent_div_97_div_27_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r19.rejectLeave(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Reject ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ApproveComponent_div_97_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "LEAVE APPROVAL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Approval For");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Remarks");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Deducted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ApproveComponent_div_97_div_18_Template, 5, 0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Off/Rest");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Total");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, ApproveComponent_div_97_div_27_Template, 5, 0, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r4.updateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r4.viewUserDet == null ? null : ctx_r4.viewUserDet.status) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx_r4.viewUserDet == null ? null : ctx_r4.viewUserDet.status) == 0);
} }
function ApproveComponent_div_98_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "CANCELLED BY");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Date of Cancelled");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Staff Id");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "input", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r5.updateForm);
} }
function ApproveComponent_div_99_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "APPROVAL HISTORY");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Date of Entry");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Approver Staff Id");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "input", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Approver Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](16, "input", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Remarks");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "Status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "Deducted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Off/Rest");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](33, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "Total");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r6.updateForm);
} }
const _c1 = function () { return { standalone: true }; };
class ApproveComponent {
constructor(leaveService, formBuilder, toastService, sanitizer) {
this.leaveService = leaveService;
this.formBuilder = formBuilder;
this.toastService = toastService;
this.sanitizer = sanitizer;
this.year = [
parseInt(moment__WEBPACK_IMPORTED_MODULE_2__().subtract(1, 'year').format('YYYY')),
parseInt(moment__WEBPACK_IMPORTED_MODULE_2__().format('YYYY')),
parseInt(moment__WEBPACK_IMPORTED_MODULE_2__().add(1, 'year').format('YYYY')),
];
this.defaultSelectedStatus = { status: 0, name: 'Pending Approval' };
this.approveLoader = true;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].imageUrl;
this.generateImageUrl = src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_6__["generateImageUrl"];
}
ngOnInit() {
this.approveDataList();
this.initForm();
}
initForm() {
this.updateForm = this.formBuilder.group({
forApproval: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
forRemarks: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
forNewRemarks: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
forDeducted: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
forRest: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
forTotal: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
cancelledDate: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
staffId: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
staffIdApproveHis: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
staffNameApproveHis: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
staffName: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
forStatus: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
});
}
approveDataList() {
this.leaveService
.approveAppliedLeave()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.approveLoader = false;
}))
.subscribe((res) => {
this.appliedLeaveData = res.data;
this.filterDataResult = this.appliedLeaveData;
this.viewUser(this.filterDataResult[0], 0);
});
}
yearFilter(yearLeaveData) {
if (this.selectedyear) {
return yearLeaveData.filter((element) => {
const year = new Date(element.startDate).getFullYear();
if (this.selectedyear === year) {
return element;
}
return;
});
}
return yearLeaveData;
}
statusFilter(statusLeaveData) {
if (this.defaultSelectedStatus) {
return statusLeaveData.filter((element) => {
if (this.defaultSelectedStatus.status === element.status) {
return element;
}
return;
});
}
return statusLeaveData;
}
filterData() {
const dataFilteredByYear = this.yearFilter(this.appliedLeaveData);
const dataFilteredByStatus = this.statusFilter(dataFilteredByYear);
this.filterDataResult = dataFilteredByStatus;
}
getAttachmentFileName(fileUrl) {
let fileArray;
let fileName;
if (fileUrl) {
fileArray = fileUrl.split('/');
fileName = fileArray[(fileArray === null || fileArray === void 0 ? void 0 : fileArray.length) - 1];
}
return fileName ? fileName : null;
}
viewUser(history, index) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
this.viewUserDet = history;
this.selectedUserId = history._id;
this.highlightIndex = index;
this.updateForm.patchValue({
forApproval: ((_a = this.viewUserDet) === null || _a === void 0 ? void 0 : _a.submittedFrom) == 1
? 'Apply Leave'
: ((_b = this.viewUserDet) === null || _b === void 0 ? void 0 : _b.submittedFrom) == 2
? 'Leave Request'
: 'Apply from My Leave Plans',
forRemarks: this.viewUserDet.remark,
forApproveRemarks: (_c = this.viewUserDet.approvalHistory) === null || _c === void 0 ? void 0 : _c.approvalRemark,
forDeducted: this.viewUserDet.totalDeducated,
forRest: this.viewUserDet.totalRestOff,
forTotal: this.viewUserDet.totalDay,
cancelledDate: moment__WEBPACK_IMPORTED_MODULE_2__(this.viewUserDet.cancelledDateTime).format('DD-MMM-YYYY hh:mm'),
staffId: (_e = (_d = this.viewUserDet) === null || _d === void 0 ? void 0 : _d.cancelledBy) === null || _e === void 0 ? void 0 : _e.staffId,
staffIdApproveHis: (_g = (_f = this.viewUserDet.approvalHistory[0]) === null || _f === void 0 ? void 0 : _f.approvalBy) === null || _g === void 0 ? void 0 : _g.staffId,
staffNameApproveHis: (_j = (_h = this.viewUserDet.approvalHistory[0]) === null || _h === void 0 ? void 0 : _h.approvalBy) === null || _j === void 0 ? void 0 : _j.name,
staffName: (_l = (_k = this.viewUserDet) === null || _k === void 0 ? void 0 : _k.cancelledBy) === null || _l === void 0 ? void 0 : _l.name,
forStatus: this.viewUserDet.status == 0
? 'Pending Approval'
: this.viewUserDet.status == 1
? 'Approved'
: this.viewUserDet.status == 2
? 'Rejected'
: this.viewUserDet.status == 5
? 'Cancelled'
: this.viewUserDet.status == 3
? '-'
: '-',
});
}
approveLeave() {
this.submitFormType = this.updateForm.get('forApproval').value;
if (this.submitFormType == 'Apply Leave') {
this.submitTypeValue = 1;
}
else if (this.submitFormType == 'Leave Request') {
this.submitTypeValue = 2;
}
else {
this.submitTypeValue = 3;
}
this.approveObj = {
appliedLeaveId: this.viewUserDet._id,
isApprove: true,
approvalRemark: this.updateForm.get('forNewRemarks').value,
approvalFrom: this.submitTypeValue,
totalDeducated: parseInt(this.updateForm.get('forDeducted').value),
totalRestOff: parseInt(this.updateForm.get('forRest').value),
};
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: 'Are you sure?',
text: 'You want to approve the leave?',
icon: 'question',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.leaveService
.leaveApproval(this.approveObj)
.subscribe((res) => {
this.approveDataList();
this.toastService.success('Leave Approved successfully');
// this.appliedLeaveData = res.data;
// this.filterDataResult = this.appliedLeaveData;
});
}
});
}
rejectLeave() {
this.submitFormType = this.updateForm.get('forApproval').value;
if (this.submitFormType == 'Apply Leave') {
this.submitTypeValue = 1;
}
else if (this.submitFormType == 'Leave Request') {
this.submitTypeValue = 2;
}
else {
this.submitTypeValue = 3;
}
this.approveObj = {
appliedLeaveId: this.viewUserDet._id,
isApprove: false,
approvalRemark: this.updateForm.get('forNewRemarks').value,
approvalFrom: this.submitTypeValue,
totalDeducated: parseInt(this.updateForm.get('forDeducted').value),
totalRestOff: parseInt(this.updateForm.get('forRest').value),
};
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: 'Are you sure?',
text: 'You want to reject the leave?',
icon: 'question',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.leaveService
.leaveApproval(this.approveObj)
.subscribe((res) => {
this.approveDataList();
this.toastService.success('Leave Rejected successfully');
// this.appliedLeaveData = res.data;
// this.filterDataResult = this.appliedLeaveData;
});
}
});
}
add(val) {
let increment = this.updateForm.get('forDeducted').value;
let decrement = this.updateForm.get('forRest').value;
if (val == 1) {
increment = increment + 1;
this.updateForm.patchValue({
forDeducted: increment,
});
decrement = decrement - 1;
this.updateForm.patchValue({
forRest: decrement,
});
}
if (val == 2) {
increment = increment - 1;
this.updateForm.patchValue({
forDeducted: increment,
});
decrement = decrement + 1;
this.updateForm.patchValue({
forRest: decrement,
});
}
// this.increment++;
}
safeUrl(url) {
const safeUrl = this.sanitizer.sanitize(_angular_core__WEBPACK_IMPORTED_MODULE_0__["SecurityContext"].URL, this.baseUrl + '/' + url);
return safeUrl ? this.sanitizer.bypassSecurityTrustUrl(safeUrl.toString()) : null;
}
}
ApproveComponent.ɵfac = function ApproveComponent_Factory(t) { return new (t || ApproveComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_7__["LeavePlannerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__["DomSanitizer"])); };
ApproveComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ApproveComponent, selectors: [["app-approve"]], decls: 100, vars: 37, consts: [[1, "row", "mb-3"], [1, "col-md-12"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "form-row"], [1, "form-group", "col-md-4"], [1, "font-weight-500"], ["bindLabel", "name", "placeholder", "Select", "appendTo", "body", 1, "custom", "margin", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "ngModel", "ngModelOptions", "ngModelChange"], ["type", "text", "readonly", "", 1, "form-control", "h-36", 3, "value"], [1, "form-group", "col-md-4", "align-self-end"], ["type", "submit", 1, "btn", "btn-success", 3, "click"], [1, "row"], [1, "col-md-8", "pr-0"], [1, "table-responsive", "border", "rounded"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table table-hover m-0", 4, "ngIf"], [1, "col-md-4"], [1, "d-flex", "flex-column"], [1, "card-header", "bg-theme", "text-center"], [1, "d-flex", "align-items-center"], [1, "profile-img", "mr-3"], ["crossorigin", "anonymous", "class", "img-fluid rounded", 3, "src", "alt", 4, "ngIf"], [1, "flex-fill"], [1, "card-title", "m-0"], [1, "card-text"], [1, "mt-3"], [1, "list-group"], [1, "list-group-item", "d-flex", "justify-content-between", "align-items-center"], [1, "ml-3", "text-right"], [1, "card", "mt-3"], [3, "formGroup"], [1, "form-group"], ["type", "text", 1, "form-control", 3, "value"], [4, "ngIf"], ["type", "text", "formControlName", "forRemarks", 1, "form-control"], ["class", "card mt-3", 4, "ngIf"], ["count", "6", 3, "theme"], [1, "table", "table-hover", "m-0"], [1, "bg-theme"], ["scope", "col"], [3, "selected", 4, "ngFor", "ngForOf"], [1, "btn", "btn-info", "btn-sm", 3, "click"], ["crossorigin", "anonymous", 1, "img-fluid", "rounded", 3, "src", "alt"], ["target", "_blank", "download", "getAttachmentFileName(viewUserDet?.attachment)", 1, "btn", "btn-link", 3, "href"], ["type", "text", "formControlName", "forApproval", 1, "form-control"], ["type", "text", "formControlName", "forNewRemarks", 1, "form-control"], [1, "form-group", "col-md-3"], ["type", "text", "formControlName", "forDeducted", 1, "form-control"], ["class", "align-self-end col-md-3 form-group", 4, "ngIf"], ["type", "text", "formControlName", "forRest", 1, "form-control"], ["type", "text", "formControlName", "forTotal", 1, "form-control"], [1, "align-self-end", "col-md-3", "form-group"], [1, "bg-danger", "material-icons", "btn", "rounded-circle", 3, "click"], [1, "bg-success", "material-icons", "btn", "ml-1", "rounded-circle", 3, "click"], ["type", "submit", 1, "btn", "btn-danger", "ml-2", 3, "click"], ["type", "text", "formControlName", "cancelledDate", 1, "form-control"], ["type", "text", "formControlName", "staffId", 1, "form-control"], ["type", "text", "formControlName", "staffName", 1, "form-control"], ["type", "text", "formControlName", "staffIdApproveHis", 1, "form-control"], ["type", "text", "formControlName", "staffNameApproveHis", 1, "form-control"], ["type", "text", "formControlName", "forStatus", 1, "form-control"]], template: function ApproveComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "LEAVE DETAILS FOR APPROVAL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Select Year");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "ng-select", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ApproveComponent_Template_ng_select_ngModelChange_11_listener($event) { return ctx.selectedyear = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "button", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ApproveComponent_Template_button_click_17_listener() { return ctx.filterData(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Filter ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, ApproveComponent_ngx_skeleton_loader_22_Template, 1, 2, "ngx-skeleton-loader", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, ApproveComponent_table_23_Template, 18, 1, "table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " USER DETAILS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, ApproveComponent_img_33_Template, 1, 2, "img", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "p", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "ul", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Phone");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "span", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, "Email");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "span", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "span", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "li", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "span", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "Ops Group");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "span", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, "LEAVE DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "form", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](68, "Leave Submitted for Approval");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](69, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](70, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](73, "Number of days applied for");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](74, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, "Leave Type");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](78, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](81, "Leave Start Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](82, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](83, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](85, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](86, "Leave End Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](87, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](88, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, "Attachment : ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](92, ApproveComponent_ng_container_92_Template, 3, 2, "ng-container", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](93, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](95, "Remarks");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](96, "input", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](97, ApproveComponent_div_97_Template, 28, 3, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](98, ApproveComponent_div_98_Template, 17, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](99, ApproveComponent_div_99_Template, 38, 1, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.year)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx.selectedyear)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](36, _c1));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.defaultSelectedStatus.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.approveLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.approveLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.viewUserDet);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.viewUserDet == null ? null : ctx.viewUserDet.userId == null ? null : ctx.viewUserDet.userId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.viewUserDet == null ? null : ctx.viewUserDet.userId == null ? null : ctx.viewUserDet.userId.staffId, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.viewUserDet == null ? null : ctx.viewUserDet.userId == null ? null : ctx.viewUserDet.userId.contactNumber);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.viewUserDet == null ? null : ctx.viewUserDet.userId == null ? null : ctx.viewUserDet.userId.email);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.viewUserDet == null ? null : ctx.viewUserDet.businessUnitId == null ? null : ctx.viewUserDet.businessUnitId.orgName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", (ctx.viewUserDet == null ? null : ctx.viewUserDet.opsGroup == null ? null : ctx.viewUserDet.opsGroup.name) + " > " + (ctx.viewUserDet == null ? null : ctx.viewUserDet.opsTeam), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.updateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](70, 27, ctx.viewUserDet == null ? null : ctx.viewUserDet.createdAt, "dd-MM-yyyy HH:MM"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx.viewUserDet == null ? null : ctx.viewUserDet.totalDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", ctx.viewUserDet == null ? null : ctx.viewUserDet.leaveTypeId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](83, 30, ctx.viewUserDet == null ? null : ctx.viewUserDet.startDate, "dd MMM yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("value", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](88, 33, ctx.viewUserDet == null ? null : ctx.viewUserDet.endDate, "dd MMM yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.viewUserDet == null ? null : ctx.viewUserDet.attachment);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.viewUserDet == null ? null : ctx.viewUserDet.status) == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.viewUserDet == null ? null : ctx.viewUserDet.status) == 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.viewUserDet == null ? null : ctx.viewUserDet.status) == 1 || (ctx.viewUserDet == null ? null : ctx.viewUserDet.status) == 2);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgForm"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_13__["NgxSkeletonLoaderComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["DatePipe"]], styles: ["thead.bg-theme[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n color: #fff;\n font-size: smaller;\n font-weight: 500;\n padding-top: 1.05rem;\n padding-bottom: 1.05rem;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #a42138;\n}\n\n.profile-img[_ngcontent-%COMP%] {\n width: 8rem;\n height: 8rem;\n}\n\n.selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #d3d0d0;\n color: black !important;\n}\n\n.rounded-circle[_ngcontent-%COMP%] {\n width: 3rem;\n height: 3rem;\n}\n\n.h-36[_ngcontent-%COMP%] {\n height: 36px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtcGxhbm5lci9hcHByb3ZlL2FwcHJvdmUuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLG9CQUFBO0VBQ0EsdUJBQUE7QUFDRjs7QUFFQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtBQUNGOztBQUVBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7QUFDRjs7QUFDQTtFQUNFLGFBQUE7RUFDQSx5QkFBQTtFQUNBLHVCQUFBO0FBRUY7O0FBQ0E7RUFDRSxXQUFBO0VBQ0EsWUFBQTtBQUVGOztBQUFBO0VBQ0UsWUFBQTtBQUdGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtcGxhbm5lci9hcHByb3ZlL2FwcHJvdmUuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJ0aGVhZC5iZy10aGVtZSB0aCB7XG4gIGNvbG9yOiAjZmZmO1xuICBmb250LXNpemU6IHNtYWxsZXI7XG4gIGZvbnQtd2VpZ2h0OiA1MDA7XG4gIHBhZGRpbmctdG9wOiAxLjA1cmVtO1xuICBwYWRkaW5nLWJvdHRvbTogMS4wNXJlbTtcbn1cblxuLmJnLXRoZW1lIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG59XG5cbi5wcm9maWxlLWltZyB7XG4gIHdpZHRoOiA4cmVtO1xuICBoZWlnaHQ6IDhyZW07XG59XG4uc2VsZWN0ZWQge1xuICBvdXRsaW5lOiBub25lO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZDNkMGQwO1xuICBjb2xvcjogYmxhY2sgIWltcG9ydGFudDtcbn1cblxuLnJvdW5kZWQtY2lyY2xlIHtcbiAgd2lkdGg6IDNyZW07XG4gIGhlaWdodDogM3JlbTtcbn1cbi5oLTM2e1xuICBoZWlnaHQ6IDM2cHg7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ApproveComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-approve',
templateUrl: './approve.component.html',
styleUrls: ['./approve.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_7__["LeavePlannerService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_9__["DomSanitizer"] }]; }, null); })();
/***/ }),
/***/ "qjb4":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/manage-shift/manage/manage.component.ts ***!
\************************************************************************************************/
/*! exports provided: CustomDateParserFormatter, ManageComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDateParserFormatter", function() { return CustomDateParserFormatter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageComponent", function() { return ManageComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
function ManageComponent_button_22_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_button_22_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const i_r8 = ctx.$implicit; const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.getSelectedWeek1(i_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r8 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selected", i_r8 === ctx_r0.selectedDay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r8.day, " ");
} }
function ManageComponent_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div");
} }
function ManageComponent_ng_template_24_div_0_div_1_h6_1_span_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r13.confirmedStaffs[0] == null ? null : i_r13.confirmedStaffs[0].name);
} }
function ManageComponent_ng_template_24_div_0_div_1_h6_1_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r13.requestedUsers[0].userId.name);
} }
function ManageComponent_ng_template_24_div_0_div_1_h6_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h6", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_ng_template_24_div_0_div_1_h6_1_span_1_Template, 2, 1, "span", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageComponent_ng_template_24_div_0_div_1_h6_1_span_2_Template, 2, 1, "span", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.requestedUsers.length == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.requestedUsers.length != 0);
} }
function ManageComponent_ng_template_24_div_0_div_1_ng_container_4_p_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r30 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 2, j_r30.skillSetId.name), " > ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 4, j_r30.name), " ");
} }
function ManageComponent_ng_template_24_div_0_div_1_ng_container_4_p_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "split shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_ng_template_24_div_0_div_1_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_ng_template_24_div_0_div_1_ng_container_4_p_1_Template, 4, 6, "p", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageComponent_ng_template_24_div_0_div_1_ng_container_4_p_2_Template, 2, 0, "p", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", i_r13.subSkillSets);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.isSplitShift);
} }
function ManageComponent_ng_template_24_div_0_div_1_ng_container_5_p_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r33 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 1, j_r33.name), " > _ ");
} }
function ManageComponent_ng_template_24_div_0_div_1_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_ng_template_24_div_0_div_1_ng_container_5_p_1_Template, 3, 3, "p", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", i_r13.mainSkillSets);
} }
function ManageComponent_ng_template_24_div_0_div_1_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r13.isOff == true ? "Recalled on Off Day" : "Recalled on Rest Day", " ");
} }
function ManageComponent_ng_template_24_div_0_div_1_p_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, i_r13.splitShiftStartTime, "HH:mm"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, i_r13.splitShiftEndTime, "HH:mm"), " ");
} }
function ManageComponent_ng_template_24_div_0_div_1_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", i_r13.staffNeedCount, "/", i_r13.backUpStaffNeedCount, " ");
} }
function ManageComponent_ng_template_24_div_0_div_1_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Cancelled ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_ng_template_24_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_ng_template_24_div_0_div_1_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r40); const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r38.getListShift(i_r13); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_ng_template_24_div_0_div_1_h6_1_Template, 3, 2, "h6", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_ng_template_24_div_0_div_1_ng_container_4_Template, 3, 2, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageComponent_ng_template_24_div_0_div_1_ng_container_5_Template, 2, 1, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageComponent_ng_template_24_div_0_div_1_div_6_Template, 2, 1, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](10, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](11, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, ManageComponent_ng_template_24_div_0_div_1_p_12_Template, 4, 8, "p", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ManageComponent_ng_template_24_div_0_div_1_div_13_Template, 3, 2, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ManageComponent_ng_template_24_div_0_div_1_div_14_Template, 2, 0, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selectedShift", i_r13 === ctx_r15.selectedShift && i_r13.isAssignShift == false)("selectedShiftAssign", i_r13 === ctx_r15.selectedShift && i_r13.isAssignShift == true)("assign", i_r13.isAssignShift == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.isAssignShift == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.subSkillSets == null ? null : i_r13.subSkillSets.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.mainSkillSets == null ? null : i_r13.mainSkillSets.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.isRecalled);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](10, 15, i_r13.startTime, "HH:mm"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](11, 18, i_r13.endTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.isSplitShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.isAssignShift == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r13.status == 2);
} }
function ManageComponent_ng_template_24_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_ng_template_24_div_0_div_1_Template, 15, 21, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r13 = ctx.$implicit;
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!ctx_r11.hideCancelShifts ? i_r13.status != 2 : i_r13.isOff == false && i_r13.isRest == false || i_r13.isRecalled == true && i_r13.isRecallAccepted == 2);
} }
function ManageComponent_ng_template_24_div_5_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "button", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_ng_template_24_div_5_div_1_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r49); const i_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r47.changeOff(i_r42); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r46 = ctx.$implicit;
const i_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](j_r46.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](j_r46.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r42.isOff == true ? "OFF" : "REST", " ");
} }
function ManageComponent_ng_template_24_div_5_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_ng_template_24_div_5_div_1_div_1_Template, 7, 3, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("selectedShift", i_r42 === ctx_r44.selectedRecall && i_r42.isAssignShift == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", i_r42.confirmedStaffs);
} }
function ManageComponent_ng_template_24_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_ng_template_24_div_5_div_1_Template, 2, 3, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r42 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (i_r42.isOff == true || i_r42.isRest == true) && (i_r42.isRecallAccepted == 1 || i_r42.isRecallAccepted == 3));
} }
function ManageComponent_ng_template_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageComponent_ng_template_24_div_0_Template, 2, 1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "List of Staff on Rest/Off");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageComponent_ng_template_24_div_5_Template, 2, 1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.dayShifts);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.dayShifts);
} }
function ManageComponent_ng_template_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "No items found");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "input", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_ng_container_19_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r61 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", i_r61[0], " > ", i_r61[1], " ");
} }
function ManageComponent_div_29_form_5_ng_container_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_div_29_form_5_ng_container_19_div_1_Template, 2, 2, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r55.skillLabel);
} }
function ManageComponent_div_29_form_5_div_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Planned Staff Count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Confirmed");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Standby");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Staff Booked");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "input", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Confirmed");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Standby");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_1_ng_template_4_button_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Adjust Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "i", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " expand_more ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_1_ng_template_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageComponent_div_29_form_5_div_26_div_1_ng_template_4_button_0_Template, 4, 0, "button", 91);
} if (rf & 2) {
const ctx_r67 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r67.adjustShiftbtn == false);
} }
function ManageComponent_div_29_form_5_div_26_div_1_ng_template_5_div_1_Template(rf, ctx) { if (rf & 1) {
const _r72 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Planned staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Adjust to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_26_div_1_ng_template_5_div_1_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r72); const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](6); return ctx_r71.saveAdjust(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Submit changed shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_1_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_div_29_form_5_div_26_div_1_ng_template_5_div_1_Template, 12, 0, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r68.adjustShiftbtn == false);
} }
function ManageComponent_div_29_form_5_div_26_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ngb-accordion", null, 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ngb-panel", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_div_29_form_5_div_26_div_1_ng_template_4_Template, 1, 1, "ng-template", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageComponent_div_29_form_5_div_26_div_1_ng_template_5_Template, 2, 1, "ng-template", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_4_button_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "i", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " expand_more ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", !ctx_r76.shiftItem.currentReqShift ? " Request Shift Change" : " Stop Request Shift Change", " ");
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageComponent_div_29_form_5_div_26_div_2_ng_template_4_button_0_Template, 4, 1, "button", 91);
} if (rf & 2) {
const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r74.hideAllButton == true);
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Required count cannot be more than Confirmed count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_option_25_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r87 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r87, " ");
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_option_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r88 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r88, " ");
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_option_39_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r89 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", item_r89.name, " ");
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_div_40_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div");
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_template_41_Template(rf, ctx) { if (rf & 1) {
const _r91 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_template_41_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r91); const ctx_r90 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](7); return ctx_r90.requestShiftChange(ctx_r90.shiftItem); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Request For Change ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_template_43_Template(rf, ctx) { if (rf & 1) {
const _r93 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_template_43_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r93); const ctx_r92 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](7); return ctx_r92.stopRequestShiftChange(ctx_r92.shiftItem); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Stop Request For Change ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_Template(rf, ctx) { if (rf & 1) {
const _r95 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Confirmed staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Required Count");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "input", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_Template_input_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r95); const ctx_r94 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](6); return ctx_r94.requiredCountChange($event, !ctx_r94.shiftItem.currentReqShift); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_div_10_Template, 2, 0, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Original Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "input", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "New Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "ng-select", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_option_25_Template, 2, 2, "ng-option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](27, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "ng-select", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_option_29_Template, 2, 2, "ng-option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Report To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](34, "input", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "New Report To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "ng-select", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](39, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_option_39_Template, 2, 2, "ng-option", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](40, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_div_40_Template, 1, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](41, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_template_41_Template, 2, 0, "ng-template", null, 116, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](43, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_ng_template_43_Template, 3, 0, "ng-template", null, 117, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](42);
const _r85 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](44);
const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("readonly", !ctx_r77.shiftItem.currentReqShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r77.isErrorDisplay);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r77.timeDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r77.timeDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r77.buRepoLocation);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r77.shiftItem.currentReqShift)("ngIfThen", _r83)("ngIfElse", _r85);
} }
function ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_div_0_Template, 45, 19, "div", 100);
} if (rf & 2) {
const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r75.hideAllButton == true);
} }
function ManageComponent_div_29_form_5_div_26_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ngb-accordion", null, 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ngb-panel", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_div_29_form_5_div_26_div_2_ng_template_4_Template, 1, 1, "ng-template", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageComponent_div_29_form_5_div_26_div_2_ng_template_5_Template, 1, 1, "ng-template", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_3_ul_1_li_4_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_3_ul_1_li_4_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 135);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_3_ul_1_li_4_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_div_3_ul_1_li_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ManageComponent_div_29_form_5_div_26_div_3_ul_1_li_4_span_3_Template, 2, 0, "span", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_div_29_form_5_div_26_div_3_ul_1_li_4_span_4_Template, 2, 0, "span", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageComponent_div_29_form_5_div_26_div_3_ul_1_li_4_span_5_Template, 2, 0, "span", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const k_r98 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", k_r98.userId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", k_r98.status);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
} }
function ManageComponent_div_29_form_5_div_26_div_3_ul_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "li", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "p", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Requested User List ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_div_29_form_5_div_26_div_3_ul_1_li_4_Template, 6, 5, "li", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r96 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r96.shiftItem.requestedUsers);
} }
function ManageComponent_div_29_form_5_div_26_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_div_29_form_5_div_26_div_3_ul_1_Template, 5, 1, "ul", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r64.shiftItem.requestedUsers.length > 0);
} }
function ManageComponent_div_29_form_5_div_26_div_4_Template(rf, ctx) { if (rf & 1) {
const _r103 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 136);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_26_div_4_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r103); const ctx_r102 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r102.cancelSingleShift(ctx_r102.i); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Cancel Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_26_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_div_29_form_5_div_26_div_1_Template, 6, 0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageComponent_div_29_form_5_div_26_div_2_Template, 6, 0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ManageComponent_div_29_form_5_div_26_div_3_Template, 2, 1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_div_29_form_5_div_26_div_4_Template, 3, 0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r58.showCancelDiv && ctx_r58.hideDivForAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r58.shiftItem.confirmedStaffs.length > 0 && ctx_r58.shiftItem.isExtendedShift == false && ctx_r58.shiftItem.status != 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r58.shiftItem.confirmedStaffs.length > 0 && ctx_r58.shiftItem.isExtendedShift == false && ctx_r58.shiftItem.status != 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r58.cancelShiftbtn);
} }
function ManageComponent_div_29_form_5_div_27_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Confirmed Staff List");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_b_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "b", 152);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 153);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, ")");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r109.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("(", i_r109.staffId, "");
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_2_Template(rf, ctx) { if (rf & 1) {
const _r122 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 137);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r122); const i_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit; const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r120.cancelBookedShift(i_r109); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Cancel Booked Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Request Shift Extension ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Shift Extension Request Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Shift Extension Request Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Shift Extension Request Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Request Shift Extension ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
const _c0 = function (a0, a1, a2, a3) { return { "bg-theme": a0, "btn-warning": a1, "btn-success": a2, "btn-danger": a3 }; };
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_Template(rf, ctx) { if (rf & 1) {
const _r130 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 157);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r130); const i_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).$implicit; const ctx_r128 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r128.toggleshift(i_r109); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_2_Template, 2, 0, "span", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_3_Template, 2, 0, "span", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_4_Template, 2, 0, "span", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_5_Template, 2, 0, "span", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_span_6_Template, 2, 0, "span", 158);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "i", 159);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " expand_more ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r110 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4).index;
const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction4"](7, _c0, ctx_r119.extShift[j_r110][0] == 0 || ctx_r119.extShift[j_r110][0] == 4, ctx_r119.extShift[j_r110][0] == 1, ctx_r119.extShift[j_r110][0] == 2, ctx_r119.extShift[j_r110][0] == 3));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx_r119.extShift[j_r110][0]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", 4);
} }
const _c1 = function (a0) { return { "w-100": a0 }; };
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 154);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_2_Template, 2, 0, "button", 155);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_button_3_Template, 9, 12, "button", 156);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](3, _c1, ctx_r115.shiftItem.isAssignShift));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r115.shiftItem.activeStatus && ctx_r115.cancelBookedShiftButton == true && !ctx_r115.shiftItem.isAssignShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r115.hideAllButton == true);
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 160);
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 147);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_b_1_Template, 5, 2, "b", 148);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 149);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_3_Template, 4, 5, "div", 150);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_div_4_Template, 1, 0, "div", 151);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r113 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r113.shiftItem.activeStatus && !ctx_r113.shiftItem.isAssignShift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r113.hideBtn);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r113.shiftItem.isAssignShift);
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_div_0_Template, 5, 3, "div", 146);
} if (rf & 2) {
const ctx_r111 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r111.shiftItem.activeStatus);
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_ng_option_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r139 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r139);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r139, " ");
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_ng_option_32_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r140 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r140);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r140, " ");
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_33_Template(rf, ctx) { if (rf & 1) {
const _r143 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 176);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_33_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r143); const ctx_r142 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); const i_r109 = ctx_r142.$implicit; const j_r110 = ctx_r142.index; const ctx_r141 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r141.saveConfirmed(i_r109, j_r110); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Send Shift Extension Request ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_34_Template(rf, ctx) { if (rf & 1) {
const _r146 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 177);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_34_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r146); const i_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r144 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r144.stopShiftExtension(i_r109); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Stop Shift Extension Request ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_35_Template(rf, ctx) { if (rf & 1) {
const _r149 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 176);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_35_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r149); const ctx_r148 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); const i_r109 = ctx_r148.$implicit; const j_r110 = ctx_r148.index; const ctx_r147 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r147.againShiftExt(i_r109, j_r110); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Send Shift Extension Request Again ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_Template(rf, ctx) { if (rf & 1) {
const _r151 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 161);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 162);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 164);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "input", 166);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 166);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "New Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 167);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Start Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "input", 168, 169);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_Template_input_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const _r132 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](16); return _r132.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Start Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "ng-select", 170);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_ng_option_21_Template, 2, 2, "ng-option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 167);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "End Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "input", 171, 172);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_Template_input_click_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r151); const _r134 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](27); return _r134.toggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 165);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "label", 163);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "End Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "ng-select", 173);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_ng_option_32_Template, 2, 2, "ng-option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_33_Template, 2, 0, "button", 174);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](34, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_34_Template, 2, 0, "button", 175);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](35, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_button_35_Template, 2, 0, "button", 174);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r153 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const j_r110 = ctx_r153.index;
const i_r109 = ctx_r153.$implicit;
const ctx_r112 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroupName", j_r110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r112.ShiftForm.controls.startTime.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r112.ShiftForm.controls.endTime.value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("placeholder", i_r109.startDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("minDate", ctx_r112.minDate)("maxDate", ctx_r112.maxDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r112.timeDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("placeholder", i_r109.endDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("minDate", ctx_r112.minDate)("maxDate", ctx_r112.maxDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r112.timeDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r112.extShift[j_r110][0] == 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r112.extShift[j_r110][0] == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r112.extShift[j_r110][0] == 2 || ctx_r112.extShift[j_r110][0] == 3 || ctx_r112.extShift[j_r110][0] == 4);
} }
function ManageComponent_div_29_form_5_div_27_ngb_panel_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ngb-panel", 144);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_1_Template, 1, 1, "ng-template", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, ManageComponent_div_29_form_5_div_27_ngb_panel_6_ng_template_2_Template, 36, 22, "ng-template", 145);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r110 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "custom-panel-", j_r110, "");
} }
function ManageComponent_div_29_form_5_div_27_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 143);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Standby Staff List");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_form_5_div_27_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 178);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h6");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", 179);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const j_r154 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](j_r154.name);
} }
function ManageComponent_div_29_form_5_div_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_div_29_form_5_div_27_div_1_Template, 3, 0, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 139);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ngb-accordion", 140, 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageComponent_div_29_form_5_div_27_ngb_panel_6_Template, 3, 1, "ngb-panel", 141);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ManageComponent_div_29_form_5_div_27_div_7_Template, 3, 0, "div", 138);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ManageComponent_div_29_form_5_div_27_div_8_Template, 4, 1, "div", 142);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r59.shiftItem.isAssignShift && !ctx_r59.shiftItem.activeStatus && ctx_r59.shiftItem.confirmedStaffs.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r59.shiftItem.confirmedStaffs);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r59.shiftItem.isAssignShift && (ctx_r59.shiftItem == null ? null : ctx_r59.shiftItem.backUpStaffs.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r59.shiftItem.backUpStaffs);
} }
function ManageComponent_div_29_form_5_Template(rf, ctx) { if (rf & 1) {
const _r156 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "form", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ManageComponent_div_29_form_5_div_15_Template, 3, 0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, " Skillsets & Speciality ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, ManageComponent_div_29_form_5_ng_container_19_Template, 2, 1, "ng-container", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Reports To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, ManageComponent_div_29_form_5_div_24_Template, 12, 0, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ManageComponent_div_29_form_5_div_25_Template, 13, 0, "div", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, ManageComponent_div_29_form_5_div_26_Template, 5, 4, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, ManageComponent_div_29_form_5_div_27_Template, 9, 4, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, "Cancel Confirmation");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "h4", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, " Are you sure, you want to cancel this shift? ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "button", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, " Yes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "button", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_form_5_Template_button_click_41_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r156); const ctx_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r155.cancelShift(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, " No ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r52.ShiftForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r52.isSplitTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r52.skillLabel.length);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r52.hideDivForAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r52.hideDivForAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r52.hideBtn);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r52.isShiftReqChange);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngClass", ctx_r52.cancel ? "show-modal" : "");
} }
function ManageComponent_div_29_div_6_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 187);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 188);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_div_6_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Report To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "input", 189);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_div_6_div_25_ng_option_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r168 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r168);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r168, " ");
} }
function ManageComponent_div_29_div_6_div_25_ng_option_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r169 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r169);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r169, " ");
} }
function ManageComponent_div_29_div_6_div_25_div_20_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r172 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r172);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r172, " ");
} }
function ManageComponent_div_29_div_6_div_25_div_20_ng_option_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r173 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r173);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r173, " ");
} }
function ManageComponent_div_29_div_6_div_25_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 202);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ManageComponent_div_29_div_6_div_25_div_20_ng_option_4_Template, 2, 2, "ng-option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "ng-select", 203);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ManageComponent_div_29_div_6_div_25_div_20_ng_option_8_Template, 2, 2, "ng-option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r165 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r165.timeDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r165.timeDropDown);
} }
function ManageComponent_div_29_div_6_div_25_div_43_div_1_Template(rf, ctx) { if (rf & 1) {
const _r178 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 205);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 206);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 207);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_div_6_div_25_div_43_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r178); const i_r176 = ctx.index; const ctx_r177 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r177.clearLabel(i_r176); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r175 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", item_r175[0], " > ", item_r175[1], "");
} }
function ManageComponent_div_29_div_6_div_25_div_43_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageComponent_div_29_div_6_div_25_div_43_div_1_Template, 5, 2, "div", 204);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r166 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r166.skillsLabel);
} }
function ManageComponent_div_29_div_6_div_25_button_44_Template(rf, ctx) { if (rf & 1) {
const _r180 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 208);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_div_6_div_25_button_44_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r180); const ctx_r179 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r179.shiftRecallSubmit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_div_6_div_25_Template(rf, ctx) { if (rf & 1) {
const _r182 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "form", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Set Timing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "ng-select", 191);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ManageComponent_div_29_div_6_div_25_ng_option_8_Template, 2, 2, "ng-option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "ng-select", 192);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ManageComponent_div_29_div_6_div_25_ng_option_14_Template, 2, 2, "ng-option", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 193);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "input", 194);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_div_6_div_25_Template_input_click_17_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r182); const ctx_r181 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r181.onChangeSplit(!ctx_r181.isSplit); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 195);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Split Shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, ManageComponent_div_29_div_6_div_25_div_20_Template, 9, 10, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Reports to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "ng-select", 196);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Select Skillsets ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "ng-select", 197);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ManageComponent_div_29_div_6_div_25_Template_ng_select_change_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r182); const ctx_r183 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r183.setSubSkill(ctx_r183.recallForm.controls.SkillSets.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, " Select Speciality ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](37, "ng-select", 198);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 190);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "button", 199);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "button", 200);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_div_29_div_6_div_25_Template_button_click_41_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r182); const ctx_r184 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r184.addSkills(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](43, ManageComponent_div_29_div_6_div_25_div_43_Template, 2, 1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](44, ManageComponent_div_29_div_6_div_25_button_44_Template, 2, 0, "button", 201);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r159 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r159.recallForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r159.timeDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r159.timeDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r159.isSplit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r159.reportLocation)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r159.skillSet)("multiple", false)("searchable", true)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r159.subSkill)("multiple", false)("searchable", true)("closeOnSelect", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r159.skillsLabel != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r159.selectedRecall.isRecalled == false);
} }
function ManageComponent_div_29_div_6_h5_27_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 209);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Shift Recall Request Pending");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_div_6_h5_28_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 210);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Shift Recall Request Accepted");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_div_6_h5_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h5");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 211);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Shift Recall Request Rejected");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ManageComponent_div_29_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "form", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "input", 181);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 182);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Staff Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "input", 183);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 180);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "Staff ID");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 184);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, ManageComponent_div_29_div_6_div_18_Template, 11, 0, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, ManageComponent_div_29_div_6_div_19_Template, 4, 0, "div", 185);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 186);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "h6", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, "Recall");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, ManageComponent_div_29_div_6_div_25_Template, 45, 29, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, ManageComponent_div_29_div_6_h5_27_Template, 3, 0, "h5", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](28, ManageComponent_div_29_div_6_h5_28_Template, 3, 0, "h5", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, ManageComponent_div_29_div_6_h5_29_Template, 3, 0, "h5", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r53.restOffForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r53.selectedRecall.isRecalled == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r53.selectedRecall.isRecalled == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r53.selectedRecall.isRecalled == false && ctx_r53.selectedRecall.isRecallAccepted == 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r53.selectedRecall.isRecallAccepted == 1 && ctx_r53.selectedRecall.isRecalled == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r53.selectedRecall.isRecallAccepted == 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r53.selectedRecall.isRecallAccepted == 3);
} }
function ManageComponent_div_29_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "CREATE SHIFT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ManageComponent_div_29_form_5_Template, 43, 8, "form", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageComponent_div_29_div_6_Template, 30, 7, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !!(ctx_r6.ShiftForm == null ? null : ctx_r6.ShiftForm.controls == null ? null : ctx_r6.ShiftForm.controls.date == null ? null : ctx_r6.ShiftForm.controls.date.value));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.cfr);
} }
function ManageComponent_div_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 212);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 213);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 214);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 215);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Please wait, Data is Refreshing ...... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
class CustomDateParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"] {
constructor() {
super(...arguments);
this.DELIMITER = '-';
}
parse(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1].padStart(2, '0'), 10),
year: parseInt(date[2], 10),
};
}
return null;
}
format(date) {
return date
? date.day +
this.DELIMITER +
parseInt(date.month.toString().padStart(2, '0'), 10) +
this.DELIMITER +
date.year
: '';
}
}
CustomDateParserFormatter.ɵfac = function CustomDateParserFormatter_Factory(t) { return ɵCustomDateParserFormatter_BaseFactory(t || CustomDateParserFormatter); };
CustomDateParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: CustomDateParserFormatter, factory: CustomDateParserFormatter.ɵfac });
const ɵCustomDateParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CustomDateParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CustomDateParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
}], null, null); })();
class ManageComponent {
constructor(fb, calendar, toastService, planShiftService, buService, companyService) {
this.fb = fb;
this.calendar = calendar;
this.toastService = toastService;
this.planShiftService = planShiftService;
this.buService = buService;
this.companyService = companyService;
this.ChangeTabId = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.headerData = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.day = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.cancel = false;
this.isErrorDisplay = false;
this.dayArr = [
{ count: 0, day: 'M' },
{ count: 1, day: 'T' },
{ count: 2, day: 'W' },
{ count: 3, day: 'T' },
{ count: 4, day: 'F' },
{ count: 5, day: 'S' },
{ count: 6, day: 'S' },
];
this.weekDates = [];
this.skillLabel = [];
this.hideBtn = true;
this.disabled = false;
this.showshift = false;
this.toggle = true;
this.status = 'Enable';
this.showRequest = false;
this.showStopRequest = false;
this.cancelPermission = true;
this.showCancelDiv = false;
this.hideDivForAssign = true;
this.hideDivForOpen = true;
this.extShift = [];
this.isSplit = false;
this.skillSet = [];
this.subSkill = [];
this.skillsLabel = [];
this.skillsId = [];
this.adjustShiftbtn = false;
this.today = new Date();
this.minDate = { year: this.today.getFullYear(), month: this.today.getMonth() + 1, day: this.today.getDate() };
this.maxDate = { year: new Date().getFullYear() + 1, month: 12, day: 31 };
this.hideCancelShifts = false;
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["getGmtOffSet"])();
this.getBuShift(this.buId);
this.selectedDay = this.dayArr[0];
this.ShiftForm = this.fb.group({
buName: [''],
date: [''],
startTime: [''],
endTime: [''],
reqStartTime: [''],
startDateTime: [''],
splitstartTime: [''],
splitendTime: [''],
endDateTime: [''],
extArr: this.fb.array([]),
staffNeedCount: [''],
backUpStaffNeedCount: [''],
backUpStaffNeedCountBooked: [''],
backUpStaffNeedCountSBBooked: [''],
setTimingStart: [''],
confirmedCount: [''],
standByCount: [''],
adjust: [''],
reqEndTime: [''],
reportLocationId: [''],
reqReportLocationId: [''],
reqStaffNeedCount: [''],
});
this.createDays();
this.getSelectedWeek1(this.selectedDay);
this.getPage();
this.displayLocationTable();
this.selectTime();
this.getTier();
}
getBuShift(bu) {
this.buService.getBuShiftEdit(bu._id).subscribe((res) => {
this.buShiftDetails = res['data']['businessUnitList'];
});
}
getTier() {
this.companyService.getcompanySetting().subscribe((res) => {
var _a;
this.tier = (_a = res.data.opsGroup) === null || _a === void 0 ? void 0 : _a.tierType;
});
}
ngOnChanges() {
if (this.refresh) {
this.selectedDay = this.dayArr[0];
this.createDays();
this.getSelectedWeek1(this.selectedDay);
this.getPage();
}
}
changeStatus(event) {
var _a, _b, _c;
this.hideCancelShifts = (_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.checked;
if (!!((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.checked) && this.selectedShiftStatus == 2) {
this.selectedShift = null;
(_c = this.ShiftForm) === null || _c === void 0 ? void 0 : _c.reset();
}
}
selectTime() {
this.timeDropDown = [];
for (let hour = 0; hour < 24; hour++) {
this.timeDropDown.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour }).format('HH:mm'));
this.timeDropDown.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 15 }).format('HH:mm'));
this.timeDropDown.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 30 }).format('HH:mm'));
this.timeDropDown.push(moment__WEBPACK_IMPORTED_MODULE_2__({ hour, minute: 45 }).format('HH:mm'));
}
}
displayLocationTable() {
this.buService.getRepoLocations(this.buId).subscribe((res) => {
this.buRepoLocation = res['data'].reportingLocation;
});
}
cancelShift(val) {
this.cancel = val;
}
toggleshift(i) {
var _a;
this.confirmedUserId = i._id;
this.showshift = !this.showshift;
(_a = this.ShiftForm) === null || _a === void 0 ? void 0 : _a.patchValue({
startDateTime: i.startTime,
endDateTime: i.endTime,
});
}
getPage() {
if (this.page == 'view') {
this.hideBtn = false;
}
}
createDays() {
for (var i = 0; i < 7; i++) {
var j = moment__WEBPACK_IMPORTED_MODULE_2__(this.week);
this.weekDates.push(j.add(i, 'days').format('DD-MM-YYYY'));
}
}
getSelectedWeek1(day) {
var _a;
this.day.emit(day);
this.selectedDay = day;
for (var i = 0; i < 7; i++) {
if (this.selectedDay.count == i) {
const shiftKeyList = Object.keys(this.shift.list);
if (shiftKeyList.length) {
if (shiftKeyList.includes(this.weekDates[i])) {
this.dayShifts = this.shift.list[this.weekDates[i]];
this.getListShift(this.dayShifts[0]);
}
else {
this.dayShifts = [];
}
}
else {
this.dayShifts = [];
this.skillLabel = [];
(_a = this.ShiftForm) === null || _a === void 0 ? void 0 : _a.reset();
}
for (let m = 0; this.dayShifts.length > m; m++) {
if (this.dayShifts[m].isRest == true) {
this.rest = this.dayShifts[m].confirmedStaffs;
}
}
for (let k = 0; this.dayShifts.length > k; k++) {
if (this.dayShifts[k].isOff == true) {
this.off = this.dayShifts[k].confirmedStaffs;
}
}
}
}
}
getListShift(i) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
this.selectedShiftStatus = i === null || i === void 0 ? void 0 : i.status;
this.cfr = false;
this.shiftItem = i;
var d = new Date();
this.currentDate = d.toISOString();
this.selectedShift = i;
this.skillLabel = [];
this.cancelPermission = i.shiftId.businessUnitId.cancelShiftPermission;
this.reqstartdate = moment__WEBPACK_IMPORTED_MODULE_2__(this.shiftItem.startTime).format('MM-DD-YYYY');
this.reqEnddate = moment__WEBPACK_IMPORTED_MODULE_2__(this.shiftItem.endTime).format('MM-DD-YYYY');
this.shiftItem._id = i._id;
this.shiftReqId = i.shiftId._id;
this.username = i.confirmedStaffs;
this.extendedStaffTime = i.extendedStaff;
this.weekstartDay =
moment__WEBPACK_IMPORTED_MODULE_2__(i.shiftId.weekRangeStartsAt).format('MM-DD-YYYY') +
' 00:00:00 ' + this.gmtOffset;
this.days = moment__WEBPACK_IMPORTED_MODULE_2__(i.startTime).format('MM-DD-YYYY') + ' 00:00:00 ' + this.gmtOffset;
this.cancelDays = i.startTime;
if (this.cancelDays >= this.currentDate) {
this.showCancelDiv = true;
}
if (i.isAssignShift == true) {
this.hideDivForAssign = false;
}
else if (i.isAssignShift == false) {
this.hideDivForAssign = true;
}
const mock = moment__WEBPACK_IMPORTED_MODULE_2__(i.date, "YYYY-MM-DD").toLocaleString();
const another = moment__WEBPACK_IMPORTED_MODULE_2__(i.startTime, "YYYY-MM-DD").toLocaleString();
if (moment__WEBPACK_IMPORTED_MODULE_2__().isBefore(i.startTime) &&
!i.isAssignShift && ((_a = this.buShiftDetails) === null || _a === void 0 ? void 0 : _a.cancelShiftPermission) && (i === null || i === void 0 ? void 0 : i.status) === 1) {
this.cancelShiftbtn = true;
}
else {
this.cancelShiftbtn = false;
}
if (moment__WEBPACK_IMPORTED_MODULE_2__().isBefore(i.startTime) && (i === null || i === void 0 ? void 0 : i.status) !== 2) {
this.hideAllButton = true;
this.adjustShiftbtn = false;
this.cancelBookedShiftButton = true;
}
else {
this.hideAllButton = false;
this.adjustShiftbtn = true;
this.cancelBookedShiftButton = false;
}
if (moment__WEBPACK_IMPORTED_MODULE_2__().isBefore(i.startTime) && (i === null || i === void 0 ? void 0 : i.status) !== 2 && !(i === null || i === void 0 ? void 0 : i.isSplitShift)) {
this.hideAllButton = true;
}
else {
this.hideAllButton = false;
}
(_b = this.ShiftForm) === null || _b === void 0 ? void 0 : _b.patchValue({
buName: this.buId.orgName,
date: moment__WEBPACK_IMPORTED_MODULE_2__(i.date).format('DD MMM YYYY'),
startTime: moment__WEBPACK_IMPORTED_MODULE_2__(i.startTime).format('HH:mm'),
endTime: moment__WEBPACK_IMPORTED_MODULE_2__(i.endTime).format('HH:mm'),
startDateTime: this.extendedStaffTime,
endDateTime: this.extendedStaffTimeD,
staffNeedCount: i.staffNeedCount,
reqStaffNeedCount: Number((_d = (_c = this.dayShifts.find(id => id._id == i._id)) === null || _c === void 0 ? void 0 : _c.currentReqShift) === null || _d === void 0 ? void 0 : _d.staffNeedCount),
backUpStaffNeedCount: i.backUpStaffNeedCount,
backUpStaffNeedCountBooked: i.confirmedStaffs.length,
backUpStaffNeedCountSBBooked: i.backUpStaffs.length,
});
if (i.reportLocationId != null) {
(_e = this.ShiftForm) === null || _e === void 0 ? void 0 : _e.patchValue({
reportLocationId: (_f = i.reportLocationId) === null || _f === void 0 ? void 0 : _f.name,
});
}
else {
(_g = this.ShiftForm) === null || _g === void 0 ? void 0 : _g.patchValue({
reportLocationId: (_h = i.geoReportingLocation) === null || _h === void 0 ? void 0 : _h.name,
});
}
this.isSplitTime = i.isSplitShift;
if (i.isSplitShift) {
(_j = this.ShiftForm) === null || _j === void 0 ? void 0 : _j.patchValue({
splitstartTime: moment__WEBPACK_IMPORTED_MODULE_2__(i.splitShiftStartTime).format('HH:mm'),
splitendTime: moment__WEBPACK_IMPORTED_MODULE_2__(i.splitShiftEndTime).format('HH:mm'),
});
}
if ((_k = i.subSkillSets) === null || _k === void 0 ? void 0 : _k.length) {
i.subSkillSets.forEach((element) => {
this.skillLabel.push([element.skillSetId.name, element.name]);
});
}
else if ((_l = i.mainSkillSets) === null || _l === void 0 ? void 0 : _l.length) {
i.mainSkillSets.forEach((element) => {
this.skillLabel.push([element.name, '_']);
});
}
if (i.currentReqShift) {
(_m = this.ShiftForm) === null || _m === void 0 ? void 0 : _m.patchValue({
reqStartTime: moment__WEBPACK_IMPORTED_MODULE_2__(i.currentReqShift.startTime).format('HH:mm'),
reqEndTime: moment__WEBPACK_IMPORTED_MODULE_2__(i.currentReqShift.endTime).format('HH:mm'),
reqReportLocationId: (_o = i.currentReqShift.reportLocationId) === null || _o === void 0 ? void 0 : _o.name,
});
}
this.extShift = [];
this.extItem = (_p = this.ShiftForm) === null || _p === void 0 ? void 0 : _p.get('extArr');
(_q = this.extItem) === null || _q === void 0 ? void 0 : _q.clear();
for (var c = 0; i.confirmedStaffs.length > c; c++) {
const cs = i.confirmedStaffs[c]._id;
const sd = moment__WEBPACK_IMPORTED_MODULE_2__(i.confirmedStaffs[c].startDate, 'DD-MM-YYYY');
const ed = moment__WEBPACK_IMPORTED_MODULE_2__(i.confirmedStaffs[c].endDate, 'DD-MM-YYYY');
(_r = this.extItem) === null || _r === void 0 ? void 0 : _r.push(this.fb.group({
ts: i.confirmedStaffs[c].startTime,
te: i.confirmedStaffs[c].endTime,
sd: new _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDate"](sd.year(), sd.month() + 1, sd.date()),
ed: new _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDate"](ed.year(), ed.month() + 1, ed.date()),
st: '',
et: '',
}));
if (i.extendedStaff.length > 0) {
const inn = i.extendedStaff.findIndex((x) => x.userId == cs);
if (inn != -1) {
this.extShift.push([
i.extendedStaff[inn].confirmStatus,
i.extendedStaff[inn].userId,
]);
}
else {
this.extShift.push([0, cs]);
}
}
else {
this.extShift.push([0, cs]);
}
}
}
requiredCountChange(value, isShiftChange) {
this.isErrorDisplay = isShiftChange && value > this.ShiftForm.value.backUpStaffNeedCountBooked;
}
changeOff(i) {
this.selectedShift = i;
this.skillsId = [];
this.skillsLabel = [];
this.selectedRecall = i;
this.getLocation();
this.skillSet = i.confirmedStaffs[0].subSkillSets;
this.cfr = true;
this.restOffForm = this.fb.group({
bu: this.buId.businessUnit,
date: moment__WEBPACK_IMPORTED_MODULE_2__(i.day, 'YYYY-MM-DD').format('DD MMM YYYY'),
staffN: i.confirmedStaffs[0].name,
staffId: i.confirmedStaffs[0].staffId,
startTime: i.confirmedStaffs[0].startTime,
endTime: i.confirmedStaffs[0].endTime,
reportLoc: '',
});
if (i.isRecalled == true) {
this.restOffForm.patchValue({
reportLoc: i.reportLocationId.name,
});
}
this.recallForm = this.fb.group({
StartTime: null,
EndTime: null,
SkillSets: null,
subSkillSets: null,
reportLocation: null,
});
}
shiftRecallSubmit() {
this.shiftRecallReqPayload = {
shiftDetailId: this.selectedRecall._id,
startTime: moment__WEBPACK_IMPORTED_MODULE_2__(this.selectedRecall.day, 'YYYY-MM-DD').format('MM-DD-YYYY') +
' ' +
this.recallForm.controls.StartTime.value +
':00 ' + this.gmtOffset,
endTime: moment__WEBPACK_IMPORTED_MODULE_2__(this.selectedRecall.day, 'YYYY-MM-DD').format('MM-DD-YYYY') +
' ' +
this.recallForm.controls.EndTime.value +
':00 ' + this.gmtOffset,
reportLocationId: this.recallForm.controls.reportLocation.value,
mainSkillSets: [],
subSkillSets: this.skillsId,
isOffed: this.selectedRecall.isOff,
isRested: this.selectedRecall.isRest,
userId: this.selectedRecall.confirmedStaffs[0]._id,
assignShiftId: this.selectedRecall.draftId._id,
isSplitShift: false,
splitStartTime: moment__WEBPACK_IMPORTED_MODULE_2__(this.selectedRecall.day, 'YYYY-MM-DD').format('MM-DD-YYYY') +
' undefined:00 ' + this.gmtOffset,
splitEndTime: moment__WEBPACK_IMPORTED_MODULE_2__(this.selectedRecall.day, 'YYYY-MM-DD').format('MM-DD-YYYY') +
' undefined:00 ' + this.gmtOffset,
};
this.planShiftService
.createRecall(this.shiftRecallReqPayload)
.subscribe((res) => {
this.toastService.success('Recall Request sent successfully.');
this.ChangeTabId.emit(3);
});
}
setSubSkill(i) {
this.recallForm.patchValue({
subSkillSets: null,
});
this.subSkill = [];
this.subSkill.push(i);
}
addSkills() {
this.skillsLabel.push([
this.recallForm.controls.SkillSets.value.skillSetId.name,
this.recallForm.controls.subSkillSets.value.name,
]);
this.skillsId.push(this.recallForm.controls.subSkillSets.value._id);
this.recallForm.patchValue({
SkillSets: null,
subSkillSets: null,
});
}
clearLabel(i) {
this.skillsLabel.splice(i, 1);
this.skillsId.splice(i, 1);
}
onChangeSplit(value) {
this.isSplit = value;
}
getLocation() {
const location = this.buService
.getRepoLocations(this.buId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
location.unsubscribe();
}))
.subscribe((res) => {
this.reportLocation = res['data'].reportingLocation;
});
}
saveConfirmed(i, j) {
this.toggle = !this.toggle;
this.status = this.toggle ? 'Enable' : 'Disable';
this.selectedShift = i;
this.skillLabel = [];
const sd = this.extItem.value[j].sd.day +
'-' +
this.extItem.value[j].sd.month +
'-' +
this.extItem.value[j].sd.year;
const ed = this.extItem.value[j].ed.day +
'-' +
this.extItem.value[j].ed.month +
'-' +
this.extItem.value[j].ed.year;
this.confirmedShiftForm = {
from: 'shiftextension',
userId: i._id,
shiftDetailsId: this.shiftItem._id,
startDateTime: moment__WEBPACK_IMPORTED_MODULE_2__(sd, 'D-M-YYYY').format('MM-DD-YYYY') +
' ' +
this.extItem.value[j].ts +
':00 ' + this.gmtOffset,
endDateTime: moment__WEBPACK_IMPORTED_MODULE_2__(ed, 'D-M-YYYY').format('MM-DD-YYYY') +
' ' +
this.extItem.value[j].te +
':00 ' + this.gmtOffset,
};
this.confirmedYesShiftForm = {
userId: i._id,
shiftDetailId: this.shiftItem._id,
startDateTime: moment__WEBPACK_IMPORTED_MODULE_2__(sd, 'D-M-YYYY').format('MM-DD-YYYY') +
' ' +
this.extItem.value[j].ts +
':00 ' + this.gmtOffset,
endDateTime: moment__WEBPACK_IMPORTED_MODULE_2__(ed, 'D-M-YYYY').format('MM-DD-YYYY') +
' ' +
this.extItem.value[j].te +
':00 ' + this.gmtOffset,
};
this.planShiftService
.shiftExtension(this.confirmedShiftForm)
.subscribe((res) => {
this.message = res['message'];
if (res['limit'] == true) {
if (i.schemeId.shiftSetup.limits.normalHr.day.alert == true) {
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: res['message'],
text: 'Do you want to continue?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
cancelButtonText: 'No',
confirmButtonText: 'Yes',
}).then((result) => {
if (result.isConfirmed) {
this.planShiftService
.confirmedShift(this.confirmedYesShiftForm)
.subscribe((res) => {
this.toastService.success('Shift Extension Request sent successfully.');
this.ChangeTabId.emit(3);
this.getSelectedWeek1(this.selectedDay);
});
}
});
}
else {
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
text: 'Exceeds Daily Limit',
denyButtonText: `Close`,
});
}
}
else {
this.toastService.success('Shift Extension Request sent successfully.');
this.ChangeTabId.emit(3);
this.getSelectedWeek1(this.selectedDay);
}
});
}
stopShiftExtension(i) {
const stopShiftParam = {
userId: i._id,
shiftDetailId: this.shiftItem._id,
};
this.planShiftService
.stopShiftExtension(stopShiftParam)
.subscribe((res) => {
this.toastService.success('Shift Extension Request Stopped successfully.');
this.ChangeTabId.emit(3);
});
this.getSelectedWeek1(this.selectedDay);
}
againShiftExt(i, j) {
const sd = this.extItem.value[j].sd.day +
'-' +
this.extItem.value[j].sd.month +
'-' +
this.extItem.value[j].sd.year;
const ed = this.extItem.value[j].ed.day +
'-' +
this.extItem.value[j].ed.month +
'-' +
this.extItem.value[j].ed.year;
const shiftExtParam = {
from: 'shiftextensionagain',
userId: i._id,
shiftDetailsId: this.shiftItem._id,
startDateTime: moment__WEBPACK_IMPORTED_MODULE_2__(sd, 'D-M-YYYY').format('MM-DD-YYYY') +
' ' +
this.extItem.value[j].ts +
':00 ' + this.gmtOffset,
endDateTime: moment__WEBPACK_IMPORTED_MODULE_2__(ed, 'D-M-YYYY').format('MM-DD-YYYY') +
' ' +
this.extItem.value[j].te +
':00 ' + this.gmtOffset,
};
const againShiftExtParam = {
endDateTime: moment__WEBPACK_IMPORTED_MODULE_2__(ed, 'D-M-YYYY').format('MM-DD-YYYY') +
' ' +
this.extItem.value[j].te +
':00 ' + this.gmtOffset,
shiftDetailId: this.shiftItem._id,
startDateTime: moment__WEBPACK_IMPORTED_MODULE_2__(sd, 'D-M-YYYY').format('MM-DD-YYYY') +
' ' +
this.extItem.value[j].ts +
':00 ' + this.gmtOffset,
userId: i._id,
};
this.planShiftService.shiftExtension(shiftExtParam).subscribe((res) => {
this.message = res['message'];
if (res['limit'] == true) {
if (i.schemeId.shiftSetup.limits.normalHr.day.alert == true) {
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: res['message'],
text: 'Do you want to continue?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
cancelButtonText: 'No',
confirmButtonText: 'Yes',
}).then((result) => {
if (result.isConfirmed) {
this.planShiftService
.againShiftExtension(againShiftExtParam)
.subscribe((res) => {
this.toastService.success('Shift Extension Request sent successfully.');
this.ChangeTabId.emit(3);
});
this.getSelectedWeek1(this.selectedDay);
}
});
}
else {
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
text: 'Exceeds Daily Limit',
denyButtonText: `Close`,
});
}
}
else {
this.toastService.success('Shift Extension Request sent successfully.');
this.ChangeTabId.emit(3);
this.getSelectedWeek1(this.selectedDay);
}
});
}
saveAdjust() {
var _a, _b;
this.ShiftDetIdAdjust = this.shiftItem._id;
this.adjustShiftForm = {
businessUnitId: this.buId._id,
shiftDetailsId: this.ShiftDetIdAdjust,
startDate: this.weekstartDay,
staffNeedCount: parseInt((_b = (_a = this.ShiftForm) === null || _a === void 0 ? void 0 : _a.controls) === null || _b === void 0 ? void 0 : _b.adjust.value),
};
this.planShiftService
.saveAdjustShift(this.adjustShiftForm)
.subscribe((res) => {
this.toastService.success('Staff Count adjusted successfully.');
this.ChangeTabId.emit(3);
});
}
requestShiftChange(i) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
if (this.isErrorDisplay) {
return;
}
if (!this.ShiftForm.value.reqReportLocationId) {
return this.toastService.error("Please enter Reporting Location");
}
this.selectedShift = i;
this.skillLabel = [];
this.shiftItem = i;
this.requestShiftForm = {
shiftId: this.shiftReqId,
shiftDetailsId: this.shiftItem._id,
startTime: this.reqstartdate +
' ' + ((_b = (_a = this.ShiftForm) === null || _a === void 0 ? void 0 : _a.controls) === null || _b === void 0 ? void 0 : _b.reqStartTime.value) +
':00 ' + this.gmtOffset,
endTime: this.reqEnddate +
' ' + ((_d = (_c = this.ShiftForm) === null || _c === void 0 ? void 0 : _c.controls) === null || _d === void 0 ? void 0 : _d.reqEndTime.value) +
':00 ' + this.gmtOffset,
reportLocationId: (_h = (_g = (_f = (_e = this.ShiftForm) === null || _e === void 0 ? void 0 : _e.controls) === null || _f === void 0 ? void 0 : _f.reqReportLocationId) === null || _g === void 0 ? void 0 : _g.value) === null || _h === void 0 ? void 0 : _h._id,
staffNeedCount: parseInt((_l = (_k = (_j = this.ShiftForm) === null || _j === void 0 ? void 0 : _j.controls) === null || _k === void 0 ? void 0 : _k.reqStaffNeedCount) === null || _l === void 0 ? void 0 : _l.value),
};
this.planShiftService
.requestChange(this.requestShiftForm)
.subscribe((res) => {
this.toastService.success('Shift Change Request sent succesfully.');
this.ChangeTabId.emit(3);
}, (error) => {
this.toastService.error("Staff need Count Should be greater than 0.");
});
}
stopRequestShiftChange(i) {
this.selectedShift = i;
this.skillLabel = [];
this.shiftItem = i;
this.stopRequestShiftForm = {
shiftId: this.shiftItem.currentReqShift.shiftId,
shiftDetailsId: this.shiftItem._id,
};
this.planShiftService
.stopRequestChange(this.stopRequestShiftForm)
.subscribe((res) => {
this.toastService.success('Shift Change Request stopped succesfully.');
this.ChangeTabId.emit(3);
});
}
cancelSingleShift() {
this.cancelShiftForm = {
shiftId: this.shiftReqId,
shiftDetailsId: this.shiftItem._id,
};
this.selectedShift.isSplitShift ? this.cancelShiftForm['isSplitShift'] = true : delete this.cancelShiftForm.isSplitShift;
if (this.cancelPermission == false) {
this.toastService.warning('Permission Denied to cancel');
}
else {
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: 'Cancel Confirmation',
text: 'Do you want to cancel shift ?',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.planShiftService.cancelShiftNew(this.cancelShiftForm).subscribe((result) => {
this.ChangeTabId.emit(3);
this.toastService.success('Cancelled Shift succesfully ');
}, (error) => {
this.toastService.warning(result['message']);
this.errors = error;
});
}
});
}
}
cancelBookedShift(data) {
var _a;
const cancelShiftForm = {
shiftId: this.shiftReqId,
shiftDetailsId: this.shiftItem._id,
userId: data === null || data === void 0 ? void 0 : data._id,
splitShiftId: (_a = this.shiftItem) === null || _a === void 0 ? void 0 : _a.splitShiftId
};
if (this.cancelPermission == false) {
this.toastService.warning('Permission Denied to cancel');
}
else {
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: 'Cancel Confirmation',
text: "Are you sure you want to cancel this user's booked shift?",
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'No',
}).then((result) => {
if (result.isConfirmed) {
this.planShiftService.cancelBookedShift(cancelShiftForm).subscribe((result) => {
this.ChangeTabId.emit(3);
this.toastService.success('Cancelled Shift succesfully ');
}, (error) => {
var _a;
this.toastService.warning((_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.message);
this.errors = error;
});
}
});
}
}
}
ManageComponent.ɵfac = function ManageComponent_Factory(t) { return new (t || ManageComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbCalendar"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_9__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__["CompanySetupService"])); };
ManageComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageComponent, selectors: [["app-manage"]], inputs: { shift: "shift", week: "week", buId: "buId", page: "page", refresh: "refresh", isLoader: "isLoader" }, outputs: { ChangeTabId: "ChangeTabId", headerData: "headerData", day: "day" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 32, vars: 8, consts: [[1, "card"], [1, "card-header", "align-items-center", "bg-theme", "d-flex", "justify-content-between"], [1, "m-0"], [1, "switch"], ["type", "checkbox", 3, "checked", "click"], [1, "slider", "round"], [1, "font-weight-500", "pl-2"], [1, "card-body"], [1, "row"], [1, "col-md-5"], [1, "form-group"], ["for", "", 1, "font-weight-500"], ["class", "dayButton", 3, "selected", "click", 4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["thenBlock", ""], ["elseBlock", ""], [1, "col-md-6"], ["class", "card", 4, "ngIf"], ["class", "loader", 4, "ngIf"], [1, "dayButton", 3, "click"], [4, "ngFor", "ngForOf"], [1, "col-md-12", "p-0"], [1, "mt-4", "redButton", "rounded", "text-center3"], ["class", "shiftTab my-2", 3, "selectedShift", "selectedShiftAssign", "assign", "click", 4, "ngIf"], [1, "shiftTab", "my-2", 3, "click"], ["class", "m-0 my-1", 4, "ngIf"], [1, "d-flex", "justify-content-between"], [1, "text-secondary"], [4, "ngIf"], ["class", "text-info", 4, "ngIf"], ["class", "m-0", 4, "ngIf"], ["class", "d-flex justify-content-end", 4, "ngIf"], ["class", "badge badge-danger badge-pill", 4, "ngIf"], [1, "m-0", "my-1"], ["class", "m-0", 4, "ngFor", "ngForOf"], [1, "text-info"], [1, "d-flex", "justify-content-end"], [1, "badge", "badge-pill", "bg-theme", "text-white"], [1, "badge", "badge-danger", "badge-pill"], ["class", "shiftTab my-2", 3, "selectedShift", 4, "ngIf"], [1, "shiftTab", "my-2"], ["class", "d-flex align-items-center justify-content-between mt-1", 4, "ngFor", "ngForOf"], [1, "d-flex", "align-items-center", "justify-content-between", "mt-1"], [1, "btn", "btn-primary", 3, "click"], [1, "text-muted"], [1, "card-header", "flexi-header"], [3, "formGroup", 4, "ngIf"], [3, "formGroup"], [1, "mb-3", "col-md-12"], [1, "form-input", "mb-2"], ["formControlName", "buName", "readonly", "", 1, "form-control", "disabled"], ["formControlName", "date", "readonly", "", 1, "form-control", "disabled"], [1, "col-md-12", "no-padding", "flexDisplay"], ["formControlName", "startTime", "readonly", "", 1, "form-control", "mr-2"], ["formControlName", "endTime", "readonly", "", 1, "form-control", "ml-2"], ["class", "col-md-12 no-padding flexDisplay mb-1", 4, "ngIf"], [1, "form-input", "col-md-12", "no-padding", "mb-2"], ["formControlName", "reportLocationId", "readonly", "", 1, "form-control"], ["class", "mb-3 col-md-12", 4, "ngIf"], ["class", "forView", 4, "ngIf"], ["class", "col-md-12", 4, "ngIf"], ["id", "mmmModal", 1, "modal", 3, "ngClass"], [1, "modal-dialog", 2, "width", "50%", "height", "200px"], [1, "modal-content", "modalContentBoxGrey"], [1, "modal-header"], [1, "modal-body"], [2, "font-size", "17px"], [1, "modal-footer"], [1, "btn", "footer-button", "btn-danger", 2, "font-size", "11px"], ["type", "button", 1, "btn", "footer-button", "btn-primary", 3, "click"], [1, "col-md-12", "no-padding", "flexDisplay", "mb-1"], ["formControlName", "splitstartTime", "readonly", "", 1, "form-control", "mr-2"], ["formControlName", "splitendTime", "readonly", "", 1, "form-control", "ml-2"], ["class", "redButton mr-2 mb-2 d-inline-block", 4, "ngFor", "ngForOf"], [1, "redButton", "mr-2", "mb-2", "d-inline-block"], ["formControlName", "staffNeedCount", "readonly", "", 1, "form-control", "pr-2"], [1, "pr-2"], ["formControlName", "backUpStaffNeedCount", "readonly", "", 1, "form-control", "pl-2"], [1, "pl-2"], [1, "redButton", "col-md-12", "no-padding", "mb-2"], ["formControlName", "backUpStaffNeedCountBooked", "readonly", "", 1, "form-control", "pr-2"], ["formControlName", "backUpStaffNeedCountSBBooked", "readonly", "", 1, "form-control", "pl-2"], [1, "forView"], ["class", "col-md-12 mb-3", 4, "ngIf"], ["class", "col-md-12 my-3", 4, "ngIf"], ["class", "col-md-12 row no-gutters", 4, "ngIf"], [1, "col-md-12", "mb-3"], ["a", "ngbAccordion"], ["id", "custom-panel-1"], ["ngbPanelHeader", ""], ["ngbPanelContent", ""], ["ngbPanelToggle", "", "type", "button", "class", "btn btn-block bg-theme", "data-toggle", "collapse", "data-target", "#adjustShift", 4, "ngIf"], ["ngbPanelToggle", "", "type", "button", "data-toggle", "collapse", "data-target", "#adjustShift", 1, "btn", "btn-block", "bg-theme"], [1, "material-icons", "text-white", "down"], ["id", "adjustShift"], ["class", "row", 4, "ngIf"], ["formControlName", "staffNeedCount", "readonly", "", 1, "form-control"], ["formControlName", "adjust", 1, "form-control"], [1, "col-md-12"], [1, "btn", "btn-block", "btn-success", "mt-3", 3, "click"], ["class", "col-md-12 p-0", "id", "adjustShift", 4, "ngIf"], ["id", "adjustShift", 1, "col-md-12", "p-0"], [1, "col-md-12", "mb-3", "no-padding", "flexDisplay"], [1, "col-6"], ["formControlName", "backUpStaffNeedCountBooked", 1, "form-control", "pr-2", 3, "readonly"], ["type", "number", "formControlName", "reqStaffNeedCount", 1, "form-control", "pl-2", 3, "ngModelChange"], ["class", "error-msg", 4, "ngIf"], ["formControlName", "startTime", "readonly", "", 1, "form-control", "pr-2"], ["formControlName", "endTime", "readonly", "", 1, "form-control", "pl-2"], ["formControlName", "reqStartTime", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect"], ["class", "form-control", 3, "value", 4, "ngFor", "ngForOf"], [1, "pl-2", "mt-3"], ["bindLabel", "name", "formControlName", "reqEndTime", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect"], ["formControlName", "reportLocationId", "readonly", "", 1, "form-control", "pr-2"], ["bindLabel", "name", "placeholder", "Select Reporting Locations", "appendTo", "body", "formControlName", "reqReportLocationId", 1, "custom", 3, "multiple", "searchable", "clearable"], [3, "value", 4, "ngFor", "ngForOf"], ["requestBtn", ""], ["stopBtn", ""], [1, "error-msg"], [1, "form-control", 3, "value"], [3, "value"], [1, "btn", "btn-block", "btn-sm", "btn-success", 3, "click"], [1, "btn", "btn-block", "btn-sm", "btn-danger", 3, "click"], [1, "col-md-12", "my-3"], ["class", "list-group", 4, "ngIf"], [1, "list-group"], [1, "list-group-item", "list-group-item-dark"], [1, "font-weight-bold", "m-0", "mtext-16"], ["class", "list-group-item d-flex justify-content-between align-items-center mtext-14", 4, "ngFor", "ngForOf"], [1, "list-group-item", "d-flex", "justify-content-between", "align-items-center", "mtext-14"], [3, "ngSwitch"], ["class", "badge badge-warning badge-pill", 4, "ngSwitchCase"], ["class", "badge badge-success badge-pill", 4, "ngSwitchCase"], ["class", "badge badge-danger badge-pill", 4, "ngSwitchCase"], [1, "badge", "badge-warning", "badge-pill"], [1, "badge", "badge-success", "badge-pill"], [1, "col-md-12", "row", "no-gutters"], ["type", "button", 1, "bg-theme", "btn", "btn-block", "mb-3", "text-white", 3, "click"], ["class", "redButton col-md-12 mb-2", 4, "ngIf"], [1, "d-flex", "align-items-center"], [1, "accordion-new"], ["formArrayName", "extArr", 3, "id", 4, "ngFor", "ngForOf"], ["class", "d-flex align-items-center userList justify-content-between mb-1 p-2", 4, "ngFor", "ngForOf"], [1, "redButton", "col-md-12", "mb-2"], ["formArrayName", "extArr", 3, "id"], ["ngbPanelContent", "", "class", "bg-light"], ["class", "d-flex justify-content-between userList justify-content-between mb-1 p-2", 4, "ngIf"], [1, "d-flex", "justify-content-between", "userList", "justify-content-between", "mb-1", "p-2"], ["class", "w-75", 4, "ngIf"], [1, "d-flex", "align-items-center", "justify-content-center", "w-100"], ["class", "d-flex align-items-center justify-content-center w-100", 4, "ngIf"], ["class", "circleConfirm ml-1", 4, "ngIf"], [1, "w-75"], [2, "margin-left", "3px"], [2, "display", "block", "margin-top", "10px", 3, "ngClass"], ["type", "button", "class", "bg-theme btn btn-block mb-3 text-white", 3, "click", 4, "ngIf"], ["ngbPanelToggle", "", "type", "button", "class", "btn extensionBtn", "data-toggle", "collapse", "data-target", "#adjustShift", 3, "ngClass", "click", 4, "ngIf"], ["ngbPanelToggle", "", "type", "button", "data-toggle", "collapse", "data-target", "#adjustShift", 1, "btn", "extensionBtn", 3, "ngClass", "click"], [4, "ngSwitchCase"], [1, "material-icons", "extdown"], [1, "circleConfirm", "ml-1"], ["id", "adjustShift", 1, "col-md-12", 3, "formGroupName"], [1, "col-md-12", "mb-3", "no-padding"], ["for", ""], [1, "row", "mb-4"], [1, "col"], ["type", "text", "readonly", "", "disabled", "", 1, "form-control", "not-allowed", 3, "value"], [1, "row", "mb-3"], ["ngbDatepicker", "", "formControlName", "sd", "placement", "top-right", 1, "form-control", 3, "placeholder", "minDate", "maxDate", "click"], ["d1", "ngbDatepicker"], ["bindLabel", "name", "formControlName", "ts", "appendTo", "body", 3, "multiple", "searchable", "clearable", "closeOnSelect"], ["formControlName", "ed", "ngbDatepicker", "", "placement", "top-right", 1, "form-control", 3, "placeholder", "minDate", "maxDate", "click"], ["d2", "ngbDatepicker"], ["bindLabel", "name", "formControlName", "te", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect"], ["class", "btn btn-success btn-block", 3, "click", 4, "ngIf"], ["class", "btn btn-danger btn-block", 3, "click", 4, "ngIf"], [1, "btn", "btn-success", "btn-block", 3, "click"], [1, "btn", "btn-danger", "btn-block", 3, "click"], [1, "d-flex", "align-items-center", "userList", "justify-content-between", "mb-1", "p-2"], [1, "circle", "ml-1"], [1, "font-weight-bold"], ["type", "text", "formControlName", "bu", "readonly", "", 1, "form-control"], ["type", "text", "formControlName", "date", "readonly", "", 1, "form-control"], ["type", "text", "formControlName", "staffN", 1, "form-control"], ["type", "text", "formControlName", "staffId", 1, "form-control"], ["class", "form-group", 4, "ngIf"], [1, "card-header", "redButton"], ["type", "text", "formControlName", "startTime", 1, "form-control"], ["type", "text", "formControlName", "endTime", 1, "form-control"], ["type", "text", "formControlName", "reportLoc", 1, "form-control"], [1, "col-md-4"], ["bindLabel", "name", "appendTo", "body", "placeholder", "Select StartTime", "formControlName", "StartTime", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "name", "appendTo", "body", "placeholder", "Select EndTime", "formControlName", "EndTime", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect"], [1, "form-check", "form-check-inline", "float-right"], ["type", "checkbox", "id", "splitTiming", "value", "1", "name", "splitTiming", 1, "form-check-input", 3, "click"], ["for", "inlineCheckbox1", 1, "form-check-label", "font-weight-bold"], ["bindLabel", "name", "bindValue", "_id", "placeholder", "Select Location", "appendTo", "body", "formControlName", "reportLocation", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "skillSetId.name", "placeholder", "Skillsets", "appendTo", "body", "formControlName", "SkillSets", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "closeOnSelect", "change"], ["bindLabel", "name", "placeholder", "Speciality", "appendTo", "body", "formControlName", "subSkillSets", 1, "custom", 3, "items", "multiple", "searchable", "closeOnSelect", "clearable"], [1, "btn", "btn-clear", "p-2"], [1, "btn", "btn-add", "p-2", 3, "click"], ["type", "submit", "class", "btn btn-success", 3, "click", 4, "ngIf"], ["bindLabel", "name", "appendTo", "body", "placeholder", "Select StartTime", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect"], ["bindLabel", "name", "appendTo", "body", "placeholder", "Select EndTime", 1, "custom", 3, "multiple", "searchable", "clearable", "closeOnSelect"], ["class", "labels my-1", 4, "ngFor", "ngForOf"], [1, "labels", "my-1"], [1, "text"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], ["type", "submit", 1, "btn", "btn-success", 3, "click"], [1, "badge", "badge-warning", "p-2"], [1, "badge", "badge-success", "p-2"], [1, "badge", "badge-danger", "p-2"], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"]], template: function ManageComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "VIEW SHIFTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "input", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageComponent_Template_input_click_9_listener($event) { return ctx.changeStatus($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "span", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Hide CANCELLED Shifts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "label", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Select Day");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, ManageComponent_button_22_Template, 2, 3, "button", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, ManageComponent_div_23_Template, 1, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, ManageComponent_ng_template_24_Template, 6, 2, "ng-template", null, 14, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](26, ManageComponent_ng_template_26_Template, 2, 0, "ng-template", null, 15, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](29, ManageComponent_div_29_Template, 7, 2, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](31, ManageComponent_div_31_Template, 5, 0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](25);
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.buId == null ? null : ctx.buId.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx.hideCancelShifts ? "checked" : "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.dayArr);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.dayShifts == null ? null : ctx.dayShifts.length) > 0)("ngIfThen", _r2)("ngIfElse", _r4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.dayShifts == null ? null : ctx.dayShifts.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isLoader);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_12__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgClass"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbAccordion"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPanel"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPanelHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPanelContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbPanelToggle"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NumberValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__["ɵr"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgSwitchCase"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormArrayName"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormGroupName"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbInputDatepicker"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_11__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["TitleCasePipe"]], styles: [".dayButton[_ngcontent-%COMP%] {\n height: 2.5rem;\n width: 2.5rem;\n border-radius: 50%;\n margin-right: 10px;\n font-weight: 500;\n color: #a42138 !important;\n border: 1px solid transparent;\n border-color: #ccc;\n background-color: white;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover, .selected[_ngcontent-%COMP%] {\n outline: none;\n background-color: #a42138;\n color: white !important;\n}\n\n.font[_ngcontent-%COMP%] {\n font-size: 14px;\n}\n\n.dayButton[_ngcontent-%COMP%]:hover {\n opacity: 0.8;\n}\n\n.selected[_ngcontent-%COMP%] {\n opacity: 1 !important;\n}\n\n.input[_ngcontent-%COMP%] {\n margin-left: 10px;\n font-weight: 600;\n color: #9f9f9f;\n}\n\n.flexDisplay[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n}\n\n.redInput[_ngcontent-%COMP%] {\n background: #a42138;\n color: #ffffff;\n padding: 2px 10px;\n border-radius: 20px;\n letter-spacing: 1px;\n text-align: center;\n width: auto;\n}\n\n.redButtonClick[_ngcontent-%COMP%] {\n background: #a42138;\n color: #ffffff;\n padding: 2px 10px;\n letter-spacing: 1px;\n text-align: center;\n width: auto;\n}\n\n.shiftTab[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 0.5rem 0.8rem;\n border-radius: 4px;\n min-height: 60px;\n}\n\n.extensionBtn[_ngcontent-%COMP%] {\n position: relative;\n width: 100%;\n}\n\n.extensionBtn[_ngcontent-%COMP%] .extdown[_ngcontent-%COMP%] {\n right: 5px;\n vertical-align: middle;\n}\n\n.shiftTab[_ngcontent-%COMP%]:hover {\n background-color: #f2f2f2;\n cursor: pointer;\n}\n\n.shiftTab.selectedShift[_ngcontent-%COMP%] {\n background-color: #721c2414;\n cursor: pointer;\n border: 1px solid #a73535;\n border-radius: 4px;\n}\n\n.shiftTab.selectedShiftAssign[_ngcontent-%COMP%] {\n background-color: #635d5e14;\n cursor: pointer;\n border-left: 5px solid #1ba8e2;\n border-right: 5px solid #1ba8e2;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px;\n}\n\n.body[_ngcontent-%COMP%] {\n justify-content: space-evenly;\n}\n\n.no-padding[_ngcontent-%COMP%] {\n padding: 0;\n}\n\n.form-input[_ngcontent-%COMP%] {\n font-weight: 500;\n}\n\n.redButton[_ngcontent-%COMP%] {\n background: #b61734;\n border: none;\n color: #ffffff;\n letter-spacing: 1px;\n width: auto;\n padding: 0.5rem;\n}\n\n.show-modal[_ngcontent-%COMP%] {\n display: block;\n}\n\n.circle[_ngcontent-%COMP%] {\n width: 15px;\n height: 15px;\n background: #ffc107;\n border-radius: 50%;\n}\n\n.circleConfirm[_ngcontent-%COMP%] {\n width: 12px;\n height: 12px;\n background: #28a745;\n border-radius: 50%;\n}\n\n.modal-footer[_ngcontent-%COMP%] {\n display: flex;\n justify-content: center;\n}\n\n.footer-button[_ngcontent-%COMP%] {\n width: 4rem;\n}\n\n.greenButton[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #5cb85c;\n border: none;\n color: #ffffff;\n letter-spacing: 1px;\n width: auto;\n padding: 0.5rem;\n}\n\n.green[_ngcontent-%COMP%] {\n background-color: green;\n}\n\n.yellow[_ngcontent-%COMP%] {\n background-color: #ecf02f;\n}\n\n.btn[_ngcontent-%COMP%]:focus, .btn[_ngcontent-%COMP%]:active {\n outline: none !important;\n box-shadow: none !important;\n}\n\n .accordion > .card > .card-header {\n background: #a42138 !important;\n padding: 0;\n}\n\n .accordion-new > .card > .card-header {\n background: transparent !important;\n padding: 0;\n}\n\n .accordion-new > .card:not(:last-of-type) {\n border-radius: 0;\n border-bottom: 1px solid #a7a7a7 !important;\n}\n\n.accordion[_ngcontent-%COMP%] > .card[_ngcontent-%COMP%] > #custom-panel-1-header[_ngcontent-%COMP%] {\n padding: 0;\n border-radius: 4px !important;\n margin-bottom: 1px !important;\n}\n\nngb-accordion[_ngcontent-%COMP%] .card {\n border: none;\n border-radius: 0;\n}\n\n .btn-header {\n font-size: 12px;\n letter-spacing: 1px;\n line-height: 28px;\n}\n\n ngb-accordion {\n width: 100%;\n}\n\nbutton[ngbPanelToggle][_ngcontent-%COMP%] .down[_ngcontent-%COMP%] {\n position: absolute;\n right: 5px;\n vertical-align: middle;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.assign[_ngcontent-%COMP%] {\n border-left: 5px solid #1ba8e2;\n border-right: 5px solid #1ba8e2;\n border-top-left-radius: 8px;\n border-top-right-radius: 8px;\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px;\n border-bottom: 1px solid #1ba8e2;\n border-top: 1px solid #1ba8e2;\n}\n\n.userList[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 8px;\n}\n\n.form-control[_ngcontent-%COMP%] {\n font-size: 1rem;\n color: black;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background: #a42138;\n}\n\n.text-theme[_ngcontent-%COMP%] {\n color: #a42138;\n}\n\ninput[readonly][_ngcontent-%COMP%] {\n cursor: not-allowed;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 4px 6px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n}\n\n.labels[_ngcontent-%COMP%] .text[_ngcontent-%COMP%] {\n font-size: 12px;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 11px;\n padding: 2px;\n cursor: pointer;\n margin-left: 4px;\n}\n\n.error-msg[_ngcontent-%COMP%] {\n padding: 0;\n margin-top: 3px;\n color: red;\n}\n\n.loader[_ngcontent-%COMP%] {\n background-color: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-repeat: no-repeat;\n background-position: center;\n z-index: 1050;\n opacity: 0.8;\n}\n\n.loader[_ngcontent-%COMP%] .pageLoading[_ngcontent-%COMP%] {\n text-align: center;\n color: white;\n font-size: 40px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNoaWZ0L21hbmFnZS9tYW5hZ2UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxjQUFBO0VBQ0EsYUFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7RUFDQSxnQkFBQTtFQUNBLHlCQUFBO0VBQ0EsNkJBQUE7RUFDQSxrQkFBQTtFQUNBLHVCQUFBO0FBQ0Y7O0FBRUE7O0VBRUUsYUFBQTtFQUNBLHlCQUFBO0VBQ0EsdUJBQUE7QUFDRjs7QUFFQTtFQUNFLGVBQUE7QUFDRjs7QUFDQTtFQUNFLFlBQUE7QUFFRjs7QUFDQTtFQUNFLHFCQUFBO0FBRUY7O0FBQ0E7RUFDRSxpQkFBQTtFQUNBLGdCQUFBO0VBQ0EsY0FBQTtBQUVGOztBQUNBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBRUY7O0FBQUE7RUFDRSxtQkFBQTtFQUNBLGNBQUE7RUFDQSxpQkFBQTtFQUNBLG1CQUFBO0VBQ0EsbUJBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7QUFHRjs7QUFEQTtFQUNFLG1CQUFBO0VBQ0EsY0FBQTtFQUNBLGlCQUFBO0VBQ0EsbUJBQUE7RUFDQSxrQkFBQTtFQUNBLFdBQUE7QUFJRjs7QUFEQTtFQUNFLHNCQUFBO0VBQ0Esc0JBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBSUY7O0FBREE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7QUFJRjs7QUFGRTtFQUNFLFVBQUE7RUFDQSxzQkFBQTtBQUlKOztBQUFBO0VBQ0UseUJBQUE7RUFDQSxlQUFBO0FBR0Y7O0FBQUE7RUFDRSwyQkFBQTtFQUNBLGVBQUE7RUFDQSx5QkFBQTtFQUNBLGtCQUFBO0FBR0Y7O0FBQUE7RUFDRSwyQkFBQTtFQUNBLGVBQUE7RUFDQSw4QkFBQTtFQUNBLCtCQUFBO0VBQ0EsMkJBQUE7RUFDQSw0QkFBQTtFQUNBLDhCQUFBO0VBQ0EsK0JBQUE7QUFHRjs7QUFBQTtFQUNFLDZCQUFBO0FBR0Y7O0FBREE7RUFDRSxVQUFBO0FBSUY7O0FBRkE7RUFDRSxnQkFBQTtBQUtGOztBQUhBO0VBQ0UsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsY0FBQTtFQUNBLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7QUFNRjs7QUFKQTtFQUNFLGNBQUE7QUFPRjs7QUFKQTtFQUNFLFdBQUE7RUFDQSxZQUFBO0VBQ0EsbUJBQUE7RUFDQSxrQkFBQTtBQU9GOztBQUxBO0VBQ0UsV0FBQTtFQUNBLFlBQUE7RUFDQSxtQkFBQTtFQUNBLGtCQUFBO0FBUUY7O0FBTEE7RUFDRSxhQUFBO0VBQ0EsdUJBQUE7QUFRRjs7QUFMQTtFQUNFLFdBQUE7QUFRRjs7QUFOQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxjQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtBQVNGOztBQU5BO0VBQ0UsdUJBQUE7QUFTRjs7QUFOQTtFQUNFLHlCQUFBO0FBU0Y7O0FBTkE7O0VBRUUsd0JBQUE7RUFDQSwyQkFBQTtBQVNGOztBQU5BO0VBQ0UsOEJBQUE7RUFDQSxVQUFBO0FBU0Y7O0FBUEE7RUFDRSxrQ0FBQTtFQUNBLFVBQUE7QUFVRjs7QUFQQTtFQUNFLGdCQUFBO0VBQ0EsMkNBQUE7QUFVRjs7QUFQQTtFQUNFLFVBQUE7RUFDQSw2QkFBQTtFQUNBLDZCQUFBO0FBVUY7O0FBUEE7RUFDRSxZQUFBO0VBQ0EsZ0JBQUE7QUFVRjs7QUFQQTtFQUNFLGVBQUE7RUFDQSxtQkFBQTtFQUNBLGlCQUFBO0FBVUY7O0FBUEE7RUFDRSxXQUFBO0FBVUY7O0FBTkU7RUFDRSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxzQkFBQTtBQVNKOztBQUxBO0VBQ0UseUJBQUE7RUFDQSxXQUFBO0FBUUY7O0FBTEE7RUFDRSw4QkFBQTtFQUNBLCtCQUFBO0VBQ0EsMkJBQUE7RUFDQSw0QkFBQTtFQUNBLDhCQUFBO0VBQ0EsK0JBQUE7RUFDQSxnQ0FBQTtFQUNBLDZCQUFBO0FBUUY7O0FBTEE7RUFDRSxzQkFBQTtFQUNBLFlBQUE7QUFRRjs7QUFMQTtFQUNFLGVBQUE7RUFDQSxZQUFBO0FBUUY7O0FBTEE7RUFDRSxtQkFBQTtBQVFGOztBQUxBO0VBQ0UsY0FBQTtBQVFGOztBQUxBO0VBQ0UsbUJBQUE7QUFRRjs7QUFMQTtFQUNFLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLGFBQUE7RUFDQSw4QkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7QUFRRjs7QUFORTtFQUNFLGVBQUE7QUFRSjs7QUFMRTtFQUNFLGVBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0FBT0o7O0FBSEE7RUFDRSxVQUFBO0VBQ0EsZUFBQTtFQUNBLFVBQUE7QUFNRjs7QUFIQTtFQUNFLG9DQUFBO0VBQ0MsZUFBQTtFQUNELE1BQUE7RUFDQSxRQUFBO0VBQ0EsT0FBQTtFQUNBLFNBQUE7RUFDQSw0QkFBQTtFQUNBLDJCQUFBO0VBQ0EsYUFBQTtFQUNBLFlBQUE7QUFNRjs7QUFMRTtFQUNFLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7RUFDQSxlQUFBO0VBQ0EsUUFBQTtFQUNBLFNBQUE7RUFDQSxnQ0FBQTtBQU9KIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNoaWZ0L21hbmFnZS9tYW5hZ2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZGF5QnV0dG9uIHtcbiAgaGVpZ2h0OiAyLjVyZW07XG4gIHdpZHRoOiAyLjVyZW07XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xuICBmb250LXdlaWdodDogNTAwO1xuICBjb2xvcjogI2E0MjEzOCAhaW1wb3J0YW50O1xuICBib3JkZXI6IDFweCBzb2xpZCB0cmFuc3BhcmVudDtcbiAgYm9yZGVyLWNvbG9yOiAjY2NjO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbn1cblxuLmRheUJ1dHRvbjpob3Zlcixcbi5zZWxlY3RlZCB7XG4gIG91dGxpbmU6IG5vbmU7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xufVxuXG4uZm9udCB7XG4gIGZvbnQtc2l6ZTogMTRweDtcbn1cbi5kYXlCdXR0b246aG92ZXIge1xuICBvcGFjaXR5OiAwLjg7XG59XG5cbi5zZWxlY3RlZCB7XG4gIG9wYWNpdHk6IDEgIWltcG9ydGFudDtcbn1cblxuLmlucHV0IHtcbiAgbWFyZ2luLWxlZnQ6IDEwcHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIGNvbG9yOiAjOWY5ZjlmO1xufVxuXG4uZmxleERpc3BsYXkge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG59XG4ucmVkSW5wdXQge1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZmZmZjtcbiAgcGFkZGluZzogMnB4IDEwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDIwcHg7XG4gIGxldHRlci1zcGFjaW5nOiAxcHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgd2lkdGg6IGF1dG87XG59XG4ucmVkQnV0dG9uQ2xpY2sge1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZmZmZjtcbiAgcGFkZGluZzogMnB4IDEwcHg7XG4gIGxldHRlci1zcGFjaW5nOiAxcHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgd2lkdGg6IGF1dG87XG59XG5cbi5zaGlmdFRhYiB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDAuNXJlbSAwLjhyZW07XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgbWluLWhlaWdodDogNjBweDtcbn1cblxuLmV4dGVuc2lvbkJ0biB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgd2lkdGg6IDEwMCU7XG5cbiAgLmV4dGRvd24ge1xuICAgIHJpZ2h0OiA1cHg7XG4gICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgfVxufVxuXG4uc2hpZnRUYWI6aG92ZXIge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjJmMmYyO1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG5cbi5zaGlmdFRhYi5zZWxlY3RlZFNoaWZ0IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzcyMWMyNDE0O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNhNzM1MzU7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbn1cblxuLnNoaWZ0VGFiLnNlbGVjdGVkU2hpZnRBc3NpZ24ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNjM1ZDVlMTQ7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgYm9yZGVyLWxlZnQ6IDVweCBzb2xpZCAjMWJhOGUyO1xuICBib3JkZXItcmlnaHQ6IDVweCBzb2xpZCAjMWJhOGUyO1xuICBib3JkZXItdG9wLWxlZnQtcmFkaXVzOiA4cHg7XG4gIGJvcmRlci10b3AtcmlnaHQtcmFkaXVzOiA4cHg7XG4gIGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDhweDtcbiAgYm9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6IDhweDtcbn1cblxuLmJvZHkge1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWV2ZW5seTtcbn1cbi5uby1wYWRkaW5nIHtcbiAgcGFkZGluZzogMDtcbn1cbi5mb3JtLWlucHV0IHtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbn1cbi5yZWRCdXR0b24ge1xuICBiYWNrZ3JvdW5kOiAjYjYxNzM0O1xuICBib3JkZXI6IG5vbmU7XG4gIGNvbG9yOiAjZmZmZmZmO1xuICBsZXR0ZXItc3BhY2luZzogMXB4O1xuICB3aWR0aDogYXV0bztcbiAgcGFkZGluZzogMC41cmVtO1xufVxuLnNob3ctbW9kYWwge1xuICBkaXNwbGF5OiBibG9jaztcbn1cblxuLmNpcmNsZSB7XG4gIHdpZHRoOiAxNXB4O1xuICBoZWlnaHQ6IDE1cHg7XG4gIGJhY2tncm91bmQ6ICNmZmMxMDc7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbn1cbi5jaXJjbGVDb25maXJtIHtcbiAgd2lkdGg6IDEycHg7XG4gIGhlaWdodDogMTJweDtcbiAgYmFja2dyb3VuZDogIzI4YTc0NTtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xufVxuXG4ubW9kYWwtZm9vdGVyIHtcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG59XG5cbi5mb290ZXItYnV0dG9uIHtcbiAgd2lkdGg6IDRyZW07XG59XG4uZ3JlZW5CdXR0b24ge1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzVjYjg1YztcbiAgYm9yZGVyOiBub25lO1xuICBjb2xvcjogI2ZmZmZmZjtcbiAgbGV0dGVyLXNwYWNpbmc6IDFweDtcbiAgd2lkdGg6IGF1dG87XG4gIHBhZGRpbmc6IDAuNXJlbTtcbn1cblxuLmdyZWVuIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogZ3JlZW47XG59XG5cbi55ZWxsb3cge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZWNmMDJmO1xufVxuXG4uYnRuOmZvY3VzLFxuLmJ0bjphY3RpdmUge1xuICBvdXRsaW5lOiBub25lICFpbXBvcnRhbnQ7XG4gIGJveC1zaGFkb3c6IG5vbmUgIWltcG9ydGFudDtcbn1cblxuOjpuZy1kZWVwIC5hY2NvcmRpb24gPiAuY2FyZCA+IC5jYXJkLWhlYWRlciB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzggIWltcG9ydGFudDtcbiAgcGFkZGluZzogMDtcbn1cbjo6bmctZGVlcCAuYWNjb3JkaW9uLW5ldyA+IC5jYXJkID4gLmNhcmQtaGVhZGVyIHtcbiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQgIWltcG9ydGFudDtcbiAgcGFkZGluZzogMDtcbn1cblxuOjpuZy1kZWVwIC5hY2NvcmRpb24tbmV3ID4gLmNhcmQ6bm90KDpsYXN0LW9mLXR5cGUpIHtcbiAgYm9yZGVyLXJhZGl1czogMDtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNhN2E3YTcgIWltcG9ydGFudDtcbn1cblxuLmFjY29yZGlvbiA+IC5jYXJkID4gI2N1c3RvbS1wYW5lbC0xLWhlYWRlciB7XG4gIHBhZGRpbmc6IDA7XG4gIGJvcmRlci1yYWRpdXM6IDRweCAhaW1wb3J0YW50O1xuICBtYXJnaW4tYm90dG9tOiAxcHggIWltcG9ydGFudDtcbn1cblxubmdiLWFjY29yZGlvbiA6Om5nLWRlZXAgLmNhcmQge1xuICBib3JkZXI6IG5vbmU7XG4gIGJvcmRlci1yYWRpdXM6IDA7XG59XG5cbjo6bmctZGVlcCAuYnRuLWhlYWRlciB7XG4gIGZvbnQtc2l6ZTogMTJweDtcbiAgbGV0dGVyLXNwYWNpbmc6IDFweDtcbiAgbGluZS1oZWlnaHQ6IDI4cHg7XG59XG5cbjo6bmctZGVlcCBuZ2ItYWNjb3JkaW9uIHtcbiAgd2lkdGg6IDEwMCU7XG59XG5cbmJ1dHRvbltuZ2JQYW5lbFRvZ2dsZV0ge1xuICAuZG93biB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIHJpZ2h0OiA1cHg7XG4gICAgdmVydGljYWwtYWxpZ246IG1pZGRsZTtcbiAgfVxufVxuXG4uYmctdGhlbWUge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbn1cblxuLmFzc2lnbiB7XG4gIGJvcmRlci1sZWZ0OiA1cHggc29saWQgIzFiYThlMjtcbiAgYm9yZGVyLXJpZ2h0OiA1cHggc29saWQgIzFiYThlMjtcbiAgYm9yZGVyLXRvcC1sZWZ0LXJhZGl1czogOHB4O1xuICBib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogOHB4O1xuICBib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOiA4cHg7XG4gIGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiA4cHg7XG4gIGJvcmRlci1ib3R0b206IDFweCBzb2xpZCAjMWJhOGUyO1xuICBib3JkZXItdG9wOiAxcHggc29saWQgIzFiYThlMjtcbn1cblxuLnVzZXJMaXN0IHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcbiAgcGFkZGluZzogOHB4O1xufVxuXG4uZm9ybS1jb250cm9sIHtcbiAgZm9udC1zaXplOiAxcmVtO1xuICBjb2xvcjogYmxhY2s7XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG59XG5cbi50ZXh0LXRoZW1lIHtcbiAgY29sb3I6ICNhNDIxMzg7XG59XG5cbmlucHV0W3JlYWRvbmx5XSB7XG4gIGN1cnNvcjogbm90LWFsbG93ZWQ7XG59XG5cbi5sYWJlbHMge1xuICBwYWRkaW5nOiA0cHggNnB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcblxuICAudGV4dCB7XG4gICAgZm9udC1zaXplOiAxMnB4O1xuICB9XG5cbiAgLmJ0bi1jbG9zZSB7XG4gICAgZm9udC1zaXplOiAxMXB4O1xuICAgIHBhZGRpbmc6IDJweDtcbiAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgbWFyZ2luLWxlZnQ6IDRweDtcbiAgfVxufVxuXG4uZXJyb3ItbXNnIHtcbiAgcGFkZGluZzogMDtcbiAgbWFyZ2luLXRvcDogM3B4O1xuICBjb2xvcjogcmVkO1xufVxuXG4ubG9hZGVye1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNSk7XG4gICBwb3NpdGlvbjogZml4ZWQ7XG4gIHRvcDogMDtcbiAgcmlnaHQ6MDtcbiAgbGVmdDowO1xuICBib3R0b206MDtcbiAgYmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcbiAgYmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuICB6LWluZGV4OiAxMDUwO1xuICBvcGFjaXR5OiAwLjg7XG4gIC5wYWdlTG9hZGluZyB7XG4gICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIGNvbG9yOiB3aGl0ZTtcbiAgICBmb250LXNpemU6IDQwcHg7XG4gICAgcG9zaXRpb246IGZpeGVkO1xuICAgIHRvcDogNTAlO1xuICAgIGxlZnQ6IDUwJTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgtNTAlLCAtNTAlKTtcbiAgfVxufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-manage',
templateUrl: './manage.component.html',
styleUrls: ['./manage.component.scss'],
providers: [
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormBuilder"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbCalendar"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__["ShiftSchedulerService"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_9__["SetupService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_10__["CompanySetupService"] }]; }, { ChangeTabId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], headerData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], day: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], shift: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], week: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], buId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], page: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], refresh: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], isLoader: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "qllb":
/*!*****************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/timesheet/timesheet-lookup/timesheet-lookup.component.ts ***!
\*****************************************************************************************************************/
/*! exports provided: CustomDateParserFormatter, TimesheetLookupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomDateParserFormatter", function() { return CustomDateParserFormatter; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimesheetLookupComponent", function() { return TimesheetLookupComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../../shared/pipes/filter.pipe */ "UhSo");
const _c0 = ["AddShiftHours"];
function TimesheetLookupComponent_div_36_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Please wait, Data is Refreshing ...... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_table_37_tr_49_p_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Assigned Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_table_37_tr_49_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Booked Shift ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 2, d_r8.shiftDetails.startTime, "HH:mm"), " Extended Shift ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 5, d_r8.shiftDetails.extendedStaff[0].startDateTime, "HH:mm"), " ");
} }
function TimesheetLookupComponent_table_37_tr_49_ng_template_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](1, "date");
} if (rf & 2) {
const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](1, 1, d_r8.shiftDetails.startTime, "HH:mm"), " ");
} }
function TimesheetLookupComponent_table_37_tr_49_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Booked Shift ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 2, d_r8.shiftDetails.endTime, "HH:mm"), " Extended Shift ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 5, d_r8.shiftDetails.extendedStaff[0].endDateTime, "HH:mm"), " ");
} }
function TimesheetLookupComponent_table_37_tr_49_ng_template_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](1, "date");
} if (rf & 2) {
const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](1, 1, d_r8.shiftDetails.endTime, "HH:mm"), " ");
} }
function TimesheetLookupComponent_table_37_tr_49_p_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, d_r8.attendance.clockInDateTime, "HH:mm "), " ");
} }
function TimesheetLookupComponent_table_37_tr_49_p_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, d_r8.attendance.clockOutDateTime, "HH:mm "), " ");
} }
function TimesheetLookupComponent_table_37_tr_49_div_22_div_1_button_3_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_table_37_tr_49_div_22_div_1_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r34); const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index; const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r33.toggleBreakDetails(ctx_r33.data, i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_table_37_tr_49_div_22_div_1_button_4_Template(rf, ctx) { if (rf & 1) {
const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_table_37_tr_49_div_22_div_1_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r37); const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index; const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r36.toggleBreakDetails(ctx_r36.data, i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " - ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_table_37_tr_49_div_22_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetLookupComponent_table_37_tr_49_div_22_div_1_button_3_Template, 2, 0, "button", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, TimesheetLookupComponent_table_37_tr_49_div_22_div_1_button_4_Template, 2, 0, "button", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const breakduration_r30 = ctx.$implicit;
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", breakduration_r30.duration, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r28.showBtn);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r28.showBtn);
} }
function TimesheetLookupComponent_table_37_tr_49_div_22_div_3_tr_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const breakData_r40 = ctx.$implicit;
const i_r41 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Break", i_r41 + 1, ":");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](5, 3, breakData_r40.startTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 6, breakData_r40.endTime, "HH:mm"), " ");
} }
function TimesheetLookupComponent_table_37_tr_49_div_22_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "th", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "From");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, TimesheetLookupComponent_table_37_tr_49_div_22_div_3_tr_9_Template, 9, 9, "tr", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", d_r8 == null ? null : d_r8.attendance == null ? null : d_r8.attendance.breakTime);
} }
function TimesheetLookupComponent_table_37_tr_49_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TimesheetLookupComponent_table_37_tr_49_div_22_div_1_Template, 5, 3, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetLookupComponent_table_37_tr_49_div_22_div_3_Template, 10, 1, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const d_r8 = ctx_r43.$implicit;
const i_r9 = ctx_r43.index;
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", d_r8.attendance.breakTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r19.isBreakShowHisDet === i_r9);
} }
function TimesheetLookupComponent_table_37_tr_49_span_30_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_table_37_tr_49_div_32_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "th", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "From");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Worked Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](14, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Normal");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Total Work");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Total Break Duration");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Remarks");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "td", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](14, 6, d_r8.attendance.approval.approveClockInTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](17, 9, d_r8.attendance.approval.approveClockOutTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r44.getDuration(d_r8.attendance.approval.duration), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r44.getDuration(d_r8.attendance.approval.duration), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", d_r8.attendance.totalBreakDuration, " mins ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", d_r8.attendance.approval.neitherMessage, " ");
} }
function TimesheetLookupComponent_table_37_tr_49_div_32_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r45.checkShift);
} }
function TimesheetLookupComponent_table_37_tr_49_div_32_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Shift Locked ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " * You Have Edit Privilege by Ticking Checkboxes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_table_37_tr_49_div_32_div_8_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_table_37_tr_49_div_32_div_8_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const d_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r49.lockFunction(d_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " Lock ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_table_37_tr_49_div_32_Template(rf, ctx) { if (rf & 1) {
const _r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_table_37_tr_49_div_32_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r53); const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().index; const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r52.toggleApprovalDetails(ctx_r52.data, i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " VIEW APPROVED DETAILS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, TimesheetLookupComponent_table_37_tr_49_div_32_div_4_Template, 42, 12, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, TimesheetLookupComponent_table_37_tr_49_div_32_div_6_Template, 2, 1, "div", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, TimesheetLookupComponent_table_37_tr_49_div_32_div_7_Template, 7, 0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, TimesheetLookupComponent_table_37_tr_49_div_32_div_8_Template, 4, 0, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const i_r9 = ctx_r55.index;
const d_r8 = ctx_r55.$implicit;
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r21.isApproveShowHisDet === i_r9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r21.checkShift && d_r8.attendance.IsLock == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r8.attendance.IsLock === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !d_r8.attendance.IsLock === true);
} }
function TimesheetLookupComponent_table_37_tr_49_Template(rf, ctx) { if (rf & 1) {
const _r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetLookupComponent_table_37_tr_49_p_3_Template, 2, 0, "p", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, TimesheetLookupComponent_table_37_tr_49_div_10_Template, 5, 8, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, TimesheetLookupComponent_table_37_tr_49_ng_template_11_Template, 2, 4, "ng-template", null, 51, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, TimesheetLookupComponent_table_37_tr_49_div_14_Template, 5, 8, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, TimesheetLookupComponent_table_37_tr_49_ng_template_15_Template, 2, 4, "ng-template", null, 52, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, TimesheetLookupComponent_table_37_tr_49_p_18_Template, 3, 4, "p", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, TimesheetLookupComponent_table_37_tr_49_p_20_Template, 3, 4, "p", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, TimesheetLookupComponent_table_37_tr_49_div_22_Template, 4, 2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_table_37_tr_49_Template_input_click_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const d_r8 = ctx.$implicit; const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r56.createAddShiftHours(d_r8); })("change", function TimesheetLookupComponent_table_37_tr_49_Template_input_change_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r58.handleApprove(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "input", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_table_37_tr_49_Template_input_click_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const d_r8 = ctx.$implicit; const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r59.createAddShiftHours(d_r8); })("change", function TimesheetLookupComponent_table_37_tr_49_Template_input_change_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r60.handleApprove(2); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_table_37_tr_49_Template_input_click_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const d_r8 = ctx.$implicit; const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r61.createAddShiftHours(d_r8); })("change", function TimesheetLookupComponent_table_37_tr_49_Template_input_change_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r62.handleApprove(3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "td", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](30, TimesheetLookupComponent_table_37_tr_49_span_30_Template, 2, 0, "span", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](32, TimesheetLookupComponent_table_37_tr_49_div_32_Template, 9, 4, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](33, "td", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r8 = ctx.$implicit;
const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](12);
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](16);
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", d_r8.userInfo.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r8.shiftDetails.isAssignShift == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](d_r8.userInfo.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 17, d_r8.shiftDetails.startTime, "dd-MM-yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r8.shiftDetails.isExtendedShift && d_r8.shiftDetails.extendedStaff.length > 0)("ngIfElse", _r12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r8.shiftDetails.isExtendedShift && d_r8.shiftDetails.extendedStaff.length > 0)("ngIfElse", _r15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r8.attendance);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r8.attendance && d_r8.attendance.clockOutDateTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r8 == null ? null : d_r8.attendance == null ? null : d_r8.attendance.breakTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r7.isKeyAvailable(d_r8.attendance, "approval") && d_r8.attendance.approval.shift === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r7.isKeyAvailable(d_r8.attendance, "clockOutDateTime"))("checked", ctx_r7.isKeyAvailable(d_r8.attendance, "approval") && d_r8.attendance.approval.clocked === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r7.isKeyAvailable(d_r8.attendance, "approval") && d_r8.attendance.approval.neither === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r8.attendance == null ? null : d_r8.attendance.isAutoApprove);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.isKeyAvailable(d_r8.attendance, "approval") && d_r8.attendance.approval.approveClockInTime);
} }
function TimesheetLookupComponent_table_37_Template(rf, ctx) { if (rf & 1) {
const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "th", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " User Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "th", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Staff ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "th", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " Date ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Shift Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Clocked Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "th", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Total Break Duration ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Approve ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "th", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Auto Approved Shifts ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "th", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "span", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " Approved Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " (2 sets if split shift) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function TimesheetLookupComponent_table_37_Template_input_change_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r64); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r63.checkAllShiftLock(true); return ctx_r63.lockAllShiftBtn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "button", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, " Lock All Approved Shifts ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "th", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " Aggregated hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, " if Split Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "td", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " Start ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "td", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, " End ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "td", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, " Start ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "td", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " End ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "td", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, " Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](42, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "td", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, " Clocked Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "td", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, " Neither ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](49, TimesheetLookupComponent_table_37_tr_49_Template, 34, 20, "tr", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](50, "filter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r3.LockChecked);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](50, 3, ctx_r3.timeSheetData, ctx_r3.searchString));
} }
function TimesheetLookupComponent_div_38_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Data Available ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_h4_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h4", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " SHIFT HOURS : ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_h4_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h4", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " CLOCKED HOURS : ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_h4_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h4", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " EDIT WORKED HOURS: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Start :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "End :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Start :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "End :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Start :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "End :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_div_17_Template(rf, ctx) { if (rf & 1) {
const _r77 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Add Break Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_ng_template_39_div_17_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r77); const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r76.toggleDisplay(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_div_18_Template(rf, ctx) { if (rf & 1) {
const _r79 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h4", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "ADD BREAK TIME: (Optional)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "table", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Start:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "End:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "BREAKS:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "td", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "input", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "td", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "input", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "button", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_ng_template_39_div_18_Template_button_click_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r79); const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r78.breakTime(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " ADD ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_span_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetLookupComponent_ng_template_39_Template(rf, ctx) { if (rf & 1) {
const _r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetLookupComponent_ng_template_39_h4_3_Template, 2, 0, "h4", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, TimesheetLookupComponent_ng_template_39_h4_4_Template, 2, 0, "h4", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, TimesheetLookupComponent_ng_template_39_h4_5_Template, 2, 0, "h4", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, TimesheetLookupComponent_ng_template_39_div_8_Template, 9, 0, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, TimesheetLookupComponent_ng_template_39_div_9_Template, 9, 0, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, TimesheetLookupComponent_ng_template_39_div_10_Template, 9, 0, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "BREAKS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "- NotTaken");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, TimesheetLookupComponent_ng_template_39_div_17_Template, 6, 0, "div", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, TimesheetLookupComponent_ng_template_39_div_18_Template, 29, 0, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "REMARKS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, TimesheetLookupComponent_ng_template_39_span_23_Template, 2, 0, "span", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "button", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_ng_template_39_Template_button_click_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r81); const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r80.approvalBtn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "button", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_ng_template_39_Template_button_click_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r81); const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r82.modelClose(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.uniqueIdShift === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.uniqueIdShift === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.uniqueIdShift === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r6.shiftsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.uniqueIdShift === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.uniqueIdShift === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.uniqueIdShift === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.isShow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r6.isShow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.uniqueIdShift === 3);
} }
class CustomDateParserFormatter extends _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"] {
constructor() {
super(...arguments);
this.DELIMITER = '-';
}
parse(value) {
if (value) {
let date = value.split(this.DELIMITER);
return {
day: parseInt(date[0], 10),
month: parseInt(date[1].padStart(10, '0'), 10),
year: parseInt(date[2], 10),
};
}
return null;
}
format(date) {
return date
? date.day +
this.DELIMITER +
parseInt(date.month.toString().padStart(10, '0'), 10) +
this.DELIMITER +
date.year
: '';
}
}
CustomDateParserFormatter.ɵfac = function CustomDateParserFormatter_Factory(t) { return ɵCustomDateParserFormatter_BaseFactory(t || CustomDateParserFormatter); };
CustomDateParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: CustomDateParserFormatter, factory: CustomDateParserFormatter.ɵfac });
const ɵCustomDateParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CustomDateParserFormatter);
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CustomDateParserFormatter, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
}], null, null); })();
class TimesheetLookupComponent {
constructor(formBuilder, toastService, timesheetService, modelService, buService) {
this.formBuilder = formBuilder;
this.toastService = toastService;
this.timesheetService = timesheetService;
this.modelService = modelService;
this.buService = buService;
this.DELIMITER = '-';
this.checkedArray = [];
this.isShow = true;
this.dura = 0;
this.allShiftArray = {};
this.allShift = [];
this.showBtn = true;
this.searchString = null;
this.timeSheetDataLoader = true;
this.isKeyAvailable = (item, key) => {
if (item && key) {
return Object.keys(item).includes(key);
}
};
this.historyPayLoad = {
endDate: moment__WEBPACK_IMPORTED_MODULE_2__().format('YYYY-MM-DD'),
isDefault: false,
startDate: moment__WEBPACK_IMPORTED_MODULE_2__().subtract(6, 'days').format('YYYY-MM-DD'),
};
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_6__["getGmtOffSet"])();
}
ngOnChanges() {
this.getTimesheetHistory();
this.buService.getAdmin().subscribe((res) => {
this.empList = res['data'];
});
}
getTimesheetHistory() {
const startDate = moment__WEBPACK_IMPORTED_MODULE_2__(this.historyPayLoad['startDate']);
const endDate = moment__WEBPACK_IMPORTED_MODULE_2__(this.historyPayLoad['endDate']);
const startdate = {
year: startDate.year(),
month: startDate.month() + 1,
day: startDate.date(),
};
const enddate = {
year: endDate.year(),
month: endDate.month() + 1,
day: endDate.date(),
};
this.lastDate = moment__WEBPACK_IMPORTED_MODULE_2__().format('DD-MM-YYYY');
this.timesheetService
.getTimesheetHistory(this.businessUnitId._id, this.historyPayLoad)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_5__["finalize"])(() => {
this.timeSheetDataLoader = false;
}))
.subscribe((res) => {
this.timeSheetData = res.data ? res.data : [];
});
this.shiftsFormFilter = this.formBuilder.group({
startDateFilter: [startdate, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
endDateFilter: [enddate, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
});
this.initForm();
}
createAddShiftHours(data) {
this.singleTimeSheet = data;
this.shiftStartTime = data.shiftDetails.startTime;
this.shiftEndTime = data.shiftDetails.endTime;
if (this.singleTimeSheet.attendance) {
this.shiftsForm.patchValue({
clockedStartTime: moment__WEBPACK_IMPORTED_MODULE_2__(data.attendance.clockInDateTime).format('HH:mm'),
clockedEndTime: moment__WEBPACK_IMPORTED_MODULE_2__(data.attendance.clockOutDateTime).format('HH:mm'),
});
}
this.shiftsForm.patchValue({
startDate: moment__WEBPACK_IMPORTED_MODULE_2__(data.shiftDetails.startTime).format('MM-DD-YYYY'),
endDate: moment__WEBPACK_IMPORTED_MODULE_2__(data.shiftDetails.endTime).format('MM-DD-YYYY'),
startTime: data.shiftDetails.isExtendedShift &&
data.shiftDetails.extendedStaff.length > 0
? moment__WEBPACK_IMPORTED_MODULE_2__(data.shiftDetails.extendedStaff[0].startDateTime).format('HH:mm')
: moment__WEBPACK_IMPORTED_MODULE_2__(data.shiftDetails.startTime).format('HH:mm'),
endTime: data.shiftDetails.isExtendedShift &&
data.shiftDetails.extendedStaff.length > 0
? moment__WEBPACK_IMPORTED_MODULE_2__(data.shiftDetails.extendedStaff[0].endDateTime).format('HH:mm')
: moment__WEBPACK_IMPORTED_MODULE_2__(data.shiftDetails.endTime).format('HH:mm'),
});
this.modelService.open(this.AddShiftHours, {
windowClass: 'modal-ui-fix right-align',
});
}
initForm() {
this.shiftsForm = this.formBuilder.group({
startDate: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
endDate: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
startTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
endTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
clockedStartTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
clockedEndTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
inputstartTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
inputendTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
neitherstartTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
neitherendTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
neitherRemarks: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["Validators"].required]],
});
}
handleApprove($event) {
this.uniqueIdShift = $event;
}
handleExport($event) {
this.exportDate = $event;
}
viewBtn() {
this.timeSheetDataLoader = true;
const startDate = this.shiftsFormFilter.get('startDateFilter').value;
const endDate = this.shiftsFormFilter.get('endDateFilter').value;
if (this.Selectedemp) {
this.filterObj = {
startDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
year: startDate.year,
month: startDate.month - 1,
date: startDate.day,
})
.format('YYYY-MM-DD'),
isDefault: false,
endDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
year: endDate.year,
month: endDate.month - 1,
date: endDate.day,
})
.format('YYYY-MM-DD'),
userId: this.Selectedemp._id,
};
}
else {
this.filterObj = {
startDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
year: startDate.year,
month: startDate.month - 1,
date: startDate.day,
})
.format('YYYY-MM-DD'),
isDefault: false,
endDate: moment__WEBPACK_IMPORTED_MODULE_2__()
.set({
year: endDate.year,
month: endDate.month - 1,
date: endDate.day,
})
.format('YYYY-MM-DD'),
};
this.historyPayLoad['startDate'] = this.filterObj.startDate;
this.historyPayLoad['endDate'] = this.filterObj.endDate;
}
this.timesheetService
.getTimesheetHistory(this.businessUnitId._id, this.filterObj)
.subscribe((res) => {
this.timeSheetData = res.data || [];
this.timeSheetDataLoader = false;
}, (error) => {
this.toastService.error("Something went wrong. Please try again.");
this.timeSheetDataLoader = false;
});
}
approvalBtn() {
var _a;
this.timeSheetDataLoader = true;
this.dateForNeither = new Date(moment__WEBPACK_IMPORTED_MODULE_2__(this.shiftStartTime).format('YYYY-MM-DD ') +
this.shiftsForm.get('neitherstartTime').value +
':00 ' + this.gmtOffset);
this.enddateForNeither = new Date(moment__WEBPACK_IMPORTED_MODULE_2__(this.shiftEndTime).format('YYYY-MM-DD ') +
this.shiftsForm.get('neitherendTime').value +
':00 ' + this.gmtOffset);
this.remarkMessage = this.shiftsForm.get('neitherRemarks').value;
if (this.singleTimeSheet.attendance) {
this.break = this.singleTimeSheet.attendance.breakTime;
}
else if (this.singleTimeSheet.attendance) {
this.break = [];
}
this.singleTimeSheet = this.singleTimeSheet;
if (this.uniqueIdShift === 1) {
if (this.singleTimeSheet.attendance) {
this.approvalObj = {
businessUnitId: this.singleTimeSheet.businessUnitId,
clocked: false,
neither: false,
shift: true,
breakTime: this.break,
approveClockInTime: this.singleTimeSheet.shiftDetails.isExtendedShift &&
this.singleTimeSheet.shiftDetails.extendedStaff.length > 0
? this.singleTimeSheet.shiftDetails.extendedStaff[0].startDateTime
: this.singleTimeSheet.shiftDetails.startTime,
approveClockOutTime: this.singleTimeSheet.shiftDetails.isExtendedShift &&
this.singleTimeSheet.shiftDetails.extendedStaff.length > 0
? this.singleTimeSheet.shiftDetails.extendedStaff[0].endDateTime
: this.singleTimeSheet.shiftDetails.endTime,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
shiftId: this.singleTimeSheet.shiftDetails.shiftId,
userId: this.singleTimeSheet.userInfo._id,
neitherMessage: this.remarkMessage,
_id: this.singleTimeSheet.attendance._id,
};
}
else if (!this.singleTimeSheet.attendance) {
this.approvalObj = {
businessUnitId: this.singleTimeSheet.businessUnitId,
clocked: false,
neither: false,
shift: true,
breakTime: this.break,
neitherMessage: this.remarkMessage,
approveClockInTime: this.singleTimeSheet.shiftDetails.isExtendedShift &&
this.singleTimeSheet.shiftDetails.extendedStaff.length > 0
? this.singleTimeSheet.shiftDetails.extendedStaff[0].startDateTime
: this.singleTimeSheet.shiftDetails.startTime,
approveClockOutTime: this.singleTimeSheet.shiftDetails.isExtendedShift &&
this.singleTimeSheet.shiftDetails.extendedStaff.length > 0
? this.singleTimeSheet.shiftDetails.extendedStaff[0].endDateTime
: this.singleTimeSheet.shiftDetails.endTime,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
shiftId: this.singleTimeSheet.shiftDetails.shiftId,
userId: this.singleTimeSheet.userInfo._id,
};
}
}
else if (this.uniqueIdShift === 2) {
this.approvalObj = {
businessUnitId: this.singleTimeSheet.businessUnitId,
clocked: true,
neither: false,
shift: false,
breakTime: this.break,
approveClockInTime: this.singleTimeSheet.attendance.clockInDateTime,
approveClockOutTime: this.singleTimeSheet.attendance.clockOutDateTime,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
shiftId: this.singleTimeSheet.shiftDetails.shiftId,
userId: this.singleTimeSheet.userInfo._id,
neitherMessage: this.remarkMessage,
_id: this.singleTimeSheet.attendance._id,
};
}
else if (this.uniqueIdShift === 3) {
if (!this.shiftsForm.get('neitherRemarks').value) {
this.toastService.error("Please enter remarks to approve neither hours.");
this.timeSheetDataLoader = false;
return;
}
this.approvalObj = {
businessUnitId: this.singleTimeSheet.businessUnitId,
clocked: false,
neither: true,
shift: false,
breakTime: this.break,
approveClockInTime: this.dateForNeither,
approveClockOutTime: this.enddateForNeither,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
shiftId: this.singleTimeSheet.shiftDetails.shiftId,
userId: this.singleTimeSheet.userInfo._id,
neitherMessage: this.remarkMessage,
_id: (_a = this.singleTimeSheet.attendance) === null || _a === void 0 ? void 0 : _a._id,
};
}
this.modelClose();
this.timesheetService
.approvalTimeSheet(this.approvalObj)
.subscribe((res) => {
this.timeSheetData = res['data'];
this.getTimesheetHistory();
this.timeSheetDataLoader = false;
this.toastService.success('Shift approved successfully');
}, (error) => {
this.toastService.error("Something went wrong. Please try again.");
this.timeSheetDataLoader = false;
});
}
checkAllShiftLock(i) {
this.checkShift = i;
}
exportHistoryCSV() {
const shiftFilter = this.shiftsFormFilter.value;
const startdate = moment__WEBPACK_IMPORTED_MODULE_2__()
.year(shiftFilter.startDateFilter.year)
.month(shiftFilter.startDateFilter.month - 1)
.date(shiftFilter.startDateFilter.day);
const enddate = moment__WEBPACK_IMPORTED_MODULE_2__()
.year(shiftFilter.endDateFilter.year)
.month(shiftFilter.endDateFilter.month - 1)
.date(shiftFilter.endDateFilter.day);
const historyCsvPayload = {
endDate: moment__WEBPACK_IMPORTED_MODULE_2__(enddate).format('DD-MM-YYYY'),
startDate: moment__WEBPACK_IMPORTED_MODULE_2__(startdate).format('DD-MM-YYYY'),
};
this.timesheetService
.exportHistoryTSData(this.businessUnitId._id, historyCsvPayload)
.subscribe((res) => {
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + encodeURI(res.csv);
a.target = '_blank';
a.download = "historical_timesheet.csv";
document.body.appendChild(a);
a.click();
this.toastService.success("success", "timesheet Details exported succesfully");
});
}
lockAllShiftBtn() {
this.allShift = [];
this.timeSheetData.forEach((val) => {
if (Object.keys(val).includes('attendance')) {
if ((val.attendance.approval.shift == true ||
val.attendance.approval.clocked == true ||
val.attendance.approval.neither == true ||
val.attendance.isAutoApprove == true) &&
val.attendance.IsLock == false) {
this.allShift.push(val.attendance._id);
}
}
});
this.allShiftArray = {
ids: this.allShift,
};
this.timesheetService.lockShift(this.allShiftArray).subscribe((res) => {
this.timeSheetData = res['data'];
this.toastService.success(res['message']);
this.LockChecked = false;
this.getTimesheetHistory();
});
}
breakTime() {
this.singleTimeSheet = this.singleTimeSheet;
this.breakTimeObj = {
endTime: moment__WEBPACK_IMPORTED_MODULE_2__(this.singleTimeSheet.shiftDetails.startTime).format('MM-DD-YYYY ') +
this.shiftsForm.get('inputendTime').value +
':00 ' + this.gmtOffset,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
startTime: moment__WEBPACK_IMPORTED_MODULE_2__(this.singleTimeSheet.shiftDetails.startTime).format('MM-DD-YYYY ') +
this.shiftsForm.get('inputstartTime').value +
':00 ' + this.gmtOffset,
userId: this.singleTimeSheet.userInfo._id,
};
this.timesheetService.breakTimeAdd(this.breakTimeObj).subscribe((res) => {
this.timeSheetData = res['data'];
this.toastService.success(res['message']);
this.getTimesheetHistory();
});
}
lockFunction(d) {
this.singleData = d;
this.lockObj = { _id: this.singleData.attendance._id };
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire({
title: 'Are you sure?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'Back',
}).then((result) => {
if (result.isConfirmed) {
this.timesheetService.lock(this.lockObj).subscribe((res) => {
this.toastService.success(res['message']);
this.getTimesheetHistory();
});
}
});
}
toggleDisplay() {
this.isShow = !this.isShow;
}
getDuration(time) {
if (time) {
time = parseFloat(time);
time = time * 1000 * 3600;
const date = new Date(time);
let hh = date.getUTCHours();
let min = 0;
if (date.getUTCMinutes() === 59) {
min = 0;
hh = hh + 1;
}
else {
min = date.getUTCMinutes();
}
return '' + hh + 'h:' + min + 'min';
}
else {
return '0';
}
}
toggleApprovalDetails(data, i) {
if (this.isApproveShowHisDet === i) {
return (this.isApproveShowHisDet = '');
}
return (this.isApproveShowHisDet = i);
}
toggleBreakDetails(data, i) {
if (this.isBreakShowHisDet === i) {
this.showBtn = true;
return (this.isBreakShowHisDet = '');
}
this.showBtn = false;
return (this.isBreakShowHisDet = i);
}
modelClose() {
this.getTimesheetHistory();
this.modelService.dismissAll();
}
}
TimesheetLookupComponent.ɵfac = function TimesheetLookupComponent_Factory(t) { return new (t || TimesheetLookupComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_9__["SetupService"])); };
TimesheetLookupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TimesheetLookupComponent, selectors: [["app-timesheet-lookup"]], viewQuery: function TimesheetLookupComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.AddShiftHours = _t.first);
} }, inputs: { businessUnitId: "businessUnitId", refresh: "refresh" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 41, vars: 7, consts: [[1, "tab-content"], [1, "panel"], [1, "panel-heading"], [1, "bg-theme", "card-header", "d-flex", "flex-column"], [1, "d-flex", "justify-content-between", "w-100"], [1, "mb-2"], [1, "m-0"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "btn", "btn-outline-light", "btn-sm", "ml-1"], [3, "formGroup"], [1, "row"], [1, "col-md-3", "align-self-end"], [1, ""], ["formControlName", "startDateFilter", "ngbDatepicker", "", 1, "form-control", 3, "click", "change"], ["d1", "ngbDatepicker"], ["formControlName", "endDateFilter", "ngbDatepicker", "", 1, "form-control", 3, "placeholder", "click", "change"], ["d2", "ngbDatepicker"], [1, "col-md-2", "align-self-end"], [1, "btn", "btn-success", 3, "click"], [1, "panel-body"], [1, "col-md-12"], ["type", "text", "id", "f.userInfo.name", "placeholder", "Search by User Name or Staff ID", "autocomplete", "off", 1, "form-control", "my-2", 3, "ngModel", "ngModelChange"], [1, "table-responsive"], ["class", "loader", 4, "ngIf"], ["class", "table bg-white", 4, "ngIf"], ["class", "bg-white text-center p-3", 4, "ngIf"], ["AddShiftHours", ""], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "table", "bg-white"], ["rowspan", "2", "data-orderable", "true", 1, "headTh", 2, "text-align", "center", "background", "#ddd", "width", "10%"], ["rowspan", "2", 1, "headTh", 2, "text-align", "center", "background", "#ddd"], ["rowspan", "2", 1, "headTh", 2, "text-align", "center", "background", "#ddd", "padding-left", "20px", "padding-right", "25px"], ["colspan", "2", 1, "headTh", 2, "text-align", "center", "background", "#ddd"], ["rowspan", "2", 1, "headTh", 2, "text-align", "center", "background", "#ddd", "width", "5%"], ["colspan", "3", 1, "headTh", 2, "text-align", "center", "background", "#ddd"], ["rowspan", "2", 1, "headTh", "w-75", 2, "background", "#ddd"], [1, "d-flex", "flex-column"], [1, "text-center"], ["type", "checkbox", 1, "align-self-center", "shiftInput", "m-1", 3, "checked", "change"], ["type", "button", 1, "align-self-center", "btn", "btn-info", "w-50", 2, "font-size", "10px", "background-color", "#a42138", 3, "disabled"], [1, "headTd", 2, "text-align", "center", "color", "green", "font-weight", "700", "background", "#ddd"], [1, "headTd", 2, "text-align", "center", "color", "#a42138", "font-weight", "700", "background", "#ddd"], [1, "headTd", 2, "text-align", "center", "font-weight", "700", "background", "#ddd"], [4, "ngFor", "ngForOf"], [1, "headTd"], ["class", "m-0 font-weight-normal text-primary", 4, "ngIf"], [1, "headTd", "p-0", "text-center"], [4, "ngIf", "ngIfElse"], ["startTimeBlock", ""], ["endTimeBlock", ""], ["class", "m-0", 4, "ngIf"], [4, "ngIf"], ["type", "checkbox", 1, "shiftInput", 2, "margin", "5px", "height", "17px", "width", "15px", 3, "checked", "click", "change"], ["type", "checkbox", 1, "shiftInput", "ml-3", 2, "margin", "5px", "height", "17px", "width", "15px", 3, "disabled", "checked", "click", "change"], [1, "headTd", "text-center"], ["class", "material-icons text-success", 4, "ngIf"], [1, "m-0", "font-weight-normal", "text-primary"], ["class", "d-flex", 4, "ngFor", "ngForOf"], [1, "d-flex"], ["class", "btn addBreakMultiple", 3, "click", 4, "ngIf"], ["class", "btn subBreakMultiple", 3, "click", 4, "ngIf"], [1, "btn", "addBreakMultiple", 3, "click"], [1, "btn", "subBreakMultiple", 3, "click"], [1, "p-1"], [1, "material-icons", "text-success"], [1, "d-flex", "flex-column", "justify-content-center"], [1, "btn", "btn-sm", "apprDet", 3, "click"], [1, "align-items-center", "d-flex", "justify-content-between"], ["class", "form-check", 4, "ngIf"], ["class", "align-items-center d-flex justify-content-center mt-1", 4, "ngIf"], [1, "table"], [1, "form-check"], ["type", "checkbox", 1, "form-check-input", "position-static", "checkBox-lg", 3, "checked"], [1, "align-items-center", "mt-3", "d-flex", "justify-content-start"], [1, "fa", "fa-lock", "fa-2x"], [1, "btn", "bg-theme", "ml-2"], [1, "font-weight-lighter", "m-0"], [1, "align-items-center", "d-flex", "justify-content-center", "mt-1"], [1, "fa", "fa-unlock", "fa-2x"], [1, "btn", "lockBtn", "ml-1", 3, "click"], [1, "bg-white", "text-center", "p-3"], [1, "modal-content"], [1, "modal-body"], ["class", "modal-title m-3", 4, "ngIf"], ["class", "row", 4, "ngIf"], [1, "col-md-12", "mt-4", "d-flex", "align-items-center"], [1, "font-weight-bold", "breakText"], [1, "font-weight-bold"], [1, "row", "m-3"], [1, "col-md-12", "d-flex"], [1, "font-weight-bold", "mr-3"], ["style", "font-size: 1.2em; color: red;", 4, "ngIf"], ["type", "text", "formControlName", "neitherRemarks", 1, "form-control", "not-allowed"], [1, "row", "d-flex", "justify-content-end", "m-3"], ["type", "button", 1, "btn", "btn-success", 3, "click"], ["type", "button", 1, "btn", "btn-danger", "ml-3", 3, "click"], [1, "modal-title", "m-3"], [1, "col-md-6"], ["disabled", "", "type", "text", "formControlName", "startTime", 1, "form-control", "disabled"], ["disabled", "", "type", "text", "formControlName", "endTime", 1, "form-control", "disabled"], ["disabled", "", "type", "text", "formControlName", "clockedStartTime", 1, "form-control", "disabled"], ["disabled", "", "type", "text", "formControlName", "clockedEndTime", 1, "form-control", "disabled"], ["type", "text", "formControlName", "neitherstartTime", 1, "form-control"], ["type", "text", "formControlName", "neitherendTime", 1, "form-control"], [1, "addBreak", "ml-2", 3, "click"], [1, "modal-title", "ml-3"], [1, "breakTimeTable"], ["type", "text", "formControlName", "startDate", 1, "form-control"], [1, "tdSize"], ["type", "text", "formControlName", "inputstartTime", 1, "form-control"], ["type", "text", "formControlName", "endDate", 1, "form-control"], ["type", "text", "formControlName", "inputendTime", 1, "form-control"], [2, "font-size", "1.2em", "color", "red"]], template: function TimesheetLookupComponent_Template(rf, ctx) { if (rf & 1) {
const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "h5", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "TIMESHEET HISTORY");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_Template_button_click_11_listener() { return ctx.exportHistoryCSV(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Export Timesheet ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "form", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "SELECT START DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "input", 13, 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_Template_input_click_20_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r83); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](21); return _r0.toggle(); })("change", function TimesheetLookupComponent_Template_input_change_20_listener() { return ctx.handleExport(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "label", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "SELECT END DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "input", 15, 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_Template_input_click_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r83); const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](26); return _r1.toggle(); })("change", function TimesheetLookupComponent_Template_input_change_25_listener() { return ctx.handleExport(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "button", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetLookupComponent_Template_button_click_28_listener() { return ctx.viewBtn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "input", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function TimesheetLookupComponent_Template_input_ngModelChange_33_listener($event) { return ctx.searchString = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](36, TimesheetLookupComponent_div_36_Template, 5, 0, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](37, TimesheetLookupComponent_table_37_Template, 51, 6, "table", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, TimesheetLookupComponent_div_38_Template, 2, 0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](39, TimesheetLookupComponent_ng_template_39_Template, 30, 10, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.businessUnitId.orgName, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.shiftsFormFilter);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("placeholder", ctx.lastDate);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.searchString);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.timeSheetDataLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.timeSheetDataLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.timeSheetData == null ? null : ctx.timeSheetData.length) === 0);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["DefaultValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbInputDatepicker"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["NgForOf"]], pipes: [_shared_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_12__["FilterPipe"], _angular_common__WEBPACK_IMPORTED_MODULE_11__["DatePipe"]], styles: [".facialBox[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.shiftTime[_ngcontent-%COMP%] {\n position: absolute;\n left: 100%;\n top: 12%;\n}\n\n.ShiftStart[_ngcontent-%COMP%] {\n background: #a42138;\n width: 85px;\n text-align: center;\n padding-top: 5px;\n}\n\n.ShiftStart[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n color: white;\n}\n\n.breakTimeTable[_ngcontent-%COMP%] {\n border-collapse: separate;\n border-spacing: 10px;\n}\n\n.tdSize[_ngcontent-%COMP%] {\n width: 70px;\n}\n\n.ShiftEnd[_ngcontent-%COMP%] {\n background: green;\n margin-top: 10px;\n}\n\nbody[_ngcontent-%COMP%] div#mySidenav[_ngcontent-%COMP%] {\n left: -600px;\n}\n\nbody[_ngcontent-%COMP%] div#mySidenav.opensCCCC[_ngcontent-%COMP%] {\n left: 230px;\n}\n\n.right-section.closeRightMenu.moveRight[_ngcontent-%COMP%] {\n margin-left: 490px;\n}\n\n.container[_ngcontent-%COMP%] {\n max-width: 800px;\n margin: 20px auto;\n padding: 20px;\n}\n\n.app[_ngcontent-%COMP%] {\n width: 100%;\n position: relative;\n}\n\n[_ngcontent-%COMP%]::placeholder {\n color: black;\n opacity: 1;\n \n}\n\n.app[_ngcontent-%COMP%] #start-camera[_ngcontent-%COMP%] {\n \n border-radius: 3px;\n max-width: 400px;\n color: #fff;\n background-color: #448aff;\n text-decoration: none;\n padding: 15px;\n opacity: 0.8;\n margin: 50px auto;\n text-align: center;\n}\n\n.app[_ngcontent-%COMP%] video#camera-stream[_ngcontent-%COMP%] {\n display: none;\n width: 100%;\n}\n\n.lowOpacity[_ngcontent-%COMP%] {\n opacity: 0.1;\n}\n\n#snaps[_ngcontent-%COMP%] {\n position: absolute;\n top: 100px;\n left: 0;\n width: 150px;\n z-index: 10;\n \n margin-left: auto;\n margin-right: auto;\n right: 0;\n}\n\n.app[_ngcontent-%COMP%] #error-message[_ngcontent-%COMP%] {\n width: 100%;\n background-color: #ccc;\n color: #9b9b9b;\n font-size: 28px;\n padding: 200px 100px;\n text-align: center;\n display: none;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 20;\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n padding: 30px;\n display: none;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n border-radius: 50%;\n color: #fff;\n background-color: #111;\n text-decoration: none;\n padding: 15px;\n line-height: 0;\n opacity: 0.7;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n opacity: 1;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%] {\n background-color: #555;\n opacity: 0.5;\n cursor: default;\n pointer-events: none;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]:hover {\n opacity: 0.5;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 18px;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] #take-photo[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 32px;\n}\n\n.addBreakMultiple[_ngcontent-%COMP%] {\n background: #146e23;\n color: white;\n line-height: 2.5;\n text-align: center;\n}\n\n.subBreakMultiple[_ngcontent-%COMP%] {\n background: #aa1f06;\n display: flex;\n height: 20px;\n width: 21px;\n justify-content: center;\n align-items: center;\n color: white;\n}\n\n.app[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%] {\n display: none;\n}\n\n.app[_ngcontent-%COMP%] video#camera-stream.visible[_ngcontent-%COMP%], .app[_ngcontent-%COMP%] img#snap.visible[_ngcontent-%COMP%], .app[_ngcontent-%COMP%] #error-message.visible[_ngcontent-%COMP%] {\n display: block;\n}\n\n.app[_ngcontent-%COMP%] .controls.visible[_ngcontent-%COMP%] {\n display: flex;\n}\n\n@media (max-width: 1000px) {\n .container[_ngcontent-%COMP%] {\n margin: 40px;\n }\n\n .app[_ngcontent-%COMP%] #start-camera.visible[_ngcontent-%COMP%] {\n display: block;\n }\n\n .app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 16px;\n }\n\n .app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] #take-photo[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 24px;\n }\n}\n\n.systemTimeBox[_ngcontent-%COMP%] {\n background: #1e88e5e8;\n padding: 5px 15px;\n border: 2px;\n color: white;\n border-radius: 5px;\n margin-right: 10px;\n}\n\n.okBtn[_ngcontent-%COMP%] {\n padding: 5px 15px;\n color: white;\n background: red;\n border: 2px;\n border-radius: 5px;\n}\n\n.dashBox[_ngcontent-%COMP%] {\n margin-top: 10px;\n text-align: center;\n}\n\n.breakTime[_ngcontent-%COMP%] {\n background: #ca7f6e;\n color: white;\n line-height: 2.5;\n text-align: center;\n}\n\n.greenBtn[_ngcontent-%COMP%] {\n padding: 5px 15px;\n color: white;\n background: green;\n border: 2px;\n border-radius: 5px;\n}\n\n.Nothing[_ngcontent-%COMP%] {\n background: transparent;\n border: transparent;\n}\n\n.greenCheck[_ngcontent-%COMP%] {\n text-align: end;\n position: relative;\n top: 35px;\n}\n\n.redCross[_ngcontent-%COMP%] {\n position: relative;\n top: 45px;\n}\n\n.form-group.white[_ngcontent-%COMP%] {\n color: white;\n}\n\n.modalContentBoxGrey[_ngcontent-%COMP%] {\n background: #ddd;\n}\n\n.modalContentBoxRed[_ngcontent-%COMP%] {\n background: #a42138;\n}\n\n.labelTitle[_ngcontent-%COMP%] {\n font-weight: 400;\n}\n\n@media (max-width: 600px) {\n .container[_ngcontent-%COMP%] {\n margin: 10px;\n }\n\n .app[_ngcontent-%COMP%] #error-message[_ngcontent-%COMP%] {\n padding: 80px 50px;\n font-size: 18px;\n }\n\n .app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 12px;\n }\n\n .app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] #take-photo[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 18px;\n }\n}\n\n.headTh[_ngcontent-%COMP%], .headTd[_ngcontent-%COMP%] {\n border: 1px solid #81848d40;\n border-collapse: collapse;\n color: #343a40;\n font-weight: 700 !important;\n font-size: 12px;\n vertical-align: middle;\n}\n\n.redbtn[_ngcontent-%COMP%] {\n width: 20px;\n color: white;\n border: 2px solid;\n background-color: #a42138;\n border-radius: 5px;\n}\n\n.greenbtn[_ngcontent-%COMP%] {\n background-color: #478d30;\n}\n\n.selectedBox[_ngcontent-%COMP%] {\n width: 50% !important;\n padding-left: 10px;\n margin-left: 20px;\n}\n\n.backBtn[_ngcontent-%COMP%] {\n background-color: cadetblue !important;\n color: white !important;\n border: 1px solid #dddddd !important;\n}\n\n.lockedBtn[_ngcontent-%COMP%] {\n background-color: #a42138 !important;\n pointer-events: none;\n}\n\n.disableCheck[_ngcontent-%COMP%] {\n pointer-events: none;\n}\n\n.lockBtn[_ngcontent-%COMP%] {\n padding-left: 5px;\n padding-right: 5px;\n background-color: #3e8623;\n border: 1px solid;\n border-radius: 5px;\n color: white;\n}\n\ninput.checkBoxInput[type=checkbox][_ngcontent-%COMP%] {\n cursor: pointer;\n width: 25px;\n height: 25px;\n background: white;\n}\n\ninput.shiftInput[type=checkbox][_ngcontent-%COMP%] {\n cursor: pointer;\n width: 15px;\n height: 15px;\n background: white;\n border-radius: 3px;\n}\n\ninput.checkBoxInput[type=checkbox][_ngcontent-%COMP%]:checked {\n color: #2ecc71;\n}\n\n.orangeBtn[_ngcontent-%COMP%] {\n background: orangered !important;\n border-color: orangered !important;\n font-size: 12px;\n}\n\n.redBtn[_ngcontent-%COMP%] {\n background: red !important;\n border-color: red !important;\n font-size: 12px;\n}\n\n.greyBtn[_ngcontent-%COMP%] {\n background: gray !important;\n border-color: gray !important;\n font-size: 12px;\n}\n\n.greenBtn[_ngcontent-%COMP%] {\n background: #3ab54a !important;\n border-color: #3ab54a !important;\n font-size: 12px;\n}\n\n.disableIn[_ngcontent-%COMP%] {\n cursor: not-allowed !important;\n}\n\n\n\n@keyframes hvr-buzz {\n 50% {\n transform: translateX(3px) rotate(2deg);\n }\n 100% {\n transform: translateX(-3px) rotate(-2deg);\n }\n}\n\n.hvr-buzz[_ngcontent-%COMP%] {\n display: inline-block;\n vertical-align: middle;\n transform: perspective(1px) translateZ(0);\n box-shadow: 0 0 1px rgba(0, 0, 0, 0);\n}\n\n.hvr-buzz[_ngcontent-%COMP%]:hover, .hvr-buzz[_ngcontent-%COMP%]:focus, .hvr-buzz[_ngcontent-%COMP%]:active {\n animation-name: hvr-buzz;\n animation-duration: 0.15s;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n}\n\n\n\n@keyframes hvr-pulse {\n 25% {\n transform: scale(1.1);\n }\n 75% {\n transform: scale(0.9);\n }\n}\n\n.hvr-pulse[_ngcontent-%COMP%] {\n display: inline-block;\n vertical-align: middle;\n transform: perspective(1px) translateZ(0);\n box-shadow: 0 0 1px rgba(0, 0, 0, 0);\n}\n\n.hvr-pulse[_ngcontent-%COMP%]:hover, .hvr-pulse[_ngcontent-%COMP%]:focus, .hvr-pulse[_ngcontent-%COMP%]:active {\n animation-name: hvr-pulse;\n animation-duration: 1s;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n}\n\n.loadingDiv[_ngcontent-%COMP%] {\n position: absolute;\n top: 35%;\n right: 50%;\n \n \n background-repeat: no-repeat;\n background-position: center;\n z-index: 10000000;\n opacity: 0.8;\n}\n\n.btn-yellow[_ngcontent-%COMP%] {\n color: #f2c94d;\n}\n\n.loadingDiv1[_ngcontent-%COMP%] {\n position: absolute;\n top: 100px;\n right: 50%;\n \n \n background-repeat: no-repeat;\n background-position: center;\n z-index: 10000000;\n opacity: 0.8;\n}\n\n.greenbtn[_ngcontent-%COMP%] {\n background-color: #478d30;\n}\n\n.addBreak[_ngcontent-%COMP%] {\n height: 20px;\n display: flex;\n align-items: center;\n padding: 6px;\n background-color: orange;\n font-weight: bold;\n cursor: pointer;\n}\n\n.addBreakMultiple[_ngcontent-%COMP%] {\n height: 20px;\n display: flex;\n align-items: center;\n padding: 6px;\n background-color: green;\n font-weight: bold;\n cursor: pointer;\n color: white;\n margin-left: 2px;\n}\n\n.backBtn[_ngcontent-%COMP%] {\n background-color: cadetblue !important;\n color: white !important;\n border: 1px solid #dddddd !important;\n}\n\n.lockedBtn[_ngcontent-%COMP%] {\n color: white;\n background-color: #a42138 !important;\n pointer-events: none;\n font-size: 13px;\n padding: 5px;\n font-weight: 600;\n}\n\n.disableCheck[_ngcontent-%COMP%] {\n pointer-events: none;\n}\n\n.lockBtn[_ngcontent-%COMP%] {\n padding-left: 5px;\n padding-right: 5px;\n background-color: #3e8623;\n border: 1px solid;\n border-radius: 5px;\n color: white;\n}\n\n.apprDet[_ngcontent-%COMP%] {\n background-color: orangered;\n color: white;\n padding: 6px;\n font-size: 10px;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.checkBox-lg[_ngcontent-%COMP%] {\n width: 1.3rem;\n height: 1.3rem;\n}\n\n.loader[_ngcontent-%COMP%] {\n background-color: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-repeat: no-repeat;\n background-position: center;\n z-index: 1050;\n opacity: 0.8;\n}\n\n.loader[_ngcontent-%COMP%] .pageLoading[_ngcontent-%COMP%] {\n text-align: center;\n color: white;\n font-size: 25px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvdGltZXNoZWV0L3RpbWVzaGVldC1sb29rdXAvdGltZXNoZWV0LWxvb2t1cC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLGtCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxRQUFBO0FBQ0Y7O0FBRUE7RUFDRSxtQkFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxZQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtFQUNBLG9CQUFBO0FBQ0Y7O0FBRUE7RUFDRSxXQUFBO0FBQ0Y7O0FBRUE7RUFDRSxpQkFBQTtFQUNBLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxZQUFBO0FBQ0Y7O0FBRUE7RUFDRSxXQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtBQUNGOztBQUVBO0VBQ0UsZ0JBQUE7RUFDQSxpQkFBQTtFQUNBLGFBQUE7QUFDRjs7QUFFQTtFQUNFLFdBQUE7RUFDQSxrQkFBQTtBQUNGOztBQUVBO0VBQ0UsWUFBQTtFQUNBLFVBQUE7RUFBWSxZQUFBO0FBRWQ7O0FBQ0E7RUFDRSxtQkFBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtBQUVGOztBQUNBO0VBQ0UsYUFBQTtFQUNBLFdBQUE7QUFFRjs7QUFDQTtFQUNFLFlBQUE7QUFFRjs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsVUFBQTtFQUNBLE9BQUE7RUFDQSxZQUFBO0VBQ0EsV0FBQTtFQUNBLG1CQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFFBQUE7QUFFRjs7QUFDQTtFQUNFLFdBQUE7RUFDQSxzQkFBQTtFQUNBLGNBQUE7RUFDQSxlQUFBO0VBQ0Esb0JBQUE7RUFDQSxrQkFBQTtFQUNBLGFBQUE7QUFFRjs7QUFDQTtFQUNFLGtCQUFBO0VBQ0EsTUFBQTtFQUNBLE9BQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7RUFFQSxhQUFBO0VBQ0EscUJBQUE7RUFDQSw4QkFBQTtFQUNBLGFBQUE7RUFDQSxhQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLFdBQUE7RUFDQSxzQkFBQTtFQUNBLHFCQUFBO0VBQ0EsYUFBQTtFQUNBLGNBQUE7RUFDQSxZQUFBO0VBQ0EsYUFBQTtFQUNBLHdDQUFBO0FBQ0Y7O0FBRUE7RUFDRSxVQUFBO0FBQ0Y7O0FBRUE7RUFDRSxzQkFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0VBQ0Esb0JBQUE7QUFDRjs7QUFFQTtFQUNFLFlBQUE7QUFDRjs7QUFFQTtFQUNFLGVBQUE7QUFDRjs7QUFFQTtFQUNFLGVBQUE7QUFDRjs7QUFDQTtFQUNFLG1CQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFFRjs7QUFDQTtFQUNFLG1CQUFBO0VBQ0EsYUFBQTtFQUNBLFlBQUE7RUFDQSxXQUFBO0VBQ0EsdUJBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7QUFFRjs7QUFDQTtFQUNFLGFBQUE7QUFFRjs7QUFDQTs7O0VBR0UsY0FBQTtBQUVGOztBQUNBO0VBQ0UsYUFBQTtBQUVGOztBQUNBO0VBQ0U7SUFDRSxZQUFBO0VBRUY7O0VBQ0E7SUFDRSxjQUFBO0VBRUY7O0VBQ0E7SUFDRSxlQUFBO0VBRUY7O0VBQ0E7SUFDRSxlQUFBO0VBRUY7QUFDRjs7QUFDQTtFQUNFLHFCQUFBO0VBQ0EsaUJBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGlCQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7RUFDQSxXQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLG1CQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGlCQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0FBQ0Y7O0FBRUE7RUFDRSx1QkFBQTtFQUNBLG1CQUFBO0FBQ0Y7O0FBRUE7RUFDRSxlQUFBO0VBQ0Esa0JBQUE7RUFDQSxTQUFBO0FBQ0Y7O0FBRUE7RUFDRSxrQkFBQTtFQUNBLFNBQUE7QUFDRjs7QUFFQTtFQUNFLFlBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxtQkFBQTtBQUNGOztBQUVBO0VBQ0UsZ0JBQUE7QUFDRjs7QUFFQTtFQUNFO0lBQ0UsWUFBQTtFQUNGOztFQUVBO0lBQ0Usa0JBQUE7SUFDQSxlQUFBO0VBQ0Y7O0VBRUE7SUFDRSxlQUFBO0VBQ0Y7O0VBRUE7SUFDRSxlQUFBO0VBQ0Y7QUFDRjs7QUFFQTs7RUFFRSwyQkFBQTtFQUNBLHlCQUFBO0VBQ0EsY0FBQTtFQUNBLDJCQUFBO0VBQ0EsZUFBQTtFQUNBLHNCQUFBO0FBQUY7O0FBR0E7RUFDRSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtBQUFGOztBQUdBO0VBQ0UseUJBQUE7QUFBRjs7QUFHQTtFQUNFLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSxpQkFBQTtBQUFGOztBQUdBO0VBQ0Usc0NBQUE7RUFDQSx1QkFBQTtFQUNBLG9DQUFBO0FBQUY7O0FBR0E7RUFDRSxvQ0FBQTtFQUNBLG9CQUFBO0FBQUY7O0FBR0E7RUFDRSxvQkFBQTtBQUFGOztBQUdBO0VBQ0UsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLHlCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7QUFBRjs7QUFHQTtFQUNFLGVBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0FBQUY7O0FBR0E7RUFDRSxlQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0FBQUY7O0FBR0E7RUFDRSxjQUFBO0FBQUY7O0FBR0E7RUFDRSxnQ0FBQTtFQUNBLGtDQUFBO0VBQ0EsZUFBQTtBQUFGOztBQUdBO0VBQ0UsMEJBQUE7RUFDQSw0QkFBQTtFQUNBLGVBQUE7QUFBRjs7QUFHQTtFQUNFLDJCQUFBO0VBQ0EsNkJBQUE7RUFDQSxlQUFBO0FBQUY7O0FBR0E7RUFDRSw4QkFBQTtFQUNBLGdDQUFBO0VBQ0EsZUFBQTtBQUFGOztBQUdBO0VBQ0UsOEJBQUE7QUFBRjs7QUFHQSxTQUFBOztBQWFBO0VBQ0U7SUFFRSx1Q0FBQTtFQUZGO0VBS0E7SUFFRSx5Q0FBQTtFQUhGO0FBQ0Y7O0FBTUE7RUFDRSxxQkFBQTtFQUNBLHNCQUFBO0VBRUEseUNBQUE7RUFDQSxvQ0FBQTtBQUpGOztBQU9BOzs7RUFJRSx3QkFBQTtFQUVBLHlCQUFBO0VBRUEsaUNBQUE7RUFFQSxtQ0FBQTtBQUpGOztBQU9BLFVBQUE7O0FBYUE7RUFDRTtJQUVFLHFCQUFBO0VBTkY7RUFTQTtJQUVFLHFCQUFBO0VBUEY7QUFDRjs7QUFVQTtFQUNFLHFCQUFBO0VBQ0Esc0JBQUE7RUFFQSx5Q0FBQTtFQUNBLG9DQUFBO0FBUkY7O0FBV0E7OztFQUlFLHlCQUFBO0VBRUEsc0JBQUE7RUFFQSxpQ0FBQTtFQUVBLG1DQUFBO0FBUkY7O0FBVUE7RUFDRSxrQkFBQTtFQUNBLFFBQUE7RUFDQSxVQUFBO0VBQ0E7Z0JBQUE7RUFFQSwwQkFBQTtFQUNBLDRCQUFBO0VBQ0EsMkJBQUE7RUFDQSxpQkFBQTtFQUNBLFlBQUE7QUFQRjs7QUFTQTtFQUNFLGNBQUE7QUFORjs7QUFRQTtFQUNFLGtCQUFBO0VBQ0EsVUFBQTtFQUNBLFVBQUE7RUFDQTtnQkFBQTtFQUVBLDBCQUFBO0VBQ0EsNEJBQUE7RUFDQSwyQkFBQTtFQUNBLGlCQUFBO0VBQ0EsWUFBQTtBQUxGOztBQU9BO0VBQ0UseUJBQUE7QUFKRjs7QUFPQTtFQUNFLFlBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0VBQ0Esd0JBQUE7RUFDQSxpQkFBQTtFQUNBLGVBQUE7QUFKRjs7QUFPQTtFQUNFLFlBQUE7RUFDQSxhQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0VBQ0EsdUJBQUE7RUFDQSxpQkFBQTtFQUNBLGVBQUE7RUFDQSxZQUFBO0VBQ0EsZ0JBQUE7QUFKRjs7QUFPQTtFQUNFLHNDQUFBO0VBQ0EsdUJBQUE7RUFDQSxvQ0FBQTtBQUpGOztBQU9BO0VBQ0UsWUFBQTtFQUNBLG9DQUFBO0VBQ0Esb0JBQUE7RUFDQSxlQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0FBSkY7O0FBT0E7RUFDRSxvQkFBQTtBQUpGOztBQU9BO0VBQ0UsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLHlCQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLFlBQUE7QUFKRjs7QUFPQTtFQUNFLDJCQUFBO0VBQ0EsWUFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0FBSkY7O0FBUUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUFMRjs7QUFRQTtFQUNFLGFBQUE7RUFDQSxjQUFBO0FBTEY7O0FBUUE7RUFDRSxvQ0FBQTtFQUNDLGVBQUE7RUFDRCxNQUFBO0VBQ0EsUUFBQTtFQUNBLE9BQUE7RUFDQSxTQUFBO0VBQ0EsNEJBQUE7RUFDQSwyQkFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0FBTEY7O0FBTUU7RUFDRSxrQkFBQTtFQUNBLFlBQUE7RUFDQSxlQUFBO0VBQ0EsZUFBQTtFQUNBLFFBQUE7RUFDQSxTQUFBO0VBQ0EsZ0NBQUE7QUFKSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3RpbWVzaGVldC90aW1lc2hlZXQtbG9va3VwL3RpbWVzaGVldC1sb29rdXAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmFjaWFsQm94IHtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuXG4uc2hpZnRUaW1lIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBsZWZ0OiAxMDAlO1xuICB0b3A6IDEyJTtcbn1cblxuLlNoaWZ0U3RhcnQge1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICB3aWR0aDogODVweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBwYWRkaW5nLXRvcDogNXB4O1xufVxuXG4uU2hpZnRTdGFydCBsYWJlbCB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuLmJyZWFrVGltZVRhYmxlIHtcbiAgYm9yZGVyLWNvbGxhcHNlOiBzZXBhcmF0ZTtcbiAgYm9yZGVyLXNwYWNpbmc6IDEwcHg7XG59XG5cbi50ZFNpemUge1xuICB3aWR0aDogNzBweDtcbn1cblxuLlNoaWZ0RW5kIHtcbiAgYmFja2dyb3VuZDogZ3JlZW47XG4gIG1hcmdpbi10b3A6IDEwcHg7XG59XG5cbmJvZHkgZGl2I215U2lkZW5hdiB7XG4gIGxlZnQ6IC02MDBweDtcbn1cblxuYm9keSBkaXYjbXlTaWRlbmF2Lm9wZW5zQ0NDQyB7XG4gIGxlZnQ6IDIzMHB4O1xufVxuXG4ucmlnaHQtc2VjdGlvbi5jbG9zZVJpZ2h0TWVudS5tb3ZlUmlnaHQge1xuICBtYXJnaW4tbGVmdDogNDkwcHg7XG59XG5cbi5jb250YWluZXIge1xuICBtYXgtd2lkdGg6IDgwMHB4O1xuICBtYXJnaW46IDIwcHggYXV0bztcbiAgcGFkZGluZzogMjBweDtcbn1cblxuLmFwcCB7XG4gIHdpZHRoOiAxMDAlO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbjo6cGxhY2Vob2xkZXIge1xuICBjb2xvcjogYmxhY2s7XG4gIG9wYWNpdHk6IDE7IC8qIEZpcmVmb3ggKi9cbn1cblxuLmFwcCAjc3RhcnQtY2FtZXJhIHtcbiAgLyogZGlzcGxheTogbm9uZTsgKi9cbiAgYm9yZGVyLXJhZGl1czogM3B4O1xuICBtYXgtd2lkdGg6IDQwMHB4O1xuICBjb2xvcjogI2ZmZjtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzQ0OGFmZjtcbiAgdGV4dC1kZWNvcmF0aW9uOiBub25lO1xuICBwYWRkaW5nOiAxNXB4O1xuICBvcGFjaXR5OiAwLjg7XG4gIG1hcmdpbjogNTBweCBhdXRvO1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5hcHAgdmlkZW8jY2FtZXJhLXN0cmVhbSB7XG4gIGRpc3BsYXk6IG5vbmU7XG4gIHdpZHRoOiAxMDAlO1xufVxuXG4ubG93T3BhY2l0eSB7XG4gIG9wYWNpdHk6IDAuMTtcbn1cblxuI3NuYXBzIHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDEwMHB4O1xuICBsZWZ0OiAwO1xuICB3aWR0aDogMTUwcHg7XG4gIHotaW5kZXg6IDEwO1xuICAvKiBkaXNwbGF5OiBub25lOyAqL1xuICBtYXJnaW4tbGVmdDogYXV0bztcbiAgbWFyZ2luLXJpZ2h0OiBhdXRvO1xuICByaWdodDogMDtcbn1cblxuLmFwcCAjZXJyb3ItbWVzc2FnZSB7XG4gIHdpZHRoOiAxMDAlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjY2NjO1xuICBjb2xvcjogIzliOWI5YjtcbiAgZm9udC1zaXplOiAyOHB4O1xuICBwYWRkaW5nOiAyMDBweCAxMDBweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uYXBwIC5jb250cm9scyB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICB3aWR0aDogMTAwJTtcbiAgaGVpZ2h0OiAxMDAlO1xuICB6LWluZGV4OiAyMDtcblxuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogZmxleC1lbmQ7XG4gIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgcGFkZGluZzogMzBweDtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmFwcCAuY29udHJvbHMgYSB7XG4gIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICMxMTE7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbiAgcGFkZGluZzogMTVweDtcbiAgbGluZS1oZWlnaHQ6IDA7XG4gIG9wYWNpdHk6IDAuNztcbiAgb3V0bGluZTogbm9uZTtcbiAgLXdlYmtpdC10YXAtaGlnaGxpZ2h0LWNvbG9yOiB0cmFuc3BhcmVudDtcbn1cblxuLmFwcCAuY29udHJvbHMgYTpob3ZlciB7XG4gIG9wYWNpdHk6IDE7XG59XG5cbi5hcHAgLmNvbnRyb2xzIGEuZGlzYWJsZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNTU1O1xuICBvcGFjaXR5OiAwLjU7XG4gIGN1cnNvcjogZGVmYXVsdDtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG59XG5cbi5hcHAgLmNvbnRyb2xzIGEuZGlzYWJsZWQ6aG92ZXIge1xuICBvcGFjaXR5OiAwLjU7XG59XG5cbi5hcHAgLmNvbnRyb2xzIGEgaSB7XG4gIGZvbnQtc2l6ZTogMThweDtcbn1cblxuLmFwcCAuY29udHJvbHMgI3Rha2UtcGhvdG8gaSB7XG4gIGZvbnQtc2l6ZTogMzJweDtcbn1cbi5hZGRCcmVha011bHRpcGxlIHtcbiAgYmFja2dyb3VuZDogIzE0NmUyMztcbiAgY29sb3I6IHdoaXRlO1xuICBsaW5lLWhlaWdodDogMi41O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5zdWJCcmVha011bHRpcGxlIHtcbiAgYmFja2dyb3VuZDogI2FhMWYwNjtcbiAgZGlzcGxheTogZmxleDtcbiAgaGVpZ2h0OiAyMHB4O1xuICB3aWR0aDogMjFweDtcbiAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuLmFwcCBjYW52YXMge1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4uYXBwIHZpZGVvI2NhbWVyYS1zdHJlYW0udmlzaWJsZSxcbi5hcHAgaW1nI3NuYXAudmlzaWJsZSxcbi5hcHAgI2Vycm9yLW1lc3NhZ2UudmlzaWJsZSB7XG4gIGRpc3BsYXk6IGJsb2NrO1xufVxuXG4uYXBwIC5jb250cm9scy52aXNpYmxlIHtcbiAgZGlzcGxheTogZmxleDtcbn1cblxuQG1lZGlhIChtYXgtd2lkdGg6IDEwMDBweCkge1xuICAuY29udGFpbmVyIHtcbiAgICBtYXJnaW46IDQwcHg7XG4gIH1cblxuICAuYXBwICNzdGFydC1jYW1lcmEudmlzaWJsZSB7XG4gICAgZGlzcGxheTogYmxvY2s7XG4gIH1cblxuICAuYXBwIC5jb250cm9scyBhIGkge1xuICAgIGZvbnQtc2l6ZTogMTZweDtcbiAgfVxuXG4gIC5hcHAgLmNvbnRyb2xzICN0YWtlLXBob3RvIGkge1xuICAgIGZvbnQtc2l6ZTogMjRweDtcbiAgfVxufVxuXG4uc3lzdGVtVGltZUJveCB7XG4gIGJhY2tncm91bmQ6ICMxZTg4ZTVlODtcbiAgcGFkZGluZzogNXB4IDE1cHg7XG4gIGJvcmRlcjogMnB4O1xuICBjb2xvcjogd2hpdGU7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xufVxuXG4ub2tCdG4ge1xuICBwYWRkaW5nOiA1cHggMTVweDtcbiAgY29sb3I6IHdoaXRlO1xuICBiYWNrZ3JvdW5kOiByZWQ7XG4gIGJvcmRlcjogMnB4O1xuICBib3JkZXItcmFkaXVzOiA1cHg7XG59XG5cbi5kYXNoQm94IHtcbiAgbWFyZ2luLXRvcDogMTBweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuXG4uYnJlYWtUaW1lIHtcbiAgYmFja2dyb3VuZDogI2NhN2Y2ZTtcbiAgY29sb3I6IHdoaXRlO1xuICBsaW5lLWhlaWdodDogMi41O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5ncmVlbkJ0biB7XG4gIHBhZGRpbmc6IDVweCAxNXB4O1xuICBjb2xvcjogd2hpdGU7XG4gIGJhY2tncm91bmQ6IGdyZWVuO1xuICBib3JkZXI6IDJweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xufVxuXG4uTm90aGluZyB7XG4gIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xuICBib3JkZXI6IHRyYW5zcGFyZW50O1xufVxuXG4uZ3JlZW5DaGVjayB7XG4gIHRleHQtYWxpZ246IGVuZDtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xuICB0b3A6IDM1cHg7XG59XG5cbi5yZWRDcm9zcyB7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgdG9wOiA0NXB4O1xufVxuXG4uZm9ybS1ncm91cC53aGl0ZSB7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuLm1vZGFsQ29udGVudEJveEdyZXkge1xuICBiYWNrZ3JvdW5kOiAjZGRkO1xufVxuXG4ubW9kYWxDb250ZW50Qm94UmVkIHtcbiAgYmFja2dyb3VuZDogI2E0MjEzODtcbn1cblxuLmxhYmVsVGl0bGUge1xuICBmb250LXdlaWdodDogNDAwO1xufVxuXG5AbWVkaWEgKG1heC13aWR0aDogNjAwcHgpIHtcbiAgLmNvbnRhaW5lciB7XG4gICAgbWFyZ2luOiAxMHB4O1xuICB9XG5cbiAgLmFwcCAjZXJyb3ItbWVzc2FnZSB7XG4gICAgcGFkZGluZzogODBweCA1MHB4O1xuICAgIGZvbnQtc2l6ZTogMThweDtcbiAgfVxuXG4gIC5hcHAgLmNvbnRyb2xzIGEgaSB7XG4gICAgZm9udC1zaXplOiAxMnB4O1xuICB9XG5cbiAgLmFwcCAuY29udHJvbHMgI3Rha2UtcGhvdG8gaSB7XG4gICAgZm9udC1zaXplOiAxOHB4O1xuICB9XG59XG5cbi5oZWFkVGgsXG4uaGVhZFRkIHtcbiAgYm9yZGVyOiAxcHggc29saWQgIzgxODQ4ZDQwO1xuICBib3JkZXItY29sbGFwc2U6IGNvbGxhcHNlO1xuICBjb2xvcjogIzM0M2E0MDtcbiAgZm9udC13ZWlnaHQ6IDcwMCAhaW1wb3J0YW50O1xuICBmb250LXNpemU6IDEycHg7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG59XG5cbi5yZWRidG4ge1xuICB3aWR0aDogMjBweDtcbiAgY29sb3I6IHdoaXRlO1xuICBib3JkZXI6IDJweCBzb2xpZDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xufVxuXG4uZ3JlZW5idG4ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNDc4ZDMwO1xufVxuXG4uc2VsZWN0ZWRCb3gge1xuICB3aWR0aDogNTAlICFpbXBvcnRhbnQ7XG4gIHBhZGRpbmctbGVmdDogMTBweDtcbiAgbWFyZ2luLWxlZnQ6IDIwcHg7XG59XG5cbi5iYWNrQnRuIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogY2FkZXRibHVlICFpbXBvcnRhbnQ7XG4gIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xuICBib3JkZXI6IDFweCBzb2xpZCAjZGRkZGRkICFpbXBvcnRhbnQ7XG59XG5cbi5sb2NrZWRCdG4ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjYTQyMTM4ICFpbXBvcnRhbnQ7XG4gIHBvaW50ZXItZXZlbnRzOiBub25lO1xufVxuXG4uZGlzYWJsZUNoZWNrIHtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG59XG5cbi5sb2NrQnRuIHtcbiAgcGFkZGluZy1sZWZ0OiA1cHg7XG4gIHBhZGRpbmctcmlnaHQ6IDVweDtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzNlODYyMztcbiAgYm9yZGVyOiAxcHggc29saWQ7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbiAgY29sb3I6IHdoaXRlO1xufVxuXG5pbnB1dC5jaGVja0JveElucHV0W3R5cGU9XCJjaGVja2JveFwiXSB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgd2lkdGg6IDI1cHg7XG4gIGhlaWdodDogMjVweDtcbiAgYmFja2dyb3VuZDogd2hpdGU7XG59XG5cbmlucHV0LnNoaWZ0SW5wdXRbdHlwZT1cImNoZWNrYm94XCJdIHtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICB3aWR0aDogMTVweDtcbiAgaGVpZ2h0OiAxNXB4O1xuICBiYWNrZ3JvdW5kOiB3aGl0ZTtcbiAgYm9yZGVyLXJhZGl1czogM3B4O1xufVxuXG5pbnB1dC5jaGVja0JveElucHV0W3R5cGU9XCJjaGVja2JveFwiXTpjaGVja2VkIHtcbiAgY29sb3I6ICMyZWNjNzE7XG59XG5cbi5vcmFuZ2VCdG4ge1xuICBiYWNrZ3JvdW5kOiBvcmFuZ2VyZWQgIWltcG9ydGFudDtcbiAgYm9yZGVyLWNvbG9yOiBvcmFuZ2VyZWQgIWltcG9ydGFudDtcbiAgZm9udC1zaXplOiAxMnB4O1xufVxuXG4ucmVkQnRuIHtcbiAgYmFja2dyb3VuZDogcmVkICFpbXBvcnRhbnQ7XG4gIGJvcmRlci1jb2xvcjogcmVkICFpbXBvcnRhbnQ7XG4gIGZvbnQtc2l6ZTogMTJweDtcbn1cblxuLmdyZXlCdG4ge1xuICBiYWNrZ3JvdW5kOiBncmF5ICFpbXBvcnRhbnQ7XG4gIGJvcmRlci1jb2xvcjogZ3JheSAhaW1wb3J0YW50O1xuICBmb250LXNpemU6IDEycHg7XG59XG5cbi5ncmVlbkJ0biB7XG4gIGJhY2tncm91bmQ6ICMzYWI1NGEgIWltcG9ydGFudDtcbiAgYm9yZGVyLWNvbG9yOiAjM2FiNTRhICFpbXBvcnRhbnQ7XG4gIGZvbnQtc2l6ZTogMTJweDtcbn1cblxuLmRpc2FibGVJbiB7XG4gIGN1cnNvcjogbm90LWFsbG93ZWQgIWltcG9ydGFudDtcbn1cblxuLyogQnV6eiAqL1xuQC13ZWJraXQta2V5ZnJhbWVzIGh2ci1idXp6IHtcbiAgNTAlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWCgzcHgpIHJvdGF0ZSgyZGVnKTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoM3B4KSByb3RhdGUoMmRlZyk7XG4gIH1cblxuICAxMDAlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWCgtM3B4KSByb3RhdGUoLTJkZWcpO1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtM3B4KSByb3RhdGUoLTJkZWcpO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgaHZyLWJ1enoge1xuICA1MCUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDNweCkgcm90YXRlKDJkZWcpO1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgzcHgpIHJvdGF0ZSgyZGVnKTtcbiAgfVxuXG4gIDEwMCUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0zcHgpIHJvdGF0ZSgtMmRlZyk7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0zcHgpIHJvdGF0ZSgtMmRlZyk7XG4gIH1cbn1cblxuLmh2ci1idXp6IHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xuICAtd2Via2l0LXRyYW5zZm9ybTogcGVyc3BlY3RpdmUoMXB4KSB0cmFuc2xhdGVaKDApO1xuICB0cmFuc2Zvcm06IHBlcnNwZWN0aXZlKDFweCkgdHJhbnNsYXRlWigwKTtcbiAgYm94LXNoYWRvdzogMCAwIDFweCByZ2JhKDAsIDAsIDAsIDApO1xufVxuXG4uaHZyLWJ1eno6aG92ZXIsXG4uaHZyLWJ1eno6Zm9jdXMsXG4uaHZyLWJ1eno6YWN0aXZlIHtcbiAgLXdlYmtpdC1hbmltYXRpb24tbmFtZTogaHZyLWJ1eno7XG4gIGFuaW1hdGlvbi1uYW1lOiBodnItYnV6ejtcbiAgLXdlYmtpdC1hbmltYXRpb24tZHVyYXRpb246IDAuMTVzO1xuICBhbmltYXRpb24tZHVyYXRpb246IDAuMTVzO1xuICAtd2Via2l0LWFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjtcbiAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyO1xuICAtd2Via2l0LWFuaW1hdGlvbi1pdGVyYXRpb24tY291bnQ6IGluZmluaXRlO1xuICBhbmltYXRpb24taXRlcmF0aW9uLWNvdW50OiBpbmZpbml0ZTtcbn1cblxuLyogUHVsc2UgKi9cbkAtd2Via2l0LWtleWZyYW1lcyBodnItcHVsc2Uge1xuICAyNSUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgxLjEpO1xuICAgIHRyYW5zZm9ybTogc2NhbGUoMS4xKTtcbiAgfVxuXG4gIDc1JSB7XG4gICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDAuOSk7XG4gICAgdHJhbnNmb3JtOiBzY2FsZSgwLjkpO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgaHZyLXB1bHNlIHtcbiAgMjUlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMS4xKTtcbiAgICB0cmFuc2Zvcm06IHNjYWxlKDEuMSk7XG4gIH1cblxuICA3NSUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgwLjkpO1xuICAgIHRyYW5zZm9ybTogc2NhbGUoMC45KTtcbiAgfVxufVxuXG4uaHZyLXB1bHNlIHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xuICAtd2Via2l0LXRyYW5zZm9ybTogcGVyc3BlY3RpdmUoMXB4KSB0cmFuc2xhdGVaKDApO1xuICB0cmFuc2Zvcm06IHBlcnNwZWN0aXZlKDFweCkgdHJhbnNsYXRlWigwKTtcbiAgYm94LXNoYWRvdzogMCAwIDFweCByZ2JhKDAsIDAsIDAsIDApO1xufVxuXG4uaHZyLXB1bHNlOmhvdmVyLFxuLmh2ci1wdWxzZTpmb2N1cyxcbi5odnItcHVsc2U6YWN0aXZlIHtcbiAgLXdlYmtpdC1hbmltYXRpb24tbmFtZTogaHZyLXB1bHNlO1xuICBhbmltYXRpb24tbmFtZTogaHZyLXB1bHNlO1xuICAtd2Via2l0LWFuaW1hdGlvbi1kdXJhdGlvbjogMXM7XG4gIGFuaW1hdGlvbi1kdXJhdGlvbjogMXM7XG4gIC13ZWJraXQtYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyO1xuICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7XG4gIC13ZWJraXQtYW5pbWF0aW9uLWl0ZXJhdGlvbi1jb3VudDogaW5maW5pdGU7XG4gIGFuaW1hdGlvbi1pdGVyYXRpb24tY291bnQ6IGluZmluaXRlO1xufVxuLmxvYWRpbmdEaXYge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMzUlO1xuICByaWdodDogNTAlO1xuICAvKiB3aWR0aDoxMDAlO1xuICBoZWlnaHQ6MTAwJTsgKi9cbiAgLyogYmFja2dyb3VuZC1jb2xvcjpyZWQ7ICovXG4gIGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG4gIGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcbiAgei1pbmRleDogMTAwMDAwMDA7XG4gIG9wYWNpdHk6IDAuODtcbn1cbi5idG4teWVsbG93IHtcbiAgY29sb3I6ICNmMmM5NGQ7XG59XG4ubG9hZGluZ0RpdjEge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMTAwcHg7XG4gIHJpZ2h0OiA1MCU7XG4gIC8qIHdpZHRoOjEwMCU7XG4gIGhlaWdodDoxMDAlOyAqL1xuICAvKiBiYWNrZ3JvdW5kLWNvbG9yOnJlZDsgKi9cbiAgYmFja2dyb3VuZC1yZXBlYXQ6IG5vLXJlcGVhdDtcbiAgYmFja2dyb3VuZC1wb3NpdGlvbjogY2VudGVyO1xuICB6LWluZGV4OiAxMDAwMDAwMDtcbiAgb3BhY2l0eTogMC44O1xufVxuLmdyZWVuYnRuIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzQ3OGQzMDtcbn1cblxuLmFkZEJyZWFrIHtcbiAgaGVpZ2h0OiAyMHB4O1xuICBkaXNwbGF5OiBmbGV4O1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBwYWRkaW5nOiA2cHg7XG4gIGJhY2tncm91bmQtY29sb3I6IG9yYW5nZTtcbiAgZm9udC13ZWlnaHQ6IGJvbGQ7XG4gIGN1cnNvcjogcG9pbnRlcjtcbn1cblxuLmFkZEJyZWFrTXVsdGlwbGUge1xuICBoZWlnaHQ6IDIwcHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIHBhZGRpbmc6IDZweDtcbiAgYmFja2dyb3VuZC1jb2xvcjogZ3JlZW47XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgbWFyZ2luLWxlZnQ6IDJweDtcbn1cblxuLmJhY2tCdG4ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiBjYWRldGJsdWUgIWltcG9ydGFudDtcbiAgY29sb3I6IHdoaXRlICFpbXBvcnRhbnQ7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNkZGRkZGQgIWltcG9ydGFudDtcbn1cblxuLmxvY2tlZEJ0biB7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzOCAhaW1wb3J0YW50O1xuICBwb2ludGVyLWV2ZW50czogbm9uZTtcbiAgZm9udC1zaXplOiAxM3B4O1xuICBwYWRkaW5nOiA1cHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG59XG5cbi5kaXNhYmxlQ2hlY2sge1xuICBwb2ludGVyLWV2ZW50czogbm9uZTtcbn1cblxuLmxvY2tCdG4ge1xuICBwYWRkaW5nLWxlZnQ6IDVweDtcbiAgcGFkZGluZy1yaWdodDogNXB4O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjM2U4NjIzO1xuICBib3JkZXI6IDFweCBzb2xpZDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xuICBjb2xvcjogd2hpdGU7XG59XG5cbi5hcHByRGV0IHtcbiAgYmFja2dyb3VuZC1jb2xvcjogb3JhbmdlcmVkO1xuICBjb2xvcjogd2hpdGU7XG4gIHBhZGRpbmc6IDZweDtcbiAgZm9udC1zaXplOiAxMHB4O1xufVxuXG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuXG4uY2hlY2tCb3gtbGcge1xuICB3aWR0aDogMS4zcmVtO1xuICBoZWlnaHQ6IDEuM3JlbTtcbn1cblxuLmxvYWRlcntcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgcG9zaXRpb246IGZpeGVkO1xuICB0b3A6IDA7XG4gIHJpZ2h0OjA7XG4gIGxlZnQ6MDtcbiAgYm90dG9tOjA7XG4gIGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG4gIGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcbiAgei1pbmRleDogMTA1MDtcbiAgb3BhY2l0eTogMC44O1xuICAucGFnZUxvYWRpbmcge1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBjb2xvcjogd2hpdGU7XG4gICAgZm9udC1zaXplOiAyNXB4O1xuICAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgICB0b3A6IDUwJTtcbiAgICBsZWZ0OiA1MCU7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7XG4gIH1cbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TimesheetLookupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-timesheet-lookup',
templateUrl: './timesheet-lookup.component.html',
styleUrls: ['./timesheet-lookup.component.scss'],
providers: [
{ provide: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbDateParserFormatter"], useClass: CustomDateParserFormatter },
],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__["ShiftSchedulerService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbModal"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_9__["SetupService"] }]; }, { businessUnitId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
args: ['businessUnitId']
}], refresh: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], AddShiftHours: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['AddShiftHours', { static: true }]
}] }); })();
/***/ }),
/***/ "qm94":
/*!*************************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-balloting/view-ballot/view-ballot.component.ts ***!
\*************************************************************************************************/
/*! exports provided: ViewBallotComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewBallotComponent", function() { return ViewBallotComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/human-resources/leave-planner.service */ "Z/ig");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
function ViewBallotComponent_tr_45_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Leave Type / Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", ctx_r0.ballot.leaveTypeId == null ? null : ctx_r0.ballot.leaveTypeId.name, " / Quota: ", ctx_r0.ballot.totalQuota, " ");
} }
function ViewBallotComponent_div_47_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Ratio for balance quota assignment");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " Unassigned");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "p", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Balance Quota");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "p", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Ratio");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "span", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](21, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r1.ballot.totUN ? ctx_r1.ballot.totUN : 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r1.ballot.TotBQ ? ctx_r1.ballot.TotBQ : 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](21, 3, ctx_r1.ballot.assignRatio));
} }
function ViewBallotComponent_table_51_th_7_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, item_r10[0], "dd MMM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, item_r10[1], "dd MMM"), " ");
} }
function ViewBallotComponent_table_51_th_7_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, item_r10, "dd MMM"), " ");
} }
function ViewBallotComponent_table_51_th_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewBallotComponent_table_51_th_7_ng_container_4_Template, 4, 8, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ViewBallotComponent_table_51_th_7_ng_container_5_Template, 3, 4, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r11 = ctx.index;
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" SLOT ", i_r11 + 1, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r8.ballot.leaveType == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r8.ballot.leaveType == "2");
} }
function ViewBallotComponent_table_51_tr_9_td_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const el_r18 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", el_r18.value);
} }
function ViewBallotComponent_table_51_tr_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ViewBallotComponent_table_51_tr_9_td_5_Template, 2, 1, "td", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r16 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r16.opsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r16.team);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r16.slots);
} }
function ViewBallotComponent_table_51_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " OPS GROUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " OPS TEAM ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ViewBallotComponent_table_51_th_7_Template, 6, 3, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ViewBallotComponent_table_51_tr_9_Template, 6, 3, "tr", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.slotWeeks);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.allSlotArr);
} }
function ViewBallotComponent_table_52_th_14_ng_container_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 2, item_r22[0], "dd MMM"), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 5, item_r22[1], "dd MMM"), " ");
} }
function ViewBallotComponent_table_52_th_14_ng_container_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, item_r22, "dd MMM"), " ");
} }
function ViewBallotComponent_table_52_th_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "th", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewBallotComponent_table_52_th_14_ng_container_4_Template, 4, 8, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ViewBallotComponent_table_52_th_14_ng_container_5_Template, 3, 4, "ng-container", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "span", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "BQ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "span", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "TBA");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r23 = ctx.index;
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" SLOT ", i_r23 + 1, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r20.ballot.leaveType == "1");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r20.ballot.leaveType == "2");
} }
function ViewBallotComponent_table_52_tr_16_td_9_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "td", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ViewBallotComponent_table_52_tr_16_td_9_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r34); const i_r31 = ctx.index; const item_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r28.slots[i_r31].value = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function ViewBallotComponent_table_52_tr_16_td_9_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r34); const i_r31 = ctx.index; const item_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; return item_r28.slots[i_r31].balanceToBeAssigned = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r31 = ctx.index;
const item_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r28.slots[i_r31].value);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", item_r28.slots[i_r31].balanceToBeAssigned);
} }
function ViewBallotComponent_table_52_tr_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "th", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, ViewBallotComponent_table_52_tr_16_td_9_Template, 5, 2, "td", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r28 = ctx.$implicit;
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r28.opsGrp);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r28.team);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r28.totalBallotBalance);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r28.totalUnassignedIs);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r21.slotWeeks);
} }
function ViewBallotComponent_table_52_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " OPS GROUP ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " OPS TEAM ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " TOTAL ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "span", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "BQ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "span", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "U");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ViewBallotComponent_table_52_th_14_Template, 11, 3, "th", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, ViewBallotComponent_table_52_tr_16_Template, 10, 5, "tr", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.slotWeeks);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.allSlotArr);
} }
function ViewBallotComponent_div_53_table_6_tr_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r40 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r40.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r40.ballotLeaveBalance);
} }
function ViewBallotComponent_div_53_table_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "STAFF NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "BALLOT BALANCE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, ViewBallotComponent_div_53_table_6_tr_8_Template, 5, 2, "tr", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r38.ballot == null ? null : ctx_r38.ballot.eligibleStaffsForAuto);
} }
function ViewBallotComponent_div_53_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " ELIGIBLE STAFF FOR AUTO-ASSIGNMENT ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ViewBallotComponent_div_53_table_6_Template, 9, 1, "table", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.ballot == null ? null : ctx_r4.ballot.eligibleStaffsForAuto);
} }
function ViewBallotComponent_div_54_tr_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r42 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r42.segmentNo);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](5, 4, item_r42.startDate, "dd-MM-yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 7, item_r42.endDate, "dd-MM-yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r42.maxBallot);
} }
function ViewBallotComponent_div_54_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "MAXIMUM SUBMISSIONS IN A SEGMENT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "table", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "SEGMENT NO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "th", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "START DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "END DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "th", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "MAXIMUM SLOT PER STAFF");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, ViewBallotComponent_div_54_tr_19_Template, 11, 10, "tr", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.ballot.maxSegment);
} }
function ViewBallotComponent_div_55_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "MAXIMUM CONSECUTIVE BALLOTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Maximum consecutive ballots per staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](9, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r6.ballot.maxConsecutiveBallot);
} }
function ViewBallotComponent_div_56_tr_15_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const el_r46 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](el_r46.label);
} }
function ViewBallotComponent_div_56_tr_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, ViewBallotComponent_div_56_tr_15_span_4_Template, 2, 1, "span", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r44 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r44.slot, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", item_r44.userList);
} }
function ViewBallotComponent_div_56_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h6", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " STAFF RESTRICTED FROM PARTICULAR WEEKS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "table", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "SELECTED DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "th", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "STAFF LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ViewBallotComponent_div_56_tr_15_Template, 5, 2, "tr", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r7.ballot.staffRestriction);
} }
class ViewBallotComponent {
constructor(leaveService) {
this.leaveService = leaveService;
this.back = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.slot = [];
this.allSlotArr = [];
}
ngOnInit() {
this.getSlotWeeks();
this.getSlotCreation();
if (this.ballot.isAutoAssign) {
this.getAutoAssignStaff(this.ballot.parentBallot);
}
this.calculateTotalBalanace();
}
calculateTotalBalanace() {
var _a, _b, _c, _d;
if ((_b = (_a = this.ballot) === null || _a === void 0 ? void 0 : _a.slotCreation) === null || _b === void 0 ? void 0 : _b.length) {
this.ballot.totUN = 0;
this.ballot.TotBQ = 0;
this.ballot.assignRatio = 0;
(_c = this.ballot.slotCreation) === null || _c === void 0 ? void 0 : _c.forEach(item => {
this.ballot.totUN += item.totalUnassignedIs;
this.ballot.TotBQ += item.totalBallotBalance;
});
this.ballot.assignRatio = (_d = (+this.ballot.totUN / +this.ballot.TotBQ)) === null || _d === void 0 ? void 0 : _d.toFixed(2);
}
}
getSlotCreation() {
this.ballot.slotCreation.forEach((v, slotCreationIndex) => {
var _a;
let team = {};
team['opsGrp'] = v.opsGroup.value;
team['team'] = 'Tier 1';
team['totalBallotBalance'] = v.totalBallotBalance;
team['totalUnassignedIs'] = v.totalUnassignedIs;
const slotGrpVal = [];
for (let prop in v.weekRangeSlot) {
if (prop.includes('A')) {
slotGrpVal.push(v.weekRangeSlot[prop]);
}
}
// if (this.ballot.isAutoAssign) {
// team['BallotBalance'] = v.opsGroup.BallotBalance;
// team['unassignBalanace'] = v.opsGroup.unassignBalanace;
// }
team['slots'] = slotGrpVal;
this.allSlotArr.push(team);
let ballotSlot;
ballotSlot = this.ballot.slotCreation[slotCreationIndex].weekRangeSlot;
let keyy = Object.keys(ballotSlot);
let slotSortArr = [];
keyy.forEach((weekSlotKey) => {
slotSortArr.push([weekSlotKey, ballotSlot[weekSlotKey]]);
});
(_a = v.opsTeam) === null || _a === void 0 ? void 0 : _a.forEach((opsTeam, opsTeamIndex) => {
var _a;
let team2 = {};
team2['opsGrp'] = '';
team2['team'] = opsTeam.name;
let slotTeam = [];
let pTeamm = [];
// console.log(this.slotWeeks);
(_a = this.slotWeeks) === null || _a === void 0 ? void 0 : _a.map((vs, slotsIndex) => {
let matchKeyValue = slotSortArr === null || slotSortArr === void 0 ? void 0 : slotSortArr.find((slotValue) => {
if (slotValue[0] ==
'OG' + slotsIndex + 'OT' + opsTeamIndex.toString()) {
return true;
}
});
if (matchKeyValue) {
pTeamm.push(matchKeyValue);
}
});
pTeamm === null || pTeamm === void 0 ? void 0 : pTeamm.map((sv) => {
if (sv) {
slotTeam.push(sv[1]);
}
});
// if (!this.ballot?.isAutoAssign) {
// pTeamm.forEach((sv) => slotTeam.push(sv[1]));
// } else {
// pTeamm.forEach((sv) => slotTeam.push(sv[1]));
// }
let sum = 0;
for (const item of slotTeam) {
sum += item.value;
}
team2['slots'] = slotTeam;
team2['totalBallotBalance'] = sum;
team2['totalUnassignedIs'] = opsTeam === null || opsTeam === void 0 ? void 0 : opsTeam.unassignBalanace;
this.allSlotArr.push(team2);
});
});
}
backbtn() {
this.back.emit(1);
}
getSlotWeeks() {
this.slotWeeks = [];
if (this.ballot.leaveType == '1') {
const ballotStart = moment__WEBPACK_IMPORTED_MODULE_1__(this.ballot.ballotStartDate).startOf('isoWeek');
const ballotEnd = moment__WEBPACK_IMPORTED_MODULE_1__(this.ballot.ballotEndDate).endOf('isoWeek');
const weekdiff = ballotEnd.diff(ballotStart, 'weeks');
for (var i = 0; i <= weekdiff; i++) {
this.slotWeeks.push([
moment__WEBPACK_IMPORTED_MODULE_1__(ballotStart).add(i, 'week'),
moment__WEBPACK_IMPORTED_MODULE_1__(ballotStart).add(i, 'week').endOf('isoWeek'),
]);
}
}
else {
let ballotStartDate = moment__WEBPACK_IMPORTED_MODULE_1__(this.ballot.ballotStartDate);
let ballotEndDate = moment__WEBPACK_IMPORTED_MODULE_1__(this.ballot.ballotEndDate);
const daydiff = ballotEndDate.diff(ballotStartDate, 'days');
for (let i = 0; i <= daydiff; i++) {
this.slotWeeks.push([moment__WEBPACK_IMPORTED_MODULE_1__(ballotStartDate).add(i, 'days')]);
}
}
}
getAutoAssignStaff(parentBallotId) {
this.leaveService.getAutoAssignStaff(parentBallotId).subscribe((res) => {
this.autoBallotStaff = res;
});
}
}
ViewBallotComponent.ɵfac = function ViewBallotComponent_Factory(t) { return new (t || ViewBallotComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_2__["LeavePlannerService"])); };
ViewBallotComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ViewBallotComponent, selectors: [["view-ballot"]], inputs: { ballot: "ballot" }, outputs: { back: "back" }, decls: 64, vars: 40, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [1, "row", "mb-3"], [1, "col"], [1, "table-responsive", "rounded", "border-theme"], [1, "table", "m-0"], [4, "ngIf"], ["class", "col-md-4 mb-3", 4, "ngIf"], [1, "col-md-12"], [1, "border-theme", "rounded"], [1, "table-responsive", "table-sticky"], ["class", "table table-striped border-left m-0", 4, "ngIf"], ["class", "row mb-3", 4, "ngIf"], [1, "card-footer"], [1, "d-flex"], ["type", "button", 1, "align-items-center", "btn", "btn-outline-dark", "d-flex", 3, "click"], [1, "material-icons", "mr-1"], [1, "col-md-4", "mb-3"], [1, "card", "border-theme"], [1, "card-title", "mb-3"], [1, "d-flex", "text-center", "justify-content-between"], [1, "text-center", "m-0", "text-muted"], [1, "h2", "text-dark"], ["title", "Unassigned / Balance Quota = Ratio", 1, "text-center", "m-0", "text-muted"], [1, "table", "table-striped", "border-left", "m-0"], ["scope", "col", 1, "fix", "border-bottom-0", "border-top-0"], ["scope", "col", "class", "noWrap", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], ["scope", "col", 1, "noWrap"], [1, "text-muted", "h6"], ["scope", "row", 1, "fix"], [1, "fix"], ["type", "text", "readonly", "", 1, "form-control", 3, "value"], ["scope", "col", 1, "fix", "autofix", "border-bottom-0", "border-top-0"], [1, "box-label", "text-muted"], [1, "box-label", "text-muted", "ml-1"], ["scope", "col noWrap", 4, "ngFor", "ngForOf"], ["scope", "col noWrap"], [1, "h6", "text-muted"], [1, "fix", "autofix"], ["type", "text", "readonly", "", 1, "form-control", "box", 3, "value"], ["type", "text", "readonly", "", 1, "form-control", "box", "ml-1", 3, "value"], ["type", "text", "readonly", "", 1, "form-control", "box", 3, "ngModel", "ngModelChange"], ["type", "text", "readonly", "", 1, "form-control", "box", "ml-1", 3, "ngModel", "ngModelChange"], [1, "card-body", "p-0"], ["class", "table", 4, "ngIf"], [1, "table"], [1, "table-responsive"], ["scope", "col"], [1, "form-group", "m-0"], [1, "font-weight-500"], ["type", "text", "readonly", "", 1, "form-control", "w-25", 3, "value"], [1, "comma"]], template: function ViewBallotComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "table", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "BALLOT NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "BALLOT FOR PERIOD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](19, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "OPENING DATE FOR APPLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](25, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](26, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, "CLOSING DATE FOR APPLICATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](32, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](33, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "RELEASE TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](39, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "BALLOT TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](45, ViewBallotComponent_tr_45_Template, 5, 2, "tr", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](47, ViewBallotComponent_div_47_Template, 22, 5, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](51, ViewBallotComponent_table_51_Template, 10, 2, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](52, ViewBallotComponent_table_52_Template, 17, 2, "table", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](53, ViewBallotComponent_div_53_Template, 7, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](54, ViewBallotComponent_div_54_Template, 20, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](55, ViewBallotComponent_div_55_Template, 10, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](56, ViewBallotComponent_div_56_Template, 16, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "button", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ViewBallotComponent_Template_button_click_59_listener() { return ctx.backbtn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "span", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](61, " arrow_back ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.ballot.ballotName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 19, ctx.ballot.ballotStartDate, "dd-MM-yyyy"), " to ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](19, 22, ctx.ballot.ballotEndDate, "dd-MM-yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](25, 25, ctx.ballot == null ? null : ctx.ballot.applicationOpenDateTime, "dd-MM-yyyy"), ", ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](26, 28, ctx.ballot == null ? null : ctx.ballot.applicationOpenDateTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](32, 31, ctx.ballot.applicationCloseDateTime, "dd-MM-yyyy"), ", ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](33, 34, ctx.ballot.applicationCloseDateTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.ballot.resultRelease == "1" ? "Auto (" + _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](39, 37, ctx.ballot.resultReleaseDateTime, "dd-MM-yyyy, HH:mm") + ")" : "Manual", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx.ballot.leaveType == 1 ? "Week Ballot Slot" : "Day Ballot Slot", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.ballot == null ? null : ctx.ballot.fixedBallotingLeaveType);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.ballot == null ? null : ctx.ballot.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("auto", ctx.ballot == null ? null : ctx.ballot.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !(ctx.ballot == null ? null : ctx.ballot.isAutoAssign));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.ballot == null ? null : ctx.ballot.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.ballot == null ? null : ctx.ballot.isAutoAssign);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.ballot == null ? null : ctx.ballot.maxSegment == null ? null : ctx.ballot.maxSegment.length) > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.ballot.maxConsecutiveBallot);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.ballot == null ? null : ctx.ballot.staffRestriction == null ? null : ctx.ballot.staffRestriction.length) > 0);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_5__["NativeElementInjectorDirective"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["DecimalPipe"]], styles: [".bg-theme[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #a42138;\n}\n\n.border-theme[_ngcontent-%COMP%] {\n border: 1px solid #a42138;\n}\n\n.table-sticky[_ngcontent-%COMP%] {\n width: calc(100% - 8em * 2);\n overflow-x: scroll;\n margin-left: calc(8em * 2);\n overflow-y: visible;\n}\n\n.table-sticky.auto[_ngcontent-%COMP%] {\n width: calc(100% - 8em * 3);\n margin-left: calc(8em * 3);\n}\n\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%] {\n position: absolute;\n background-color: #fff;\n width: 8em;\n}\n\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(1) {\n left: 15px;\n border-left: 1px solid #a42138;\n}\n\n.table-sticky[_ngcontent-%COMP%] .fix[_ngcontent-%COMP%]:nth-child(2) {\n left: calc(8em + 15px);\n}\n\n.table-sticky[_ngcontent-%COMP%] .fix.autofix[_ngcontent-%COMP%]:nth-child(3) {\n left: calc(16em + 15px);\n}\n\n.form-control.box[_ngcontent-%COMP%] {\n width: 35px;\n text-align: center;\n}\n\n.box-label[_ngcontent-%COMP%] {\n border: 1px solid #eaeaea;\n width: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 4px;\n padding: 3px;\n margin-top: 3px;\n}\n\n.comma[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:not(:last-child)::after {\n content: \", \";\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtYmFsbG90aW5nL3ZpZXctYmFsbG90L3ZpZXctYmFsbG90LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsV0FBQTtFQUNBLHlCQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtBQUNGOztBQUVBO0VBQ0UsMkJBQUE7RUFDQSxrQkFBQTtFQUNBLDBCQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFDRTtFQUNFLDJCQUFBO0VBQ0EsMEJBQUE7QUFDSjs7QUFFRTtFQUNFLGtCQUFBO0VBQ0Esc0JBQUE7RUFDQSxVQUFBO0FBQUo7O0FBRUk7RUFDRSxVQUFBO0VBQ0EsOEJBQUE7QUFBTjs7QUFFSTtFQUNFLHNCQUFBO0FBQU47O0FBR0k7RUFDRSx1QkFBQTtBQUROOztBQU1BO0VBQ0UsV0FBQTtFQUNBLGtCQUFBO0FBSEY7O0FBTUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtFQUNBLHFCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtBQUhGOztBQU1BO0VBQ0UsYUFBQTtBQUhGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtYmFsbG90aW5nL3ZpZXctYmFsbG90L3ZpZXctYmFsbG90LmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmJnLXRoZW1lIHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG59XG5cbi5ib3JkZXItdGhlbWUge1xuICBib3JkZXI6IDFweCBzb2xpZCAjYTQyMTM4O1xufVxuXG4udGFibGUtc3RpY2t5IHtcbiAgd2lkdGg6IGNhbGMoMTAwJSAtIDhlbSAqIDIpO1xuICBvdmVyZmxvdy14OiBzY3JvbGw7XG4gIG1hcmdpbi1sZWZ0OiBjYWxjKDhlbSAqIDIpO1xuICBvdmVyZmxvdy15OiB2aXNpYmxlO1xuXG4gICYuYXV0byB7XG4gICAgd2lkdGg6IGNhbGMoMTAwJSAtIDhlbSAqIDMpO1xuICAgIG1hcmdpbi1sZWZ0OiBjYWxjKDhlbSAqIDMpO1xuICB9XG5cbiAgLmZpeCB7XG4gICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgd2lkdGg6IDhlbTtcblxuICAgICY6bnRoLWNoaWxkKDEpIHtcbiAgICAgIGxlZnQ6IDE1cHg7XG4gICAgICBib3JkZXItbGVmdDogMXB4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICAgICY6bnRoLWNoaWxkKDIpIHtcbiAgICAgIGxlZnQ6IGNhbGMoOGVtICsgMTVweCk7XG4gICAgfVxuXG4gICAgJi5hdXRvZml4Om50aC1jaGlsZCgzKXtcbiAgICAgIGxlZnQ6IGNhbGMoMTZlbSArIDE1cHgpO1xuICAgIH1cbiAgfVxufVxuXG4uZm9ybS1jb250cm9sLmJveCB7XG4gIHdpZHRoOiAzNXB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG59XG5cbi5ib3gtbGFiZWwge1xuICBib3JkZXI6IDFweCBzb2xpZCAjZWFlYWVhO1xuICB3aWR0aDogMzVweDtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIGJvcmRlci1yYWRpdXM6IDRweDtcbiAgcGFkZGluZzogM3B4O1xuICBtYXJnaW4tdG9wOiAzcHg7XG59XG5cbi5jb21tYSBzcGFuOm5vdCg6bGFzdC1jaGlsZCk6OmFmdGVyIHtcbiAgY29udGVudDogXCIsIFwiO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ViewBallotComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'view-ballot',
templateUrl: './view-ballot.component.html',
styleUrls: ['./view-ballot.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_human_resources_leave_planner_service__WEBPACK_IMPORTED_MODULE_2__["LeavePlannerService"] }]; }, { ballot: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], back: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "rFwA":
/*!**************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/plan-shift/staffing/staffing.component.ts ***!
\**************************************************************************************************/
/*! exports provided: StaffingComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "StaffingComponent", function() { return StaffingComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
class StaffingComponent {
constructor() { }
ngOnInit() {
}
}
StaffingComponent.ɵfac = function StaffingComponent_Factory(t) { return new (t || StaffingComponent)(); };
StaffingComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: StaffingComponent, selectors: [["app-staffing"]], inputs: { bu: "bu" }, decls: 21, vars: 1, consts: [[1, "card"], [1, "card-header", "align-items-center", "bg-theme"], [1, "m-0"], [1, "card-body"], [1, "row", "mb-2", "col-md-12", "flexDisplay"], [1, "col-md-4"], ["type", "radio", "id", "staffDemand", "name", "staff"], ["for", "staffDemand", 1, "p-2"], ["type", "radio", "id", "permanentStaff", "name", "staff"], ["for", "permanentStaff", 1, "p-2"], [1, "row", "mb-2", "col-md-9"], ["type", "file", "accept", ".csv", 1, "col-md-12", "fileInput"]], template: function StaffingComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "CREATE SHIFTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "p", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "input", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Staff Demand");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "Permanent Staffing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](20, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Selected Business Unit : ", ctx.bu.businessUnit, "");
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgForm"]], styles: [".fileInput[_ngcontent-%COMP%] {\n border: 1px solid #eaeaea;\n border-radius: 4px;\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvcGxhbi1zaGlmdC9zdGFmZmluZy9zdGFmZmluZy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxvQkFBQTtFQUNBLHVCQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUFDRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3BsYW4tc2hpZnQvc3RhZmZpbmcvc3RhZmZpbmcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZmlsZUlucHV0IHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2VhZWFlYTtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBwYWRkaW5nLXRvcDogMC4yNXJlbTtcbiAgcGFkZGluZy1ib3R0b206IDAuMjVyZW07XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](StaffingComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-staffing',
templateUrl: './staffing.component.html',
styleUrls: ['./staffing.component.scss']
}]
}], function () { return []; }, { bu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "rIb0":
/*!************************************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/company-setup/leavemng-skillset/leavemng-skillset.component.ts ***!
\************************************************************************************************************/
/*! exports provided: LeavemngSkillsetComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LeavemngSkillsetComponent", function() { return LeavemngSkillsetComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_3__);
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
function LeavemngSkillsetComponent_div_59_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Cut-off Time (Weeks before leave start date)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ng-select", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.weekSwap)("multiple", false)("clearable", true)("closeOnSelect", true);
} }
class LeavemngSkillsetComponent {
constructor(formbuilder, companySetupService, toastr) {
this.formbuilder = formbuilder;
this.companySetupService = companySetupService;
this.toastr = toastr;
this.weekSwap = [];
this.adminCutOff = [];
}
ngOnInit() {
this.initForm();
this.getLeaveAndSetupDetails();
for (let i = 0; i <= 20; i++) {
this.weekSwap.push(i.toString());
}
for (let i = -10; i <= 10; i++) {
this.adminCutOff.push(i.toString());
}
}
getLeaveAndSetupDetails() {
const sub = this.companySetupService
.getcompanySetting()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
this.Id = res.data._id;
console.log('sdfjn', res);
this.leaveMngForm.patchValue({
blockLeave: res.data.opsGroup.blockLeaveConfiguration,
leaveApp: res.data.opsGroup.leaveAdjust,
weekSwaping: res.data.opsGroup.swapMinimumWeek,
staffActual: res.data.opsGroup.isStaffCanCancel,
staffPlan: res.data.opsGroup.isStaffCanCancelPlan,
staffCutOff: res.data.opsGroup.staffCutOffTime,
adminActual: res.data.opsGroup.isAdminCanCancel,
adminActualChange: res.data.opsGroup.isadminCanChange,
adminCutOff: res.data.opsGroup.adminCutOffTime,
adminPlan: res.data.opsGroup.isAdminCanCancelPlan,
adminPlanChange: res.data.opsGroup.isAdminCanChangePlan,
});
this.setupSkillSetForm.patchValue({
tier: res.data.opsGroup.tierType,
});
if (res.data.opsGroup.isStaffCanCancelPlan == true || res.data.opsGroup.isStaffCanCancel == true) {
this.show = true;
}
else if (res.data.opsGroup.isStaffCanCancelPlan == false && res.data.opsGroup.isStaffCanCancel == false) {
this.show = false;
}
}, (error) => { });
}
initForm() {
this.leaveMngForm = this.formbuilder.group({
blockLeave: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
leaveApp: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
weekSwaping: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
staffPlan: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
staffActual: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
staffCutOff: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
adminPlan: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
adminActual: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
adminCutOff: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
adminPlanChange: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
adminActualChange: [false, _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
});
this.setupSkillSetForm = this.formbuilder.group({
tier: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required],
});
}
handleUpdate() {
this.updateObj = {
opsGroup: {
adminCutOffTime: parseInt(this.leaveMngForm.get('adminCutOff').value),
blockLeaveConfiguration: this.leaveMngForm.get('blockLeave').value,
isAdminCanCancel: this.leaveMngForm.get('adminActual').value,
isAdminCanCancelPlan: this.leaveMngForm.get('adminPlan').value,
isAdminCanChangePlan: this.leaveMngForm.get('adminPlanChange').value,
isStaffCanCancel: this.leaveMngForm.get('staffActual').value,
isStaffCanCancelPlan: this.leaveMngForm.get('staffPlan').value,
isadminCanChange: this.leaveMngForm.get('adminActualChange').value,
leaveAdjust: false,
staffCutOffTime: parseInt(this.leaveMngForm.get('staffCutOff').value),
swapMinimumWeek: parseInt(this.leaveMngForm.get('weekSwaping').value),
tierType: this.setupSkillSetForm.get('tier').value,
},
pageId: this.Id
};
console.log('object update', this.updateObj);
this.companySetupService
.updateCompanySettings(this.updateObj)
.subscribe((res) => {
this.toastr.success('Updated Successfully');
}, (error) => {
console.log(error);
});
}
changeToggle(e) {
if (e == true) {
this.show = true;
console.log('showvalue', this.show);
}
else {
this.show = false;
console.log('showvalue', this.show);
}
}
changeTierToggle() {
sweetalert2__WEBPACK_IMPORTED_MODULE_3___default.a.fire('Change of skillset tier setup will automatically remove all existing skillsets assigned to staff.');
}
}
LeavemngSkillsetComponent.ɵfac = function LeavemngSkillsetComponent_Factory(t) { return new (t || LeavemngSkillsetComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
LeavemngSkillsetComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LeavemngSkillsetComponent, selectors: [["app-leavemng-skillset"]], decls: 144, vars: 29, consts: [[1, "card", "mb-3"], [1, "card-header", "flexi-header"], [1, "card-body", 3, "formGroup"], [1, "justify-content-SB"], [1, "col-6"], [1, "row"], [1, "font-weight-bold"], [1, "col-3"], ["type", "radio", "id", "active", "formControlName", "blockLeave", 3, "value"], [1, "dropdown-select", "w-100", "form-control"], ["selected", "", 3, "value"], [1, "col-3", "mb-2"], ["formControlName", "weekSwaping", "appendTo", "body", 1, "custom", 3, "items", "multiple", "clearable", "closeOnSelect"], [1, "justify-content-SB", "mt-5"], [1, "col-4"], ["type", "radio", "id", "active", "formControlName", "staffPlan", 3, "value", "change"], ["type", "radio", "id", "active", "formControlName", "staffActual", 3, "value", "change"], ["class", "row", 4, "ngIf"], ["type", "radio", "id", "active", "formControlName", "adminPlan", 3, "value"], ["type", "radio", "id", "active", "formControlName", "adminActual", 3, "value"], [1, "col-8", "p-0"], ["formControlName", "adminCutOff", "appendTo", "body", 1, "custom", 3, "items", "multiple", "clearable", "closeOnSelect"], ["type", "radio", "id", "active", "formControlName", "adminPlanChange", 3, "value"], ["type", "radio", "id", "active", "formControlName", "adminActualChange", 3, "value"], [1, "text-danger"], ["type", "radio", "id", "active", "formControlName", "tier", 3, "value", "change"], [1, "col-md-2", "buttons"], [1, "btn", "btn-clear", "p-2", "m-1"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], ["formControlName", "staffCutOff", "appendTo", "body", 1, "custom", 3, "items", "multiple", "clearable", "closeOnSelect"]], template: function LeavemngSkillsetComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "LEAVE MANAGEMENT SETTINGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Block Leave Configuration");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "5 + 2 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "6 + 1 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "7 + 0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "Leave Application Dates Adjustment");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "Select Minimum Weeks before Swapping Allowed");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "ng-select", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "STAFF CANCEL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, "Plan Leave Allow CANCEL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function LeavemngSkillsetComponent_Template_input_change_40_listener() { return ctx.changeToggle(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function LeavemngSkillsetComponent_Template_input_change_44_listener() { return ctx.changeToggle(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "Actual Leave Allow CANCEL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function LeavemngSkillsetComponent_Template_input_change_52_listener() { return ctx.changeToggle(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](56, "input", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function LeavemngSkillsetComponent_Template_input_change_56_listener() { return ctx.changeToggle(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](58, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](59, LeavemngSkillsetComponent_div_59_Template, 5, 4, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](62, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, "ADMIN CANCEL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66, "Plan Leave Allow CANCEL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](68, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](69, "input", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](73, "input", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](76, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](78, "Actual Leave Allow CANCEL");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](79, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](81, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](85, "input", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](87, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](91, "Cut-off Time (Weeks before leave start date)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](92, "ng-select", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](93, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](96, "ADMIN CHANGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](97, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](98, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](99, "Plan Leave Allow CHANGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](100, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](101, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](102, "input", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](104, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](105, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](106, "input", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](107, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](108, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](109, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](110, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](111, "Actual Leave Allow CHANGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](112, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](113, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](114, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](115, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](116, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](117, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](118, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](119, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](120, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](121, "p", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](122, " * Please note - This Cut-off time setup will be applied for all 3 functions (Allocation, Change and Cancel) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](123, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](124, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](125, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](126, "SKILLSET SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](127, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](128, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](129, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](130, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](131, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](132, "Tier 1");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](133, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](134, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function LeavemngSkillsetComponent_Template_input_change_134_listener() { return ctx.changeTierToggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](135, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](136, "Tier 2");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](137, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](138, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function LeavemngSkillsetComponent_Template_input_change_138_listener() { return ctx.changeTierToggle(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](139, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](140, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](141, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](142, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function LeavemngSkillsetComponent_Template_button_click_142_listener() { return ctx.handleUpdate(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](143, "Update");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.leaveMngForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.weekSwap)("multiple", false)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.show);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx.adminCutOff)("multiple", false)("clearable", true)("closeOnSelect", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.setupSkillSetForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_6__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__["NgSelectComponent"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"]], styles: [".justify-content-SB[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n}\n\n.update-button[_ngcontent-%COMP%] {\n width: 100px;\n}\n\n.card-body-inline[_ngcontent-%COMP%] {\n padding: 10px;\n display: inline-flex;\n align-items: center;\n}\n\n.justify-content-SB[_ngcontent-%COMP%] {\n width: 100%;\n display: flex;\n}\n\n.notif-reminder[_ngcontent-%COMP%] {\n color: #a51f38;\n font-weight: 500;\n text-align: left;\n margin-top: 20px;\n margin-bottom: 20px;\n margin-left: 15px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvbGVhdmVtbmctc2tpbGxzZXQvbGVhdmVtbmctc2tpbGxzZXQuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxXQUFBO0VBQ0EsYUFBQTtBQUNKOztBQUNFO0VBQ0UsWUFBQTtBQUVKOztBQUNFO0VBQ0UsYUFBQTtFQUNBLG9CQUFBO0VBQ0EsbUJBQUE7QUFFSjs7QUFDRTtFQUNFLFdBQUE7RUFDQSxhQUFBO0FBRUo7O0FBQ0U7RUFDRSxjQUFBO0VBQ0EsZ0JBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxpQkFBQTtBQUVKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2NvbXBhbnktc2V0dXAvbGVhdmVtbmctc2tpbGxzZXQvbGVhdmVtbmctc2tpbGxzZXQuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuanVzdGlmeS1jb250ZW50LVNCIHtcbiAgICB3aWR0aDogMTAwJTtcbiAgICBkaXNwbGF5OiBmbGV4O1xuICB9XG4gIC51cGRhdGUtYnV0dG9uIHtcbiAgICB3aWR0aDogMTAwcHg7XG4gIH1cbiAgXG4gIC5jYXJkLWJvZHktaW5saW5lIHtcbiAgICBwYWRkaW5nOiAxMHB4O1xuICAgIGRpc3BsYXk6IGlubGluZS1mbGV4O1xuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIH1cbiAgXG4gIC5qdXN0aWZ5LWNvbnRlbnQtU0Ige1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIGRpc3BsYXk6IGZsZXg7XG4gIH1cbiAgXG4gIC5ub3RpZi1yZW1pbmRlciB7XG4gICAgY29sb3I6ICNhNTFmMzg7XG4gICAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgICB0ZXh0LWFsaWduOiBsZWZ0O1xuICAgIG1hcmdpbi10b3A6IDIwcHg7XG4gICAgbWFyZ2luLWJvdHRvbTogMjBweDtcbiAgICBtYXJnaW4tbGVmdDogMTVweDtcbiAgfVxuICAiXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LeavemngSkillsetComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-leavemng-skillset',
templateUrl: './leavemng-skillset.component.html',
styleUrls: ['./leavemng-skillset.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_4__["CompanySetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, null); })();
/***/ }),
/***/ "rJsq":
/*!***************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/manage-service/manage-service.component.ts ***!
\***************************************************************************************************/
/*! exports provided: ManageServiceComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ManageServiceComponent", function() { return ManageServiceComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _manage_service_tab_manage_service_tab_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./manage-service-tab/manage-service-tab.component */ "psV7");
/* harmony import */ var _manage_service_logs_manage_service_logs_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./manage-service-logs/manage-service-logs.component */ "7XWF");
const _c0 = ["sidemenu"];
function ManageServiceComponent_div_0_ng_container_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ng-option", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r4.label);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.label);
} }
function ManageServiceComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2, 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "aside");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "SELECT SERVICE TYPE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "ng-select", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("clear", function ManageServiceComponent_div_0_Template_ng_select_clear_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.clearDropdown(1); })("ngModelChange", function ManageServiceComponent_div_0_Template_ng_select_ngModelChange_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.serviceType = $event; })("change", function ManageServiceComponent_div_0_Template_ng_select_change_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.onSelectServiceType($event); })("scrollToEnd", function ManageServiceComponent_div_0_Template_ng_select_scrollToEnd_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.loadMoreServiceTypes(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "SELECT SERVICE NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "ng-select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("clear", function ManageServiceComponent_div_0_Template_ng_select_clear_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r10.clearDropdown(2); })("ngModelChange", function ManageServiceComponent_div_0_Template_ng_select_ngModelChange_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.serviceName = $event; })("change", function ManageServiceComponent_div_0_Template_ng_select_change_10_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.onSelectServiceName($event); })("scrollToEnd", function ManageServiceComponent_div_0_Template_ng_select_scrollToEnd_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r13.loadMoreServiceNames(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "label", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "SELECT WEEK");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "ng-select", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("clear", function ManageServiceComponent_div_0_Template_ng_select_clear_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.clearDropdown(3); })("ngModelChange", function ManageServiceComponent_div_0_Template_ng_select_ngModelChange_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.selectedWeek = $event; })("change", function ManageServiceComponent_div_0_Template_ng_select_change_14_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r16.onSelectWeek($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ManageServiceComponent_div_0_ng_container_15_Template, 3, 2, "ng-container", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "button", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceComponent_div_0_Template_button_click_18_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.clearDropdown(0); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " Cancel ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "button", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceComponent_div_0_Template_button_click_21_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.switchToManage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.serviceTypeList)("searchable", true)("clearable", true)("closeOnSelect", true)("loading", ctx_r0.serviceTypeLoader)("ngModel", ctx_r0.serviceType);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.serviceNameList)("loading", ctx_r0.servicesNameLoader)("loading", ctx_r0.servicesNameLoder)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.serviceName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r0.weeksArr)("loading", ctx_r0.weekLoader)("searchable", true)("clearable", true)("closeOnSelect", true)("ngModel", ctx_r0.selectedWeek)("loading", ctx_r0.weekLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.weeksArr);
} }
function ManageServiceComponent_div_1_ng_template_6_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Planned Service Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Planned Service Staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](12, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Booked Service Hrs");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](18, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Booked Service staff");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](24, "number");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r22.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 4, ctx_r22.topData.totalHours.need, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r22.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](12, 7, ctx_r22.topData.numberOfShifts.need, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r22.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](18, 10, ctx_r22.topData.totalHours.booked, "1.2-2"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r22.topData == undefined ? "0.00" : _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](24, 13, ctx_r22.topData.numberOfShifts.booked, "1.2-2"), " ");
} }
function ManageServiceComponent_div_1_ng_template_6_app_manage_service_tab_1_Template(rf, ctx) { if (rf & 1) {
const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-manage-service-tab", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ChangeTabId", function ManageServiceComponent_div_1_ng_template_6_app_manage_service_tab_1_Template_app_manage_service_tab_ChangeTabId_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r25); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r24.changeActiveTab($event); })("day", function ManageServiceComponent_div_1_ng_template_6_app_manage_service_tab_1_Template_app_manage_service_tab_day_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r25); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r26.headerHrsStaff($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("serviceRequest", ctx_r23.serviceRequest)("selectedServiceName", ctx_r23.serviceName)("serviceTypeInfo", ctx_r23.serviceType)("refreshNum", ctx_r23.refreshNum)("isLoader", ctx_r23.isLoader);
} }
function ManageServiceComponent_div_1_ng_template_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageServiceComponent_div_1_ng_template_6_div_0_Template, 25, 16, "div", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageServiceComponent_div_1_ng_template_6_app_manage_service_tab_1_Template, 1, 5, "app-manage-service-tab", 27);
} if (rf & 2) {
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r20.isManageTabActive && (ctx_r20.serviceName == null ? null : ctx_r20.serviceName.showServiceEndTime));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r20.isManageTabActive);
} }
function ManageServiceComponent_div_1_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-manage-service-logs", 32);
} if (rf & 2) {
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("refreshNum", ctx_r21.refreshNum)("serviceRequest", ctx_r21.serviceRequest)("selectedServiceName", ctx_r21.serviceName);
} }
function ManageServiceComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 17, 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function ManageServiceComponent_div_1_Template_ul_activeIdChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r28); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r27.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceComponent_div_1_Template_a_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r28); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r29.switchToManage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "MANAGE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ManageServiceComponent_div_1_ng_template_6_Template, 2, 2, "ng-template", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ManageServiceComponent_div_1_ng_template_10_Template, 1, 3, "ng-template", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "li", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ManageServiceComponent_div_1_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r28); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r30.refreshPage(ctx_r30.activeId); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " REFRESH ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](14, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx_r1.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r19);
} }
class ManageServiceComponent {
constructor(route, router, renderer, setupService, toastrService) {
this.route = route;
this.router = router;
this.renderer = renderer;
this.setupService = setupService;
this.toastrService = toastrService;
this.serviceTypeList = [];
this.serviceNameList = [];
this.weeksArr = [];
this.serviceTypeLoader = false;
this.servicesNameLoader = false;
this.weekLoader = false;
this.serviceTypePagination = { page: 1, limit: 10, sort: '{"_id": -1}' };
this.servicesPagination = Object.assign({}, this.serviceTypePagination);
this.serviceRequest = null;
this.isView = false;
this.activeId = 1;
this.weeksLoader = false;
this.managePageData = null;
this.isManageTabActive = false;
this.refreshStatus = false;
this.manageServiceTypeId = null;
this.eventsSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.refreshNum = 0;
this.isLoader = false;
this.router.routeReuseStrategy.shouldReuseRoute = () => false;
this.router.onSameUrlNavigation = 'reload';
this.routeSub = this.route.data.subscribe((val) => (this.isView = val.isView));
}
ngOnInit() {
this.getServiceType();
}
getServiceType() {
this.serviceTypeLoader = true;
this.setupService
.getServiceType(this.serviceTypePagination)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => (this.serviceTypeLoader = false)))
.subscribe((response) => {
const { data, totalRecords } = response.data;
this.serviceTypeList = [...this.serviceTypeList, ...data];
}, (error) => {
var _a, _b;
return this.toastrService.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Failed to load service types');
});
}
loadMoreServiceTypes() {
this.serviceTypePagination.page++;
this.getServiceType();
}
onSelectServiceType(selectedServiceType) {
if (!selectedServiceType)
return;
this.serviceNameList = [];
this.clearDropdown(2);
this.serviceType = selectedServiceType;
this.getServiceNamesAndWeeks();
}
getServiceNamesAndWeeks() {
var _a;
this.servicesNameLoader = true;
this.setupService
.getServicesAndWeeks(this.servicesPagination, (_a = this.serviceType) === null || _a === void 0 ? void 0 : _a.serviceTypeName)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => (this.servicesNameLoader = false)))
.subscribe((response) => {
const { data } = response;
this.serviceNameList = [...this.serviceNameList, ...data];
}, () => (this.serviceNameList = []));
}
loadMoreServiceNames() {
this.servicesPagination.page++;
this.getServiceNamesAndWeeks();
}
onSelectServiceName(selectedServiceName) {
var _a;
if (!selectedServiceName)
return;
this.serviceName = selectedServiceName;
this.weeksLoader = true;
const count = selectedServiceName.serviceViewWeeks || 1;
const startDate = moment__WEBPACK_IMPORTED_MODULE_1__().startOf('isoWeek');
this.weeksArr = [];
for (let i = -count; i <= count; i++) {
const weekData = this.getWeekStartEndDate(startDate, 7 * i);
this.weeksArr.push(weekData);
}
this.selectedWeek = (_a = this.weeksArr[count]) === null || _a === void 0 ? void 0 : _a.label;
this.weeksLoader = false;
}
getWeekStartEndDate(date, offset) {
const startOfWeek = date.clone().add(offset, 'days');
const endOfWeek = startOfWeek.clone().add(6, 'days');
return {
label: `${startOfWeek.format('MMM DD')} to ${endOfWeek.format('MMM DD')}`,
value: startOfWeek.format('MM-DD-YYYY'),
key: offset,
};
}
onSelectWeek(selectedWeek) {
if (!selectedWeek)
return;
this.selectedWeek = selectedWeek.label;
}
ngAfterViewInit() {
if (!this.isView) {
setTimeout(() => {
this.renderer.addClass(this.sidemenu.nativeElement, 'animate');
}, 50);
}
}
ngOnDestroy() {
this.routeSub.unsubscribe();
}
refreshPage(id) {
this.activeId = id;
this.refreshNum++;
}
headerHrsStaff(e) {
var _a;
const [start, end] = this.selectedWeek.split(' to ');
const weekStart = moment__WEBPACK_IMPORTED_MODULE_1__(start, 'MMM DD');
const weekEnd = moment__WEBPACK_IMPORTED_MODULE_1__(end, 'MMM DD');
const weekdays = [];
moment__WEBPACK_IMPORTED_MODULE_1__["updateLocale"]('en', { week: { dow: 1 } });
for (let day = weekStart.clone(); day.isSameOrBefore(weekEnd); day.add(1, 'day')) {
weekdays.push(day.format('DD-MM-YYYY'));
}
this.topData = (_a = this.managePageData) === null || _a === void 0 ? void 0 : _a.graphDataWeb[weekdays[e.count]];
}
changeActiveTab($event) {
this.activeId = $event;
}
switchToManage() {
if (!this.serviceType || !this.serviceName || !this.selectedWeek) {
this.toastrService.error('All fields are required');
return;
}
const weekRangeStartAt = this.formatDate(this.selectedWeek, 0);
const weekRangeEndAt = this.formatDate(this.selectedWeek, 1);
const serviceSetupId = this.serviceName._id;
this.serviceRequest = { weekRangeStartAt, weekRangeEndAt, serviceSetupId };
this.isView = true;
this.isManageTabActive = true;
this.headerHrsStaff({ count: 0, day: 'M' });
}
formatDate(weekLabel, offset) {
const date = this.getDateFromLabel(weekLabel, offset);
return offset === 0
? moment__WEBPACK_IMPORTED_MODULE_1__(date).format('YYYY-MM-DDT00:00:00.000[Z]')
: moment__WEBPACK_IMPORTED_MODULE_1__(date).format('YYYY-MM-DDT23:59:59.999[Z]');
}
getDateFromLabel(label, offset) {
const months = [
'Jan',
'Feb',
'Mar',
'Apr',
'May',
'Jun',
'Jul',
'Aug',
'Sep',
'Oct',
'Nov',
'Dec',
];
const day = parseInt(label.slice(4, 6), 10);
const month = months.indexOf(label.slice(0, 3));
const year = new Date().getFullYear();
const baseDate = new Date(year, month, day);
if (offset === 1) {
const endDate = new Date(baseDate);
endDate.setDate(endDate.getDate() + 6);
return endDate;
}
return baseDate;
}
clearDropdown(level) {
switch (level) {
case 1:
this.serviceType = null;
this.serviceName = null;
this.selectedWeek = null;
break;
case 2:
this.serviceName = null;
this.selectedWeek = null;
break;
case 3:
this.selectedWeek = null;
break;
default:
this.serviceType = null;
this.serviceName = null;
this.selectedWeek = null;
break;
}
}
}
ManageServiceComponent.ɵfac = function ManageServiceComponent_Factory(t) { return new (t || ManageServiceComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"])); };
ManageServiceComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ManageServiceComponent, selectors: [["app-manage-service"]], viewQuery: function ManageServiceComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.sidemenu = _t.first);
} }, decls: 2, vars: 2, consts: [["id", "sidemenu", "class", "p-3 d-none d-sm-block pt-5 sidemenu", 4, "ngIf"], ["class", "d-flex flex-column", 4, "ngIf"], ["id", "sidemenu", 1, "p-3", "d-none", "d-sm-block", "pt-5", "sidemenu"], ["sidemenu", ""], [1, "form-group"], [1, "d-block", "text-center"], ["bindLabel", "serviceTypeName", "placeholder", "Select/Search Service type", "appendTo", "body", 1, "custom", 3, "items", "searchable", "clearable", "closeOnSelect", "loading", "ngModel", "clear", "ngModelChange", "change", "scrollToEnd"], ["loadingText", "Please wait data is loading...", "bindLabel", "serviceName", "placeholder", "Select Service Name", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "clear", "ngModelChange", "change", "scrollToEnd"], ["loadingText", "Please wait data is loading...", "bindLabel", "label", "placeholder", "Select Week", "appendTo", "body", 1, "custom", 3, "items", "loading", "searchable", "clearable", "closeOnSelect", "ngModel", "clear", "ngModelChange", "change"], [4, "ngFor", "ngForOf"], [1, "row"], [1, "col", "pr-md-3"], [1, "btn", "btn-danger", "btn-block", 3, "click"], [1, "col", "pl-md-0"], [1, "btn", "btn-info", "btn-block", 3, "click"], [3, "value"], [1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], ["ngbNavLink", ""], [1, "align-self-center", "flex-grow-1", "nav-item", "pr-2", 3, "ngbNavItem"], [1, "btn", "btn-primary", "float-right", 3, "click"], [3, "ngbNavOutlet"], ["class", "top-header bg-white rounded mb-3", 4, "ngIf"], [3, "serviceRequest", "selectedServiceName", "serviceTypeInfo", "refreshNum", "isLoader", "ChangeTabId", "day", 4, "ngIf"], [1, "top-header", "bg-white", "rounded", "mb-3"], [1, "hrs-text", "red-text"], [1, "red-text"], [3, "serviceRequest", "selectedServiceName", "serviceTypeInfo", "refreshNum", "isLoader", "ChangeTabId", "day"], [3, "refreshNum", "serviceRequest", "selectedServiceName"]], template: function ManageServiceComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, ManageServiceComponent_div_0_Template, 23, 21, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, ManageServiceComponent_div_1_Template, 15, 5, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isView);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_7__["NgIf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_10__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_7__["NgForOf"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_11__["NgbNavOutlet"], _manage_service_tab_manage_service_tab_component__WEBPACK_IMPORTED_MODULE_12__["ManageServiceTabComponent"], _manage_service_logs_manage_service_logs_component__WEBPACK_IMPORTED_MODULE_13__["ManageServiceLogsComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_7__["DecimalPipe"]], styles: [".top-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n padding: 1rem;\n}\n\n.red-text[_ngcontent-%COMP%] {\n color: #a42138 !important;\n}\n\n.hrs-text[_ngcontent-%COMP%] {\n text-align: center;\n font-size: 25px;\n line-height: 1.5;\n margin-top: 0.25rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNlcnZpY2UvbWFuYWdlLXNlcnZpY2UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxhQUFBO0VBQ0EsOEJBQUE7RUFDQSxhQUFBO0FBQ0o7O0FBRUE7RUFDSSx5QkFBQTtBQUNKOztBQUVBO0VBQ0ksa0JBQUE7RUFDQSxlQUFBO0VBQ0EsZ0JBQUE7RUFDQSxtQkFBQTtBQUNKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvbWFuYWdlLXNlcnZpY2UvbWFuYWdlLXNlcnZpY2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudG9wLWhlYWRlciB7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gICAgcGFkZGluZzogMXJlbTtcbn1cblxuLnJlZC10ZXh0IHtcbiAgICBjb2xvcjogI2E0MjEzOCAhaW1wb3J0YW50O1xufVxuXG4uaHJzLXRleHQge1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBmb250LXNpemU6IDI1cHg7XG4gICAgbGluZS1oZWlnaHQ6IDEuNTtcbiAgICBtYXJnaW4tdG9wOiAwLjI1cmVtO1xufSJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ManageServiceComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-manage-service',
templateUrl: './manage-service.component.html',
styleUrls: ['./manage-service.component.scss'],
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["ActivatedRoute"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_4__["Router"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_5__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }]; }, { sidemenu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['sidemenu']
}] }); })();
/***/ }),
/***/ "roDN":
/*!***********************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/my-forms/signature-questions/signature-questions.component.ts ***!
\***********************************************************************************************************/
/*! exports provided: SignatureQuestionsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SignatureQuestionsComponent", function() { return SignatureQuestionsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var signature_pad__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! signature_pad */ "kOL3");
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/dialog */ "0IaG");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material/button */ "bTqV");
const _c0 = ["canvasel"];
class SignatureQuestionsComponent {
constructor(modalRef) {
this.modalRef = modalRef;
this.title = 'signatureJS';
this.takeSignature = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
}
ngOnInit() {
}
ngAfterViewInit() {
this.signaturePad = new signature_pad__WEBPACK_IMPORTED_MODULE_1__["default"](this.canvasEl.nativeElement);
}
startDrawing(event) {
}
moved(event) {
// works in device not in browser
}
clearPad() {
this.signaturePad.clear();
}
savePad() {
const base64Data = this.signaturePad.toDataURL();
this.signatureImg = base64Data;
this.takeSignature.emit(this.signatureImg);
}
close() {
this.modalRef.close();
}
}
SignatureQuestionsComponent.ɵfac = function SignatureQuestionsComponent_Factory(t) { return new (t || SignatureQuestionsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__["MatDialogRef"])); };
SignatureQuestionsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SignatureQuestionsComponent, selectors: [["app-signature-questions"]], viewQuery: function SignatureQuestionsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.canvasEl = _t.first);
} }, outputs: { takeSignature: "takeSignature" }, decls: 15, vars: 0, consts: [["mat-button", "", "color", "link", 2, "float", "right", 3, "click"], ["mat-dialog-title", ""], ["mat-dialog-content", "", 1, "container"], [1, "content"], ["width", "450", "height", "300", 3, "touchstart", "touchmove"], ["canvasel", ""], [1, "child"], ["mat-button", "", "color", "warn", 2, "margin-left", "5px", 3, "click"], ["mat-button", "", "color", "success", 2, "margin-left", "5px", 3, "click"]], template: function SignatureQuestionsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SignatureQuestionsComponent_Template_button_click_0_listener() { return ctx.close(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "X");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h1", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Signature");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "canvas", 4, 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("touchstart", function SignatureQuestionsComponent_Template_canvas_touchstart_6_listener($event) { return ctx.startDrawing($event); })("touchmove", function SignatureQuestionsComponent_Template_canvas_touchmove_6_listener($event) { return ctx.moved($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Please sign above");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SignatureQuestionsComponent_Template_button_click_11_listener() { return ctx.clearPad(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "button", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SignatureQuestionsComponent_Template_button_click_13_listener() { return ctx.savePad(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "save");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }, directives: [_angular_material_button__WEBPACK_IMPORTED_MODULE_3__["MatButton"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__["MatDialogTitle"], _angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__["MatDialogContent"]], styles: [".content[_ngcontent-%COMP%] {\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);\n transition: 0.3s;\n background-color: var(--ion-color-success);\n margin-left: 50px;\n width: 90%;\n height: 100%;\n}\n\nh1[_ngcontent-%COMP%] {\n text-align: center;\n}\n\np[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n.child[_ngcontent-%COMP%] {\n width: 30%;\n margin: auto;\n margin-top: 10px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL215LWZvcm1zL3NpZ25hdHVyZS1xdWVzdGlvbnMvc2lnbmF0dXJlLXF1ZXN0aW9ucy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQTtFQUNJLDBDQUFBO0VBQ0EsZ0JBQUE7RUFFQSwwQ0FBQTtFQUNBLGlCQUFBO0VBQ0EsVUFBQTtFQUNBLFlBQUE7QUFESjs7QUFJRTtFQUNFLGtCQUFBO0FBREo7O0FBR0U7RUFDRSxrQkFBQTtBQUFKOztBQUVFO0VBQ0UsVUFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtBQUNKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL215LWZvcm1zL3NpZ25hdHVyZS1xdWVzdGlvbnMvc2lnbmF0dXJlLXF1ZXN0aW9ucy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIlxuLmNvbnRlbnQge1xuICAgIGJveC1zaGFkb3c6IDAgNHB4IDhweCAwIHJnYmEoMCwwLDAsMC4yKTtcbiAgICB0cmFuc2l0aW9uOiAwLjNzO1xuICAgIC8vYm9yZGVyOiAxcHggc29saWQgcmdiKDE4NywgMTc4LCAxNzgpO1xuICAgIGJhY2tncm91bmQtY29sb3I6IHZhcigtLWlvbi1jb2xvci1zdWNjZXNzKTtcbiAgICBtYXJnaW4tbGVmdDogNTBweDtcbiAgICB3aWR0aDogOTAlO1xuICAgIGhlaWdodDogMTAwJTtcblxuICB9XG4gIGgxe1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgfVxuICBwe1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgfVxuICAuY2hpbGR7XG4gICAgd2lkdGg6IDMwJTtcbiAgICBtYXJnaW46IGF1dG87XG4gICAgbWFyZ2luLXRvcDogMTBweDtcbiAgfVxuXG5cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SignatureQuestionsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-signature-questions',
templateUrl: './signature-questions.component.html',
styleUrls: ['./signature-questions.component.scss']
}]
}], function () { return [{ type: _angular_material_dialog__WEBPACK_IMPORTED_MODULE_2__["MatDialogRef"] }]; }, { canvasEl: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['canvasel']
}], takeSignature: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "rrDe":
/*!*************************************************************************************!*\
!*** ./src/app/users/pages/human-resource/leave-planner/leave-planner.component.ts ***!
\*************************************************************************************/
/*! exports provided: LeavePlannerComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LeavePlannerComponent", function() { return LeavePlannerComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/user-roles/role.service */ "nL9/");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./dashboard/dashboard.component */ "90oE");
/* harmony import */ var _approve_approve_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./approve/approve.component */ "qIT8");
/* harmony import */ var _swap_restrictions_swap_restrictions_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./swap-restrictions/swap-restrictions.component */ "ngIS");
/* harmony import */ var _ops_leave_quota_ops_leave_quota_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ops-leave-quota/ops-leave-quota.component */ "DuZd");
function LeavePlannerComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-dashboard");
} }
function LeavePlannerComponent_li_6_ng_template_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-approve");
} }
function LeavePlannerComponent_li_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "APPROVE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeavePlannerComponent_li_6_ng_template_3_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
} }
function LeavePlannerComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "swap-restrictions");
} }
function LeavePlannerComponent_li_11_ng_template_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ops-leave-quota");
} }
function LeavePlannerComponent_li_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "OPS LEAVE QUOTA");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, LeavePlannerComponent_li_11_ng_template_3_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
} }
class LeavePlannerComponent {
constructor(roleService) {
this.roleService = roleService;
this.active = 1;
}
ngOnInit() {
const rolePrivileges = this.roleService
.getNewUserPrivilege()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
rolePrivileges.unsubscribe();
}))
.subscribe((res) => {
this.approveAccess = res.privileges.hasOwnProperty('leavePlannerApprover')
? res.privileges.leavePlannerApprover
: false;
this.opsLeaveQuotaAccess = res.privileges.hasOwnProperty('leavePlannerOpsLeaveQuota')
? res.privileges.leavePlannerOpsLeaveQuota
: false;
});
}
}
LeavePlannerComponent.ɵfac = function LeavePlannerComponent_Factory(t) { return new (t || LeavePlannerComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_2__["RoleService"])); };
LeavePlannerComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: LeavePlannerComponent, selectors: [["app-leave-planner"]], decls: 13, vars: 6, consts: [["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["nav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], [3, "ngbNavItem", 4, "ngIf"], [3, "ngbNavOutlet"]], template: function LeavePlannerComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ul", 0, 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function LeavePlannerComponent_Template_ul_activeIdChange_0_listener($event) { return ctx.active = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DASHBOARD");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, LeavePlannerComponent_ng_template_5_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, LeavePlannerComponent_li_6_Template, 4, 1, "li", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "SWAP RESTRICTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, LeavePlannerComponent_ng_template_10_Template, 1, 0, "ng-template", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, LeavePlannerComponent_li_11_Template, 4, 1, "li", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "div", 6);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.active);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.approveAccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.opsLeaveQuotaAccess);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_3__["NgbNavOutlet"], _dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_5__["DashboardComponent"], _approve_approve_component__WEBPACK_IMPORTED_MODULE_6__["ApproveComponent"], _swap_restrictions_swap_restrictions_component__WEBPACK_IMPORTED_MODULE_7__["SwapRestrictionsComponent"], _ops_leave_quota_ops_leave_quota_component__WEBPACK_IMPORTED_MODULE_8__["OpsLeaveQuotaComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtcGxhbm5lci9sZWF2ZS1wbGFubmVyLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usc0JBQUE7QUFDRjtBQUFFO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0FBRUo7QUFBSTtFQUNFLGNBQUE7QUFFTjtBQUNJO0VBQ0UsY0FBQTtFQUNBLHNCQUFBO0VBQ0EsNkNBQUE7RUFDQSxnQ0FBQTtBQUNOIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvaHVtYW4tcmVzb3VyY2UvbGVhdmUtcGxhbm5lci9sZWF2ZS1wbGFubmVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLm5hdi10YWJzIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgLm5hdi1saW5rIHtcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgIGJvcmRlcjogbm9uZTtcbiAgICBwYWRkaW5nOiAxMnB4IDIwcHg7XG4gICAgdHJhbnNpdGlvbjogY29sb3IgMC4ycztcbiAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuXG4gICAgJjpob3ZlciB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICB9XG5cbiAgICAmLmFjdGl2ZSB7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgICBib3JkZXItY29sb3I6IHRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICNhNDIxMzg7XG4gICAgICBib3JkZXItYm90dG9tOiAzcHggc29saWQgI2E0MjEzODtcbiAgICB9XG4gIH1cbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LeavePlannerComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-leave-planner',
templateUrl: './leave-planner.component.html',
styleUrls: ['./leave-planner.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_user_roles_role_service__WEBPACK_IMPORTED_MODULE_2__["RoleService"] }]; }, null); })();
/***/ }),
/***/ "sICd":
/*!************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/shift-scheme/shift-scheme-logs/shift-scheme-logs.component.ts ***!
\************************************************************************************************************/
/*! exports provided: ShiftSchemeLogsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ShiftSchemeLogsComponent", function() { return ShiftSchemeLogsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function ShiftSchemeLogsComponent_ngx_skeleton_loader_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 5);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
function ShiftSchemeLogsComponent_table_6_tr_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](6, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r3 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 6, i_r3.createdAt, "MM/dd/yyyy"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](6, 9, i_r3.createdAt, "HH:mm"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r3.newSchemeId == null ? null : i_r3.newSchemeId.schemeName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r3.userId == null ? null : i_r3.userId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", i_r3.oldSchemeId == null ? null : i_r3.oldSchemeId.schemeName, " Changed to ", i_r3.newSchemeId == null ? null : i_r3.newSchemeId.schemeName, " ");
} }
function ShiftSchemeLogsComponent_table_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "DATE");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "TIME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "SCHEME NAME");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "ASSIGNED TO ME(USER NAME)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "DESCRIPTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ShiftSchemeLogsComponent_table_6_tr_14_Template, 13, 12, "tr", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.schemeLogTable);
} }
class ShiftSchemeLogsComponent {
constructor(setupService) {
this.setupService = setupService;
this.shiftSchemeLoader = true;
}
ngOnInit() {
this.getSchemeLog();
}
getSchemeLog() {
const logPayload = {
businessUnitId: '5bd723a8c1e35a7a250d562a',
type: 1,
};
const schemeLog = this.setupService
.schemeUserLog(logPayload)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["finalize"])(() => {
this.shiftSchemeLoader = false;
schemeLog.unsubscribe();
}))
.subscribe((res) => {
this.schemeLogTable = res.data;
console.log('schemetable', res);
});
}
}
ShiftSchemeLogsComponent.ɵfac = function ShiftSchemeLogsComponent_Factory(t) { return new (t || ShiftSchemeLogsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__["SetupService"])); };
ShiftSchemeLogsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ShiftSchemeLogsComponent, selectors: [["app-shift-scheme-logs"]], inputs: { BusinessUnit: "BusinessUnit" }, decls: 7, vars: 2, consts: [[1, "card"], [1, "card-header", "flexi-header"], [1, "card-body", "table-responsive", "p-0"], ["count", "6", 3, "theme", 4, "ngIf"], ["class", "table table-striped", 4, "ngIf"], ["count", "6", 3, "theme"], [1, "table", "table-striped"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col", "sortable", "Tier 3"], ["scope", "col", "sortable", "Tier 4"], ["scope", "col", "sortable", "Status"], [4, "ngFor", "ngForOf"]], template: function ShiftSchemeLogsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Log Details");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, ShiftSchemeLogsComponent_ngx_skeleton_loader_5_Template, 1, 2, "ngx-skeleton-loader", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, ShiftSchemeLogsComponent_table_6_Template, 15, 1, "table", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.shiftSchemeLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.shiftSchemeLoader);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["NgIf"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_4__["NgxSkeletonLoaderComponent"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_3__["NgForOf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DatePipe"]], styles: [".table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n border-top: transparent;\n background-color: #f2f2f2;\n}\n\n.table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9zaGlmdC1zY2hlbWUvc2hpZnQtc2NoZW1lLWxvZ3Mvc2hpZnQtc2NoZW1lLWxvZ3MuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSx1QkFBQTtFQUNBLHlCQUFBO0FBQ0o7O0FBRUU7RUFDRSxzQkFBQTtBQUNKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9zaGlmdC1zY2hlbWUvc2hpZnQtc2NoZW1lLWxvZ3Mvc2hpZnQtc2NoZW1lLWxvZ3MuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIudGFibGUgdGgge1xuICAgIGJvcmRlci10b3A6IHRyYW5zcGFyZW50O1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmMmYyZjI7XG4gIH1cbiAgXG4gIC50YWJsZSB0ciB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgfVxuICAiXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ShiftSchemeLogsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-shift-scheme-logs',
templateUrl: './shift-scheme-logs.component.html',
styleUrls: ['./shift-scheme-logs.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_2__["SetupService"] }]; }, { BusinessUnit: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "sKpv":
/*!*******************************************************!*\
!*** ./src/app/shared/dynamic-fields/fields/radio.ts ***!
\*******************************************************/
/*! exports provided: RadioComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadioComponent", function() { return RadioComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
function RadioComponent_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const opt_r1 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControl", ctx_r0.form)("value", opt_r1.key);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", opt_r1.label, " ");
} }
class RadioComponent {
constructor() {
this.field = {};
}
}
RadioComponent.ɵfac = function RadioComponent_Factory(t) { return new (t || RadioComponent)(); };
RadioComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: RadioComponent, selectors: [["radio"]], inputs: { field: "field", form: "form" }, decls: 1, vars: 1, consts: [["class", "form-check", 4, "ngFor", "ngForOf"], [1, "form-check"], ["type", "radio", 1, "form-check-input", 3, "formControl", "value"], [1, "form-check-label"]], template: function RadioComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, RadioComponent_div_0_Template, 4, 3, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.field.options);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlDirective"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadioComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'radio',
template: `
`
}]
}], null, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "sm+T":
/*!*************************************************************************************************************!*\
!*** ./src/app/users/pages/users/reset-password/rest-password-overview/rest-password-overview.component.ts ***!
\*************************************************************************************************************/
/*! exports provided: RestPasswordOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RestPasswordOverviewComponent", function() { return RestPasswordOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function RestPasswordOverviewComponent_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function RestPasswordOverviewComponent_tr_38_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](7, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r2 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.staffId == null ? null : item_r2.staffId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.staffId == null ? null : item_r2.staffId.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](7, 5, item_r2.createdAt, "short"));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.resetUserId == null ? null : item_r2.resetUserId.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r2.resetUserId == null ? null : item_r2.resetUserId.name);
} }
class RestPasswordOverviewComponent {
constructor(userService, toastService, tableService) {
this.userService = userService;
this.toastService = toastService;
this.tableService = tableService;
this.locAccTableColumn = ['staffId.name', 'staffId.staffId', 'createdAt', 'resetUserId.staffId', 'resetUserId.name'];
this.tableQueryParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_4__["tableParam"];
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this.isTableLoading = false;
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.tableQueryParams.search.value = input;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sort = { key: column, order: direction };
this.usersPTable.sortBy = column;
this.usersPTable.sortWith = direction;
this.loadUsers();
}
onPageChangeUsers(page) {
this.tableQueryParams.start = +page > 1 ? (page - 1) * this.usersPTable.limit : 0;
this.loadUsers();
}
onLimitChangeUsers() {
this.tableQueryParams.start = 0;
this.loadUsers();
}
ngOnInit() {
this.tableQueryParams.draw = 0;
this.tableQueryParams.start = 0;
this.loadUsers();
}
loadUsers() {
let tableCol = this.tableService.initializeTableParamsColums(this.locAccTableColumn, [0], [0]) || [];
this.tableQueryParams.columns = tableCol;
this.tableQueryParams.draw++;
this.tableQueryParams.length = this.usersPTable.limit;
this.isTableLoading = true;
const subscribe = this.userService
.getRestPassword(this.tableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
// const { count, data } = response.data;
this.usersPTable.data = response.data;
this.usersPTable.total = response.recordsTotal;
this.isTableLoading = false;
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.isTableLoading = false;
this.toastService.error('No list found');
});
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
RestPasswordOverviewComponent.ɵfac = function RestPasswordOverviewComponent_Factory(t) { return new (t || RestPasswordOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__["TableService"])); };
RestPasswordOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: RestPasswordOverviewComponent, selectors: [["rest-password-overview"]], viewQuery: function RestPasswordOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 45, vars: 16, consts: [[1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "0", 3, "sort"], ["scope", "col", "sortable", "1", 3, "sort"], ["scope", "col", "sortable", "2", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"]], template: function RestPasswordOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "USERS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "select", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function RestPasswordOverviewComponent_Template_select_change_9_listener() { return ctx.onLimitChangeUsers(); })("ngModelChange", function RestPasswordOverviewComponent_Template_select_ngModelChange_9_listener($event) { return ctx.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "option", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, RestPasswordOverviewComponent_span_21_Template, 2, 0, "span", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function RestPasswordOverviewComponent_Template_input_search_22_listener() { return ctx.loadUsers(); })("keyup", function RestPasswordOverviewComponent_Template_input_keyup_22_listener($event) { return ctx.userssearchInput.next($event); })("ngModelChange", function RestPasswordOverviewComponent_Template_input_ngModelChange_22_listener($event) { return ctx.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "th", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function RestPasswordOverviewComponent_Template_th_sort_27_listener($event) { return ctx.onSortUsers($event, "name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " STAFF NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "th", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function RestPasswordOverviewComponent_Template_th_sort_29_listener($event) { return ctx.onSortUsers($event, "staffId"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, " STAFF ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "th", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function RestPasswordOverviewComponent_Template_th_sort_31_listener($event) { return ctx.onSortUsers($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, " RESET DATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, " RESET BY(ID) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "th", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, " RESET BY(NAME) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](38, RestPasswordOverviewComponent_tr_38_Template, 12, 8, "tr", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](39, "app-skliton-loading-table", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](42, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "ngb-pagination", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function RestPasswordOverviewComponent_Template_ngb_pagination_pageChange_44_listener($event) { return ctx.usersPTable.page = $event; })("pageChange", function RestPasswordOverviewComponent_Template_ngb_pagination_pageChange_44_listener($event) { return ctx.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.usersPTable.data);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total records ", ctx.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx.usersPTable.total)("page", ctx.usersPTable.page)("maxSize", 5)("pageSize", ctx.usersPTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_8__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["ɵangular_packages_forms_forms_x"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_8__["DefaultValueAccessor"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_11__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_12__["NgbPagination"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3VzZXJzL3Jlc2V0LXBhc3N3b3JkL3Jlc3QtcGFzc3dvcmQtb3ZlcnZpZXcvcmVzdC1wYXNzd29yZC1vdmVydmlldy5jb21wb25lbnQuc2NzcyJ9 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RestPasswordOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'rest-password-overview',
templateUrl: './rest-password-overview.component.html',
styleUrls: ['./rest-password-overview.component.scss']
}]
}], function () { return [{ type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_5__["UsersService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_7__["TableService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "szw9":
/*!************************************************************************!*\
!*** ./src/app/users/service/bussiness-unit/bussiness-unit.service.ts ***!
\************************************************************************/
/*! exports provided: BussinessUnitService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BussinessUnitService", function() { return BussinessUnitService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "AytR");
class BussinessUnitService {
constructor(http) {
this.http = http;
this.tableParams = {
draw: 0,
columns: [],
order: [
{
column: 0,
dir: "desc"
}
],
start: 0,
length: 10,
search: {
value: "",
regex: false
}
};
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({
Accept: 'application/json',
'Content-Type': 'application/json',
});
}
getBussinesUnit(data, isNew = false) {
if (isNew) {
return this.http
.get(`${this.baseUrl}/businessunit/v2/readWithPn?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
return this.http
.get(`${this.baseUrl}/businessunit/readWithPn?${Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_3__["queryParam"])(data)}`, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getDepartments(data) {
return this.http
.post(`${this.baseUrl}/department/readWithPn`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSection(data) {
return this.http
.post(`${this.baseUrl}/section/read`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getSubsection(data) {
return this.http
.post(`${this.baseUrl}/subsection/read`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getBusinessUnitData() {
return this.http
.get(`${this.baseUrl}/opsgroup/planbu`, {
headers: this.Headers,
}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createDepartment(department) {
return this.http
.post(`${this.baseUrl}/department/create`, department, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateDepartment(department) {
return this.http
.post(`${this.baseUrl}/department/update`, department, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteDepartment(data) {
return this.http
.post(`${this.baseUrl}/department/delete`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createSection(data) {
return this.http
.post(`${this.baseUrl}/section/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateSection(data) {
return this.http
.post(`${this.baseUrl}/section/update`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteSection(data) {
return this.http
.post(`${this.baseUrl}/section/delete`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
createSubsection(data) {
return this.http
.post(`${this.baseUrl}/subsection/create`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateBusinessUnitDetails(data) {
return this.http
.post(`${this.baseUrl}/businessunit/updateskillsetandlocation`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
updateSubsection(data) {
return this.http
.post(`${this.baseUrl}/subsection/update`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
deleteSubsection(data) {
return this.http
.post(`${this.baseUrl}/subsection/delete`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
getBusinessUnit(data) {
return this.http
.post(`${this.baseUrl}/companyuser/read`, data, {
headers: this.Headers,
})
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
BussinessUnitService.ɵfac = function BussinessUnitService_Factory(t) { return new (t || BussinessUnitService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"])); };
BussinessUnitService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: BussinessUnitService, factory: BussinessUnitService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BussinessUnitService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root',
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }]; }, null); })();
/***/ }),
/***/ "tOeX":
/*!*****************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/bu-shift-setup/bu-shift-setup.component.ts ***!
\*****************************************************************************************/
/*! exports provided: BuShiftSetupComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BuShiftSetupComponent", function() { return BuShiftSetupComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/company-setup/company-setup.service */ "lBFU");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var _bu_shift_setup_overview_bu_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./bu-shift-setup-overview/bu-shift-setup-overview.component */ "ghUW");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _add_map_setup_add_map_setup_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./add-map-setup/add-map-setup.component */ "1IT0");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../shared/directive/sortable.directive */ "I0Qq");
const _c0 = ["AddSkill"];
const _c1 = ["AddSpeciality"];
const _c2 = ["AddLocations"];
function BuShiftSetupComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-bu-shift-setup-overview", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("changeActiveBu", function BuShiftSetupComponent_ng_template_6_Template_app_bu_shift_setup_overview_changeActiveBu_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.activeTab($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BuShiftSetupComponent_ng_template_10_ng_option_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r23 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r23.orgName, " ");
} }
function BuShiftSetupComponent_ng_template_10_ng_option_24_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const i_r24 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", i_r24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", i_r24.name, " ");
} }
function BuShiftSetupComponent_ng_template_10_div_25_ng_option_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r26 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r26.name);
} }
function BuShiftSetupComponent_ng_template_10_div_25_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Speciality ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "i", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_div_25_Template_i_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r28); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r27.addSpeciality(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "ng-select", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, BuShiftSetupComponent_ng_template_10_div_25_ng_option_5_Template, 2, 2, "ng-option", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r13.buSkillspeciality);
} }
function BuShiftSetupComponent_ng_template_10_ng_container_35_div_1_Template(rf, ctx) { if (rf & 1) {
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_ng_container_35_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r33); const i_r31 = ctx.index; const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r32.clearLabel(i_r31); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r30 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", item_r30[0], " > ", item_r30[1], "");
} }
function BuShiftSetupComponent_ng_template_10_ng_container_35_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, BuShiftSetupComponent_ng_template_10_ng_container_35_div_1_Template, 5, 2, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r14.skillLabels);
} }
function BuShiftSetupComponent_ng_template_10_div_57_div_1_Template(rf, ctx) { if (rf & 1) {
const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Add Reporting Locations ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "i", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_div_57_div_1_Template_i_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r37); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r36.addLocations(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "ng-select", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r34.buRepoLocation)("multiple", false)("searchable", true)("clearable", true);
} }
function BuShiftSetupComponent_ng_template_10_div_57_ng_container_2_ng_container_7_div_1_Template(rf, ctx) { if (rf & 1) {
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_div_57_ng_container_2_ng_container_7_div_1_Template_span_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r43); const i_r41 = ctx.index; const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](5); return ctx_r42.clearLocationLabel(i_r41); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r40 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r40);
} }
function BuShiftSetupComponent_ng_template_10_div_57_ng_container_2_ng_container_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, BuShiftSetupComponent_ng_template_10_div_57_ng_container_2_ng_container_7_div_1_Template, 5, 1, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r38.locationslabels);
} }
function BuShiftSetupComponent_ng_template_10_div_57_ng_container_2_Template(rf, ctx) { if (rf & 1) {
const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_div_57_ng_container_2_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r45); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r44.addLocateButton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, BuShiftSetupComponent_ng_template_10_div_57_ng_container_2_ng_container_7_Template, 2, 1, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r35.locationslabels != null);
} }
function BuShiftSetupComponent_ng_template_10_div_57_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, BuShiftSetupComponent_ng_template_10_div_57_div_1_Template, 5, 4, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, BuShiftSetupComponent_ng_template_10_div_57_ng_container_2_Template, 8, 1, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.buShiftSetUpForm.get("reportingLocationType").value == "text" || ctx_r15.buShiftSetUpForm.get("reportingLocationType").value == "both");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r15.isDropdown);
} }
function BuShiftSetupComponent_ng_template_10_app_add_map_setup_58_Template(rf, ctx) { if (rf & 1) {
const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-add-map-setup", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("geoLocationEvent", function BuShiftSetupComponent_ng_template_10_app_add_map_setup_58_Template_app_add_map_setup_geoLocationEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r47); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r46.setGeoLocations($event); })("handleCheckInEnable", function BuShiftSetupComponent_ng_template_10_app_add_map_setup_58_Template_app_add_map_setup_handleCheckInEnable_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r47); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r48.changeCheckInEnable($event); })("handleProximityEnable", function BuShiftSetupComponent_ng_template_10_app_add_map_setup_58_Template_app_add_map_setup_handleProximityEnable_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r47); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r49.changeProximityEnable($event); })("handleRepLoc", function BuShiftSetupComponent_ng_template_10_app_add_map_setup_58_Template_app_add_map_setup_handleRepLoc_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r47); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r50.changeRepLoc($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("isMap", ctx_r16.isMap)("isDropdown", ctx_r16.isDropdown)("mapLocations", ctx_r16.geoReportingLocations)("buSettingObj", ctx_r16.buSettingObj);
} }
function BuShiftSetupComponent_ng_template_10_ng_option_68_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r51 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r51);
} }
function BuShiftSetupComponent_ng_template_10_div_115_ng_container_19_div_1_Template(rf, ctx) { if (rf & 1) {
const _r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_div_115_ng_container_19_div_1_Template_span_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const i_r55 = ctx.index; const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4); return ctx_r56.clearLabelBreak(i_r55); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r54 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" For ", item_r54.shiftHour, " hr : ", item_r54.breakInMinutes, " min break ");
} }
function BuShiftSetupComponent_ng_template_10_div_115_ng_container_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, BuShiftSetupComponent_ng_template_10_div_115_ng_container_19_div_1_Template, 4, 2, "div", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
} if (rf & 2) {
const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r52.shiftBreakArr);
} }
const _c3 = function () { return { standalone: true }; };
function BuShiftSetupComponent_ng_template_10_div_115_Template(rf, ctx) { if (rf & 1) {
const _r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Shift Duration (in hours)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "ng-select", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function BuShiftSetupComponent_ng_template_10_div_115_Template_ng_select_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r59); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r58.shiftDurationSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Min break required (in min)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "ng-select", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function BuShiftSetupComponent_ng_template_10_div_115_Template_ng_select_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r59); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r60.minBreakSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "\u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Clear");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_div_115_Template_button_click_16_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r59); const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r61.addBreakTimeButton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, BuShiftSetupComponent_ng_template_10_div_115_ng_container_19_Template, 2, 1, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r18.shiftDuration)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r18.shiftDurationSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](13, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r18.minBreak)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r18.minBreakSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](14, _c3));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.shiftBreakArr != null);
} }
function BuShiftSetupComponent_ng_template_10_div_133_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r63 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", item_r63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", item_r63, " ");
} }
function BuShiftSetupComponent_ng_template_10_div_133_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, " Activation Time Limit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, BuShiftSetupComponent_ng_template_10_div_133_ng_option_4_Template, 2, 2, "ng-option", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true)("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r19.timeLimit);
} }
function BuShiftSetupComponent_ng_template_10_div_161_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 25);
} }
function BuShiftSetupComponent_ng_template_10_div_162_Template(rf, ctx) { if (rf & 1) {
const _r65 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "Select Number of Days");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "ng-select", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function BuShiftSetupComponent_ng_template_10_div_162_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r65); const ctx_r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r64.cutOffDaysSelect = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r21.cutOffNumberDays)("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx_r21.cutOffDaysSelect)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](6, _c3));
} }
function BuShiftSetupComponent_ng_template_10_span_166_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 94);
} }
function BuShiftSetupComponent_ng_template_10_Template(rf, ctx) { if (rf & 1) {
const _r67 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "h5", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "form", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Select Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "span", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "ng-select", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function BuShiftSetupComponent_ng_template_10_Template_ng_select_change_12_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r66 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r66.SchemeList($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, BuShiftSetupComponent_ng_template_10_ng_option_13_Template, 2, 2, "ng-option", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Assign Skill Sets to Business Unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "Select Skill Sets ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "i", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_i_click_22_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r68 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r68.createAddSkill(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "ng-select", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function BuShiftSetupComponent_ng_template_10_Template_ng_select_change_23_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r69 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r69.onSkillSetChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](24, BuShiftSetupComponent_ng_template_10_ng_option_24_Template, 2, 2, "ng-option", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](25, BuShiftSetupComponent_ng_template_10_div_25_Template, 6, 4, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " \u00A0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_button_click_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r70 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r70.clearSkills(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " Clear ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_button_click_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r71 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r71.addSkillbutton(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](35, BuShiftSetupComponent_ng_template_10_ng_container_35_Template, 2, 1, "ng-container", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " Add Reporting Locations to Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "Add location by");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "input", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_input_click_45_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r72.changeLocationType("map"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, "Map");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "input", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_input_click_49_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r73 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r73.changeLocationType("text"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "Text Format");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_input_click_53_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r74.changeLocationType("both"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, "Both");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](56, "hr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](57, BuShiftSetupComponent_ng_template_10_div_57_Template, 3, 2, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](58, BuShiftSetupComponent_ng_template_10_app_add_map_setup_58_Template, 1, 4, "app-add-map-setup", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](60, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](61, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](62, " Add Weeks for Shift View to Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](63, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](64, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](65, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](66, " Number of Weeks for Shift View to Business Unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](67, "ng-select", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](68, BuShiftSetupComponent_ng_template_10_ng_option_68_Template, 2, 2, "ng-option", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](69, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](70, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](71, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](72, "Timesheet Difference Restriction");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](73, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](74, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](75, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](76, " Max difference between Planned Shift and Approved worked hours (in minutes) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](77, "ng-select", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](78, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](79, "15 minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](80, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](81, "30 minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](82, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, "45 minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](84, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](85, "60 minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](87, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](88, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](89, "Add Auto Approval to Shifts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](90, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](91, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](92, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](93, " Max time diifference allowed between Shifts & Clocked hours (in minutes) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](94, "ng-select", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](95, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](96, "15 minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](97, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](98, "30 minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](99, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](100, "45 minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](101, "ng-option", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](102, "60 minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](103, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](104, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](105, " Configure minimum break time ? (in minutes) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](106, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](107, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](108, "input", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function BuShiftSetupComponent_ng_template_10_Template_input_change_108_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r75 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r75.changeToggle(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](109, "label", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](110, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](111, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](112, "input", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function BuShiftSetupComponent_ng_template_10_Template_input_change_112_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r76.changeToggle(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](113, "label", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](114, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](115, BuShiftSetupComponent_ng_template_10_div_115_Template, 20, 15, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](116, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](117, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](118, "h5", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](119, "Shift");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](120, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](121, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](122, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](123, " Require Standby Shift? ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](124, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](125, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](126, "input", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_input_click_126_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r77 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r77.toggleshift(true); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](127, "label", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](128, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](129, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](130, "input", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_input_click_130_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r78.toggleshift(false); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](131, "label", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](132, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](133, BuShiftSetupComponent_ng_template_10_div_133_Template, 5, 5, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](134, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](135, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](136, " Require Cancel Shift? ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](137, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](138, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](139, "input", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](140, "label", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](141, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](142, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](143, "input", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](144, "label", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](145, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](146, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](147, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](148, "h5", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](149, " Do you want to set Cut-Off days for Booking \u00A0 Shifts\u00A0 and \u00A0 for \u00A0 Cancelling \u00A0 Booked \u00A0 Shifts?");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](150, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](151, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](152, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](153, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](154, "input", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function BuShiftSetupComponent_ng_template_10_Template_input_change_154_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r79.cutOffDaysForBooking("true"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](155, "label", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](156, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](157, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](158, "input", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function BuShiftSetupComponent_ng_template_10_Template_input_change_158_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r80.cutOffDaysForBooking("false"); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](159, "label", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](160, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](161, BuShiftSetupComponent_ng_template_10_div_161_Template, 1, 0, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](162, BuShiftSetupComponent_ng_template_10_div_162_Template, 4, 7, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](163, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](164, "button", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_10_Template_button_click_164_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r67); const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r81.saveSetupDetails(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](165);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](166, BuShiftSetupComponent_ng_template_10_span_166_Template, 1, 0, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.heading, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r2.buShiftSetUpForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", false)("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.buOption);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.buSkillSet);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.showSpeciality);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.skillsSet != null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.isMap || ctx_r2.isDropdown);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.buShiftSetUpForm.get("reportingLocationType").value == "map" || ctx_r2.buShiftSetUpForm.get("reportingLocationType").value == "both");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.noOfweeks);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.show);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.showshift);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.cutOffDays);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.cutOffDays);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r2.buSetupSaveLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r2.saveBtn, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r2.buSetupSaveLoader);
} }
function BuShiftSetupComponent_ng_template_12_button_13_Template(rf, ctx) { if (rf & 1) {
const _r88 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_12_button_13_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r88); const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r87.addskill(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r84 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r84.addSkillForm.invalid);
} }
function BuShiftSetupComponent_ng_template_12_button_14_Template(rf, ctx) { if (rf & 1) {
const _r90 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_12_button_14_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r90); const ctx_r89 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r89.updateSkill(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BuShiftSetupComponent_ng_template_12_tr_48_Template(rf, ctx) { if (rf & 1) {
const _r94 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "button", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_12_tr_48_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r94); const item_r91 = ctx.$implicit; const ctx_r93 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r93.editSkill(item_r91); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_12_tr_48_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r94); const item_r91 = ctx.$implicit; const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r95.deleteSkill(item_r91); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r91 = ctx.$implicit;
const i_r92 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r92 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r91.name);
} }
function BuShiftSetupComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "ADD SKILLSET");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "form", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Skillset");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "input", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, BuShiftSetupComponent_ng_template_12_button_13_Template, 2, 1, "button", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, BuShiftSetupComponent_ng_template_12_button_14_Template, 2, 0, "button", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "SKILLSET LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "select", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "table", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "th", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, "S.NO");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "th", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, " SKILLSET ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "th", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](48, BuShiftSetupComponent_ng_template_12_tr_48_Template, 10, 2, "tr", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](50, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r4.addSkillForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r4.updateBtn);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.updateBtn);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r4.buSkillSet);
} }
function BuShiftSetupComponent_ng_template_14_button_19_Template(rf, ctx) { if (rf & 1) {
const _r102 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_14_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r102); const ctx_r101 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r101.addSkillSpeciality(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BuShiftSetupComponent_ng_template_14_button_20_Template(rf, ctx) { if (rf & 1) {
const _r104 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_14_button_20_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r104); const ctx_r103 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r103.updateSpeciality(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Update ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function BuShiftSetupComponent_ng_template_14_tr_56_Template(rf, ctx) { if (rf & 1) {
const _r108 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "button", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_14_tr_56_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r108); const item_r105 = ctx.$implicit; const ctx_r107 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r107.editSpeciality(item_r105); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_14_tr_56_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r108); const item_r105 = ctx.$implicit; const ctx_r109 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r109.deleteSpeciality(item_r105); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r105 = ctx.$implicit;
const i_r106 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](i_r106 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r105.skillSetId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r105.name);
} }
function BuShiftSetupComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "ADD SPECIALITY");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "form", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "div", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " Skillset ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "ng-select", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "label", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "Speciality");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](18, "input", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, BuShiftSetupComponent_ng_template_14_button_19_Template, 2, 0, "button", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, BuShiftSetupComponent_ng_template_14_button_20_Template, 2, 0, "button", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](24, "SPECIALITY LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "select", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "div", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](42, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "table", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "th", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](48, " S.NO ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](49, "th", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](50, " SKILLSET ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "th", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](52, " SPECIALITY ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](53, "th", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](54, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](55, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](56, BuShiftSetupComponent_ng_template_14_tr_56_Template, 12, 3, "tr", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](57, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](58, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](59, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](60, "Total Records");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](61, "ngb-pagination", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r6.addSpecialityForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("items", ctx_r6.buSkillSet)("multiple", false)("searchable", true)("clearable", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r6.updateBtnSpe);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.updateBtnSpe);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r6.buSkillspeciality);
} }
function BuShiftSetupComponent_ng_template_16_tr_48_Template(rf, ctx) { if (rf & 1) {
const _r116 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "button", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_16_tr_48_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r116); const item_r113 = ctx.$implicit; const ctx_r115 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r115.editLocation(item_r113); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r113 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r113.index);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r113.name);
} }
function BuShiftSetupComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
const _r118 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "ADD REPORTING LOCATION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "form", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "label", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Reporting Location");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "input", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "button", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_ng_template_16_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r118); const ctx_r117 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r117.updateLocationFlag ? ctx_r117.updateRepoLocation() : ctx_r117.addRepoLocation(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](18, "REPORTING LOCATION LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](23, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "select", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "option", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "div", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](36, "input", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "div", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "table", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](41, "th", 113);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, " S.NO ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](43, "th", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, " REPORTING LOCATION ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](45, "th", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](48, BuShiftSetupComponent_ng_template_16_tr_48_Template, 8, 2, "tr", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](49, "slice");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "div", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](51, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](52, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](54, "ngb-pagination", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function BuShiftSetupComponent_ng_template_16_Template_ngb_pagination_pageChange_54_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r118); const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r119.buRepoLocationTable.page = $event; })("pageChange", function BuShiftSetupComponent_ng_template_16_Template_ngb_pagination_pageChange_54_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r118); const ctx_r120 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r120.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r8.addLocationsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r8.addLocationsForm.invalid);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r8.updateLocationFlag ? "Update" : "Add", " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind3"](49, 14, ctx_r8.buRepoLocation, (ctx_r8.buRepoLocationTable.page - 1) * ctx_r8.buRepoLocationTable.limit, ctx_r8.buRepoLocationTable.page * ctx_r8.buRepoLocationTable.limit));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total Records ", ctx_r8.buRepoLocation == null ? null : ctx_r8.buRepoLocation.length, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx_r8.buRepoLocationTable.total)("page", ctx_r8.buRepoLocationTable.page)("maxSize", 5)("pageSize", ctx_r8.buRepoLocationTable.limit);
} }
class BuShiftSetupComponent {
constructor(formBuilder, buService, modelService, toastService, companySetupService, shiftSchedularService) {
this.formBuilder = formBuilder;
this.buService = buService;
this.modelService = modelService;
this.toastService = toastService;
this.companySetupService = companySetupService;
this.shiftSchedularService = shiftSchedularService;
this.activeId = 1;
this.buSkillspeciality = [];
this.noOfweeks = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
this.shiftDuration = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
this.cutOffNumberDays = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14];
this.minBreak = [15, 30, 45, 60];
this.timeLimit = [
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
22, 23, 24,
];
this.skillsSet = [];
this.skillLabels = [];
this.locationlabel = [];
this.locationslabels = [];
this.buRepoLocationArr = [];
this.show = false;
this.showshift = false;
this.buttonName = 'Show';
this.shiftButtonName = 'Show';
this.shiftBreak = [];
this.shiftBreakArr = [];
this.userSkillSetArray = [];
this.schemeLabel = [];
this.schemeLabels = [];
this.schemeArr = [];
this.updateBtn = false;
this.updateBtnSpe = false;
this.isDropdown = false;
this.isMap = false;
this.map = false;
this.text = false;
this.both = false;
this.updateLocationFlag = false;
this.geoReportingLocations = [];
this.reportingLocationRadius = 0;
this.buSettingObj = {
isCheckInEnabled: null,
isProximityEnabled: null,
reportingLocationRadius: null,
};
this.buRepoLocationTable = {
page: 1,
limit: 10,
total: 0,
start: 0,
};
}
ngOnInit() {
// this.loaddepartment(this.departmentPTable);
this.initForm();
// this.getSection();
// this.getSubsection();
this.buShiftSetUpForm.reset();
}
initForm() {
this.buShiftSetUpForm = this.formBuilder.group({
businessUnitId: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
mainSkillSets: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
subSkillSets: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
skillSetTierType: 2,
reportingLocation: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
// location: [null, [Validators.required]],
scheme: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
noOfWeek: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
plannedHours: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
shiftTimeInMinutes: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
shiftBreak: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
isBreakTime: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
standByShiftPermission: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
shiftCancelHours: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
cancelShiftPermission: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
cutOffDaysForBookingAndCancelling: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
geoReportingLocation: [null],
reportingLocationType: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
isCheckInEnabled: [null],
isProximityEnabled: [null],
reportingLocationRadius: [null],
});
this.heading = 'BU SHIFT WORK SETUP';
this.saveBtn = 'Save Shift Setup Details';
this.displaySkilltable();
this.displayLocationTable();
this.tierTypeHandle();
this.buService.getBusinessUnitBUShift().subscribe((res) => {
this.buOption = res['data']['planBussinessUnitId'];
});
}
//getPageSettingSkill
tierTypeHandle() {
const sub = this.shiftSchedularService
.getPageSettingSkill()
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
sub.unsubscribe();
}))
.subscribe((res) => {
// this.Id = res.data._id;
this.tierTypeData = res;
if (this.tierTypeData.tierType === 1) {
this.showSpeciality = false;
// this.skillLabels.push([
// this.buShiftSetUpForm.get('mainSkillSets').value.name,
// ]);
}
else if (this.tierTypeData.tierType === 2) {
this.showSpeciality = true;
}
// this.buService
// .getTierType(this.Id)
// .subscribe((res: { data: any }) => {
// });
}, (error) => { });
}
SchemeList(event) {
/*this.buService.getScheme(event._id, '').subscribe((res) => {
this.schemeTable = res['data'];
});*/
}
displaySkilltable() {
this.buService.getSkillSet().subscribe((res) => {
this.buSkillSet = res['data']['skillsets'] || [];
// console.log(this.buSkillSet.data);
// this.buSkillSet.total = res['data']['skillsets']?.length || 0;
});
}
displayLocationTable() {
this.buService.getReportingLocation().subscribe((res) => {
var _a, _b;
this.buRepoLocation = res['data']['reportingLocations'] || [];
(_a = this.buRepoLocation) === null || _a === void 0 ? void 0 : _a.map((locationObj, index) => {
locationObj['index'] = index + 1;
});
this.buRepoLocationTable.total = (_b = this.buRepoLocation) === null || _b === void 0 ? void 0 : _b.length;
});
}
onPageChangeUsers(page) {
this.buRepoLocationTable.page = page;
}
onPageChangeSkill(page) {
this.buSkillSet.page = page;
}
resetForm() {
this.skillLabels = [];
this.skillsSet = [];
this.locationslabels = [];
this.buRepoLocationArr = [];
this.shiftBreakArr = [];
this.schemeArr = [];
this.schemeLabels = [];
this.buShiftSetUpForm.reset();
this.heading = 'BU SHIFT WORK SETUP';
this.saveBtn = 'Save Shift Setup Details';
this.buShiftSetUpForm.patchValue({
isBreakTime: null,
});
this.show = false;
}
addskill() {
if (this.addSkillForm.valid) {
this.buService
.createSkillSet(this.addSkillForm.value)
.subscribe((res) => {
this.addSkillForm.reset();
this.displaySkilltable();
this.toastService.success('Skillset added successfully.');
});
}
// console.log("addskill", this.addSkillForm.value);
}
editSkill(data) {
this.singleItem = data;
this.updateBtn = true;
this.addSkillForm.patchValue({
name: data.name,
});
}
updateSkill() {
this.updateSkillData = this.singleItem;
this.editSkillObj = {
name: this.addSkillForm.get('name').value,
skillSetId: this.updateSkillData._id,
status: "1"
};
this.buService.updateSkillSet(this.editSkillObj).subscribe((res) => {
this.addSkillForm.reset();
this.displaySkilltable();
this.toastService.success('Skillset updated successfully.');
});
}
deleteSkill(delData) {
this.delDataObj = {
skillSetId: delData._id,
};
sweetalert2__WEBPACK_IMPORTED_MODULE_2___default.a.fire({
title: 'Are you sure?',
text: "You won't be able to revert this!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
cancelButtonText: 'No',
confirmButtonText: 'Yes, delete it!',
}).then((result) => {
if (result.isConfirmed) {
this.buService.deleteSkillSet(this.delDataObj).subscribe((res) => {
this.displaySkilltable();
this.toastService.success('Skillset deleted successfully.');
this.addSkillForm.reset();
});
}
});
}
activeTab(event) {
this.skillLabels = [];
this.skillsSet = [];
this.locationslabels = [];
this.buRepoLocationArr = [];
this.shiftBreakArr = [];
this.schemeArr = [];
this.schemeLabels = [];
this.activeId = 2;
this.heading = 'EDIT BUSINESS UNIT DETAILS ';
this.saveBtn = 'Update Shift Setup Details';
this.buSetting(event._id);
this.buService.getBuShiftEdit(event._id).subscribe((res) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7;
this.editData = res['data']['businessUnitList'];
// this.selectedBuOption = "";
this.geoReportingLocations = [];
this.isMap = false;
this.isDropdown = false;
/* this.buService.getScheme(event._id, '').subscribe((res) => {
this.schemeTable = res['data'];
});*/
// this.editData.reportingLocationType = 'both';
this.reportingLocationRadius = this.editData.reportingLocationRadius;
this.geoReportingLocations = !!((_a = this.editData) === null || _a === void 0 ? void 0 : _a.geoReportingLocation) && this.editData.geoReportingLocation.map((val) => val.name);
// this.editData?.reportingLocationType && this.editData?.reportingLocationType
this.isMap =
((_b = this.editData) === null || _b === void 0 ? void 0 : _b.reportingLocationType) == 'map' ||
((_c = this.editData) === null || _c === void 0 ? void 0 : _c.reportingLocationType) == 'both';
this.isDropdown =
((_d = this.editData) === null || _d === void 0 ? void 0 : _d.reportingLocationType) == 'text' ||
((_e = this.editData) === null || _e === void 0 ? void 0 : _e.reportingLocationType) == 'both';
for (var i = 0; this.buOption.length > i; i++) {
if (this.buOption[i]._id == event._id) {
this.buShiftSetUpForm.patchValue({
businessUnitId: this.buOption[i],
});
}
}
this.skillLabels = [];
if (this.showSpeciality) {
if (this.editData.subSkillSets != null) {
for (let k = 0; this.editData.subSkillSets.length > k; k++) {
this.skillLabels.push([
(_f = this.editData.subSkillSets[k].skillSetId) === null || _f === void 0 ? void 0 : _f.name,
(_g = this.editData.subSkillSets[k]) === null || _g === void 0 ? void 0 : _g.name,
]);
this.skillsSet.push((_h = this.editData.subSkillSets[k]) === null || _h === void 0 ? void 0 : _h._id);
}
}
}
else {
if (this.editData.mainSkillSets != null) {
for (let k = 0; this.editData.mainSkillSets.length > k; k++) {
this.skillLabels.push([(_j = this.editData.mainSkillSets[k]) === null || _j === void 0 ? void 0 : _j.name]);
this.skillsSet.push((_k = this.editData.mainSkillSets[k]) === null || _k === void 0 ? void 0 : _k._id);
}
}
}
if (this.editData.reportingLocation != null) {
for (let j = 0; this.editData.reportingLocation.length > j; j++) {
this.locationslabels.push((_l = this.editData.reportingLocation[j]) === null || _l === void 0 ? void 0 : _l.name);
this.buRepoLocationArr.push((_m = this.editData.reportingLocation[j]) === null || _m === void 0 ? void 0 : _m._id);
}
}
if (this.editData.scheme != null) {
for (let k = 0; this.editData.scheme.length > k; k++) {
this.schemeLabels.push((_o = this.editData.scheme[k]) === null || _o === void 0 ? void 0 : _o.schemeName);
this.schemeArr.push((_p = this.editData.scheme[k]) === null || _p === void 0 ? void 0 : _p._id);
}
}
// console.log("locationslabels", this.locationslabels);
// console.log("buRepoLocationArr", this.buRepoLocationArr);
if (this.editData.standByShiftPermission == true) {
this.showshift = true;
}
if (this.editData.shiftBreak && ((_q = this.editData.shiftBreak) === null || _q === void 0 ? void 0 : _q.length) > 0) {
this.buShiftSetUpForm.get('isBreakTime').setValue(true);
this.show = true;
}
else {
this.buShiftSetUpForm.get('isBreakTime').setValue(false);
this.show = false;
}
// for (let i = 0; this.editData.subSkillSets.length > i; i++)
// this.skillLabels.push([
// this.editData.subSkillSets[i].skillSetId.name,
// this.editData.subSkillSets[i].name,
// ]);
// this.locationslabels = [this.editData.reportingLocation.name];
this.locationslabels = [];
for (let i = 0; ((_r = this.editData) === null || _r === void 0 ? void 0 : _r.reportingLocation.length) > i; i++)
this.locationslabels.push([this.editData.reportingLocation[i].name]);
if (((_s = this.editData) === null || _s === void 0 ? void 0 : _s.shiftBreak) && ((_t = this.editData) === null || _t === void 0 ? void 0 : _t.shiftBreak.length) > 0) {
for (let k = 0; ((_u = this.editData) === null || _u === void 0 ? void 0 : _u.shiftBreak.length) > k; k++) {
this.shiftBreakArr.push({
shiftHour: this.editData.shiftBreak[k].shiftHour,
breakInMinutes: this.editData.shiftBreak[k].breakInMinutes,
});
}
}
this.cutOffDays = !((_v = this.editData) === null || _v === void 0 ? void 0 : _v.cutOffDaysForBookingAndCancelling) ? false : true,
this.cutOffDaysSelect = (_w = this.editData) === null || _w === void 0 ? void 0 : _w.cutOffDaysForBookingAndCancelling;
this.cutOffRdion = !((_x = this.editData) === null || _x === void 0 ? void 0 : _x.cutOffDaysForBookingAndCancelling) ? false : true;
this.buShiftSetUpForm.patchValue({
noOfWeek: (_y = this.editData) === null || _y === void 0 ? void 0 : _y.noOfWeek,
plannedHours: (_z = this.editData) === null || _z === void 0 ? void 0 : _z.plannedHours,
shiftTimeInMinutes: (_0 = this.editData) === null || _0 === void 0 ? void 0 : _0.shiftTimeInMinutes,
isBreakTime: this.editData.shiftBreak && ((_1 = this.editData.shiftBreak) === null || _1 === void 0 ? void 0 : _1.length) > 0 ? true : false,
shiftBreak: (_2 = this.editData) === null || _2 === void 0 ? void 0 : _2.shiftBreak,
standByShiftPermission: (_3 = this.editData) === null || _3 === void 0 ? void 0 : _3.standByShiftPermission,
shiftCancelHours: (_4 = this.editData) === null || _4 === void 0 ? void 0 : _4.shiftCancelHours,
cancelShiftPermission: (_5 = this.editData) === null || _5 === void 0 ? void 0 : _5.cancelShiftPermission,
cutOffDaysForBookingAndCancelling: !((_6 = this.editData) === null || _6 === void 0 ? void 0 : _6.cutOffDaysForBookingAndCancelling) ? false : true,
reportingLocationType: (_7 = this.editData) === null || _7 === void 0 ? void 0 : _7.reportingLocationType,
});
});
}
cutOffDaysForBooking(e) {
this.cutOffDays = e == 'true' ? true : false;
}
buSetting(id) {
this.buService.getBuShiftGeoLocation(id).subscribe((res) => {
this.buSettingObj = res.result;
this.buSettingObj.isCheckInEnabled = res.result.isCheckInEnabled;
this.buSettingObj.isProximityEnabled = res.result.isProximityEnabled;
this.buSettingObj.reportingLocationRadius = res.result.proximity;
});
}
getSkillSpeciality() {
var _a;
let payload = { "skillSetId": (_a = this.addSpecialityForm.get('skillSetId').value) === null || _a === void 0 ? void 0 : _a._id };
this.buService
.getSkillSpeciality(payload)
.subscribe((res) => {
var _a;
this.buSkillspeciality = ((_a = res['data']) === null || _a === void 0 ? void 0 : _a.subSkillSets) || [];
});
}
addSkillSpeciality() {
if (this.addSpecialityForm.valid) {
this.buService
.createSpeciality(this.addSpecialityForm.value)
.subscribe((res) => {
this.addSpecialityForm.patchValue({
skillSetId: this.addSpecialityForm.get('skillSetId').value,
});
this.toastService.success('Skill speciality added successfully.');
this.getSkillSpeciality();
});
}
}
editSpeciality(data) {
this.singleSpecialityItem = data;
this.updateBtnSpe = true;
this.addSpecialityForm.patchValue({
name: data.name,
});
}
updateSpeciality() {
this.updateSkillData = this.singleSpecialityItem;
this.editSpecialityObj = {
name: this.addSpecialityForm.get('name').value,
skillSetId: this.updateSkillData.skillSetId._id,
status: 1,
subSkillSetId: this.updateSkillData._id,
};
this.buService.updateSpeciality(this.editSpecialityObj).subscribe((res) => {
this.toastService.success('Skill speciality updated successfully.');
this.getSkillSpeciality();
this.addSpecialityForm.reset();
// this.buSkillspeciality;
});
}
deleteSpeciality(delData) {
this.delSpecialityDataObj = {
subSkillSetId: delData._id,
};
sweetalert2__WEBPACK_IMPORTED_MODULE_2___default.a.fire({
title: 'Are you sure?',
text: "You won't be able to revert this!",
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
cancelButtonText: 'No',
confirmButtonText: 'Yes, delete it!',
}).then((result) => {
if (result.isConfirmed) {
this.buService
.deleteSpeciality(this.delSpecialityDataObj)
.subscribe((res) => {
this.toastService.success('Speciality deleted successfully.');
// this.buSkillspeciality();
this.addSpecialityForm.get('name').reset();
this.getSkillSpeciality();
});
}
});
}
addRepoLocation() {
if (this.addLocationsForm.valid) {
this.buService.createLocations(this.addLocationsForm.value).subscribe({
next: (res) => {
this.addLocationsForm.reset();
this.displayLocationTable();
this.toastService.success('Reporting location added successfully.');
},
error: (err) => {
var _a;
const errorMessage = ((_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.message) ? err.error.message
: 'Something went wrong. Please try again.';
this.toastService.error(errorMessage);
},
});
}
//console.log("loction", this.addLocationsForm.value);
}
saveSetupDetails() {
var _a, _b, _c, _d;
this.buSetupSaveLoader = true;
this.buShiftSetUpForm.patchValue({
businessUnitId: (_a = this.buShiftSetUpForm.get('businessUnitId').value) === null || _a === void 0 ? void 0 : _a._id,
reportingLocation: this.buRepoLocationArr,
// location: this.buRepoLocationArr,
scheme: this.schemeArr,
geoReportingLocation: this.geoReportingLocations,
isCheckInEnabled: (_b = this.buSettingObj) === null || _b === void 0 ? void 0 : _b.isCheckInEnabled,
isProximityEnabled: (_c = this.buSettingObj) === null || _c === void 0 ? void 0 : _c.isProximityEnabled,
reportingLocationRadius: (_d = this.buSettingObj) === null || _d === void 0 ? void 0 : _d.reportingLocationRadius,
});
if (this.cutOffDays) {
this.buShiftSetUpForm.patchValue({ cutOffDaysForBookingAndCancelling: this.cutOffDaysSelect });
}
else {
this.buShiftSetUpForm.patchValue({ cutOffDaysForBookingAndCancelling: '' });
}
if (this.isMap && this.isDropdown) {
this.buShiftSetUpForm.patchValue({ reportingLocationType: 'both' });
}
else if (this.isMap) {
this.buShiftSetUpForm.patchValue({ reportingLocationType: 'map' });
}
else if (this.isDropdown) {
this.buShiftSetUpForm.patchValue({ reportingLocationType: 'text' });
}
if (this.showSpeciality) {
this.buShiftSetUpForm.patchValue({
subSkillSets: this.skillsSet,
mainSkillSets: [],
skillSetTierType: 2,
});
}
else {
this.buShiftSetUpForm.patchValue({
mainSkillSets: this.skillsSet,
subSkillSets: [],
skillSetTierType: 1,
});
}
if (this.buShiftSetUpForm.get('isBreakTime').value == false) {
this.buShiftSetUpForm.patchValue({
shiftBreak: [],
});
}
this.buShiftSetUpForm.value['locations'] = this.buShiftSetUpForm.value.reportingLocation;
delete this.buShiftSetUpForm.value.reportingLocation;
this.buService
.saveBuSetup(this.buShiftSetUpForm.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
this.buSetupSaveLoader = false;
}))
.subscribe((res) => {
this.activeId = 1;
this.buShiftSetUpForm.reset();
// this.toastService.info(res['data'].message);
if (res['data']) {
this.toastService.success('BU Shift Setup saved successfully', 'Successfull');
}
}, (err) => {
this.toastService.error(err.error.error);
});
}
createAddSkill() {
this.modelService.open(this.AddSkill, {
windowClass: 'modal-ui-fix right-align',
});
this.addSkillForm = this.formBuilder.group({
name: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
status: ["1"]
});
this.displaySkilltable();
}
onSkillSetChange($event) {
this.buSkillspeciality = $event.subSkillSets;
this.buShiftSetUpForm.patchValue({
subSkillSets: null,
});
/* this.buService.getSkillSpeciality($event._id).subscribe((res) => {
this.buSkillspeciality = res['data'];
this.buShiftSetUpForm.patchValue({
subSkillSets: null,
});
});*/
}
addSkillbutton() {
if (this.showSpeciality) {
this.subSkillLabel = this.buShiftSetUpForm.get('subSkillSets').value._id;
if (this.skillsSet.indexOf(this.subSkillLabel) > -1) {
this.toastService.warning('Already Exists');
}
else {
this.skillLabels.push([
this.buShiftSetUpForm.get('mainSkillSets').value.name,
this.buShiftSetUpForm.get('subSkillSets').value.name,
]);
this.skillsSet.push(this.subSkillLabel);
}
this.buShiftSetUpForm.patchValue({
mainSkillSets: null,
subSkillSets: null,
});
}
else {
this.subSkillLabel = this.buShiftSetUpForm.get('mainSkillSets').value._id;
if (this.skillsSet.indexOf(this.subSkillLabel) > -1) {
this.toastService.warning('Already Exists');
}
else {
this.skillLabels.push([
this.buShiftSetUpForm.get('mainSkillSets').value.name,
]);
this.skillsSet.push(this.subSkillLabel);
}
}
}
clearLabel(i) {
this.skillsSet.splice(i, 1);
this.skillLabels.splice(i, 1);
// console.log("SkillSetArry2", this.skillsSet);
// console.log("SkillSetLabel2", this.skillLabels);
}
clearSkills() {
this.skillsSet = [];
this.skillLabels = [];
}
addLocateButton() {
//this.locationlabel = this.buShiftSetUpForm.get('reportingLocation').value.name;
this.locationlabel =
this.buShiftSetUpForm.get('reportingLocation').value._id;
// console.log("locationlables", this.locationlabel);
if (this.buRepoLocationArr.indexOf(this.locationlabel) > -1) {
this.toastService.warning('Already Exist');
}
else {
this.locationslabels.push(this.buShiftSetUpForm.get('reportingLocation').value.name);
this.buRepoLocationArr.push(this.locationlabel);
}
this.buShiftSetUpForm.patchValue({
reportingLocation: null,
});
// console.log("locate add button", this.locationlabel);
}
addSchemeButton() {
this.schemeLabel = this.buShiftSetUpForm.get('scheme').value._id;
this.schemeLabels.push(this.buShiftSetUpForm.get('scheme').value.schemeName);
this.schemeArr.push(this.schemeLabel);
}
clearLocationLabel(i) {
this.buRepoLocationArr.splice(i, 1);
this.locationslabels.splice(i, 1);
// console.log("buRepoLocationArr", this.buRepoLocationArr);
// console.log("locationslabels", this.locationslabels);
}
clearSchemeLabel(i) {
this.schemeArr.splice(i, 1);
this.schemeLabels.splice(i, 1);
}
addBreakTimeButton() {
this.shiftBreakArr.push({
breakInMinutes: this.minBreakSelect,
shiftHour: this.shiftDurationSelect,
id: this.shiftDurationSelect,
});
this.buShiftSetUpForm.patchValue({
shiftBreak: this.shiftBreakArr,
});
this.minBreakSelect = null;
this.shiftDurationSelect = null;
}
clearLabelBreak(i) {
this.shiftBreakArr.splice(i, 1);
}
addSpeciality() {
if (this.buShiftSetUpForm.get('mainSkillSets').value != null) {
this.modelService.open(this.AddSpeciality, {
windowClass: 'modal-ui-fix right-align',
});
}
else {
this.toastService.info('Please select skillset');
}
this.addSpecialityForm = this.formBuilder.group({
skillSetId: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
name: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
});
this.addSpecialityForm.patchValue({
skillSetId: this.buShiftSetUpForm.get('mainSkillSets').value,
});
}
addLocations() {
this.modelService.open(this.AddLocations, {
windowClass: 'modal-ui-fix right-align',
});
this.addLocationsForm = this.formBuilder.group({
name: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
status: "1",
reportingLocationId: [null]
});
}
changeToggle(e) {
if (e == true) {
this.show = true;
}
else {
this.show = false;
}
}
toggleshift(val) {
this.showshift = val;
if (this.showshift)
this.shiftButtonName = 'Hide';
else
this.shiftButtonName = 'Show';
}
changeLocationType(type) {
if (type === 'text') {
this.isMap = false;
this.isDropdown = true;
}
else if (type === 'map') {
this.isMap = true;
this.isDropdown = false;
}
else {
this.isMap = true;
this.isDropdown = true;
}
}
onNavChange(changeEvent) {
if (changeEvent.nextId === 2) {
// changeEvent.preventDefault();
this.buSettingObj = {
isCheckInEnabled: null,
isProximityEnabled: null,
reportingLocationRadius: null,
};
}
if (changeEvent.nextId === 1) {
this.geoReportingLocations = [];
}
}
setGeoLocations(locations) {
this.geoReportingLocations = locations;
}
changeCheckInEnable(enablCheckIn) {
this.buSettingObj['isCheckInEnabled'] = enablCheckIn;
}
changeProximityEnable(enableProximity) {
this.buSettingObj['isProximityEnabled'] = enableProximity;
}
changeRepLoc(repLocRadius) {
this.buSettingObj['reportingLocationRadius'] = repLocRadius;
// this.reportingLocationRadius = repLocRadius;
}
editLocation(data) {
this.addLocationsForm.get('name').setValue(data === null || data === void 0 ? void 0 : data.name);
this.addLocationsForm.get('reportingLocationId').setValue(data._id);
this.updateLocationFlag = true;
}
updateRepoLocation() {
if (this.addLocationsForm.valid) {
this.buService.updateLocations(this.addLocationsForm.value).subscribe({
next: () => {
this.addLocationsForm.reset();
this.displayLocationTable();
this.toastService.success('Reporting location updated successfully.');
this.updateLocationFlag = false;
},
error: (err) => {
var _a;
const errorMessage = ((_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.message) ? err.error.message
: 'Something went wrong. Please try again.';
this.toastService.error(errorMessage);
},
});
}
}
}
BuShiftSetupComponent.ɵfac = function BuShiftSetupComponent_Factory(t) { return new (t || BuShiftSetupComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_7__["CompanySetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__["ShiftSchedulerService"])); };
BuShiftSetupComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: BuShiftSetupComponent, selectors: [["app-bu-shift-setup"]], viewQuery: function BuShiftSetupComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c1, true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c2, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.AddSkill = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.AddSpeciality = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.AddLocations = _t.first);
} }, inputs: { isEditBu: "isEditBu" }, decls: 18, vars: 4, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "navChange", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", ""], ["ngbNavContent", ""], ["ngbNavLink", "", 3, "click"], [3, "ngbNavOutlet"], ["AddSkill", ""], ["AddSpeciality", ""], ["AddLocations", ""], [3, "changeActiveBu"], [1, "card"], [1, "card-header", "bg-theme"], [1, "card-body"], [3, "formGroup"], [1, "row"], [1, "col-md-7"], [1, "form-group"], [1, "font-weight-500"], [1, "field-mandatory", "required-sign"], ["bindLabel", "name", "placeholder", "Select", "appendTo", "body", "formControlName", "businessUnitId", 1, "custom", 3, "virtualScroll", "multiple", "searchable", "clearable", "change"], [3, "value", 4, "ngFor", "ngForOf"], [1, "card", "mb-3"], [1, "card-title"], [1, "col-md-3"], ["aria-hidden", "true", 1, "fa", "fa-plus-circle", 3, "click"], ["bindLabel", "name", "placeholder", "Select Skill Sets", "appendTo", "body", "formControlName", "mainSkillSets", 1, "custom", 3, "multiple", "searchable", "clearable", "change"], ["class", "col-md-3", 4, "ngIf"], [1, "col-md-2"], [1, "btn", "btn-danger", 3, "click"], [1, "btn", "btn-success", "ml-1", 3, "click"], [1, "col-md-4"], [4, "ngIf"], [1, "form-group", "row"], [1, "col-sm-2", "font-weight-500"], [1, "col-sm-10"], [1, "form-check", "form-check-inline"], ["type", "radio", "name", "reportingLocationType", "formControlName", "reportingLocationType", "value", "map", "id", "map", 1, "form-check-input", 3, "click"], [1, "form-check-label"], ["type", "radio", "name", "reportingLocationType", "formControlName", "reportingLocationType", "value", "text", "id", "text", 1, "form-check-input", 3, "click"], ["type", "radio", "name", "reportingLocationType", "formControlName", "reportingLocationType", "value", "both", "id", "both", 1, "form-check-input", 3, "click"], ["class", "row mb-3", 4, "ngIf"], [3, "isMap", "isDropdown", "mapLocations", "buSettingObj", "geoLocationEvent", "handleCheckInEnable", "handleProximityEnable", "handleRepLoc", 4, "ngIf"], ["bindLabel", "name", "placeholder", "Select Number of Weeks", "appendTo", "body", "formControlName", "noOfWeek", 1, "custom", 3, "multiple", "searchable", "clearable"], ["bindLabel", "name", "placeholder", "Select minutes", "appendTo", "body", "formControlName", "plannedHours", 1, "custom", 3, "multiple", "searchable", "clearable"], [3, "value"], ["bindLabel", "name", "placeholder", "Select minutes", "appendTo", "body", "formControlName", "shiftTimeInMinutes", 1, "custom", 3, "multiple", "searchable", "clearable"], ["type", "radio", "name", "isBreakTime", "id", "isBreakTime1", "formControlName", "isBreakTime", 1, "form-check-input", 3, "value", "change"], ["for", "isBreakTime1", 1, "form-check-label"], ["type", "radio", "name", "isBreakTime", "id", "isBreakTime2", "formControlName", "isBreakTime", 1, "form-check-input", 3, "value", "change"], ["for", "isBreakTime2", 1, "form-check-label"], ["class", "col-md-12", 4, "ngIf"], ["type", "radio", "name", "standByShiftPermission", "id", "standByShiftPermission1", "formControlName", "standByShiftPermission", 1, "form-check-input", 3, "value", "click"], ["for", "standByShiftPermission1", 1, "form-check-label"], ["type", "radio", "name", "standByShiftPermission", "id", "standByShiftPermission2", "formControlName", "standByShiftPermission", 1, "form-check-input", 3, "value", "click"], ["for", "standByShiftPermission2", 1, "form-check-label"], ["type", "radio", "name", "cancelShiftPermission", "id", "cancelShiftPermission1", "formControlName", "cancelShiftPermission", 1, "form-check-input", 3, "value"], ["for", "cancelShiftPermission1", 1, "form-check-label"], ["type", "radio", "name", "cancelShiftPermission", "id", "cancelShiftPermission2", "formControlName", "cancelShiftPermission", 1, "form-check-input", 3, "value"], ["for", "cancelShiftPermission2", 1, "form-check-label"], [1, "row", 2, "margin-top", "20px"], [1, "card-title", 2, "white-space", "pre"], [1, "radioButton"], [1, "com-md-3"], ["type", "radio", "name", "cutOffDaysForBookingAndCancelling", "id", "cutOffShiftPermission1", "formControlName", "cutOffDaysForBookingAndCancelling", 1, "form-check-input", 3, "value", "change"], ["for", "cutOffShiftPermission1", 1, "form-check-label"], ["type", "radio", "name", "cutOffDaysForBookingAndCancelling", "id", "cutOffShiftPermission2", "formControlName", "cutOffDaysForBookingAndCancelling", 1, "form-check-input", 3, "value", "change"], ["for", "cutOffShiftPermission2", 1, "form-check-label"], ["class", "col-md-6 numberSelection", 4, "ngIf"], [1, "card-footer"], ["type", "submit", 1, "btn", "btn-lg", "btn-success", 3, "disabled", "click"], ["class", "spinner-border ml-1", "role", "status", "aria-hidden", "true", 4, "ngIf"], ["bindLabel", "name", "placeholder", "Select Speciality", "appendTo", "body", "formControlName", "subSkillSets", 1, "custom", 3, "multiple", "searchable", "clearable"], ["class", "labels mb-1 mr-1", 4, "ngFor", "ngForOf"], [1, "labels", "mb-1", "mr-1"], [1, "material-icons", "bg-danger", "rounded", "btn-close", 3, "click"], [1, "row", "mb-3"], [1, "font-weigth-500"], ["bindLabel", "name", "placeholder", "Select Reporting Locations", "appendTo", "body", "formControlName", "reportingLocation", 3, "items", "multiple", "searchable", "clearable"], [1, "col-md-2", "align-self-end", "mb-1"], [1, "btn", "btn-danger"], ["class", "labels my-2 mr-2", 4, "ngFor", "ngForOf"], [1, "labels", "my-2", "mr-2"], [3, "isMap", "isDropdown", "mapLocations", "buSettingObj", "geoLocationEvent", "handleCheckInEnable", "handleProximityEnable", "handleRepLoc"], [1, "col-md-12"], [1, "row", "mt-3"], ["for", "", 1, "font-weight-500"], ["bindLabel", "name", "placeholder", "Select", "appendTo", "body", 1, "custom", 3, "items", "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "ngModelChange"], [1, "d-flex"], ["class", "labels mr-1 mb-1", 4, "ngFor", "ngForOf"], [1, "labels", "mr-1", "mb-1"], ["bindLabel", "name", "placeholder", "Select Number of Days", "appendTo", "body", "formControlName", "shiftCancelHours", 1, "custom", 3, "value", "multiple", "searchable", "clearable"], [1, "col-md-6", "numberSelection"], ["role", "status", "aria-hidden", "true", 1, "spinner-border", "ml-1"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], [1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header"], ["for", "exampleInputEmail1"], ["type", "text", "formControlName", "name", "placeholder", "Skillset", 1, "form-control"], ["class", "btn btn-add mt-4 pull-right", "type", "submit", 3, "disabled", "click", 4, "ngIf"], ["class", "btn btn-add mt-4 pull-right", "type", "submit", 3, "click", 4, "ngIf"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2"], [1, "table-responsive"], [1, "table", "table-striped", "table-body"], ["scope", "col", "sortable", "Tier 1"], ["scope", "col", "sortable", "Tier 2"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "d-flex", "justify-content-between"], ["type", "submit", 1, "btn", "btn-add", "mt-4", "pull-right", 3, "disabled", "click"], ["type", "submit", 1, "btn", "btn-add", "mt-4", "pull-right", 3, "click"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "btn", "btn-danger", "p-sm-1", "m-1", 3, "click"], [1, "col-md-6"], ["bindLabel", "name", "formControlName", "skillSetId", 1, "custom", 3, "items", "multiple", "searchable", "clearable"], ["type", "text", "formControlName", "name", 1, "form-control"], [3, "collectionSize", "maxSize"], ["type", "text", "placeholder", "Reporting Location", "formControlName", "name", 1, "form-control"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"]], template: function BuShiftSetupComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("navChange", function BuShiftSetupComponent_Template_ul_navChange_1_listener($event) { return ctx.onNavChange($event); })("activeIdChange", function BuShiftSetupComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, BuShiftSetupComponent_ng_template_6_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "a", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BuShiftSetupComponent_Template_a_click_8_listener() { return ctx.resetForm(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "BU SHIFT SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, BuShiftSetupComponent_ng_template_10_Template, 167, 48, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, BuShiftSetupComponent_ng_template_12_Template, 51, 9, "ng-template", null, 8, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, BuShiftSetupComponent_ng_template_14_Template, 62, 13, "ng-template", null, 9, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, BuShiftSetupComponent_ng_template_16_Template, 55, 18, "ng-template", null, 10, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNavContent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbNavOutlet"], _bu_shift_setup_overview_bu_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_9__["BuShiftSetupOverviewComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_12__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__["ɵr"], _add_map_setup_add_map_setup_component__WEBPACK_IMPORTED_MODULE_13__["AddMapSetupComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_14__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbPagination"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_12__["SlicePipe"]], styles: [".dropdown-select[_ngcontent-%COMP%] {\n \n border: none !important;\n border-bottom: 2px solid #d2d2d2 !important;\n background-repeat: no-repeat;\n background-position: right;\n transition: none;\n font-size: 0.9rem;\n border-radius: 0;\n background-clip: unset;\n width: 50%;\n}\n\n.box[_ngcontent-%COMP%] {\n float: left;\n}\n\n.box[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%] .fa-plus-circle[_ngcontent-%COMP%] {\n color: red;\n}\n\n.col-md-3[_ngcontent-%COMP%] {\n max-width: 100%;\n}\n\ninput[readonly][_ngcontent-%COMP%] {\n background-color: transparent;\n}\n\n.buttons[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-end;\n}\n\n.pr-15[_ngcontent-%COMP%] {\n padding-right: 2rem;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.labels[_ngcontent-%COMP%] {\n padding: 6px 8px;\n background: #a42138;\n color: #fff;\n font-size: 14px;\n display: inline-flex;\n justify-content: space-between;\n border-radius: 4px;\n align-items: center;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n.labels[_ngcontent-%COMP%] .btn-close[_ngcontent-%COMP%] {\n font-size: 16px;\n padding: 2px;\n margin-left: 6px;\n cursor: pointer;\n}\n\n.nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n\n.spinner-border[_ngcontent-%COMP%] {\n vertical-align: middle;\n}\n\n.required-sign[_ngcontent-%COMP%] {\n font-size: 20px;\n}\n\n.radioButton[_ngcontent-%COMP%] {\n display: flex;\n}\n\n.numberSelection[_ngcontent-%COMP%] {\n margin-left: 10%;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zZXR1cC9idS1zaGlmdC1zZXR1cC9idS1zaGlmdC1zZXR1cC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLHNDQUFBO0VBQ0EsdUJBQUE7RUFDQSwyQ0FBQTtFQUNBLDRCQUFBO0VBQ0EsMEJBQUE7RUFDQSxnQkFBQTtFQUNBLGlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSxzQkFBQTtFQUNBLFVBQUE7QUFDRjs7QUFFQTtFQUNFLFdBQUE7QUFDRjs7QUFBRTtFQUNFLFVBQUE7QUFFSjs7QUFFQTtFQUNFLGVBQUE7QUFDRjs7QUFFQTtFQUNFLDZCQUFBO0FBQ0Y7O0FBRUE7RUFDRSxhQUFBO0VBQ0EscUJBQUE7QUFDRjs7QUFFQTtFQUNFLG1CQUFBO0FBQ0Y7O0FBRUE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7QUFDRjs7QUFFQTtFQUNFLGdCQUFBO0VBQ0EsbUJBQUE7RUFDQSxXQUFBO0VBQ0EsZUFBQTtFQUNBLG9CQUFBO0VBQ0EsOEJBQUE7RUFDQSxrQkFBQTtFQUNBLG1CQUFBO0VBQ0EsdUJBQUE7RUFBQSxrQkFBQTtBQUNGOztBQUNFO0VBQ0UsZUFBQTtFQUNBLFlBQUE7RUFDQSxnQkFBQTtFQUNBLGVBQUE7QUFDSjs7QUFHQTtFQUNFLHNCQUFBO0FBQUY7O0FBQ0U7RUFDRSx5QkFBQTtFQUNBLFlBQUE7RUFDQSxrQkFBQTtFQUNBLHNCQUFBO0FBQ0o7O0FBQ0k7RUFDRSxjQUFBO0FBQ047O0FBRUk7RUFDRSxjQUFBO0VBQ0Esc0JBQUE7RUFDQSw2Q0FBQTtFQUNBLGdDQUFBO0FBQU47O0FBS0E7RUFDRSxzQkFBQTtBQUZGOztBQUtBO0VBQ0UsZUFBQTtBQUZGOztBQUtBO0VBQ0UsYUFBQTtBQUZGOztBQUtBO0VBQ0UsZ0JBQUE7QUFGRiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2V0dXAvYnUtc2hpZnQtc2V0dXAvYnUtc2hpZnQtc2V0dXAuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIuZHJvcGRvd24tc2VsZWN0IHtcbiAgLypjb250YWluZXIgZm9yIGN1c3RvbSBkcm9wZG93biBhcnJvdyovXG4gIGJvcmRlcjogbm9uZSAhaW1wb3J0YW50O1xuICBib3JkZXItYm90dG9tOiAycHggc29saWQgI2QyZDJkMiAhaW1wb3J0YW50O1xuICBiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiByaWdodDtcbiAgdHJhbnNpdGlvbjogbm9uZTtcbiAgZm9udC1zaXplOiAwLjlyZW07XG4gIGJvcmRlci1yYWRpdXM6IDA7XG4gIGJhY2tncm91bmQtY2xpcDogdW5zZXQ7XG4gIHdpZHRoOiA1MCU7XG59XG5cbi5ib3gge1xuICBmbG9hdDogbGVmdDtcbiAgLmZhIC5mYS1wbHVzLWNpcmNsZSB7XG4gICAgY29sb3I6IHJlZDtcbiAgfVxufVxuXG4uY29sLW1kLTMge1xuICBtYXgtd2lkdGg6IDEwMCU7XG59XG5cbmlucHV0W3JlYWRvbmx5XSB7XG4gIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xufVxuXG4uYnV0dG9ucyB7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBmbGV4LWVuZDtcbn1cblxuLnByLTE1IHtcbiAgcGFkZGluZy1yaWdodDogMnJlbTtcbn1cblxuLmJnLXRoZW1lIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgY29sb3I6ICNmZmY7XG59XG5cbi5sYWJlbHMge1xuICBwYWRkaW5nOiA2cHggOHB4O1xuICBiYWNrZ3JvdW5kOiAjYTQyMTM4O1xuICBjb2xvcjogI2ZmZjtcbiAgZm9udC1zaXplOiAxNHB4O1xuICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIHdpZHRoOiBmaXQtY29udGVudDtcblxuICAuYnRuLWNsb3NlIHtcbiAgICBmb250LXNpemU6IDE2cHg7XG4gICAgcGFkZGluZzogMnB4O1xuICAgIG1hcmdpbi1sZWZ0OiA2cHg7XG4gICAgY3Vyc29yOiBwb2ludGVyO1xuICB9XG59XG5cbi5uYXYtdGFicyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC5uYXYtbGluayB7XG4gICAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgIHRyYW5zaXRpb246IGNvbG9yIDAuMnM7XG5cbiAgICAmOmhvdmVyIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgIH1cblxuICAgICYuYWN0aXZlIHtcbiAgICAgIGNvbG9yOiAjYTQyMTM4O1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgICAgIGJvcmRlci1jb2xvcjogdHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgI2E0MjEzODtcbiAgICAgIGJvcmRlci1ib3R0b206IDNweCBzb2xpZCAjYTQyMTM4O1xuICAgIH1cbiAgfVxufVxuXG4uc3Bpbm5lci1ib3JkZXIge1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xufVxuXG4ucmVxdWlyZWQtc2lnbntcbiAgZm9udC1zaXplOiAyMHB4O1xufVxuXG4ucmFkaW9CdXR0b257XG4gIGRpc3BsYXk6IGZsZXhcbn1cblxuLm51bWJlclNlbGVjdGlvbntcbiAgbWFyZ2luLWxlZnQ6IDEwJTtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BuShiftSetupComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-bu-shift-setup',
templateUrl: './bu-shift-setup.component.html',
styleUrls: ['./bu-shift-setup.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_users_service_company_setup_company_setup_service__WEBPACK_IMPORTED_MODULE_7__["CompanySetupService"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_8__["ShiftSchedulerService"] }]; }, { isEditBu: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], AddSkill: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['AddSkill', { static: true }]
}], AddSpeciality: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['AddSpeciality', { static: true }]
}], AddLocations: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['AddLocations', { static: true }]
}] }); })();
/***/ }),
/***/ "tRGY":
/*!*************************************************!*\
!*** ./src/app/core/model/table-param.model.ts ***!
\*************************************************/
/*! exports provided: tableParam, tableParamLog, transportTableParam */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tableParam", function() { return tableParam; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tableParamLog", function() { return tableParamLog; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transportTableParam", function() { return transportTableParam; });
const tableParam = {
draw: 0,
columns: [],
order: [{
column: 0,
dir: 'desc'
}],
start: 0,
length: 10,
search: {
value: '',
regex: false
}
};
const tableParamLog = {
draw: 0,
columns: [],
order: [{
column: 0,
dir: 'desc'
}],
start: 0,
length: 10,
search: {
value: '',
regex: false
}
};
const transportTableParam = {
page: 1,
sortBy: 'asc',
limit: 10,
sortWith: '_id',
search: ""
};
/***/ }),
/***/ "tx93":
/*!**********************************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/form-manage/admin-create-indent/admin-create-indent.ts ***!
\**********************************************************************************************************/
/*! exports provided: AdminCreateIndentComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AdminCreateIndentComponent", function() { return AdminCreateIndentComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! papaparse */ "NpuA");
/* harmony import */ var papaparse__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(papaparse__WEBPACK_IMPORTED_MODULE_4__);
/* harmony import */ var xlsx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! xlsx */ "JcrP");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/custom-form/custom-form.service */ "AYNl");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/form-field */ "kmnG");
/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/material/input */ "qFsG");
/* harmony import */ var _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/material/autocomplete */ "/1cH");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/material/core */ "FKr1");
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/material/button */ "bTqV");
/* harmony import */ var _angular_material_icon__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/material/icon */ "NFeN");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/cdk/drag-drop */ "5+WD");
/* harmony import */ var _indent_draft_list_indent_draft_list__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../indent-draft-list/indent-draft-list */ "T5ea");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../../../../../../shared/pipes/safe.pipe */ "ITC6");
function AdminCreateIndentComponent_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminCreateIndentComponent_mat_option_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-option", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const id_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", id_r7.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate2"](" ", id_r7.name, " (", id_r7.staffId, ") ");
} }
function AdminCreateIndentComponent_div_31_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminCreateIndentComponent_div_31_div_8_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_8_Template(rf, ctx) { if (rf & 1) {
const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "textarea", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_8_Template_textarea_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r32); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r8.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminCreateIndentComponent_div_31_div_8_div_3_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("maxlength", !!(item_r8 == null ? null : item_r8.maxlength) ? item_r8 == null ? null : item_r8.maxlength : 500);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r8.answer)("disabled", ctx_r11.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r11.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_9_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r36 == null ? null : option_r36.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminCreateIndentComponent_div_31_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminCreateIndentComponent_div_31_div_9_div_2_div_1_Template, 2, 1, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_9_div_2_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r41); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r8.answer = $event; })("change", function AdminCreateIndentComponent_div_31_div_9_div_2_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r41); const option_r36 = ctx.$implicit; const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r42.setChild(item_r8, option_r36); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r36 = ctx.$implicit;
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r36.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r36._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", item_r8._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r36)("ngModel", item_r8.answer)("disabled", ctx_r34.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r36.value);
} }
function AdminCreateIndentComponent_div_31_div_9_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_9_div_2_Template, 5, 7, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_9_div_4_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r8.optionsView == 0 ? "image-container-vertically" : "image-container-horizontally");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.options);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r12.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_10_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r49 == null ? null : option_r49.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminCreateIndentComponent_div_31_div_10_div_2_Template(rf, ctx) { if (rf & 1) {
const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminCreateIndentComponent_div_31_div_10_div_2_div_1_Template, 2, 1, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_10_div_2_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r8.answer = $event; })("change", function AdminCreateIndentComponent_div_31_div_10_div_2_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r54); const option_r49 = ctx.$implicit; const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r55.setChild(item_r8, option_r49); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r49 = ctx.$implicit;
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r49.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r49._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", item_r8._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", option_r49)("ngModel", item_r8.answer)("disabled", ctx_r47.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("for", option_r49._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r49.value);
} }
function AdminCreateIndentComponent_div_31_div_10_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_10_div_2_Template, 5, 8, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_10_div_4_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r8.optionsView == 0 ? "image-container-vertically" : "image-container-horizontally");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.options);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r13.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_11_div_2_img_2_Template(rf, ctx) { if (rf & 1) {
const _r68 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "img", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_div_31_div_11_div_2_img_2_Template_img_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r68); const i_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r8.selected = i_r63; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", option_r62.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminCreateIndentComponent_div_31_div_11_div_2_span_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", option_r62.percentage, " %");
} }
const _c0 = function (a0) { return { width: a0 }; };
const _c1 = function (a0) { return { pollingSelect: a0 }; };
function AdminCreateIndentComponent_div_31_div_11_div_2_Template(rf, ctx) { if (rf & 1) {
const _r74 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_11_div_2_img_2_Template, 1, 1, "img", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_div_31_div_11_div_2_Template_div_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r74); const option_r62 = ctx.$implicit; const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r72 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r72.selectPolling(item_r8._id, option_r62); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](7, "img", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "h4", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_div_31_div_11_div_2_Template_h4_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r74); const i_r63 = ctx.index; const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; return item_r8.selected = i_r63; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "b");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, AdminCreateIndentComponent_div_31_div_11_div_2_span_11_Template, 2, 1, "span", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r62 = ctx.$implicit;
const i_r63 = ctx.index;
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("for", option_r62._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r62.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](7, _c0, option_r62.imageSrc ? "" : "150px"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", "./assets/images/" + (option_r62.answer ? "like1" : "like0") + ".png", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](9, _c1, item_r8.selected === i_r63));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r62.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !!option_r62.percentage);
} }
function AdminCreateIndentComponent_div_31_div_11_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_11_div_2_Template, 12, 11, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_11_div_4_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r8.optionsView == 0 ? "image-container-vertically" : "image-container-horizontally");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.options);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r14.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_12_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", option_r82.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminCreateIndentComponent_div_31_div_12_div_2_Template(rf, ctx) { if (rf & 1) {
const _r86 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminCreateIndentComponent_div_31_div_12_div_2_div_1_Template, 2, 1, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_12_div_2_Template_input_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r86); const option_r82 = ctx.$implicit; return option_r82.answer = $event; })("change", function AdminCreateIndentComponent_div_31_div_12_div_2_Template_input_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r86); const option_r82 = ctx.$implicit; const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit; const ctx_r87 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r87.setChild(item_r8, option_r82); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r82 = ctx.$implicit;
const ctx_r80 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r82.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("name", option_r82._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("id", option_r82._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", option_r82.answer)("disabled", ctx_r80.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r82.value);
} }
function AdminCreateIndentComponent_div_31_div_12_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_12_div_2_Template, 5, 6, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_12_div_4_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r8.optionsView == 0 ? "image-container-vertically" : "image-container-horizontally");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.options);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r15.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_13_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", item_r8.answer, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminCreateIndentComponent_div_31_div_13_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_13_Template(rf, ctx) { if (rf & 1) {
const _r97 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_13_div_2_Template, 2, 1, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_div_31_div_13_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r97); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r95 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r95.openDialog(item_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Signature ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "mat-icon", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, AdminCreateIndentComponent_div_31_div_13_div_7_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.answer);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r16.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r16.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_14_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
const _c2 = function () { return { standalone: true }; };
const _c3 = function (a0) { return { "resize": a0 }; };
function AdminCreateIndentComponent_div_31_div_14_Template(rf, ctx) { if (rf & 1) {
const _r103 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "textarea", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_14_Template_textarea_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r103); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r8.answer = $event; })("keydown", function AdminCreateIndentComponent_div_31_div_14_Template_textarea_keydown_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r103); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r104 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r104.onInputChangeShortText($event, item_r8.isNumeric); })("paste", function AdminCreateIndentComponent_div_31_div_14_Template_textarea_paste_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r103); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r106 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r106.onPaste($event, item_r8.isNumeric, item_r8.maxlength, item_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AdminCreateIndentComponent_div_31_div_14_div_5_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r8.answer)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](6, _c2))("maxlength", item_r8.maxlength)("disabled", ctx_r17.isFormSubmitted)("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](7, _c3, item_r8.isNumeric ? "none" : "both"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r17.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_15_div_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_15_Template(rf, ctx) { if (rf & 1) {
const _r113 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "input", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_15_Template_input_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r113); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r8.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AdminCreateIndentComponent_div_31_div_15_div_5_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r8.answer)("disabled", ctx_r18.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r18.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_16_div_1_div_1_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_16_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
const _r124 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "input", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_16_div_1_div_1_Template_input_ngModelChange_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r124); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r8.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "ngb-timepicker", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_16_div_1_div_1_Template_ngb_timepicker_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r124); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r8.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, AdminCreateIndentComponent_div_31_div_16_div_1_div_1_div_11_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
const ctx_r117 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r8.answer["date"])("disabled", ctx_r117.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r8.answer["time"])("meridian", true)("hourStep", ctx_r117.hourStep)("minuteStep", ctx_r117.minuteStep);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r117.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_16_div_1_div_2_div_1_Template(rf, ctx) { if (rf & 1) {
const _r132 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "input", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_16_div_1_div_2_div_1_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r132); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit; return (item_r8.answer["date"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
const ctx_r128 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r8.answer["date"])("disabled", ctx_r128.isFormSubmitted);
} }
function AdminCreateIndentComponent_div_31_div_16_div_1_div_2_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_16_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminCreateIndentComponent_div_31_div_16_div_1_div_2_div_1_Template, 5, 2, "div", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminCreateIndentComponent_div_31_div_16_div_1_div_2_div_3_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r116 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
const ctx_r118 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r116 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r118.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_16_div_1_div_3_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_16_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
const _r141 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Time");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "ngb-timepicker", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_16_div_1_div_3_Template_ngb_timepicker_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r141); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit; return (item_r8.answer["time"] = $event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AdminCreateIndentComponent_div_31_div_16_div_1_div_3_div_6_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3).$implicit;
const ctx_r119 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", item_r8.answer["time"])("meridian", true)("hourStep", ctx_r119.hourStep)("minuteStep", ctx_r119.minuteStep);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r119.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_16_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminCreateIndentComponent_div_31_div_16_div_1_div_1_Template, 12, 7, "div", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_16_div_1_div_2_Template, 4, 2, "div", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminCreateIndentComponent_div_31_div_16_div_1_div_3_Template, 7, 5, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r116 = ctx.$implicit;
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r8.dateTime == null ? null : item_r8.dateTime.length) === 2 && option_r116 === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r8.dateTime == null ? null : item_r8.dateTime.length) === 1 && option_r116 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r116 === 2 && (item_r8.dateTime == null ? null : item_r8.dateTime.length) === 1);
} }
function AdminCreateIndentComponent_div_31_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminCreateIndentComponent_div_31_div_16_div_1_Template, 4, 3, "div", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.dateTime);
} }
function AdminCreateIndentComponent_div_31_div_17_ng_option_4_img_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "img", 97);
} if (rf & 2) {
const choice_r148 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpropertyInterpolate"]("src", choice_r148.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminCreateIndentComponent_div_31_div_17_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, AdminCreateIndentComponent_div_31_div_17_ng_option_4_img_1_Template, 1, 1, "img", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r148 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", choice_r148);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", choice_r148.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" \u00A0", choice_r148.value, " ");
} }
function AdminCreateIndentComponent_div_31_div_17_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_17_Template(rf, ctx) { if (rf & 1) {
const _r154 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "ng-select", 94, 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_17_Template_ng_select_ngModelChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r154); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r8.answer = $event; })("change", function AdminCreateIndentComponent_div_31_div_17_Template_ng_select_change_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r154); const ctx_r156 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); const item_r8 = ctx_r156.$implicit; const i_r9 = ctx_r156.index; const ctx_r155 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r155.setChild(item_r8, item_r8.answer, i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_17_ng_option_4_Template, 3, 3, "ng-option", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AdminCreateIndentComponent_div_31_div_17_div_6_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", false)("ngModel", item_r8.answer)("readonly", ctx_r20.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.options);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r20.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_18_span_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, ", ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminCreateIndentComponent_div_31_div_18_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_18_span_4_span_2_Template, 2, 0, "span", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const fileType_r160 = ctx.$implicit;
const index_r161 = ctx.index;
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", fileType_r160.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r8.options == null ? null : item_r8.options.length) != index_r161 + 1);
} }
function AdminCreateIndentComponent_div_31_div_18_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_18_Template(rf, ctx) { if (rf & 1) {
const _r166 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AdminCreateIndentComponent_div_31_div_18_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r166); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r165 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r165.fileUpload($event, item_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_18_span_4_Template, 3, 2, "span", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AdminCreateIndentComponent_div_31_div_18_div_6_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r21.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8 == null ? null : item_r8.options);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r21.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_19_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_19_Template(rf, ctx) { if (rf & 1) {
const _r173 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "ngb-rating", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("rateChange", function AdminCreateIndentComponent_div_31_div_19_Template_ngb_rating_rateChange_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r173); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; return item_r8.answer = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_19_div_4_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("max", item_r8.value)("rate", item_r8.answer)("readonly", ctx_r22.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r22.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_20_ng_option_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const choice_r177 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", choice_r177._id);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", choice_r177.name, " ");
} }
function AdminCreateIndentComponent_div_31_div_20_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_20_Template(rf, ctx) { if (rf & 1) {
const _r180 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "ng-select", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AdminCreateIndentComponent_div_31_div_20_Template_ng_select_change_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r180); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r179 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r179.multiSelect($event, item_r8); })("ngModelChange", function AdminCreateIndentComponent_div_31_div_20_Template_ng_select_ngModelChange_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r180); const ctx_r182 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r182.user = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_20_ng_option_4_Template, 2, 2, "ng-option", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AdminCreateIndentComponent_div_31_div_20_div_6_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", true)("searchable", true)("ngModel", ctx_r23.user)("clearable", true)("disabled", ctx_r23.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r23.typeFourteenQuestion);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r23.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_21_div_2_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r186 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", imagObj_r186.src, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function AdminCreateIndentComponent_div_31_div_21_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_21_div_2_div_2_Template, 2, 1, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const imagObj_r186 = ctx.$implicit;
const ctx_r184 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("cdkDragDisabled", ctx_r184.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", imagObj_r186.src);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](imagObj_r186.value);
} }
function AdminCreateIndentComponent_div_31_div_21_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_21_Template(rf, ctx) { if (rf & 1) {
const _r191 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("cdkDropListDropped", function AdminCreateIndentComponent_div_31_div_21_Template_div_cdkDropListDropped_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r191); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r190 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r190.drop($event, item_r8); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, AdminCreateIndentComponent_div_31_div_21_div_2_Template, 6, 3, "div", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_div_21_div_4_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r8.images);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r24.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_22_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminCreateIndentComponent_div_31_div_22_div_3_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r25.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_23_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, AdminCreateIndentComponent_div_31_div_23_div_3_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r26.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
} }
function AdminCreateIndentComponent_div_31_div_24_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 117);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 118);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r205 = ctx.$implicit;
const j_r206 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("left", item_r205 == null ? null : item_r205.coordinates == null ? null : item_r205.coordinates.x, "%")("top", item_r205 == null ? null : item_r205.coordinates == null ? null : item_r205.coordinates.y, "%");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](j_r206 + 1);
} }
function AdminCreateIndentComponent_div_31_div_24_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Answer Explanation:");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 1, item_r8 == null ? null : item_r8.explanation), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_31_div_24_div_10_tr_13_td_5_Template(rf, ctx) { if (rf & 1) {
const _r214 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "td", 126);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "img", 127);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_div_31_div_24_div_10_tr_13_td_5_Template_img_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r214); const index_r210 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r212 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4); return ctx_r212.conditionQuestionDelete(index_r210); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function AdminCreateIndentComponent_div_31_div_24_div_10_tr_13_Template(rf, ctx) { if (rf & 1) {
const _r216 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td", 123);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "input", 124);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ngModelChange", function AdminCreateIndentComponent_div_31_div_24_div_10_tr_13_Template_input_ngModelChange_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r216); const field_r209 = ctx.$implicit; return field_r209.value = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AdminCreateIndentComponent_div_31_div_24_div_10_tr_13_td_5_Template, 2, 0, "td", 125);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r209 = ctx.$implicit;
const index_r210 = ctx.index;
const ctx_r208 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](index_r210 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", field_r209.value)("disabled", ctx_r208.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r208.typeSixteenImageField.length >= 1);
} }
function AdminCreateIndentComponent_div_31_div_24_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 119);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "strong", 120);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Spot descriptions");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "table", 121);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 122);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "SNO");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "DESCRIPTIONS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, AdminCreateIndentComponent_div_31_div_24_div_10_tr_13_Template, 6, 4, "tr", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r203 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r203.typeSixteenImageField);
} }
function AdminCreateIndentComponent_div_31_div_24_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 128);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " No questions to show ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
const _c4 = function (a0) { return { position: a0 }; };
function AdminCreateIndentComponent_div_31_div_24_Template(rf, ctx) { if (rf & 1) {
const _r219 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_div_31_div_24_Template_div_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r219); const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r217 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r217.openPopup(item_r8.imageSrc); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "i", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "img", 112, 113);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_div_31_div_24_Template_img_click_4_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r219); const i_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().index; const ctx_r220 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r220.onImageClick($event, ctx_r220.viewQuestions, i_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](6, AdminCreateIndentComponent_div_31_div_24_div_6_Template, 3, 5, "div", 114);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, AdminCreateIndentComponent_div_31_div_24_div_9_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, AdminCreateIndentComponent_div_31_div_24_div_10_Template, 14, 1, "div", 115);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, AdminCreateIndentComponent_div_31_div_24_div_11_Template, 2, 0, "div", 116);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngStyle", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](6, _c4, ctx_r27.isPopupOpen ? "sticky" : "relative"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", item_r8.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r27.typeSixteenImageField);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r27.isFormSubmitted && (item_r8 == null ? null : item_r8.explanation));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r27.typeSixteenImageField.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r27.viewQuestions.length == 0);
} }
function AdminCreateIndentComponent_div_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "strong", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, AdminCreateIndentComponent_div_31_span_4_Template, 2, 0, "span", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](6, "p", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](7, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, AdminCreateIndentComponent_div_31_div_8_Template, 4, 4, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, AdminCreateIndentComponent_div_31_div_9_Template, 5, 3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, AdminCreateIndentComponent_div_31_div_10_Template, 5, 3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, AdminCreateIndentComponent_div_31_div_11_Template, 5, 3, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, AdminCreateIndentComponent_div_31_div_12_Template, 5, 3, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, AdminCreateIndentComponent_div_31_div_13_Template, 8, 3, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, AdminCreateIndentComponent_div_31_div_14_Template, 6, 9, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, AdminCreateIndentComponent_div_31_div_15_Template, 6, 3, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, AdminCreateIndentComponent_div_31_div_16_Template, 3, 1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, AdminCreateIndentComponent_div_31_div_17_Template, 7, 7, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, AdminCreateIndentComponent_div_31_div_18_Template, 7, 3, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, AdminCreateIndentComponent_div_31_div_19_Template, 5, 4, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, AdminCreateIndentComponent_div_31_div_20_Template, 7, 7, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, AdminCreateIndentComponent_div_31_div_21_Template, 5, 2, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](22, AdminCreateIndentComponent_div_31_div_22_Template, 4, 1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, AdminCreateIndentComponent_div_31_div_23_Template, 4, 1, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, AdminCreateIndentComponent_div_31_div_24_Template, 12, 8, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r8 = ctx.$implicit;
const i_r9 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r9 + 1, "\u00A0 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.required);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](7, 20, item_r8 == null ? null : item_r8.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r8.type === 16);
} }
function AdminCreateIndentComponent_div_32_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 129);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "p", 130);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](2, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHtml", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](2, 1, (ctx_r4.selectedModule == null ? null : ctx_r4.selectedModule.formId == null ? null : ctx_r4.selectedModule.formId.createIndentDescription) || ""), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
} }
function AdminCreateIndentComponent_div_45_Template(rf, ctx) { if (rf & 1) {
const _r224 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 131);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 132);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "SUBMISSION LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 133);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "indent-draft-list", 134);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("onSave", function AdminCreateIndentComponent_div_45_Template_indent_draft_list_onSave_6_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r224); const ctx_r223 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r223.onSave($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("submissionList", ctx_r6.submissionList)("customFormId", ctx_r6.customFormId);
} }
class AdminCreateIndentComponent {
constructor(customFormService, toastService, centralBuilderService) {
this.customFormService = customFormService;
this.toastService = toastService;
this.centralBuilderService = centralBuilderService;
this.formData = null; //{title, customFormId}
this.serviceName = null;
this.staffId = null;
this.customFormId = null;
this.moduleId = null;
this.questionData = [];
this.htmlData = [];
this.viewQuestions = [];
this.isModuleView = false;
this.questions = [];
this.submissionList = [];
this.isLoader = false;
this.filteredStaffIds = [];
this.isDataSubmitted = false;
this.fileToUpload = null;
this.jsonData = [];
this.openManage = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.staffIdControl = new _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControl"]();
}
onStaffIdChange(event) {
const input = event.target.value;
if (!input) {
this.filteredStaffIds = [];
}
}
fetchStaffIds(query) {
return this.customFormService.searchUserByText(query);
}
setChild(question, answer, index) {
if (question.type == 11 && this.questionData[index]) {
this.questionData[index].answer = answer;
this.questionData[index].isVisibleList =
!this.questionData[index].isVisibleList;
}
this.checkQuestions(question, answer._id);
}
checkQuestions(question, a) {
// let q = question._id;
// const filteredData = this.questions
// ?.filter(
// v =>
// !this.hasParent(v) &&
// v?.conditionalQuestions?.some(
// c => c.questionId?._id === q && c.optionId?._id === a
// )
// );
// const filteredQuestions = filteredData?.map(c => {
// c["cQuestion"] = q;
// c["cOption"] = a;
// return JSON.parse(JSON.stringify(c));
// });
// if (question.type == 5) {
// setTimeout(() => {
// if (!question.options.filter(option => option._id === a)[0].answer) {
// let allQuestionsadded = filteredQuestions.map(v => v._id);
// let questionsNeedToDelete = this.viewQuestions?.reduce((prev, curr, i) => {
// return allQuestionsadded.includes(curr._id) ? prev.concat(i) : prev;
// }, []);
// questionsNeedToDelete.sort((a, b) => b - a);
// questionsNeedToDelete.forEach(v => {
// this.viewQuestions.splice(v, 1);
// })
// } else {
// const index = this.viewQuestions?.findIndex(ques => ques._id == q) + 1;
// this.viewQuestions.splice(index, 0, ...filteredQuestions);
// }
// this.viewQuestions = this.viewQuestions?.reduce((prev, curr, i) => {
// const index = prev.findIndex(v => v._id === curr._id);
// return -1 === index ? prev.concat(curr) : prev;
// }, []);
// }, 100);
// } else {
// setTimeout(() => {
// this.viewQuestions = this.viewQuestions?.filter(ques =>
// "cQuestion" in ques ? ques.cQuestion !== q : true
// );
// const index = this.viewQuestions.findIndex(ques => ques._id == q) + 1;
// this.viewQuestions.splice(index, 0, ...filteredQuestions);
// this.viewQuestions = this.viewQuestions.reduce((prev, curr, i) => {
// const index = prev.findIndex(v => v._id === curr._id);
// return -1 === index ? prev.concat(curr) : prev;
// }, []);
// })
// }
}
multiSelect(value, question) {
question.answer = value === null || value === void 0 ? void 0 : value.map((x) => {
var _a, _b;
if ((_a = this.typeFourteenQuestion) === null || _a === void 0 ? void 0 : _a.find((qus) => qus._id == x)) {
return (_b = this.typeFourteenQuestion) === null || _b === void 0 ? void 0 : _b.find((qus) => qus._id == x);
}
});
}
getNominateUserType(questionId) {
let finalData = {
questionId: questionId,
};
this.centralBuilderService.getNominateUser(finalData).subscribe((data) => {
this.setDropdown(data.data, questionId);
});
}
setDropdown(data, questionId) {
this.typeFourteenQuestion = (data === null || data === void 0 ? void 0 : data.items) || [];
this.questionIDFourteen = questionId;
}
fileUpload(event, question) {
var _a;
let typeList = ((_a = question.options) === null || _a === void 0 ? void 0 : _a.map((data) => {
return data.value.toLowerCase();
})) || [];
if (event.target.files && event.target.files.length) {
const file = event.target.files[0];
let fileType = file.name.split('.');
let fileExe = (fileType === null || fileType === void 0 ? void 0 : fileType.length) ? fileType[fileType.length - 1].toLowerCase()
: null;
if (fileExe && (typeList === null || typeList === void 0 ? void 0 : typeList.includes(fileExe))) {
var useraddData = new FormData();
useraddData.append('file', file);
const fileUpload = this.customFormService
.uploadFiles(useraddData)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
question.answer = {
url: (data === null || data === void 0 ? void 0 : data.filePath) || null,
fileName: file.name,
};
}, (error) => {
this.toastService.error((error === null || error === void 0 ? void 0 : error.message) || 'File upload error');
});
}
else {
this.toastService.error('Only this format are accecpted', typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
// }
}
else {
this.toastService.error('Only this format are accecpted', typeList === null || typeList === void 0 ? void 0 : typeList.toString());
}
}
ngOnInit() {
this.staffIdControl.valueChanges
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(300), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])((value) => value !== null && value.trim() !== ''), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["switchMap"])((value) => this.fetchStaffIds(value).pipe(
// Handle errors within the inner observable to keep the stream alive
Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["catchError"])((error) => {
console.error('Error fetching staff IDs', error);
// Return an empty array to clear results
return Object(rxjs__WEBPACK_IMPORTED_MODULE_6__["of"])({ data: [] });
}))))
.subscribe(({ data }) => {
this.filteredStaffIds = data; // Will be empty on error
});
}
onOptionSelected(event) {
const selectedStaffId = event.option.value;
this.staffId = selectedStaffId;
}
ngOnChanges(changes) {
if (changes.formData) {
this.formData = changes.formData.currentValue;
this.serviceName = this.formData.title;
this.customFormId = this.formData.customFormId;
this.moduleId = this.formData.moduleId;
this.getQuestion();
}
}
getQuestion() {
this.isLoader = true;
this.customFormService
.getQuestionList(this.customFormId, this.moduleId, 'submit')
.subscribe(({ data }) => {
var _a, _b;
// pending
this.questionData = data.sections;
this.isModuleView = true;
this.selectedModule = data || null;
this.sectionList = this.selectedModule.sections || [];
let sectionList = this.selectedModule.sections;
this.firstSection = (_a = sectionList[0]) === null || _a === void 0 ? void 0 : _a.sectionName;
for (let i = 0; i < sectionList.length; i++) {
const section = sectionList[0];
sectionList[0].questions =
section.questions.filter((v) => 7 !== v.type) || [];
this.viewQuestions =
sectionList[0].questions.filter((x) => 0 === x.conditionalQuestions.length) || [];
}
let typeFourteen = null;
(_b = this.viewQuestions) === null || _b === void 0 ? void 0 : _b.map((item) => {
item.answer = null;
if (item.type === 10) {
item.answer = {};
item.answer['date'] = null;
item.answer['time'] = null;
}
if (item.type === 14) {
typeFourteen = item._id;
}
if (item.type === 15) {
item === null || item === void 0 ? void 0 : item.options.map((final, index) => {
item['images'][index] = {
src: final.imageSrc,
value: final.value,
option: final._id,
};
});
}
});
typeFourteen && this.getNominateUserType(typeFourteen);
this.selectedModule.sections = sectionList;
this.questions = sectionList;
this.isLoader = false;
}, (error) => {
this.isLoader = false;
});
}
openDialog(question) {
// Handle the logic for opening a signature dialog or similar
}
saveDetails() {
this.isLoader = true;
let isError = false;
if (!this.staffId) {
this.toastService.error('Select name of staff to continue');
this.isLoader = false;
return;
}
this.viewQuestions.forEach((question) => {
var _a;
if (question.isNumeric && question.type === 8) {
isError =
((_a = question.answer) === null || _a === void 0 ? void 0 : _a.length) !== question.maxlength
? 'Please enter valid postal code'
: false;
}
});
if (isError) {
this.toastService.error(isError);
this.isLoader = false;
return;
}
const answer = this.viewQuestions.map((item) => {
var _a, _b, _c;
return {
sectionId: item.sectionId,
questionId: item._id,
option: ((_a = item.answer) === null || _a === void 0 ? void 0 : _a._id) || ((_b = item.answer) === null || _b === void 0 ? void 0 : _b.option),
value: ((_c = item.answer) === null || _c === void 0 ? void 0 : _c.value) || item.answer,
type: item.type,
required: item.required,
};
});
if (answer.some((v) => !v.value && v.required)) {
this.toastService.error('Answer all Mandatory Question');
this.isLoader = false;
return;
}
let submitList = [];
this.submissionList.forEach((data) => {
var _a;
const element = data === null || data === void 0 ? void 0 : data.finalAnswers;
if (element[1].value == this.staffId ||
(element[1].value == this.staffId &&
((_a = answer[0]) === null || _a === void 0 ? void 0 : _a.value) === element[0].value))
submitList.push('Test');
// });
});
if (submitList.length > 0) {
this.toastService.error('Duplicate submission not allowed!');
this.isLoader = false;
return;
}
const dataObj = {
customFormId: this.customFormId,
staffId: this.staffId,
answers: answer,
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
};
this.customFormService.indentDraft(dataObj).subscribe(({ data }) => {
this.submissionList = [...this.submissionList, data];
this.toastService.success('Answer submitted successfully');
this.isLoader = false;
this.viewQuestions.forEach((item) => {
item.answer = '';
});
this.staffIdControl.reset();
this.staffId = null;
this.filteredStaffIds = [];
this.staffIdControl.setValue('');
}, (error) => {
var _a, _b;
this.toastService.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message) || 'Something went wrong, Try again');
this.isLoader = false;
});
}
onInputChangeShortText(event, isNumeric) {
if (isNumeric) {
// Allow only numeric keys, backspace, tab, arrow keys, and delete
const allowedKeys = [
'Backspace',
'Tab',
'ArrowLeft',
'ArrowRight',
'Delete',
];
// Check if the key pressed is a number (0-9) or allowed control keys
if (!allowedKeys.includes(event.key) &&
!(event.key >= '0' && event.key <= '9')) {
// Allow Ctrl+V or Cmd+V for paste operation
if (!(event.ctrlKey && event.key === 'v') &&
!(event.metaKey && event.key === 'v')) {
event.preventDefault();
}
}
}
}
onPaste(event, isNumeric, len, item) {
var _a;
if (isNumeric) {
let pastedData = ((_a = event.clipboardData) === null || _a === void 0 ? void 0 : _a.getData('text')) || '';
pastedData = pastedData.trim();
pastedData = pastedData.replace(/^'|"|'$/g, ''); // Remove extra quotes
// Allow only numeric pasted data
if (!/^\d+$/.test(pastedData)) {
event.preventDefault(); // Prevent non-numeric characters
}
else {
item.answer = pastedData;
}
}
}
onSave(event) {
this.isFormSubmitted = event.isDataSubmitted;
this.staffIdControl.disable();
}
goToManage() {
this.openManage.emit(true);
}
importFile() { }
// Store the selected file
importBookingFile(files) {
this.fileToUpload = files.item(0);
}
// Upload and process the CSV file
importBookingData(fileInput) {
var _a;
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (!this.fileToUpload) {
this.toastService.error('Please select a file first!');
return;
}
const fileExtension = (_a = this.fileToUpload.name.split('.').pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
// Validate the file format
if (!['xlsx', 'xls'].includes(fileExtension || '')) {
this.toastService.error('Invalid file format. Please upload an Excel file.');
return;
}
// Read the file as an array buffer
const reader = new FileReader();
reader.onload = (event) => {
const data = new Uint8Array(event.target.result);
const workbook = xlsx__WEBPACK_IMPORTED_MODULE_5__["read"](data, { type: 'array' });
// Process the first sheet
const firstSheetName = workbook.SheetNames[0];
const worksheet = workbook.Sheets[firstSheetName];
// Convert sheet data to JSON
const excelData = xlsx__WEBPACK_IMPORTED_MODULE_5__["utils"].sheet_to_json(worksheet, { defval: '' });
// Further process the data as needed
this.processImportedData(excelData, fileInput);
};
reader.readAsArrayBuffer(this.fileToUpload);
});
}
processImportedData(csvtoJSON, fileInput) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
const emptyValueRow = this.checkForEmptyOrMissingValues(csvtoJSON);
if (emptyValueRow.length) {
this.toastService.error('Invalid records in the import file. Please check and retry.');
fileInput.value = '';
return;
}
const hasDuplicates = csvtoJSON.reduce((acc, item) => {
if (acc.seen.has(item['staff Id'])) {
acc.duplicateFound = true;
}
else {
acc.seen.add(item['staff Id']);
}
return acc;
}, { seen: new Set(), duplicateFound: false }).duplicateFound;
if (hasDuplicates) {
this.toastService.error('Duplicate staff IDs found. Please check and try again.');
fileInput.value = '';
return;
}
const staffIdsArr1 = this.submissionList
.map((obj) => {
const staffAnswer = obj.finalAnswers.find((answer) => answer.title === 'Staff Id');
return (staffAnswer === null || staffAnswer === void 0 ? void 0 : staffAnswer.value) || null;
})
.filter(Boolean); // Remove null/undefined values
if (staffIdsArr1 === null || staffIdsArr1 === void 0 ? void 0 : staffIdsArr1.length) {
// Extract staff Ids from arr2
const staffIdsArr2 = csvtoJSON.map((obj) => obj['staff Id']);
// Use a Set to check for common elements
const staffIdsSet = new Set(staffIdsArr1);
const hasCommonStaffId = staffIdsArr2.some((id) => staffIdsSet.has(id));
if (hasCommonStaffId) {
this.toastService.error('Some staff IDs already exist in the draft list. Please remove them from the draft or the CSV file.');
fileInput.value = '';
return;
}
}
const payload = {
customFormId: this.customFormId,
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
userInfo: this.generatePayload(csvtoJSON, this.viewQuestions),
};
const hasError = payload.userInfo.some((item) => item.isError);
if (hasError) {
this.toastService.error('Incorrect data found in the file. Please review and retry.');
fileInput.value = '';
return;
}
let isError = false;
payload.userInfo.forEach((item) => {
item.answers.forEach((question) => {
var _a;
if (question.type === 8 && question.isNumeric && !isError) {
isError =
!this.isNumeric(question.value) ||
((_a = question.value) === null || _a === void 0 ? void 0 : _a.toString().length) !== question.maxlength
? 'Please enter valid postal code'
: false;
}
delete question.isNumeric;
});
});
if (isError) {
this.toastService.error(isError);
return;
}
this.customFormService.indentDraftMultiple(payload).subscribe(({ data }) => {
this.submissionList = [...this.submissionList, ...data];
this.toastService.success('Imported data successfully');
this.isLoader = false;
this.viewQuestions.forEach((item) => {
item.answer = '';
});
this.staffIdControl.reset();
this.staffId = null;
fileInput.value = '';
}, (error) => {
var _a, _b;
this.toastService.error((_b = (_a = error === null || error === void 0 ? void 0 : error.error) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.message);
this.isLoader = false;
fileInput.value = '';
});
});
}
isNumeric(str) {
return /^[0-9]+$/.test(str);
}
generatePayload(arr1, arr2) {
let isError = false;
const result = arr1.map((staff) => {
const answers = Object.keys(staff).reduce((acc, key) => {
const questionObj = arr2.find((q) => q.question.includes(key));
if (questionObj) {
let option = null;
if (questionObj.type === 11) {
const matchingOption = questionObj.options.find((opt) => opt.value === staff[key].trim());
option = matchingOption ? matchingOption._id : null;
if (!option) {
isError = true;
}
}
acc.push({
sectionId: questionObj.sectionId,
questionId: questionObj._id,
option: option,
value: staff[key],
type: questionObj.type,
required: questionObj.required,
isNumeric: questionObj.isNumeric,
maxlength: questionObj.maxlength,
});
}
return acc;
}, []);
return {
staffId: staff['staff Id'],
answers,
isError,
};
});
return result;
}
checkForEmptyOrMissingValues(data) {
const invalidRows = data.filter((row, index) => {
// Check if any field is empty or missing
return Object.values(row).some((value) => value === null || value === '' || value === undefined);
});
return invalidRows; // Return rows with invalid fields
}
// Convert CSV to JSON using PapaParse
importDataFromCSV(csvText) {
const parsedData = papaparse__WEBPACK_IMPORTED_MODULE_4__["parse"](csvText, {
header: true,
skipEmptyLines: true,
});
return parsedData.data;
}
exportFileFormat() {
const newColumn = this.viewQuestions.reduce((acc, item) => {
var _a;
const key = item.question.replace(/<[^>]+>/g, '').trim(); // Create a clean key by removing HTML tags
acc[key] = item.options[0] ? (_a = item.options[0]) === null || _a === void 0 ? void 0 : _a.value : '123456'; // Set the key with the appropriate value
return acc; // Return the accumulator for the next iteration
}, {});
const columns = [Object.assign({ 'staff Id': 'test200' }, newColumn)];
this.downloadFile(columns, `format-file-${this.serviceName}`);
}
downloadFile(data, filename = 'format-file') {
const worksheet = xlsx__WEBPACK_IMPORTED_MODULE_5__["utils"].json_to_sheet(data);
// Set all cells globally to text format
for (const cellAddress in worksheet) {
if (cellAddress[0] === '!')
continue; // Skip meta properties like !ref, !cols, etc.
const cell = worksheet[cellAddress];
if (cell) {
cell.t = 's'; // Set cell type to string
cell.z = '@'; // Set cell format to text
}
}
// Set column widths (optional)
const headers = Object.keys(data[0] || {});
const columnWidth = 20;
worksheet['!cols'] = headers.map(() => ({ wch: columnWidth }));
const workbook = xlsx__WEBPACK_IMPORTED_MODULE_5__["utils"].book_new();
xlsx__WEBPACK_IMPORTED_MODULE_5__["utils"].book_append_sheet(workbook, worksheet, 'Sheet1');
// Write the Excel file
const excelData = xlsx__WEBPACK_IMPORTED_MODULE_5__["write"](workbook, { bookType: 'xlsx', type: 'array' });
const blob = new Blob([excelData], { type: 'application/octet-stream' });
const url = window.URL.createObjectURL(blob);
const a = document.createElement('a');
a.setAttribute('href', url);
a.setAttribute('download', `${filename}.xlsx`);
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
}
convertToCsv(objArray) {
const delimiter = ',';
const headers = Object.keys(objArray[0]); // Get headers from the first object
const csvRows = objArray.map((obj) => {
return headers
.map((header) => {
const value = obj[header] ? obj[header] : ''; // Handle undefined or null values
return `"${value}"`; // Wrap values in quotes
})
.join(delimiter); // Join columns with delimiter
});
return `${headers.join(delimiter)}\n${csvRows.join('\n')}`; // Join rows with new lines
}
}
AdminCreateIndentComponent.ɵfac = function AdminCreateIndentComponent_Factory(t) { return new (t || AdminCreateIndentComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__["CustomFormService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_9__["CentralBuilderService"])); };
AdminCreateIndentComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: AdminCreateIndentComponent, selectors: [["admin-create-indent"]], inputs: { formData: "formData" }, outputs: { openManage: "openManage" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]], decls: 46, vars: 13, consts: [[1, "card", "mt-3"], [1, "align-items-center", "bg-theme", "card-header", "d-flex", "justify-content-between"], [1, "btn", "btn-info", 3, "click"], ["style", "\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1050;\n background-color: rgba(0, 0, 0, 0.5);\n overflow: auto;\n ", 4, "ngIf"], [1, "card"], [1, "card-body"], [1, "row"], [1, "form-group", "col-md-4"], ["for", "service-name"], ["type", "text", "id", "service-name", "disabled", "", "readonly", "", 1, "form-control", 3, "value"], ["for", "staff-id"], [1, "full-width"], ["matInput", "", "placeholder", "Search by staffId", 2, "border", "0", 3, "formControl", "matAutocomplete", "input"], [3, "optionSelected"], ["auto", "matAutocomplete"], [3, "value", 4, "ngFor", "ngForOf"], [1, "bg-theme", "card-header", "pt-4"], [2, "display", "inline"], [1, "mr-1"], [1, "d-flex", "box", "col-sm-12"], [1, "box", "col-sm-6"], ["class", "box col-sm-12", 4, "ngFor", "ngForOf"], ["class", "box col-sm-6", "style", "border: 1px solid #3fce3f; border-style: double; padding: 10px;", 4, "ngIf"], [1, "my-4"], [1, "btn", "btn-success", 3, "disabled", "click"], [2, "float", "right"], [1, "btn", "btn-primary", "mx-2", 3, "disabled", "click"], ["type", "file", "name", "excel", "accept", ".xlsx, .xls", 1, "btn-info", "rounded", "mx-2", 3, "disabled", "change"], ["fileInput", ""], [1, "btn", "btn-secondary", "mx-2", 3, "disabled", "click"], ["class", "card", 4, "ngIf"], [2, "position", "fixed", "top", "0", "right", "0", "bottom", "0", "left", "0", "z-index", "1050", "background-color", "rgba(0, 0, 0, 0.5)", "overflow", "auto"], [1, "pageLoading", 2, "text-align", "center", "color", "white", "font-size", "700%"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [3, "value"], [1, "box", "col-sm-12"], [1, "d-flex", "pt-2"], ["class", "required", 4, "ngIf"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], [4, "ngIf"], ["class", "", 4, "ngIf"], ["class", "card-body", 4, "ngIf"], ["class", "box-body-16", 4, "ngIf"], [1, "required"], [1, "box-body"], ["matInput", "", "rows", "2", 2, "width", "100%", 3, "ngModel", "maxlength", "disabled", "ngModelChange"], [1, "form-group", "answers-options", 3, "ngClass"], ["class", "box", 4, "ngFor", "ngForOf"], [1, "box"], ["type", "radio", 1, "card-header-flexi", 3, "id", "name", "value", "ngModel", "disabled", "ngModelChange", "change"], ["for", "consolidated"], ["crossorigin", "anonymous", "id", "4", "alt", "Image Preview", 1, "image-size", 3, "src"], [1, ""], [3, "ngClass"], [3, "for"], ["crossorigin", "anonymous", "alt", "Image Preview", 1, "image-size", 3, "src"], [2, "overflow", "auto", 3, "ngClass"], ["class", "question-radio-inline box", 4, "ngFor", "ngForOf"], [1, "question-radio-inline", "box"], [1, "card", 2, "border-radius", "10px", 3, "for"], ["class", "image-size", "crossorigin", "anonymous", "alt", "", "style", "border-radius: 10px 10px 0px 0px", 3, "src", "click", 4, "ngIf"], [1, "card-container", 2, "background-color", "#6eb96e", "display", "flex", "justify-content", "space-between", "border-radius", "0px 0px 10px 10px", "padding", "5px", 3, "ngStyle", "click"], ["crossorigin", "anonymous", "alt", "", "height", "10px", 2, "width", "12%", "min-width", "30px", "height", "1%", "margin", "3px", 3, "src"], [2, "text-align", "center", 3, "ngClass", "click"], ["class", "text-success", 4, "ngIf"], ["crossorigin", "anonymous", "alt", "", 1, "image-size", 2, "border-radius", "10px 10px 0px 0px", 3, "src", "click"], [1, "text-success"], ["type", "checkbox", 3, "ngModel", "name", "id", "disabled", "ngModelChange", "change"], ["id", "4", "alt", "Image Preview", 1, "image-size", 3, "src"], ["class", "signature-div", 4, "ngIf"], ["mat-button", "", 1, "mat-sign-button", 3, "disabled", "click"], ["aria-hidden", "false", "aria-label", "Example home icon", "fontIcon", "home"], [1, "signature-div"], [1, "signature-img", 3, "src"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "box", "form-group", "flex-fill", 2, "width", "100%"], ["rows", "2", 1, "form-control", 2, "width", "100%", 3, "ngModel", "ngModelOptions", "maxlength", "disabled", "ngStyle", "ngModelChange", "keydown", "paste"], [1, "box", "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["type", "number", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], [4, "ngFor", "ngForOf"], ["class", "box", 4, "ngIf"], ["class", "box form-group", 4, "ngIf"], ["style", "margin-left: 10px", "class", "box", 4, "ngIf"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["for", "my-input"], ["id", "my-input", "type", "date", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], [1, "box", 2, "margin-left", "10px"], [3, "ngModel", "meridian", "hourStep", "minuteStep", "ngModelChange"], [1, "box", "form-group"], ["class", "d-flex flex-wrap answers-options", 4, "ngIf"], [1, "box", "form-group", "ng-select-img-container"], ["placeholder", "Select Options", "bindLabel", "value", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "readonly", "ngModelChange", "change"], ["mySelect", ""], ["crossorigin", "anonymous", "class", "dropdown-img", 3, "src", 4, "ngIf"], ["crossorigin", "anonymous", 1, "dropdown-img", 3, "src"], ["id", "my-input", "type", "file", 1, "form-control-file", 3, "disabled", "change"], [1, "d-flex"], [3, "max", "rate", "readonly", "rateChange"], [1, "col-md-6"], ["bindLabel", "name", "placeholder", "Select Users", 1, "custom", 3, "multiple", "searchable", "ngModel", "clearable", "disabled", "change", "ngModelChange"], ["cdkDropList", "", 3, "cdkDropListDropped"], ["cdkDrag", "", 3, "cdkDragDisabled", 4, "ngFor", "ngForOf"], ["cdkDrag", "", 3, "cdkDragDisabled"], [1, "img-thumbnail"], ["id", "4", "alt", "Image Preview", 1, "sequence-image", 3, "src"], [1, "box-body-16"], [3, "ngStyle"], ["ngbTooltip", "Expand", "placement", "bottom", 1, "full-icon", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-expand"], ["width", "100%", "alt", "Image Preview", 3, "src", "click"], ["myImage", ""], ["class", "circle", 3, "left", "top", 4, "ngFor", "ngForOf"], ["class", "row imgSrc", 4, "ngIf"], ["style", "text-align: center", 4, "ngIf"], [1, "circle"], [1, "text"], [1, "row", "imgSrc"], [1, "pb-3"], [1, "table"], [1, "w-20"], [1, "srNo"], ["type", "text", 1, "form-control", 3, "ngModel", "disabled", "ngModelChange"], ["class", "cancel-button", 4, "ngIf"], [1, "cancel-button"], ["alt", "", "src", "./assets/images/cancel.png", "height", "20px", "crossorigin", "anonymous", 1, "image", 3, "click"], [2, "text-align", "center"], [1, "box", "col-sm-6", 2, "border", "1px solid #3fce3f", "border-style", "double", "padding", "10px"], [3, "innerHtml"], [1, "bg-theme", "card-header"], [1, "eventTitle"], [1, "card-body", "p-0"], [3, "submissionList", "customFormId", "onSave"]], template: function AdminCreateIndentComponent_Template(rf, ctx) { if (rf & 1) {
const _r225 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, " CREATE SUBMISSION ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "button", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_Template_button_click_3_listener() { return ctx.goToManage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](5, AdminCreateIndentComponent_div_5_Template, 4, 0, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Service Name");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Staff ID*");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "mat-form-field", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "input", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("input", function AdminCreateIndentComponent_Template_input_input_17_listener($event) { return ctx.onStaffIdChange($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "mat-autocomplete", 13, 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("optionSelected", function AdminCreateIndentComponent_Template_mat_autocomplete_optionSelected_18_listener($event) { return ctx.onOptionSelected($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, AdminCreateIndentComponent_mat_option_20_Template, 2, 3, "mat-option", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "h5", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "strong", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](26, "1 ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](31, AdminCreateIndentComponent_div_31_Template, 25, 22, "div", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](32, AdminCreateIndentComponent_div_32_Template, 3, 3, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "button", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_Template_button_click_34_listener() { return ctx.saveDetails(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](37, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](39, "button", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_Template_button_click_39_listener() { return ctx.exportFileFormat(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](40, " Download Format ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](41, "input", 27, 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function AdminCreateIndentComponent_Template_input_change_41_listener($event) { return ctx.importBookingFile($event.target.files); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function AdminCreateIndentComponent_Template_button_click_43_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r225); const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](42); return ctx.importBookingData(_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](44, " Import ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](45, AdminCreateIndentComponent_div_45_Template, 7, 2, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx.serviceName);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formControl", ctx.staffIdControl)("matAutocomplete", _r1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.filteredStaffIds);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", ctx.firstSection, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.viewQuestions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.selectedModule == null ? null : ctx.selectedModule.formId == null ? null : ctx.selectedModule.formId.createIndentDescription);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx.isFormSubmitted);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.submissionList.length);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_material_form_field__WEBPACK_IMPORTED_MODULE_11__["MatFormField"], _angular_material_input__WEBPACK_IMPORTED_MODULE_12__["MatInput"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_13__["MatAutocompleteTrigger"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlDirective"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_14__["NativeElementInjectorDirective"], _angular_material_autocomplete__WEBPACK_IMPORTED_MODULE_13__["MatAutocomplete"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_material_core__WEBPACK_IMPORTED_MODULE_15__["MatOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgModel"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["MaxLengthValidator"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["RadioControlValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgStyle"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["CheckboxControlValueAccessor"], _angular_material_button__WEBPACK_IMPORTED_MODULE_16__["MatButton"], _angular_material_icon__WEBPACK_IMPORTED_MODULE_17__["MatIcon"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NumberValueAccessor"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__["NgbTimepicker"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__["NgSelectComponent"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__["ɵr"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__["NgbRating"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_20__["CdkDropList"], _angular_cdk_drag_drop__WEBPACK_IMPORTED_MODULE_20__["CdkDrag"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_18__["NgbTooltip"], _indent_draft_list_indent_draft_list__WEBPACK_IMPORTED_MODULE_21__["IndentDraftListComponent"]], pipes: [_shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_22__["SafeHtmlPipe"]], styles: [".container[_ngcontent-%COMP%] {\n width: 100%;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.header[_ngcontent-%COMP%] {\n font-size: 24px;\n font-weight: bold;\n margin-bottom: 20px;\n}\n\n.form-row[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n margin-bottom: 10px;\n}\n\n.form-group[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1;\n margin-right: 10px;\n}\n\n.form-group[_ngcontent-%COMP%]:last-child {\n margin-right: 0;\n}\n\n.form-control[_ngcontent-%COMP%] {\n width: 100%;\n padding: 8px;\n border-radius: 4px;\n border: 1px solid #ccc;\n height: 40px;\n}\n\n.mat-form-field-infix[_ngcontent-%COMP%] {\n border: 0;\n}\n\n.innerDiv[_ngcontent-%COMP%] {\n position: absolute;\n top: 50%;\n left: 50%;\n}\n\n.box-body[_ngcontent-%COMP%] {\n margin-top: 5px;\n}\n\n@media (max-width: 768px) {\n .form-row[_ngcontent-%COMP%] {\n flex-direction: column;\n }\n}\n\n\n\n.full-width[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n\n\n.mat-form-field[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.mat-input-element[_ngcontent-%COMP%] {\n border: 1px solid #ccc;\n padding: 8px;\n \n font-size: 16px;\n \n}\n\n\n\n.mat-autocomplete-panel[_ngcontent-%COMP%] {\n max-height: 300px;\n overflow-y: auto;\n}\n\n\n\n.form-group[_ngcontent-%COMP%] {\n margin-bottom: 15px;\n \n position: relative;\n}\n\nbutton[disabled][_ngcontent-%COMP%] {\n cursor: not-allowed;\n \n pointer-events: none;\n \n opacity: 0.65;\n \n}\n\n.required[_ngcontent-%COMP%] {\n color: red;\n margin-left: 4px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2FkbWluLWNyZWF0ZS1pbmRlbnQvYWRtaW4tY3JlYXRlLWluZGVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsV0FBQTtFQUNBLGlCQUFBO0VBQ0EsY0FBQTtBQUNGOztBQUVBO0VBQ0UsZUFBQTtFQUNBLGlCQUFBO0VBQ0EsbUJBQUE7QUFDRjs7QUFFQTtFQUNFLGFBQUE7RUFDQSw4QkFBQTtFQUNBLG1CQUFBO0FBQ0Y7O0FBRUE7RUFDRSxhQUFBO0VBQ0Esc0JBQUE7RUFDQSxPQUFBO0VBQ0Esa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGVBQUE7QUFDRjs7QUFFQTtFQUNFLFdBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxzQkFBQTtFQUNBLFlBQUE7QUFDRjs7QUFFQTtFQUNBLFNBQUE7QUFDQTs7QUFFQTtFQUNFLGtCQUFBO0VBQ0EsUUFBQTtFQUNBLFNBQUE7QUFDRjs7QUFNQTtFQUNFLGVBQUE7QUFIRjs7QUFNQTtFQUNFO0lBQ0Usc0JBQUE7RUFIRjtBQUNGOztBQVdBLHdDQUFBOztBQUNBO0VBQ0UsV0FBQTtBQVRGOztBQVlBLCtDQUFBOztBQUNBO0VBQ0UsV0FBQTtBQVRGOztBQVlBO0VBQ0Usc0JBQUE7RUFDQSxZQUFBO0VBQWUsbUJBQUE7RUFDZixlQUFBO0VBQXFCLHFCQUFBO0FBUHZCOztBQVlBLDZDQUFBOztBQUNBO0VBQ0UsaUJBQUE7RUFDQSxnQkFBQTtBQVRGOztBQVlBLHFEQUFBOztBQUNBO0VBQ0UsbUJBQUE7RUFBcUIsK0JBQUE7RUFDckIsa0JBQUE7QUFSRjs7QUFXQTtFQUNFLG1CQUFBO0VBQXFCLG9EQUFBO0VBQ3JCLG9CQUFBO0VBQXNCLDZDQUFBO0VBQ3RCLGFBQUE7RUFBZSxnRUFBQTtBQUxqQjs7QUFRQTtFQUNFLFVBQUE7RUFDQSxnQkFBQTtBQUxGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm0tbWFuYWdlL2FkbWluLWNyZWF0ZS1pbmRlbnQvYWRtaW4tY3JlYXRlLWluZGVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiLmNvbnRhaW5lciB7XG4gIHdpZHRoOiAxMDAlO1xuICBtYXgtd2lkdGg6IDEyMDBweDtcbiAgbWFyZ2luOiAwIGF1dG87XG59XG5cbi5oZWFkZXIge1xuICBmb250LXNpemU6IDI0cHg7XG4gIGZvbnQtd2VpZ2h0OiBib2xkO1xuICBtYXJnaW4tYm90dG9tOiAyMHB4O1xufVxuXG4uZm9ybS1yb3cge1xuICBkaXNwbGF5OiBmbGV4O1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIG1hcmdpbi1ib3R0b206IDEwcHg7XG59XG5cbi5mb3JtLWdyb3VwIHtcbiAgZGlzcGxheTogZmxleDtcbiAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgZmxleDogMTtcbiAgbWFyZ2luLXJpZ2h0OiAxMHB4O1xufVxuXG4uZm9ybS1ncm91cDpsYXN0LWNoaWxkIHtcbiAgbWFyZ2luLXJpZ2h0OiAwO1xufVxuXG4uZm9ybS1jb250cm9sIHtcbiAgd2lkdGg6IDEwMCU7XG4gIHBhZGRpbmc6IDhweDtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICBoZWlnaHQ6IDQwcHg7XG59XG5cbi5tYXQtZm9ybS1maWVsZC1pbmZpeCB7XG5ib3JkZXI6IDA7XG59XG5cbi5pbm5lckRpdiB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiA1MCU7XG4gIGxlZnQ6IDUwJTtcbn1cblxuLy8gLmJveCB7XG4vLyAgIG1hcmdpbi1ib3R0b206IDIwcHg7XG4vLyB9XG5cbi5ib3gtYm9keSB7XG4gIG1hcmdpbi10b3A6IDVweDtcbn1cblxuQG1lZGlhIChtYXgtd2lkdGg6IDc2OHB4KSB7XG4gIC5mb3JtLXJvdyB7XG4gICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgfVxuXG4gIC8vIC5mb3JtLWdyb3VwIHtcbiAgLy8gICBtYXJnaW4tcmlnaHQ6IDA7XG4gIC8vICAgbWFyZ2luLWJvdHRvbTogMTBweDtcbiAgLy8gfVxufVxuXG4vKiBFbnN1cmUgZnVsbCB3aWR0aCBvZiB0aGUgZm9ybSBmaWVsZCAqL1xuLmZ1bGwtd2lkdGgge1xuICB3aWR0aDogMTAwJTtcbn1cblxuLyogU3R5bGUgdGhlIGlucHV0IGZpZWxkIGZvciBiZXR0ZXIgYWxpZ25tZW50ICovXG4ubWF0LWZvcm0tZmllbGQge1xuICB3aWR0aDogMTAwJTtcbn1cblxuLm1hdC1pbnB1dC1lbGVtZW50IHtcbiAgYm9yZGVyOiAxcHggc29saWQgI2NjYztcbiAgcGFkZGluZzogOHB4OyAgLyogQWRqdXN0IHBhZGRpbmcgKi9cbiAgZm9udC1zaXplOiAxNnB4OyAgICAgLyogQWRqdXN0IGZvbnQgc2l6ZSAqL1xuXG4gIC8vIGxpbmUtaGVpZ2h0OiAyNHB4OyAgIC8qIEFkanVzdCBsaW5lIGhlaWdodCAqL1xufVxuXG4vKiBPcHRpb25hbDogQXV0b2NvbXBsZXRlIHBhbmVsIGFkanVzdG1lbnRzICovXG4ubWF0LWF1dG9jb21wbGV0ZS1wYW5lbCB7XG4gIG1heC1oZWlnaHQ6IDMwMHB4O1xuICBvdmVyZmxvdy15OiBhdXRvO1xufVxuXG4vKiBBZGp1c3QgcG9zaXRpb25pbmcgaW5zaWRlIHlvdXIgY3VzdG9tIGZvcm0tZ3JvdXAgKi9cbi5mb3JtLWdyb3VwIHtcbiAgbWFyZ2luLWJvdHRvbTogMTVweDsgLyogQWRqdXN0IG1hcmdpbiBpZiBuZWNlc3NhcnkgKi9cbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuXG5idXR0b25bZGlzYWJsZWRdIHtcbiAgY3Vyc29yOiBub3QtYWxsb3dlZDsgLyogQ2hhbmdlcyB0aGUgY3Vyc29yIHRvIHRoZSBkZWZhdWx0IFwibm90LWFsbG93ZWRcIiAqL1xuICBwb2ludGVyLWV2ZW50czogbm9uZTsgLyogUHJldmVudHMgYW55IGludGVyYWN0aW9uIHdpdGggdGhlIGJ1dHRvbiAqL1xuICBvcGFjaXR5OiAwLjY1OyAvKiBPcHRpb25hbDogTWFrZXMgdGhlIGJ1dHRvbiBsb29rIGRpc2FibGVkIChzZW1pLXRyYW5zcGFyZW50KSAqL1xufVxuXG4ucmVxdWlyZWQge1xuICBjb2xvcjogcmVkO1xuICBtYXJnaW4tbGVmdDogNHB4O1xufVxuXG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](AdminCreateIndentComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'admin-create-indent',
templateUrl: './admin-create-indent.html',
styleUrls: ['./admin-create-indent.scss'],
}]
}], function () { return [{ type: src_app_users_service_custom_form_custom_form_service__WEBPACK_IMPORTED_MODULE_7__["CustomFormService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_8__["ToastrService"] }, { type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_9__["CentralBuilderService"] }]; }, { formData: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], openManage: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "uA7q":
/*!*****************************************************************************************!*\
!*** ./src/app/users/pages/auth/terms-and-conditions/terms-and-conditions.component.ts ***!
\*****************************************************************************************/
/*! exports provided: TermsAndConditionsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TermsAndConditionsComponent", function() { return TermsAndConditionsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/users/service/auth/auth.service */ "PxIJ");
class TermsAndConditionsComponent {
constructor(router, route, auth) {
this.router = router;
this.route = route;
this.auth = auth;
}
ngOnInit() {
this.route.params
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])((value) => this.companyName = value.name), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["map"])((v) => v.name), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["switchMap"])((name) => this.auth.fetchCompanyId(name)))
.subscribe((res) => {
this.forgetPasswordForm.patchValue({
companyId: res.data._id,
});
});
}
backToLogin() {
this.router.navigate(['/users/login/', this.companyName]);
}
}
TermsAndConditionsComponent.ɵfac = function TermsAndConditionsComponent_Factory(t) { return new (t || TermsAndConditionsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"])); };
TermsAndConditionsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TermsAndConditionsComponent, selectors: [["app-terms-and-conditions"]], decls: 355, vars: 0, consts: [[1, "terms-body"], [1, "back-button", 3, "click"], [1, "mt-5"], [1, "main-header"], [1, "sub-header", "mt-3"], [1, "terms-para"], [1, "mt-3"]], template: function TermsAndConditionsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "a", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TermsAndConditionsComponent_Template_a_click_2_listener() { return ctx.backToLogin(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Back to Login");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h3", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Netroc Web and Mobile Application Terms of Use");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "1. Acceptance of Terms of Use");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "The following terms and conditions (these \u201CTerms of Use\u201D) govern your access to and use of our online and / ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](11, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " or mobile services, website, and software provided in connection with the Services.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "Please read these Terms of Use carefully before you start using the Service. By using our services, you accept ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](15, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, " and agree to be bound by and abide to these Terms of Use.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "2. Ownership and Intellectual Property Rights");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, "This Services is owned and operated by Netroc Pte Ltd. If you have any questions regarding this Terms of ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " Use, please contact us at info@net-roc.com.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25, "The Netroc name and all related product and service names, logos, designs, and slogans used within this ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](26, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " Services are trademarks of Netroc or its licensors that you may not use without Netroc prior written ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](28, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " permission. No right, title or interest in or to the Services is transferred to you. All rights not expressly granted ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](30, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, " are reserved by Netroc. Any use of the Services not expressly permitted by these Terms of Use is a breach of ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](32, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " these Terms of Use and may violate copyright, trademark and other laws.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](35, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](36, "3. Use of our Service");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Subject to the terms of this Agreement, you are hereby granted a non-exclusive, non-transferable license to ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](39, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40, " use the Services solely as permitted by the features of the Services, which may vary by User. Netroc can ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](42, " revoke the licenses granted or deny you future access of the Service or impose conditions on your future ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](43, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](44, " access, including but not limited to requiring payment of subscription or license fees as a prerequisite for ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](45, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](46, " future access.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](47, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](49, "4. User Accounts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](50, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](51, "Your User account gives you access to the services and functionality that Netroc may establish and maintain ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](52, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](53, " from time to time and in Netroc's sole discretion. Netroc may maintain different types of accounts for ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](54, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](55, " different types of Users. If you open a Netroc account on behalf of a company, organization, or other entity,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](56, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](57, " then (a) \"you\" includes you and that entity, and (b) you represent and warrant that you are an authorized");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](58, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](59, " representative of the entity with the authority to bind the entity to this Agreement, and that you agree to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](60, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](61, " this Agreement on the entity\u2019s behalf. By connecting to Netroc with a third-party service, you give us");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](62, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](63, " permission to access and use your information from that service as permitted by that service, and to store");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](64, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](65, "your log-in credentials for that service.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](66, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](67, "You acknowledge and agree that if you are opening a User account or otherwise using the Services as or on");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](68, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](69, " behalf of an employer company, organization or other entity, your employees who open employee accounts");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](70, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](71, " must and do separately agree to be bound by this Agreement.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](72, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](73, "You may never use another User\u2019s account without permission. When creating your account, you must");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](74, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](75, " provide accurate and complete information, and you must keep this information up to date. You are solely");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](76, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](77, " responsible for the activity that occurs on your account, and you must keep your account password secure.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](78, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](79, " We encourage you to use \"strong\" passwords (passwords that use a combination of upper and lower case");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](80, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](81, " letters, numbers and symbols) with your account. You must notify Netroc immediately of any breach of");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](82, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](83, " security or unauthorized use of your account. Netroc will not be liable for any");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](84, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](85, " losses caused by any unauthorized use of your account.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](86, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](87, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](88, "5. Restrictions on Use");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](89, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](90, "You are not permitted to do any of the following while using the Services: (a) conduct or promote any illegal");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](91, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](92, " activities; (b) upload, download, distribute or print anything that violates the Terms of Use or that may be");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](93, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](94, " harmful to others; (c) attempt to reverse engineer or jeopardize the correct functioning of the Services; (d)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](95, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](96, " attempt to gain access to secured portions of the Services to which you do not possess access rights; (e)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](97, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](98, " upload, submit, or transmit any form of virus, worm, Trojan horse, or other malicious code; (f) use the");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](99, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](100, " Services to generate unsolicited email advertisements or spam; (g) use any automatic or manual process to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](101, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](102, " harvest information from the Services; (h) impersonate another user; or (i) copy or distribute or attempt to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](103, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](104, " copy or distribute User Content not belonging to you.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](105, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](106, "Links to Third-Party Sites. This Services may allow you to access other websites that are not under Netroc\u2019s");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](107, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](108, " control (\u201CThird-Party Sites\u201D). Any links to Third-Party Sites are provided as a convenience only. Netroc does");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](109, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](110, " not endorse any Third-Party Sites and assumes no responsibility or liability for any material that may be");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](111, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](112, " accessed on Third-Party Sites.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](113, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](114, "Links from Third-Party Sites. Netroc prohibits unauthorized links to its Services and the framing of any");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](115, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](116, " information contained on the Services or any portion of the Services and reserves the right to disable");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](117, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](118, " unauthorized links at any time. Netroc has no responsibility or liability for any material that may contain links");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](119, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](120, " to the Services.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](121, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](122, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](123, "6. User Content");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](124, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](125, "Some areas of the Service allow Users to post or provide content such as profile information, images,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](126, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](127, " comments, questions, and other content or information (any such materials a User submits, posts, displays,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](128, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](129, " or otherwise makes available on the Service is referred to as \u201CUser Content\u201D). Netroc claims no ownership");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](130, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](131, " rights over User Content created by you. The User Content you create remains yours; however, by providing");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](132, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](133, " or sharing User Content through the Service, you agree to allow others to view, edit, and/or share your User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](134, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](135, " Content in accordance with your settings and this Agreement.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](136, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](137, "You agree not to post User Content that: (i) may create a risk of harm, loss, physical or mental injury,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](138, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](139, " emotional distress, death, disability, disfigurement, or physical or mental illness to you, to any other person,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](140, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](141, " or to any animal; (ii) may create a risk of any other loss or damage to any person or property; (iii) seeks to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](142, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](143, " harm or exploit children by exposing them to inappropriate content, asking for personally identifiable details");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](144, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](145, " or otherwise; (iv) may constitute or contribute to a crime or tort; (v) contains any information or content that");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](146, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](147, " we deem to be unlawful, harmful, abusive, racially or ethnically offensive, defamatory, infringing, invasive of");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](148, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](149, " personal privacy or publicity rights, harassing, humiliating to other people (publicly or otherwise), libellous,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](150, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](151, " threatening, profane, obscene, or otherwise objectionable; (vi) contains any information or content that is");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](152, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](153, " illegal (including, without limitation, the disclosure of insider information under securities law or of another");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](154, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](155, " party\u2019s trade secrets); (vii) contains any information or content that you do not have a right to make available");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](156, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](157, " under any law or under contractual or fiduciary relationships; (viii) contains any information or content that");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](158, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](159, " you know is not correct and current or (ix) violates any company, employer or other applicable policy.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](160, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](161, "You agree that any User Content that you post does not and will not violate third-party rights of any kind,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](162, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](163, " including without limitation any Intellectual Property Rights (as defined below), rights of privacy or other");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](164, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](165, " rights of Netroc or any third party.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](166, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](167, "Netroc reserves the right, but is not obligated, to reject and/or remove any User Content that Netroc");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](168, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](169, " believes, in its sole discretion, violates any of these provisions or is otherwise unlawful, offensive, threatening,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](170, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](171, " libellous, defamatory, pornographic, obscene or otherwise objectionable.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](172, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](173, "For the purposes of this Agreement, \u201CIntellectual Property Rights\u201D means all patent rights, copyright rights,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](174, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](175, " mask work rights, moral rights, rights of publicity, trademark, trade dress and service mark rights, goodwill,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](176, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](177, " trade secret rights and other intellectual property rights as may now exist or hereafter come into existence,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](178, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](179, " and all applications therefore and registrations, renewals and extensions thereof, under the laws of any state,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](180, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](181, " country, territory or other jurisdiction.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](182, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](183, "Netroc takes no responsibility and assumes no liability for any User Content that you or any other User or");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](184, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](185, " third party posts, sends, or otherwise makes available over the Service. You shall be solely responsible for");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](186, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](187, " your User Content and the consequences of posting, publishing it, sharing it, or otherwise making it");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](188, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](189, " available on the Service, and you agree that we are only acting as a passive conduit for your online");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](190, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](191, " distribution and publication of your User Content. You understand and agree that you may be exposed to");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](192, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](193, " User Content that is inaccurate, objectionable, inappropriate for children, or otherwise unsuited to your");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](194, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](195, " purpose, and you agree that Netroc shall not be liable for any damages you allege to incur as a result of or");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](196, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](197, " relating to any User Content.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](198, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](199, "In addition to the foregoing, if you are an employer, as between you and Netroc, you are solely responsible");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](200, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](201, " for any and all User Content you provide and/or cause to be provided to the Service, and the consequences");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](202, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](203, " of providing, posting or transmitting such User Content, including responsibility for compliance with breach");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](204, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](205, " notification laws. You agree that you will not use Netroc to collect, store, or process bank account");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](206, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](207, " information, credit or debit card information or other similarly-sensitive personal information, and that the");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](208, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](209, " User assumes all risk arising from use of any such sensitive information with the Service, including the risk of");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](210, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](211, " any inadvertent disclosure or unauthorised access thereto.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](212, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](213, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](214, "7. Security");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](215, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](216, "Netroc utilizes physical, managerial, and technical safeguards to preserve the integrity and security of your");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](217, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](218, " personal information and implement your privacy settings. However, we cannot guarantee that");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](219, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](220, " unauthorized third parties will never be able to defeat our security measures or use your personal");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](221, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](222, " information for improper purposes.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](223, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](224, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](225, "8. Indemnification");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](226, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](227, "You agree to defend, indemnify, and hold harmless Netroc, and our respective employees, contractors,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](228, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](229, " officers, directors, and agents from all liabilities, claims and expenses, including attorney\u2019s fees that arise");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](230, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](231, " from: (a) your use or misuse of the Service; (b) any violation of these Terms of Use; and (c) any of your User");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](232, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](233, " Contributions.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](234, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](235, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](236, "9. Disclaimer of Warranties");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](237, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](238, "You understand that we cannot and do not guarantee or warrant that the Services or any Content available");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](239, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](240, " for view or download (including User Contents) will be free of viruses or other destructive code. You are");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](241, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](242, " responsible for implementing sufficient procedures and checkpoints to satisfy your particular requirements");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](243, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](244, " for anti-virus protection and accuracy of data input and output, and for maintaining a means external to our");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](245, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](246, " Service for any reconstruction of any lost data. Netroc will not be liable for any loss or damage caused by a");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](247, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](248, " distributed denial-of-service attack, viruses or other technologically harmful material that may infect your");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](249, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](250, " computer equipment, computer programs, data or other proprietary material due to your use of the services");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](251, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](252, " or items obtained through the services or to your downloading of any material posted on it, or on any");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](253, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](254, " website linked to it. Your use of the services, its content and any items obtained through the services is at");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](255, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](256, " your own risk. The services, its content and any items obtained through the services are provided on an \"As");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](257, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](258, " Is\" and \"As Available\" basis, without any warranties of any kind, either express or implied. Neither Netroc nor");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](259, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](260, " anyone associated with Netroc represents or warrants that the services, its content or any items obtained");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](261, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](262, " through the services will be accurate, reliable, error-free or uninterrupted, that defects will be corrected, that");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](263, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](264, " our site or the server that makes it available are free of viruses or other harmful components or that the");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](265, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](266, " service or any services or items obtained through the service will otherwise meet your needs or");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](267, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](268, " expectations. Netroc hereby disclaims all warranties of any kind, whether express or implied, statutory or");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](269, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](270, " otherwise, including but not limited to any warranties of merchantability, non-infringement and fitness for");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](271, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](272, " particular purpose. The foregoing does not affect any warranties which cannot be excluded or limited under");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](273, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](274, " applicable law.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](275, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](276, "Subject to the terms of this agreement, Netroc shall use commercially reasonable efforts to make the");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](277, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](278, " Services available to the Company.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](279, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](280, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](281, "10. Limitation of Liability");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](282, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](283, "In no event will Netroc, its affiliates or their licensors, service providers, employees, agents, officers or");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](284, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](285, " directors be liable for damages of any kind, under any legal theory, arising out of or in connection with your");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](286, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](287, " use, or inability to use, the service, any services linked to it, any content on the service or such other websites");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](288, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](289, " or any services or items obtained through the services or such other websites, including any direct, indirect,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](290, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](291, " special, incidental, consequential or punitive damages, including but not limited to, personal injury, pain");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](292, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](293, " and suffering, emotional distress, loss of revenue, loss of profits, loss of business or anticipated savings, loss of");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](294, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](295, " use, loss of goodwill, loss of data, and whether caused by tort (including negligence), breach of contract or");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](296, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](297, " otherwise, even if foreseeable. Any cause of action or claim you may have arising out of or relating to these");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](298, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](299, " terms of use or the service must be commenced within 30 days after the cause of action accrues, otherwise,");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](300, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](301, " such cause of action or claim is permanently barred. The foregoing does not affect any liability which cannot");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](302, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](303, " be excluded or limited under applicable law.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](304, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](305, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](306, "11. Right to Modify");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](307, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](308, "Netroc reserves the right to modify these Terms of Use at any time, in its sole discretion. All changes are");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](309, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](310, " effective immediately when Netroc posts them. Your continued use of the Service following the posting of");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](311, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](312, " revised Terms of Use means you accept and agree to the changes. It is your responsibility to check this page");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](313, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](314, " from time-to-time so you are aware of any changes, as they are binding on you.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](315, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](316, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](317, "12. No Agency");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](318, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](319, "You agree that no joint venture, partnership, employment, or agency relationship exists between you");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](320, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](321, " and Netroc as a result of these Terms of Use or your use of or access to the Services.");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](322, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](323, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](324, "13. Enforceability");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](325, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](326, "If any provisions of these Terms of Use are found to be invalid or unenforceable for any reason, such provision");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](327, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](328, " must be construed to have been adjusted to the minimum extent necessary to cure such invalidity or");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](329, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](330, " unenforceability, and the remainder will continue in full force and effect. ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](331, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](332, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](333, "14. No Waiver");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](334, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](335, "No waiver by Netroc under these Terms of Use will be valid or binding unless set forth in writing and duly");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](336, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](337, " executed by Netroc. Any such waiver constitutes a waiver only with respect to the specific matter described");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](338, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](339, " therein and in no way impairs the rights of Netroc in any other respect or at any other time. ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](340, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](341, "h4", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](342, "15. Governing Law and Jurisdiction");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](343, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](344, "This Agreement shall be governed and construed in accordance with the laws of Singapore. ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](345, "p", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](346, "Any dispute arising out of or in connection with this Agreement, including any question regarding its");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](347, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](348, " existence, validity or termination, shall be referred to and finally resolved by arbitration in Singapore in");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](349, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](350, " accordance with the Arbitration Rules of the Singapore International Arbitration Centre (\"SIAC Rules\") for the");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](351, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](352, " time being in force, which rules are deemed to be incorporated by reference in this clause. The Tribunal shall");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](353, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](354, " consist of one (1) arbitrator. The language of the arbitration shall be English. ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }, styles: [".terms-body[_ngcontent-%COMP%] {\n padding: 20px;\n width: 100%;\n display: flex;\n justify-content: center;\n position: relative;\n background-image: url('loginBg.jpg');\n background-size: contain;\n}\n\n.sub-header[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.terms-para[_ngcontent-%COMP%] {\n position: relative;\n font-size: 15px;\n text-align: justify;\n}\n\n.main-header[_ngcontent-%COMP%] {\n text-align: center;\n}\n\n.back-button[_ngcontent-%COMP%] {\n font-size: 16px;\n cursor: pointer;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC90ZXJtcy1hbmQtY29uZGl0aW9ucy90ZXJtcy1hbmQtY29uZGl0aW9ucy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLGFBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0Esa0JBQUE7RUFDQSxvQ0FBQTtFQUNBLHdCQUFBO0FBQ0o7O0FBRUE7RUFDSSxrQkFBQTtBQUNKOztBQUVBO0VBQ0ksa0JBQUE7RUFDQSxlQUFBO0VBQ0EsbUJBQUE7QUFDSjs7QUFFQTtFQUNHLGtCQUFBO0FBQ0g7O0FBRUE7RUFDSSxlQUFBO0VBQ0EsZUFBQTtBQUNKIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvYXV0aC90ZXJtcy1hbmQtY29uZGl0aW9ucy90ZXJtcy1hbmQtY29uZGl0aW9ucy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi50ZXJtcy1ib2R5e1xuICAgIHBhZGRpbmc6IDIwcHg7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgYmFja2dyb3VuZC1pbWFnZTogdXJsKCcuLi8uLi8uLi8uLi8uLi9hc3NldHMvaW1hZ2VzL2xvZ2luQmcuanBnJyk7XG4gICAgYmFja2dyb3VuZC1zaXplOiBjb250YWluO1xufVxuXG4uc3ViLWhlYWRlcntcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi50ZXJtcy1wYXJhe1xuICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICBmb250LXNpemU6IDE1cHg7XG4gICAgdGV4dC1hbGlnbjoganVzdGlmeTtcbn1cblxuLm1haW4taGVhZGVye1xuICAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuXG4uYmFjay1idXR0b257XG4gICAgZm9udC1zaXplOiAxNnB4O1xuICAgIGN1cnNvcjogcG9pbnRlcjtcbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TermsAndConditionsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-terms-and-conditions',
templateUrl: './terms-and-conditions.component.html',
styleUrls: ['./terms-and-conditions.component.scss']
}]
}], function () { return [{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] }, { type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["ActivatedRoute"] }, { type: src_app_users_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] }]; }, null); })();
/***/ }),
/***/ "uY0s":
/*!*************************************************************************************************************************!*\
!*** ./src/app/users/pages/system-settings/bussiness-unit/bussiness-unit-overview/bussiness-unit-overview.component.ts ***!
\*************************************************************************************************************************/
/*! exports provided: BussinessUnitOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BussinessUnitOverviewComponent", function() { return BussinessUnitOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/model/table-param.model */ "tRGY");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/core/service/table.service */ "eCJZ");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
function BussinessUnitOverviewComponent_div_0_table_23_tr_16_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BussinessUnitOverviewComponent_div_0_table_23_tr_16_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const item_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r5.onEditBuUnit(item_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", item_r4.sectionId == null ? null : item_r4.sectionId.departmentId == null ? null : item_r4.sectionId.departmentId.companyId == null ? null : item_r4.sectionId.departmentId.companyId.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4 == null ? null : item_r4.sectionId == null ? null : item_r4.sectionId.departmentId == null ? null : item_r4.sectionId.departmentId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.sectionId == null ? null : item_r4.sectionId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.name);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r4.status == 1 ? "Active" : "InActive");
} }
function BussinessUnitOverviewComponent_div_0_table_23_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function BussinessUnitOverviewComponent_div_0_table_23_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r7.onSortBussinessUnit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " TIER 1 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function BussinessUnitOverviewComponent_div_0_table_23_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r9.onSortBussinessUnit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " TIER 2 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function BussinessUnitOverviewComponent_div_0_table_23_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.onSortBussinessUnit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, " TIER 3 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function BussinessUnitOverviewComponent_div_0_table_23_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r11.onSortBussinessUnit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " TIER 4 ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function BussinessUnitOverviewComponent_div_0_table_23_Template_th_sort_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r12.onSortBussinessUnit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, " STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, BussinessUnitOverviewComponent_div_0_table_23_tr_16_Template, 14, 5, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r2.bussinesUnitPTable.data);
} }
function BussinessUnitOverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "BUSINESS UNIT");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "select", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function BussinessUnitOverviewComponent_div_0_Template_select_change_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r13.onLimitChangeBussinessUnit(); })("ngModelChange", function BussinessUnitOverviewComponent_div_0_Template_select_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.bussinesUnitPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "option", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "option", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "option", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "option", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "option", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("search", function BussinessUnitOverviewComponent_div_0_Template_input_search_21_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r16.loadBussinessUnit(); })("keyup", function BussinessUnitOverviewComponent_div_0_Template_input_keyup_21_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.BussinessunitsearchInput.next($event); })("ngModelChange", function BussinessUnitOverviewComponent_div_0_Template_input_ngModelChange_21_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.bussinesUnitPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, BussinessUnitOverviewComponent_div_0_table_23_Template, 17, 1, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "app-skliton-loading-table", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function BussinessUnitOverviewComponent_div_0_Template_ngb_pagination_pageChange_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r19.bussinesUnitPTable.page = $event; })("pageChange", function BussinessUnitOverviewComponent_div_0_Template_ngb_pagination_pageChange_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.onPageChangeBussinessUnit($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r0.bussinesUnitPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r0.bussinesUnitPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("numberOfCols", 6)("isTableLoading", ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Total records ", ctx_r0.bussinesUnitPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("collectionSize", ctx_r0.bussinesUnitPTable.total)("page", ctx_r0.bussinesUnitPTable.page)("maxSize", 5)("pageSize", ctx_r0.bussinesUnitPTable.limit);
} }
function BussinessUnitOverviewComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "EDIT BUSINESS UNIT DETAILS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "form", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "label", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, " Change Status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function BussinessUnitOverviewComponent_div_1_Template_input_change_13_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r21.changeRadio($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Active");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](17, "input", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "label", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, "Inactive");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "label", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " Business unit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "div", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "button", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BussinessUnitOverviewComponent_div_1_Template_button_click_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r22); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r23.onUpdateBuUnit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " Update business unit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "button", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function BussinessUnitOverviewComponent_div_1_Template_button_click_30_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r22); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r24.onClearBuUnitEdit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](31, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r1.bussinessUnitEditForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r1.bussinessUnitEditForm.get("buUnit").value, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r1.bussinessUnitEditForm.valid);
} }
class BussinessUnitOverviewComponent {
constructor(buUnit, toastService, storageService, formBuilder, tableService) {
this.buUnit = buUnit;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.tableService = tableService;
this.isBuUnitEdited = false;
this.isTableLoading = false;
this.locAccTableColumn = ['sectionId.departmentId.companyId.name', 'sectionId.departmentId.name', 'sectionId.name', 'name', 'status', '_id'];
this.tableQueryParams = src_app_core_model_table_param_model__WEBPACK_IMPORTED_MODULE_5__["tableParam"];
this.numberOfSkeletonRows = 4;
this.skeletonData = [{
tier1: '',
tier2: '',
tier3: '',
status: '',
action: '',
}];
this.BussinessunitsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.DepartmentsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.SectionsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.SubSectionsearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
// this.config.notFoundText = 'Custom not found';
this.bussinesUnitPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.companyName = this.storageService.getByKey('companyId');
this.BussinessunitSearchSubscription = this.BussinessunitsearchInput.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500)))).subscribe((input) => {
this.bussinesUnitPTable.page = 1;
this.tableQueryParams.search.value = input;
this.loadBussinessUnit();
});
}
/// bussiness unit over view table config
onSortBussinessUnit({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.bussinesUnitPTable.sortBy = direction;
this.bussinesUnitPTable.sortWith = column;
direction && this.loadBussinessUnit();
}
onPageChangeBussinessUnit(page) {
this.bussinesUnitPTable.page = page;
this.tableQueryParams.start = +page > 1 ? (page - 1) * this.bussinesUnitPTable.limit : 0;
this.loadBussinessUnit();
}
onLimitChangeBussinessUnit() {
this.tableQueryParams.start = 0;
this.loadBussinessUnit();
}
ngOnInit() {
this.tableQueryParams.draw = 0;
this.loadBussinessUnit();
this.bussinessUnitEditForm = this.formBuilder.group({
status: [1, [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["Validators"].required]],
buUnit: [''],
sectionDeptComIdName: [],
sectionDeptName: [],
sectionIdName: []
});
}
loadBussinessUnit() {
// this.bussinesUnitPTable.isLoading = true;
// const { data, total, ...rest } = this.bussinesUnitPTable;
let tableCol = this.tableService.initializeTableParamsColums(this.locAccTableColumn, [0], [0]) || [];
this.tableQueryParams.columns = tableCol;
this.tableQueryParams.draw++;
this.tableQueryParams.length = this.bussinesUnitPTable.limit;
this.isTableLoading = true;
const subscribe = this.buUnit
.getBussinesUnit(this.tableQueryParams)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
// this.bussinesUnitPTable.isLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, businessUnitList } = response;
this.bussinesUnitPTable.data = businessUnitList;
this.bussinesUnitPTable.total = recordsTotal;
this.isTableLoading = false;
}, (error) => {
this.bussinesUnitPTable.data = [];
this.bussinesUnitPTable.total = 0;
this.isTableLoading = false;
this.toastService.error('No list found');
});
}
onEditBuUnit(item) {
var _a;
this.isBuUnitEdited = true;
this.bussinessUnitEditForm.patchValue({
status: item.status,
buUnit: item.sectionId.departmentId.companyId.name + ">" +
item.sectionId.departmentId.name + ">" + item.sectionId.name +
">" + item.name,
name: item.name,
sectionDeptComIdName: item.sectionId.departmentId.companyId.name,
sectionDeptName: item.sectionId.departmentId.name,
sectionIdName: item.sectionId.name
});
this.sectionId = (_a = item === null || item === void 0 ? void 0 : item.sectionId) === null || _a === void 0 ? void 0 : _a._id;
this.subSectionId = item === null || item === void 0 ? void 0 : item._id;
}
onUpdateBuUnit() {
const data = {
"businessUnitId": this.subSectionId,
"sectionId_departmentId_companyId_name": this.bussinessUnitEditForm.get('sectionDeptComIdName').value,
"sectionId_departmentId_name": this.bussinessUnitEditForm.get('sectionDeptName').value,
"sectionId_name": this.bussinessUnitEditForm.get('sectionIdName').value,
"name": this.bussinessUnitEditForm.get('name').value,
"status": this.bussinessUnitEditForm.get('status').value
};
this.buUnit
.updateBusinessUnitDetails(data)
.subscribe((res) => {
this.toastService.success('Business Unit Updated');
this.loadBussinessUnit();
this.onClearBuUnitEdit();
}, (error) => {
this.toastService.success('Something is wrong');
});
}
onClearBuUnitEdit() {
this.isBuUnitEdited = false;
this.bussinessUnitEditForm.reset();
this.sectionId = null;
this.subSectionId = null;
}
ngOnDestroy() {
this.BussinessunitSearchSubscription &&
this.BussinessunitSearchSubscription.unsubscribe();
}
}
BussinessUnitOverviewComponent.ɵfac = function BussinessUnitOverviewComponent_Factory(t) { return new (t || BussinessUnitOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_6__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__["TableService"])); };
BussinessUnitOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: BussinessUnitOverviewComponent, selectors: [["bussiness-unit-overview"]], viewQuery: function BussinessUnitOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, decls: 2, vars: 2, consts: [["class", "card", 4, "ngIf"], [1, "card"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], [1, "table-header"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col", "sortable", "Tier 4", 3, "sort"], ["scope", "col", "sortable", "Status", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "card-header", "flexi-header"], [3, "formGroup"], [1, "row"], [1, "col-md-12"], [1, "font-weight-bold", "col-md-3", "red-heading"], [1, "form-group", "col-md-2", "pr-0"], ["type", "radio", "id", "active", "formControlName", "status", 3, "value", "change"], ["for", "std-row", 1, "radio-inline", "ml-2"], ["type", "radio", "id", "inactive", "formControlName", "status", 3, "value"], ["for", "custom-row", 1, "radio-inline", "ml-2"], [1, "col-md-2", "mt-3"], [1, "font-weight-bold", "red-heading"], [1, "red-container"], [1, "row", "bu-container"], [1, "col"], [1, "btn", "btn-add", "p-2", "m-1", 3, "disabled", "click"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"]], template: function BussinessUnitOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, BussinessUnitOverviewComponent_div_0_Template, 30, 15, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, BussinessUnitOverviewComponent_div_1_Template, 32, 5, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isBuUnitEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isBuUnitEdited);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlName"]], styles: [".bu-container[_ngcontent-%COMP%] {\n float: right;\n}\n\n.table-header[_ngcontent-%COMP%] {\n background-color: #fafafa;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvc3lzdGVtLXNldHRpbmdzL2J1c3NpbmVzcy11bml0L2J1c3NpbmVzcy11bml0LW92ZXJ2aWV3L2J1c3NpbmVzcy11bml0LW92ZXJ2aWV3LmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksWUFBQTtBQUNKOztBQUVBO0VBQ0kseUJBQUE7QUFDSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL3N5c3RlbS1zZXR0aW5ncy9idXNzaW5lc3MtdW5pdC9idXNzaW5lc3MtdW5pdC1vdmVydmlldy9idXNzaW5lc3MtdW5pdC1vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5idS1jb250YWluZXJ7XG4gICAgZmxvYXQ6IHJpZ2h0O1xufVxuXG4udGFibGUtaGVhZGVye1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmYWZhZmE7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BussinessUnitOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'bussiness-unit-overview',
templateUrl: './bussiness-unit-overview.component.html',
styleUrls: ['./bussiness-unit-overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_6__["BussinessUnitService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormBuilder"] }, { type: src_app_core_service_table_service__WEBPACK_IMPORTED_MODULE_9__["TableService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}] }); })();
/***/ }),
/***/ "up7o":
/*!*************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/shift-scheduler/timesheet/timesheet-data/timesheet-data.component.ts ***!
\*************************************************************************************************************/
/*! exports provided: TimesheetDataComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimesheetDataComponent", function() { return TimesheetDataComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/users/service/operations/shift-scheduler.service */ "HItE");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _shared_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../../../../shared/pipes/filter.pipe */ "UhSo");
const _c0 = ["AddShiftHours"];
function TimesheetDataComponent_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "i", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Please wait, Data is Refreshing ...... ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_table_21_tr_49_p_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" split shift ", d_r6 == null ? null : d_r6.position, " ");
} }
function TimesheetDataComponent_table_21_tr_49_p_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " Assigned Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_table_21_tr_49_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Booked Shift ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 2, d_r6.shiftDetails.startTime, "HH:mm"), " Extended Shift ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 5, d_r6.shiftDetails.extendedStaff[0].startDateTime, "HH:mm"), " ");
} }
function TimesheetDataComponent_table_21_tr_49_ng_template_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](1, "date");
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](1, 1, d_r6.shiftDetails.startTime, "HH:mm"), " ");
} }
function TimesheetDataComponent_table_21_tr_49_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Booked Shift ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 2, d_r6.shiftDetails.endTime, "HH:mm"), " Extended Shift ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](4, 5, d_r6.shiftDetails.extendedStaff[0].endDateTime, "HH:mm"), " ");
} }
function TimesheetDataComponent_table_21_tr_49_ng_template_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](1, "date");
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](1, 1, d_r6.shiftDetails.endTime, "HH:mm"), " ");
} }
function TimesheetDataComponent_table_21_tr_49_p_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, d_r6.attendance.clockInDateTime, "HH:mm "), " ");
} }
function TimesheetDataComponent_table_21_tr_49_p_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "p", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](2, 1, d_r6.attendance.clockOutDateTime, "HH:mm "), " ");
} }
function TimesheetDataComponent_table_21_tr_49_div_23_div_1_button_3_Template(rf, ctx) { if (rf & 1) {
const _r34 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_table_21_tr_49_div_23_div_1_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r34); const i_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index; const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r33.toggleBreakDetails(ctx_r33.data, i_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_table_21_tr_49_div_23_div_1_button_4_Template(rf, ctx) { if (rf & 1) {
const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_table_21_tr_49_div_23_div_1_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r37); const i_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3).index; const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r36.toggleBreakDetails(ctx_r36.data, i_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " - ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_table_21_tr_49_div_23_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "p", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetDataComponent_table_21_tr_49_div_23_div_1_button_3_Template, 2, 0, "button", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, TimesheetDataComponent_table_21_tr_49_div_23_div_1_button_4_Template, 2, 0, "button", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const breakduration_r30 = ctx.$implicit;
const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", breakduration_r30.duration, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r28.showBtn);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r28.showBtn);
} }
function TimesheetDataComponent_table_21_tr_49_div_23_div_3_tr_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](8, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const breakData_r40 = ctx.$implicit;
const i_r41 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("Break", i_r41 + 1, ":");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](5, 3, breakData_r40.startTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](8, 6, breakData_r40.endTime, "HH:mm"), " ");
} }
function TimesheetDataComponent_table_21_tr_49_div_23_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "th", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "From");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, TimesheetDataComponent_table_21_tr_49_div_23_div_3_tr_9_Template, 9, 9, "tr", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", d_r6 == null ? null : d_r6.attendance == null ? null : d_r6.attendance.breakTime);
} }
function TimesheetDataComponent_table_21_tr_49_div_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, TimesheetDataComponent_table_21_tr_49_div_23_div_1_Template, 5, 3, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetDataComponent_table_21_tr_49_div_23_div_3_Template, 10, 1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const d_r6 = ctx_r43.$implicit;
const i_r7 = ctx_r43.index;
const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", d_r6.attendance.breakTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r18.isBreakShowHisDet === i_r7);
} }
function TimesheetDataComponent_table_21_tr_49_span_31_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " done ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_table_21_tr_49_div_33_div_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "table", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "th", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "From");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "To");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "Worked Time");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](14, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](17, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](20, "Normal");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, "Total Work");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](32, "Total Break Duration");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](33, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](35, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](37, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](38, "Remarks");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](39, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](40);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](41, "td", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](14, 6, d_r6.attendance.approval.approveClockInTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](17, 9, d_r6.attendance.approval.approveClockOutTime, "HH:mm"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r44.getDuration(d_r6.attendance.approval.duration), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r44.getDuration(d_r6.attendance.approval.duration), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", d_r6.attendance.totalBreakDuration, " mins ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", d_r6.attendance.approval.neitherMessage, " ");
} }
function TimesheetDataComponent_table_21_tr_49_div_33_div_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r45.checkShift);
} }
function TimesheetDataComponent_table_21_tr_49_div_33_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Shift Locked ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "p", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, " * You Have Edit Privilege by Ticking Checkboxes ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_table_21_tr_49_div_33_div_8_Template(rf, ctx) { if (rf & 1) {
const _r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "button", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_table_21_tr_49_div_33_div_8_Template_button_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r51); const d_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit; const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r49.lockFunction(d_r6); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, " Lock ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r47.enableLockAllBtn(false), " ");
} }
function TimesheetDataComponent_table_21_tr_49_div_33_Template(rf, ctx) { if (rf & 1) {
const _r54 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_table_21_tr_49_div_33_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r54); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); const d_r6 = ctx_r53.$implicit; const i_r7 = ctx_r53.index; const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r52.toggleApprovalDetails(d_r6, i_r7); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " VIEW APPROVED DETAILS ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, TimesheetDataComponent_table_21_tr_49_div_33_div_4_Template, 42, 12, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, TimesheetDataComponent_table_21_tr_49_div_33_div_6_Template, 2, 1, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, TimesheetDataComponent_table_21_tr_49_div_33_div_7_Template, 7, 0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, TimesheetDataComponent_table_21_tr_49_div_33_div_8_Template, 5, 1, "div", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
const i_r7 = ctx_r55.index;
const d_r6 = ctx_r55.$implicit;
const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r20.isApproveShowDet === i_r7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r20.checkShift && d_r6.attendance.IsLock == false);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6.attendance.IsLock === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !d_r6.attendance.IsLock === true);
} }
function TimesheetDataComponent_table_21_tr_49_Template(rf, ctx) { if (rf & 1) {
const _r57 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetDataComponent_table_21_tr_49_p_3_Template, 2, 1, "p", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, TimesheetDataComponent_table_21_tr_49_p_4_Template, 2, 0, "p", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "td", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](9, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, TimesheetDataComponent_table_21_tr_49_div_11_Template, 5, 8, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, TimesheetDataComponent_table_21_tr_49_ng_template_12_Template, 2, 4, "ng-template", null, 40, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, TimesheetDataComponent_table_21_tr_49_div_15_Template, 5, 8, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, TimesheetDataComponent_table_21_tr_49_ng_template_16_Template, 2, 4, "ng-template", null, 41, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](19, TimesheetDataComponent_table_21_tr_49_p_19_Template, 3, 4, "p", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, TimesheetDataComponent_table_21_tr_49_p_21_Template, 3, 4, "p", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, TimesheetDataComponent_table_21_tr_49_div_23_Template, 4, 2, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_table_21_tr_49_Template_input_click_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const d_r6 = ctx.$implicit; const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r56.createAddShiftHours(d_r6); })("change", function TimesheetDataComponent_table_21_tr_49_Template_input_change_25_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r58.handleApprove(1); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "input", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_table_21_tr_49_Template_input_click_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const d_r6 = ctx.$implicit; const ctx_r59 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r59.createAddShiftHours(d_r6); })("change", function TimesheetDataComponent_table_21_tr_49_Template_input_change_27_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const ctx_r60 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r60.handleApprove(2); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](29, "input", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_table_21_tr_49_Template_input_click_29_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const d_r6 = ctx.$implicit; const ctx_r61 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r61.createAddShiftHours(d_r6); })("change", function TimesheetDataComponent_table_21_tr_49_Template_input_change_29_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r57); const ctx_r62 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r62.handleApprove(3); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](30, "td", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](31, TimesheetDataComponent_table_21_tr_49_span_31_Template, 2, 0, "span", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](33, TimesheetDataComponent_table_21_tr_49_div_33_Template, 9, 4, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](34, "td", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const d_r6 = ctx.$implicit;
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](13);
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](17);
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", d_r6.userInfo.name, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6.shiftDetails.isSplitShift == true && (d_r6 == null ? null : d_r6.position));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6.shiftDetails.isAssignShift == true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](d_r6.userInfo.staffId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](9, 18, d_r6.shiftDetails.startTime, "dd-MM-yyyy"), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6.shiftDetails.isExtendedShift && d_r6.shiftDetails.extendedStaff.length > 0)("ngIfElse", _r11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6.shiftDetails.isExtendedShift && d_r6.shiftDetails.extendedStaff.length > 0)("ngIfElse", _r14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6.attendance);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6 == null ? null : d_r6.attendance == null ? null : d_r6.attendance.clockOutDateTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6 == null ? null : d_r6.attendance == null ? null : d_r6.attendance.breakTime);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r5.isKeyAvailable(d_r6.attendance, "approval") && d_r6.attendance.approval.shift === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", !ctx_r5.isKeyAvailable(d_r6.attendance, "clockOutDateTime"))("checked", ctx_r5.isKeyAvailable(d_r6.attendance, "approval") && d_r6.attendance.approval.clocked === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("checked", ctx_r5.isKeyAvailable(d_r6.attendance, "approval") && d_r6.attendance.approval.neither === true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", d_r6.attendance == null ? null : d_r6.attendance.isAutoApprove);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.isKeyAvailable(d_r6.attendance, "approval") && d_r6.attendance.approval.approveClockInTime);
} }
function TimesheetDataComponent_table_21_Template(rf, ctx) { if (rf & 1) {
const _r64 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, " User Name ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " Staff ID ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, " Date ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, " Shift Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Clocked Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, " Total Break Duration ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "th", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, " Approve ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, " Auto Approved Shifts ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "th", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "span", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21, " Approved Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](22, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](23, " (2 sets if split shift) ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function TimesheetDataComponent_table_21_Template_input_change_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r64); const ctx_r63 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r63.checkAllShiftLock(true); return ctx_r63.lockAllShiftBtn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "button", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](26, " Lock All Approved Shifts ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](27, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](28, " Aggregated hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](29, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](30, " if Split Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](31, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](32, "td", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](33, " Start ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](34, "td", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](35, " End ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](36, "td", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](37, " Start ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](38, "td", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](39, " End ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](40, "td", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](41, " Shift ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](42, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](43, "Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](44, "td", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](45, " Clocked Hours ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](46, "td", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](47, " Neither ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](48, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](49, TimesheetDataComponent_table_21_tr_49_Template, 35, 21, "tr", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](50, "filter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r1.enableLockAll)("checked", ctx_r1.enableLockAll ? false : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", true);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](50, 4, ctx_r1.timeSheetData, ctx_r1.searchString));
} }
function TimesheetDataComponent_div_22_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " No Data Available ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_h4_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h4", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " SHIFT HOURS : ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_h4_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h4", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " CLOCKED HOURS : ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_h4_5_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h4", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " EDIT WORKED HOURS: ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Start :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "End :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Start :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "End :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Start :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](4, "input", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "End :");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](8, "input", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_div_17_Template(rf, ctx) { if (rf & 1) {
const _r77 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "Add Break Time ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "button", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_ng_template_23_div_17_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r77); const ctx_r76 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r76.toggleDisplay(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, " + ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_div_18_button_27_Template(rf, ctx) { if (rf & 1) {
const _r80 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_ng_template_23_div_18_button_27_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r80); const ctx_r79 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r79.addBreakTime(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " ADD ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h4", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "ADD BREAK TIME: (Optional)");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "table", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](6, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "Start:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "End:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](13, "th");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "strong");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](17, "BREAKS:");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](19, "input", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "td", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](21, "ngb-timepicker", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](23, "input", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](24, "td", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](25, "ngb-timepicker", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](27, TimesheetDataComponent_ng_template_23_div_18_button_27_Template, 2, 0, "button", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r74 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !(ctx_r74.singleTimeSheet == null ? null : ctx_r74.singleTimeSheet.attendance) || !ctx_r74.singleTimeSheet.attendance.breakTime || ctx_r74.singleTimeSheet.attendance.breakTime.length === 0);
} }
function TimesheetDataComponent_ng_template_23_span_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function TimesheetDataComponent_ng_template_23_Template(rf, ctx) { if (rf & 1) {
const _r82 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, TimesheetDataComponent_ng_template_23_h4_3_Template, 2, 0, "h4", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, TimesheetDataComponent_ng_template_23_h4_4_Template, 2, 0, "h4", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, TimesheetDataComponent_ng_template_23_h4_5_Template, 2, 0, "h4", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "form", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, TimesheetDataComponent_ng_template_23_div_8_Template, 9, 0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, TimesheetDataComponent_ng_template_23_div_9_Template, 9, 0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, TimesheetDataComponent_ng_template_23_div_10_Template, 9, 0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "div", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "label", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](14, "BREAKS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "label", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](16, "- NotTaken");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, TimesheetDataComponent_ng_template_23_div_17_Template, 6, 0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](18, TimesheetDataComponent_ng_template_23_div_18_Template, 28, 1, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "div", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](21, "label", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](22, "REMARKS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, TimesheetDataComponent_ng_template_23_span_23_Template, 2, 0, "span", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](24, "input", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](25, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](26, "button", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_ng_template_23_Template_button_click_26_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r82); const ctx_r81 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r81.approvalBtn(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](27, " Submit ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](28, "button", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_ng_template_23_Template_button_click_28_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r82); const ctx_r83 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r83.modelClose(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](29, " Close ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.uniqueIdShift === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.uniqueIdShift === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.uniqueIdShift === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx_r4.shiftsForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.uniqueIdShift === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.uniqueIdShift === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.uniqueIdShift === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.isShow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r4.isShow);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r4.uniqueIdShift === 3);
} }
class TimesheetDataComponent {
constructor(formBuilder, toastService, timesheetService, modelService) {
this.formBuilder = formBuilder;
this.toastService = toastService;
this.timesheetService = timesheetService;
this.modelService = modelService;
this.onBtnCloseClick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.checkedArray = [];
this.isShow = true;
this.dura = 0;
this.allShiftArray = {};
this.allShift = [];
this.showBtn = true;
this.searchString = null;
this.timeSheetDataLoader = true;
this.enableLockAll = true;
this.isKeyAvailable = (item, key) => {
if (item && key) {
return Object.keys(item).includes(key);
}
};
}
ngOnInit() {
this.gmtOffset = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_5__["getGmtOffSet"])();
}
ngOnChanges() {
this.getTimesheetData();
this.initForm();
}
createAddShiftHours(data) {
var _a, _b;
this.singleTimeSheet = data;
this.shiftStartTime = data.shiftDetails.startTime;
this.shiftEndTime = data.shiftDetails.endTime;
if (this.singleTimeSheet.attendance) {
this.shiftsForm.patchValue({
clockedStartTime: moment__WEBPACK_IMPORTED_MODULE_1__(data.attendance.clockInDateTime).format('HH:mm'),
clockedEndTime: moment__WEBPACK_IMPORTED_MODULE_1__(data.attendance.clockOutDateTime).format('HH:mm'),
});
}
//For Neither and Remarks and Break
this.shiftsForm.patchValue({
neitherstartTime: moment__WEBPACK_IMPORTED_MODULE_1__(data.shiftDetails.startTime).format('HH:mm'),
neitherendTime: moment__WEBPACK_IMPORTED_MODULE_1__(data.shiftDetails.endTime).format('HH:mm'),
neitherRemarks: '',
inputstartTime: null,
inputendTime: null,
});
if ((_a = this.singleTimeSheet.attendance) === null || _a === void 0 ? void 0 : _a.approval) {
this.shiftsForm.patchValue({
neitherstartTime: moment__WEBPACK_IMPORTED_MODULE_1__(data.attendance.approval.approveClockInTime || data.shiftDetails.startTime).format('HH:mm'),
neitherendTime: moment__WEBPACK_IMPORTED_MODULE_1__(data.attendance.approval.approveClockOutTime || data.shiftDetails.endTime).format('HH:mm'),
neitherRemarks: data.attendance.approval.neitherMessage,
});
}
this.shiftsForm.patchValue({
startDate: moment__WEBPACK_IMPORTED_MODULE_1__(data.shiftDetails.startTime).format('DD-MM-YYYY'),
endDate: moment__WEBPACK_IMPORTED_MODULE_1__(data.shiftDetails.endTime).format('DD-MM-YYYY'),
startTime: data.shiftDetails.isExtendedShift &&
data.shiftDetails.extendedStaff.length > 0
? moment__WEBPACK_IMPORTED_MODULE_1__(data.shiftDetails.extendedStaff[0].startDateTime).format('HH:mm')
: moment__WEBPACK_IMPORTED_MODULE_1__(data.shiftDetails.startTime).format('HH:mm'),
endTime: data.shiftDetails.isExtendedShift &&
data.shiftDetails.extendedStaff.length > 0
? moment__WEBPACK_IMPORTED_MODULE_1__(data.shiftDetails.extendedStaff[0].endDateTime).format('HH:mm')
: moment__WEBPACK_IMPORTED_MODULE_1__(data.shiftDetails.endTime).format('HH:mm'),
});
const breakTimes = ((_b = this.singleTimeSheet.attendance) === null || _b === void 0 ? void 0 : _b.breakTime) || [];
if (breakTimes.length > 0) {
const startTime = this.parseTimeString(moment__WEBPACK_IMPORTED_MODULE_1__(breakTimes[0].startTime).format('HH:mm'));
const endTime = this.parseTimeString(moment__WEBPACK_IMPORTED_MODULE_1__(breakTimes[0].endTime).format('HH:mm'));
this.shiftsForm.patchValue({
inputstartTime: startTime,
inputendTime: endTime,
});
}
this.modelService.open(this.AddShiftHours, {
windowClass: 'modal-ui-fix right-align',
});
}
initForm() {
this.shiftsForm = this.formBuilder.group({
startDate: [false, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
endDate: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
startTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
endTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
clockedStartTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
clockedEndTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
inputstartTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
inputendTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
neitherstartTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
neitherendTime: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
neitherRemarks: [null, [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["Validators"].required]],
});
}
handleApprove($event) {
console.log('handleShift---', $event);
this.uniqueIdShift = $event;
}
checkAllShiftLock(i) {
this.checkShift = i;
}
lockAllShiftBtn() {
this.allShift = [];
this.timeSheetData.forEach((val) => {
if (Object.keys(val).includes('attendance')) {
if ((val.attendance.approval.shift == true ||
val.attendance.approval.clocked == true ||
val.attendance.approval.neither == true ||
val.attendance.isAutoApprove == true) &&
val.attendance.IsLock == false) {
this.allShift.push(val.attendance._id);
}
}
});
this.allShiftArray = {
ids: this.allShift,
};
this.timesheetService.lockShift(this.allShiftArray).subscribe((res) => {
this.timeSheetData = res['data'];
this.toastService.success(res['message']);
this.LockChecked = false;
this.getTimesheetData();
this.enableLockAll = true;
});
}
approvalBtn() {
var _a, _b;
this.timeSheetDataLoader = true;
this.singleTimeSheet = this.singleTimeSheet;
this.dateForNeither = moment__WEBPACK_IMPORTED_MODULE_1__(this.singleTimeSheet.shiftDetails.startTime).format('YYYY-MM-DD');
this.neitTime = this.shiftsForm.get('neitherstartTime').value;
this.break = [];
const inputStartTime = this.shiftsForm.get('inputstartTime').value;
const inputEndTime = this.shiftsForm.get('inputendTime').value;
if (inputStartTime && inputEndTime && ((_a = this.singleTimeSheet.attendance) === null || _a === void 0 ? void 0 : _a.clockInDateTime)) {
const formatDateTime = (date, time) => new Date(moment__WEBPACK_IMPORTED_MODULE_1__(date).format('MM-DD-YYYY ') + time + ':00 ' + this.gmtOffset).toISOString();
this.break = [
{
startTime: formatDateTime(this.singleTimeSheet.shiftDetails.startTime, this.formatTimeObject(inputStartTime)),
endTime: formatDateTime(this.singleTimeSheet.shiftDetails.startTime, this.formatTimeObject(inputEndTime)),
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
userId: this.singleTimeSheet.userInfo._id,
},
];
}
if (this.uniqueIdShift === 1) {
if (this.singleTimeSheet.attendance) {
this.approvalObj = {
businessUnitId: this.singleTimeSheet.businessUnitId,
clocked: false,
neither: false,
shift: true,
breakTime: this.break,
approveClockInTime: this.singleTimeSheet.shiftDetails.isExtendedShift &&
this.singleTimeSheet.shiftDetails.extendedStaff.length > 0
? this.singleTimeSheet.shiftDetails.extendedStaff[0].startDateTime
: this.singleTimeSheet.shiftDetails.startTime,
approveClockOutTime: this.singleTimeSheet.shiftDetails.isExtendedShift &&
this.singleTimeSheet.shiftDetails.extendedStaff.length > 0
? this.singleTimeSheet.shiftDetails.extendedStaff[0].endDateTime
: this.singleTimeSheet.shiftDetails.endTime,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
shiftId: this.singleTimeSheet.shiftDetails.shiftId,
userId: this.singleTimeSheet.userInfo._id,
neitherMessage: this.shiftsForm.get('neitherRemarks').value,
_id: this.singleTimeSheet.attendance._id,
};
}
else if (!this.singleTimeSheet.attendance) {
this.approvalObj = {
businessUnitId: this.singleTimeSheet.businessUnitId,
clocked: false,
neither: false,
shift: true,
breakTime: this.break,
neitherMessage: this.shiftsForm.get('neitherRemarks').value,
approveClockInTime: this.singleTimeSheet.shiftDetails.isExtendedShift &&
this.singleTimeSheet.shiftDetails.extendedStaff.length > 0
? this.singleTimeSheet.shiftDetails.extendedStaff[0].startDateTime
: this.singleTimeSheet.shiftDetails.startTime,
approveClockOutTime: this.singleTimeSheet.shiftDetails.isExtendedShift &&
this.singleTimeSheet.shiftDetails.extendedStaff.length > 0
? this.singleTimeSheet.shiftDetails.extendedStaff[0].endDateTime
: this.singleTimeSheet.shiftDetails.endTime,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
shiftId: this.singleTimeSheet.shiftDetails.shiftId,
userId: this.singleTimeSheet.userInfo._id,
};
}
}
else if (this.uniqueIdShift === 2) {
this.approvalObj = {
businessUnitId: this.singleTimeSheet.businessUnitId,
clocked: true,
neither: false,
shift: false,
breakTime: this.break,
approveClockInTime: this.singleTimeSheet.attendance.clockInDateTime,
approveClockOutTime: this.singleTimeSheet.attendance.clockOutDateTime,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
shiftId: this.singleTimeSheet.shiftDetails.shiftId,
userId: this.singleTimeSheet.userInfo._id,
neitherMessage: this.shiftsForm.get('neitherRemarks').value,
_id: this.singleTimeSheet.attendance._id,
};
}
else if (this.uniqueIdShift === 3) {
if (!this.shiftsForm.get('neitherRemarks').value) {
this.toastService.error("Please enter Remarks to approve Neither Shift hours.");
this.timeSheetDataLoader = false;
return;
}
this.approvalObj = {
businessUnitId: this.singleTimeSheet.businessUnitId,
clocked: false,
neither: true,
shift: false,
breakTime: this.break,
approveClockInTime: new Date(moment__WEBPACK_IMPORTED_MODULE_1__(this.singleTimeSheet.shiftDetails.startTime).format('MM-DD-YYYY ') +
this.shiftsForm.get('neitherstartTime').value +
':00 ' + this.gmtOffset).toISOString(),
approveClockOutTime: new Date(moment__WEBPACK_IMPORTED_MODULE_1__(this.singleTimeSheet.shiftDetails.endTime).format('MM-DD-YYYY ') +
this.shiftsForm.get('neitherendTime').value +
':00 ' + this.gmtOffset).toISOString(),
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
shiftId: this.singleTimeSheet.shiftDetails.shiftId,
userId: this.singleTimeSheet.userInfo._id,
neitherMessage: this.shiftsForm.get('neitherRemarks').value,
_id: (_b = this.singleTimeSheet.attendance) === null || _b === void 0 ? void 0 : _b._id,
};
}
this.modelClose();
this.timesheetService
.approvalTimeSheet(this.approvalObj)
.subscribe((res) => {
this.timeSheetData = res['data'];
this.getTimesheetData();
this.timeSheetDataLoader = false;
this.toastService.success('Shift approved successfully');
}, (error) => {
this.toastService.error("Something went wrong. Please try again.");
this.timeSheetDataLoader = false;
});
}
changeTab() {
this.onBtnCloseClick.emit(2);
}
addBreakTime() {
this.singleTimeSheet = this.singleTimeSheet;
this.breakTimeObj = {
endTime: moment__WEBPACK_IMPORTED_MODULE_1__(this.singleTimeSheet.shiftDetails.startTime).format('MM-DD-YYYY ') +
this.formatTimeObject(this.shiftsForm.get('inputendTime').value) +
':00 ' + this.gmtOffset,
shiftDetailId: this.singleTimeSheet.shiftDetails._id,
startTime: moment__WEBPACK_IMPORTED_MODULE_1__(this.singleTimeSheet.shiftDetails.startTime).format('MM-DD-YYYY ') +
this.formatTimeObject(this.shiftsForm.get('inputstartTime').value) +
':00 ' + this.gmtOffset,
userId: this.singleTimeSheet.userInfo._id,
};
this.timesheetService.breakTimeAdd(this.breakTimeObj).subscribe((res) => {
this.timeSheetData = res['data'];
this.toastService.success(res['message']);
this.getTimesheetData();
});
}
lockFunction(d) {
this.singleData = d;
this.lockObj = { _id: this.singleData.attendance._id };
sweetalert2__WEBPACK_IMPORTED_MODULE_2___default.a.fire({
title: 'Are you sure?',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes',
cancelButtonText: 'Back',
}).then((result) => {
if (result.isConfirmed) {
this.timesheetService.lock(this.lockObj).subscribe((res) => {
this.toastService.success(res['message']);
this.getTimesheetData();
});
}
});
}
getTimesheetData() {
const timesheet = this.timesheetService
.getTimesheetData(this.businessUnitId._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.timeSheetDataLoader = false;
timesheet.unsubscribe();
}))
.subscribe((res) => {
this.timeSheetData = res['data'] || [];
});
}
toggleDisplay() {
this.isShow = !this.isShow;
}
getDuration(time) {
if (time) {
time = parseFloat(time);
time = time * 1000 * 3600;
const date = new Date(time);
let hh = date.getUTCHours();
let min = 0;
if (date.getUTCMinutes() === 59) {
min = 0;
hh = hh + 1;
}
else {
min = date.getUTCMinutes();
}
return '' + hh + 'h:' + min + 'min';
}
else {
return '0';
}
}
exportTimesheet() {
this.timesheetService
.exportTimesheetData(this.businessUnitId._id)
.subscribe((res) => {
this.exportdata = res;
var a = document.createElement('a');
a.href = 'data:attachment/csv,' + encodeURI(res.csv);
a.target = '_blank';
a.download = "current_timesheet.csv";
document.body.appendChild(a);
a.click();
this.toastService.success("success", "timesheet Details exported succesfully");
});
}
toggleApprovalDetails(data, i) {
if (this.isApproveShowDet === i) {
return (this.isApproveShowDet = '');
}
return (this.isApproveShowDet = i);
}
toggleBreakDetails(data, i) {
if (this.isBreakShowHisDet === i) {
this.showBtn = true;
return (this.isBreakShowHisDet = '');
}
this.showBtn = false;
return (this.isBreakShowHisDet = i);
}
modelClose() {
this.getTimesheetData();
this.modelService.dismissAll();
}
parseTimeString(timeString) {
const [hourString, minuteString] = timeString.split(':');
const hour = parseInt(hourString, 10);
const minute = parseInt(minuteString, 10);
return { hour, minute };
}
formatTimeObject(timeObject) {
return `${timeObject.hour}:${timeObject.minute}`;
}
enableLockAllBtn(value) {
this.enableLockAll = value;
}
}
TimesheetDataComponent.ɵfac = function TimesheetDataComponent_Factory(t) { return new (t || TimesheetDataComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__["ShiftSchedulerService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"])); };
TimesheetDataComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: TimesheetDataComponent, selectors: [["app-timesheet-data"]], viewQuery: function TimesheetDataComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.AddShiftHours = _t.first);
} }, inputs: { businessUnitId: "businessUnitId", refresh: "refresh" }, outputs: { onBtnCloseClick: "onBtnCloseClick" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 25, vars: 5, consts: [[1, "tab-content"], [1, "panel"], [1, "panel-heading"], [1, "card-header", "d-flex", "justify-content-between", "align-items-center", "bg-theme"], [1, "m-0"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "btn", "btn-outline-light", "btn-sm", "ml-1"], [1, "panel-body"], [1, "row"], [1, "col-md-12"], ["type", "text", "id", "f.userInfo.name", "placeholder", "Search by User Name or Staff ID", "autocomplete", "off", 1, "form-control", "my-2", 3, "ngModel", "ngModelChange"], [1, "table-responsive"], ["class", "loader", 4, "ngIf"], ["class", "table bg-white", 4, "ngIf"], ["class", "bg-white text-center p-3", 4, "ngIf"], ["AddShiftHours", ""], [1, "loader"], [1, "pageLoading"], [1, "innerDiv"], [1, "fa", "fa-spinner", "fa-spin", 2, "float", "none"], [1, "table", "bg-white"], ["rowspan", "2", "data-orderable", "true", 1, "headTh", 2, "text-align", "center", "background", "#ddd", "width", "10%"], ["rowspan", "2", 1, "headTh", 2, "text-align", "center", "background", "#ddd"], ["rowspan", "2", 1, "headTh", 2, "text-align", "center", "background", "#ddd", "padding-left", "20px", "padding-right", "25px"], ["colspan", "2", 1, "headTh", 2, "text-align", "center", "background", "#ddd"], ["rowspan", "2", 1, "headTh", 2, "text-align", "center", "background", "#ddd", "width", "5%"], ["colspan", "3", 1, "headTh", 2, "text-align", "center", "background", "#ddd"], ["rowspan", "2", 1, "headTh", "w-75", 2, "background", "#ddd"], [1, "d-flex", "flex-column"], [1, "text-center"], ["type", "checkbox", 1, "align-self-center", "shiftInput", "m-1", 3, "disabled", "checked", "change"], ["type", "button", 1, "align-self-center", "btn", "btn-info", "w-[100%]", 2, "font-size", "10px", "background-color", "#a42138", "cursor", "not-allowed", 3, "disabled"], [1, "headTd", 2, "text-align", "center", "color", "green", "font-weight", "700", "background", "#ddd"], [1, "headTd", 2, "text-align", "center", "color", "#a42138", "font-weight", "700", "background", "#ddd"], [1, "headTd", 2, "text-align", "center", "font-weight", "700", "background", "#ddd"], [4, "ngFor", "ngForOf"], [1, "headTd"], ["class", "m-0 text-primary font-weight-normal", 4, "ngIf"], [1, "headTd", "p-0", "text-center"], [4, "ngIf", "ngIfElse"], ["startTimeBlock", ""], ["endTimeBlock", ""], ["class", "m-0", 4, "ngIf"], [4, "ngIf"], ["type", "checkbox", 1, "shiftInput", 2, "margin", "5px", "height", "17px", "width", "15px", 3, "checked", "click", "change"], ["type", "checkbox", 1, "shiftInput", "ml-3", 2, "margin", "5px", "height", "17px", "width", "15px", 3, "disabled", "checked", "click", "change"], [1, "headTd", "text-center"], ["class", "material-icons text-success", 4, "ngIf"], [1, "m-0", "text-primary", "font-weight-normal"], ["class", "d-flex", 4, "ngFor", "ngForOf"], [1, "d-flex"], ["class", "btn addBreakMultiple", 3, "click", 4, "ngIf"], ["class", "btn subBreakMultiple", 3, "click", 4, "ngIf"], [1, "btn", "addBreakMultiple", 3, "click"], [1, "btn", "subBreakMultiple", 3, "click"], [1, "p-1"], [1, "material-icons", "text-success"], [1, "d-flex", "flex-column", "justify-content-center"], [1, "btn", "apprDet", "btn-sm", 3, "click"], [1, "align-items-center", "d-flex", "justify-content-between"], ["class", "form-check", 4, "ngIf"], ["class", "align-items-center d-flex justify-content-center mt-1", 4, "ngIf"], [1, "table"], [1, "form-check"], ["type", "checkbox", 1, "form-check-input", "position-static", "checkBox-lg", 3, "checked"], [1, "align-items-center", "mt-3", "d-flex", "justify-content-start"], [1, "fa", "fa-lock", "fa-2x"], [1, "btn", "bg-theme", "ml-2"], [1, "font-weight-lighter", "m-0"], [1, "align-items-center", "d-flex", "justify-content-center", "mt-1"], [1, "fa", "fa-unlock", "fa-2x"], [1, "btn", "lockBtn", "ml-1", 3, "click"], [1, "bg-white", "text-center", "p-3"], [1, "modal-content"], [1, "modal-body"], ["class", "modal-title m-3", 4, "ngIf"], [3, "formGroup"], ["class", "row", 4, "ngIf"], [1, "col-md-12", "mt-4", "d-flex", "align-items-center"], [1, "font-weight-bold", "breakText"], [1, "font-weight-bold"], [1, "col-md-12", "d-flex"], [1, "font-weight-bold", "mr-3"], ["style", "font-size: 1.2em; color: red;", 4, "ngIf"], ["type", "text", "formControlName", "neitherRemarks", 1, "form-control", "not-allowed"], [1, "row", "d-flex", "justify-content-center", "mt-5"], ["type", "button", 1, "btn", "btn-success", 3, "click"], ["type", "button", 1, "btn", "btn-danger", "ml-3", 3, "click"], [1, "modal-title", "m-3"], [1, "col-md-6"], ["disabled", "", "type", "text", "formControlName", "startTime", 1, "form-control", "disabled"], ["disabled", "", "type", "text", "formControlName", "endTime", 1, "form-control", "disabled"], ["disabled", "", "type", "text", "formControlName", "clockedStartTime", 1, "form-control", "disabled"], ["disabled", "", "type", "text", "formControlName", "clockedEndTime", 1, "form-control", "disabled"], ["type", "text", "formControlName", "neitherstartTime", 1, "form-control"], ["type", "text", "formControlName", "neitherendTime", 1, "form-control"], [1, "addBreak", "ml-2", 3, "click"], [1, "modal-title", "ml-3"], [1, "breakTimeTable"], ["disabled", "", "type", "text", "formControlName", "startDate", 1, "form-control"], [1, "tdSize"], ["formControlName", "inputstartTime"], ["disabled", "", "type", "text", "formControlName", "endDate", 1, "form-control"], ["formControlName", "inputendTime"], ["type", "button", "class", "btn btn-success", 3, "click", 4, "ngIf"], [2, "font-size", "1.2em", "color", "red"]], template: function TimesheetDataComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h5", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "CURRENT SHIFTS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "p", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "button", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function TimesheetDataComponent_Template_button_click_10_listener() { return ctx.exportTimesheet(); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, " Export Timesheet ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "Back");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](15, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "input", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function TimesheetDataComponent_Template_input_ngModelChange_17_listener($event) { return ctx.searchString = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](19, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](20, TimesheetDataComponent_div_20_Template, 5, 0, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](21, TimesheetDataComponent_table_21_Template, 51, 7, "table", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](22, TimesheetDataComponent_div_22_Template, 2, 0, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](23, TimesheetDataComponent_ng_template_23_Template, 30, 10, "ng-template", null, 15, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" Selected Business Unit : ", ctx.businessUnitId.orgName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.searchString);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.timeSheetDataLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.timeSheetDataLoader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", (ctx.timeSheetData == null ? null : ctx.timeSheetData.length) === 0);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_3__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_9__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormControlName"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbTimepicker"]], pipes: [_shared_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_11__["FilterPipe"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"]], styles: [".facialBox[_ngcontent-%COMP%] {\n position: relative;\n}\n\n.shiftTime[_ngcontent-%COMP%] {\n position: absolute;\n left: 100%;\n top: 12%;\n}\n\n.ShiftStart[_ngcontent-%COMP%] {\n background: #a42138;\n width: 85px;\n text-align: center;\n padding-top: 5px;\n}\n\n.toast-top-right[_ngcontent-%COMP%] {\n display: block;\n z-index: 10055;\n opacity: 1;\n position: absolute;\n left: 0;\n top: 20px;\n}\n\n.ShiftStart[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n color: white;\n}\n\n.ShiftEnd[_ngcontent-%COMP%] {\n background: green;\n margin-top: 10px;\n}\n\nbody[_ngcontent-%COMP%] div#mySidenav[_ngcontent-%COMP%] {\n left: -600px;\n}\n\nbody[_ngcontent-%COMP%] div#mySidenav.opensCCCC[_ngcontent-%COMP%] {\n left: 230px;\n}\n\n.right-section.closeRightMenu.moveRight[_ngcontent-%COMP%] {\n margin-left: 490px;\n}\n\n.breakTimeTable[_ngcontent-%COMP%] {\n border-collapse: separate;\n border-spacing: 10px;\n}\n\n.tdSize[_ngcontent-%COMP%] {\n width: 70px;\n}\n\n.container[_ngcontent-%COMP%] {\n max-width: 800px;\n margin: 20px auto;\n padding: 20px;\n}\n\n.app[_ngcontent-%COMP%] {\n width: 100%;\n position: relative;\n}\n\n.apprDet[_ngcontent-%COMP%] {\n background-color: orangered;\n color: white;\n padding: 6px;\n font-size: 10px;\n}\n\n.app[_ngcontent-%COMP%] #start-camera[_ngcontent-%COMP%] {\n \n border-radius: 3px;\n max-width: 400px;\n color: #fff;\n background-color: #448aff;\n text-decoration: none;\n padding: 15px;\n opacity: 0.8;\n margin: 50px auto;\n text-align: center;\n}\n\n.app[_ngcontent-%COMP%] video#camera-stream[_ngcontent-%COMP%] {\n display: none;\n width: 100%;\n}\n\n.lowOpacity[_ngcontent-%COMP%] {\n opacity: 0.1;\n}\n\n#snaps[_ngcontent-%COMP%] {\n position: absolute;\n top: 100px;\n left: 0;\n width: 150px;\n z-index: 10;\n \n margin-left: auto;\n margin-right: auto;\n right: 0;\n}\n\n.app[_ngcontent-%COMP%] #error-message[_ngcontent-%COMP%] {\n width: 100%;\n background-color: #ccc;\n color: #9b9b9b;\n font-size: 28px;\n padding: 200px 100px;\n text-align: center;\n display: none;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 20;\n display: flex;\n align-items: flex-end;\n justify-content: space-between;\n padding: 30px;\n display: none;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] {\n border-radius: 50%;\n color: #fff;\n background-color: #111;\n text-decoration: none;\n padding: 15px;\n line-height: 0;\n opacity: 0.7;\n outline: none;\n -webkit-tap-highlight-color: transparent;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover {\n opacity: 1;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%] {\n background-color: #555;\n opacity: 0.5;\n cursor: default;\n pointer-events: none;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]:hover {\n opacity: 0.5;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 18px;\n}\n\n.app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] #take-photo[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 32px;\n}\n\n.app[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%] {\n display: none;\n}\n\n.app[_ngcontent-%COMP%] video#camera-stream.visible[_ngcontent-%COMP%], .app[_ngcontent-%COMP%] img#snap.visible[_ngcontent-%COMP%], .app[_ngcontent-%COMP%] #error-message.visible[_ngcontent-%COMP%] {\n display: block;\n}\n\n.app[_ngcontent-%COMP%] .controls.visible[_ngcontent-%COMP%] {\n display: flex;\n}\n\n@media (max-width: 1000px) {\n .container[_ngcontent-%COMP%] {\n margin: 40px;\n }\n\n .app[_ngcontent-%COMP%] #start-camera.visible[_ngcontent-%COMP%] {\n display: block;\n }\n\n .app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 16px;\n }\n\n .app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] #take-photo[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 24px;\n }\n}\n\n.systemTimeBox[_ngcontent-%COMP%] {\n background: #1e88e5e8;\n padding: 5px 15px;\n border: 2px;\n color: white;\n border-radius: 5px;\n margin-right: 10px;\n}\n\n.okBtn[_ngcontent-%COMP%] {\n padding: 5px 15px;\n color: white;\n background: red;\n border: 2px;\n border-radius: 5px;\n}\n\n.dashBox[_ngcontent-%COMP%] {\n margin-top: 10px;\n text-align: center;\n}\n\n.addBreakMultiple[_ngcontent-%COMP%] {\n background: #146e23;\n color: white;\n height: 20px;\n width: 21px;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-left: 2px;\n}\n\n.subBreakMultiple[_ngcontent-%COMP%] {\n background: #aa1f06;\n display: flex;\n height: 20px;\n width: 21px;\n justify-content: center;\n align-items: center;\n color: white;\n}\n\n.greenBtn[_ngcontent-%COMP%] {\n padding: 5px 15px;\n color: white;\n background: green;\n border: 2px;\n border-radius: 5px;\n}\n\n.Nothing[_ngcontent-%COMP%] {\n background: transparent;\n border: transparent;\n}\n\n.greenCheck[_ngcontent-%COMP%] {\n text-align: end;\n position: relative;\n top: 35px;\n}\n\n.redCross[_ngcontent-%COMP%] {\n position: relative;\n top: 45px;\n}\n\n.form-group.white[_ngcontent-%COMP%] {\n color: white;\n}\n\n.modalContentBoxGrey[_ngcontent-%COMP%] {\n background: #ddd;\n}\n\n.modalContentBoxRed[_ngcontent-%COMP%] {\n background: #a42138;\n}\n\n.labelTitle[_ngcontent-%COMP%] {\n font-weight: 400;\n}\n\n@media (max-width: 600px) {\n .container[_ngcontent-%COMP%] {\n margin: 10px;\n }\n\n .app[_ngcontent-%COMP%] #error-message[_ngcontent-%COMP%] {\n padding: 80px 50px;\n font-size: 18px;\n }\n\n .app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 12px;\n }\n\n .app[_ngcontent-%COMP%] .controls[_ngcontent-%COMP%] #take-photo[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 18px;\n }\n}\n\n.headTh[_ngcontent-%COMP%], .headTd[_ngcontent-%COMP%] {\n border: 1px solid #81848d40;\n border-collapse: collapse;\n color: #000000d4;\n font-weight: 700 !important;\n font-size: 12px;\n vertical-align: middle;\n}\n\n.redbtn[_ngcontent-%COMP%] {\n width: 20px;\n color: white;\n border: 2px solid;\n background-color: #a42138;\n border-radius: 5px;\n}\n\n.greenbtn[_ngcontent-%COMP%] {\n background-color: #478d30;\n}\n\n.selectedBox[_ngcontent-%COMP%] {\n width: 50% !important;\n padding-left: 10px;\n margin-left: 20px;\n}\n\n.addBreak[_ngcontent-%COMP%] {\n height: 20px;\n display: flex;\n align-items: center;\n padding: 6px;\n background-color: orange;\n font-weight: bold;\n cursor: pointer;\n}\n\n.backBtn[_ngcontent-%COMP%] {\n background-color: cadetblue !important;\n color: white !important;\n border: 1px solid #dddddd !important;\n}\n\n.lockedBtn[_ngcontent-%COMP%] {\n background-color: #a42138 !important;\n pointer-events: none;\n}\n\n.disableCheck[_ngcontent-%COMP%] {\n pointer-events: none;\n}\n\n.lockBtn[_ngcontent-%COMP%] {\n padding-left: 5px;\n padding-right: 5px;\n background-color: #3e8623;\n border: 1px solid;\n border-radius: 5px;\n color: white;\n}\n\ninput.checkBoxInput[type=checkbox][_ngcontent-%COMP%] {\n cursor: pointer;\n width: 25px;\n height: 25px;\n background: white;\n}\n\ninput.shiftInput[type=checkbox][_ngcontent-%COMP%] {\n cursor: pointer;\n width: 15px;\n height: 15px;\n background: white;\n border-radius: 3px;\n}\n\ninput.checkBoxInput[type=checkbox][_ngcontent-%COMP%]:checked {\n color: #2ecc71;\n}\n\n.orangeBtn[_ngcontent-%COMP%] {\n background: orangered !important;\n border-color: orangered !important;\n font-size: 12px;\n}\n\n.redBtn[_ngcontent-%COMP%] {\n background: red !important;\n border-color: red !important;\n font-size: 12px;\n}\n\n.greyBtn[_ngcontent-%COMP%] {\n background: gray !important;\n border-color: gray !important;\n font-size: 12px;\n}\n\n.greenBtn[_ngcontent-%COMP%] {\n background: #3ab54a !important;\n border-color: #3ab54a !important;\n font-size: 12px;\n}\n\n.disableIn[_ngcontent-%COMP%] {\n cursor: not-allowed !important;\n}\n\n.breakText[_ngcontent-%COMP%] {\n font-size: 20px;\n}\n\n.box[_ngcontent-%COMP%] {\n width: 120px;\n border: solid 2px black;\n}\n\n\n\n@keyframes hvr-buzz {\n 50% {\n transform: translateX(3px) rotate(2deg);\n }\n 100% {\n transform: translateX(-3px) rotate(-2deg);\n }\n}\n\n.hvr-buzz[_ngcontent-%COMP%] {\n display: inline-block;\n vertical-align: middle;\n transform: perspective(1px) translateZ(0);\n box-shadow: 0 0 1px rgba(0, 0, 0, 0);\n}\n\n.hvr-buzz[_ngcontent-%COMP%]:hover, .hvr-buzz[_ngcontent-%COMP%]:focus, .hvr-buzz[_ngcontent-%COMP%]:active {\n animation-name: hvr-buzz;\n animation-duration: 0.15s;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n}\n\n\n\n@keyframes hvr-pulse {\n 25% {\n transform: scale(1.1);\n }\n 75% {\n transform: scale(0.9);\n }\n}\n\n.hvr-pulse[_ngcontent-%COMP%] {\n display: inline-block;\n vertical-align: middle;\n transform: perspective(1px) translateZ(0);\n box-shadow: 0 0 1px rgba(0, 0, 0, 0);\n}\n\n.hvr-pulse[_ngcontent-%COMP%]:hover, .hvr-pulse[_ngcontent-%COMP%]:focus, .hvr-pulse[_ngcontent-%COMP%]:active {\n animation-name: hvr-pulse;\n animation-duration: 1s;\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n}\n\n.loadingDiv[_ngcontent-%COMP%] {\n position: absolute;\n top: 35%;\n right: 50%;\n \n \n background-repeat: no-repeat;\n background-position: center;\n z-index: 10000000;\n opacity: 0.8;\n}\n\n.loadingDiv1[_ngcontent-%COMP%] {\n position: absolute;\n top: 100px;\n right: 50%;\n \n \n background-repeat: no-repeat;\n background-position: center;\n z-index: 10000000;\n opacity: 0.8;\n}\n\n.bg-theme[_ngcontent-%COMP%] {\n background-color: #a42138;\n color: #fff;\n}\n\n.checkBox-lg[_ngcontent-%COMP%] {\n width: 1.3rem;\n height: 1.3rem;\n}\n\n.loader[_ngcontent-%COMP%] {\n background-color: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n right: 0;\n left: 0;\n bottom: 0;\n background-repeat: no-repeat;\n background-position: center;\n z-index: 1050;\n opacity: 0.8;\n}\n\n.loader[_ngcontent-%COMP%] .pageLoading[_ngcontent-%COMP%] {\n text-align: center;\n color: white;\n font-size: 25px;\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvb3BlcmF0aW9ucy9zaGlmdC1zY2hlZHVsZXIvdGltZXNoZWV0L3RpbWVzaGVldC1kYXRhL3RpbWVzaGVldC1kYXRhLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usa0JBQUE7QUFDRjs7QUFFQTtFQUNFLGtCQUFBO0VBQ0EsVUFBQTtFQUNBLFFBQUE7QUFDRjs7QUFFQTtFQUNFLG1CQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0VBQ0EsZ0JBQUE7QUFDRjs7QUFVQTtFQUNFLGNBQUE7RUFDQSxjQUFBO0VBQ0EsVUFBQTtFQUNBLGtCQUFBO0VBQ0EsT0FBQTtFQUNBLFNBQUE7QUFQRjs7QUF3QkE7RUFDRSxZQUFBO0FBckJGOztBQXdCQTtFQUNFLGlCQUFBO0VBQ0EsZ0JBQUE7QUFyQkY7O0FBd0JBO0VBQ0UsWUFBQTtBQXJCRjs7QUF3QkE7RUFDRSxXQUFBO0FBckJGOztBQXdCQTtFQUNFLGtCQUFBO0FBckJGOztBQXVCQTtFQUNFLHlCQUFBO0VBQ0Esb0JBQUE7QUFwQkY7O0FBdUJBO0VBQ0UsV0FBQTtBQXBCRjs7QUFzQkE7RUFDRSxnQkFBQTtFQUNBLGlCQUFBO0VBQ0EsYUFBQTtBQW5CRjs7QUFzQkE7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsMkJBQUE7RUFDQSxZQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7QUFuQkY7O0FBcUJBO0VBQ0UsbUJBQUE7RUFDQSxrQkFBQTtFQUNBLGdCQUFBO0VBQ0EsV0FBQTtFQUNBLHlCQUFBO0VBQ0EscUJBQUE7RUFDQSxhQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7QUFsQkY7O0FBcUJBO0VBQ0UsYUFBQTtFQUNBLFdBQUE7QUFsQkY7O0FBcUJBO0VBQ0UsWUFBQTtBQWxCRjs7QUFxQkE7RUFDRSxrQkFBQTtFQUNBLFVBQUE7RUFDQSxPQUFBO0VBQ0EsWUFBQTtFQUNBLFdBQUE7RUFDQSxtQkFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxRQUFBO0FBbEJGOztBQXFCQTtFQUNFLFdBQUE7RUFDQSxzQkFBQTtFQUNBLGNBQUE7RUFDQSxlQUFBO0VBQ0Esb0JBQUE7RUFDQSxrQkFBQTtFQUNBLGFBQUE7QUFsQkY7O0FBcUJBO0VBQ0Usa0JBQUE7RUFDQSxNQUFBO0VBQ0EsT0FBQTtFQUNBLFdBQUE7RUFDQSxZQUFBO0VBQ0EsV0FBQTtFQUVBLGFBQUE7RUFDQSxxQkFBQTtFQUNBLDhCQUFBO0VBQ0EsYUFBQTtFQUNBLGFBQUE7QUFuQkY7O0FBc0JBO0VBQ0Usa0JBQUE7RUFDQSxXQUFBO0VBQ0Esc0JBQUE7RUFDQSxxQkFBQTtFQUNBLGFBQUE7RUFDQSxjQUFBO0VBQ0EsWUFBQTtFQUNBLGFBQUE7RUFDQSx3Q0FBQTtBQW5CRjs7QUFzQkE7RUFDRSxVQUFBO0FBbkJGOztBQXNCQTtFQUNFLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7RUFDQSxvQkFBQTtBQW5CRjs7QUFzQkE7RUFDRSxZQUFBO0FBbkJGOztBQXNCQTtFQUNFLGVBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsZUFBQTtBQW5CRjs7QUFzQkE7RUFDRSxhQUFBO0FBbkJGOztBQXNCQTs7O0VBR0UsY0FBQTtBQW5CRjs7QUFzQkE7RUFDRSxhQUFBO0FBbkJGOztBQXNCQTtFQUNFO0lBQ0UsWUFBQTtFQW5CRjs7RUFzQkE7SUFDRSxjQUFBO0VBbkJGOztFQXNCQTtJQUNFLGVBQUE7RUFuQkY7O0VBc0JBO0lBQ0UsZUFBQTtFQW5CRjtBQUNGOztBQXNCQTtFQUNFLHFCQUFBO0VBQ0EsaUJBQUE7RUFDQSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGtCQUFBO0VBQ0Esa0JBQUE7QUFwQkY7O0FBdUJBO0VBQ0UsaUJBQUE7RUFDQSxZQUFBO0VBQ0EsZUFBQTtFQUNBLFdBQUE7RUFDQSxrQkFBQTtBQXBCRjs7QUF1QkE7RUFDRSxnQkFBQTtFQUNBLGtCQUFBO0FBcEJGOztBQXVCQTtFQUNFLG1CQUFBO0VBQ0EsWUFBQTtFQUNBLFlBQUE7RUFDQSxXQUFBO0VBQ0EsYUFBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxnQkFBQTtBQXBCRjs7QUF1QkE7RUFDRSxtQkFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0VBQ0EsV0FBQTtFQUNBLHVCQUFBO0VBQ0EsbUJBQUE7RUFDQSxZQUFBO0FBcEJGOztBQXNCQTtFQUNFLGlCQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0EsV0FBQTtFQUNBLGtCQUFBO0FBbkJGOztBQXNCQTtFQUNFLHVCQUFBO0VBQ0EsbUJBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsZUFBQTtFQUNBLGtCQUFBO0VBQ0EsU0FBQTtBQW5CRjs7QUFzQkE7RUFDRSxrQkFBQTtFQUNBLFNBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsWUFBQTtBQW5CRjs7QUFzQkE7RUFDRSxnQkFBQTtBQW5CRjs7QUFzQkE7RUFDRSxtQkFBQTtBQW5CRjs7QUFzQkE7RUFDRSxnQkFBQTtBQW5CRjs7QUFzQkE7RUFDRTtJQUNFLFlBQUE7RUFuQkY7O0VBc0JBO0lBQ0Usa0JBQUE7SUFDQSxlQUFBO0VBbkJGOztFQXNCQTtJQUNFLGVBQUE7RUFuQkY7O0VBc0JBO0lBQ0UsZUFBQTtFQW5CRjtBQUNGOztBQXNCQTs7RUFFRSwyQkFBQTtFQUNBLHlCQUFBO0VBQ0EsZ0JBQUE7RUFDQSwyQkFBQTtFQUNBLGVBQUE7RUFDQSxzQkFBQTtBQXBCRjs7QUF1QkE7RUFDRSxXQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0EseUJBQUE7RUFDQSxrQkFBQTtBQXBCRjs7QUF1QkE7RUFDRSx5QkFBQTtBQXBCRjs7QUF1QkE7RUFDRSxxQkFBQTtFQUNBLGtCQUFBO0VBQ0EsaUJBQUE7QUFwQkY7O0FBc0JBO0VBQ0UsWUFBQTtFQUNBLGFBQUE7RUFDQSxtQkFBQTtFQUNBLFlBQUE7RUFDQSx3QkFBQTtFQUNBLGlCQUFBO0VBQ0EsZUFBQTtBQW5CRjs7QUFzQkE7RUFDRSxzQ0FBQTtFQUNBLHVCQUFBO0VBQ0Esb0NBQUE7QUFuQkY7O0FBc0JBO0VBQ0Usb0NBQUE7RUFDQSxvQkFBQTtBQW5CRjs7QUFzQkE7RUFDRSxvQkFBQTtBQW5CRjs7QUFzQkE7RUFDRSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EseUJBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0VBQ0EsWUFBQTtBQW5CRjs7QUFzQkE7RUFDRSxlQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxpQkFBQTtBQW5CRjs7QUFzQkE7RUFDRSxlQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSxpQkFBQTtFQUNBLGtCQUFBO0FBbkJGOztBQXNCQTtFQUNFLGNBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsZ0NBQUE7RUFDQSxrQ0FBQTtFQUNBLGVBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsMEJBQUE7RUFDQSw0QkFBQTtFQUNBLGVBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsMkJBQUE7RUFDQSw2QkFBQTtFQUNBLGVBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsOEJBQUE7RUFDQSxnQ0FBQTtFQUNBLGVBQUE7QUFuQkY7O0FBc0JBO0VBQ0UsOEJBQUE7QUFuQkY7O0FBcUJBO0VBQ0UsZUFBQTtBQWxCRjs7QUFxQkE7RUFDRSxZQUFBO0VBQ0EsdUJBQUE7QUFsQkY7O0FBcUJBLFNBQUE7O0FBYUE7RUFDRTtJQUVFLHVDQUFBO0VBcEJGO0VBdUJBO0lBRUUseUNBQUE7RUFyQkY7QUFDRjs7QUF3QkE7RUFDRSxxQkFBQTtFQUNBLHNCQUFBO0VBRUEseUNBQUE7RUFDQSxvQ0FBQTtBQXRCRjs7QUF5QkE7OztFQUlFLHdCQUFBO0VBRUEseUJBQUE7RUFFQSxpQ0FBQTtFQUVBLG1DQUFBO0FBdEJGOztBQXlCQSxVQUFBOztBQWFBO0VBQ0U7SUFFRSxxQkFBQTtFQXhCRjtFQTJCQTtJQUVFLHFCQUFBO0VBekJGO0FBQ0Y7O0FBNEJBO0VBQ0UscUJBQUE7RUFDQSxzQkFBQTtFQUVBLHlDQUFBO0VBQ0Esb0NBQUE7QUExQkY7O0FBNkJBOzs7RUFJRSx5QkFBQTtFQUVBLHNCQUFBO0VBRUEsaUNBQUE7RUFFQSxtQ0FBQTtBQTFCRjs7QUE0QkE7RUFDRSxrQkFBQTtFQUNBLFFBQUE7RUFDQSxVQUFBO0VBQ0E7Z0JBQUE7RUFFQSwwQkFBQTtFQUNBLDRCQUFBO0VBQ0EsMkJBQUE7RUFDQSxpQkFBQTtFQUNBLFlBQUE7QUF6QkY7O0FBMkJBO0VBQ0Usa0JBQUE7RUFDQSxVQUFBO0VBQ0EsVUFBQTtFQUNBO2dCQUFBO0VBRUEsMEJBQUE7RUFDQSw0QkFBQTtFQUNBLDJCQUFBO0VBQ0EsaUJBQUE7RUFDQSxZQUFBO0FBeEJGOztBQTJCQTtFQUNFLHlCQUFBO0VBQ0EsV0FBQTtBQXhCRjs7QUEyQkE7RUFDRSxhQUFBO0VBQ0EsY0FBQTtBQXhCRjs7QUEyQkE7RUFDRSxvQ0FBQTtFQUNDLGVBQUE7RUFDRCxNQUFBO0VBQ0EsUUFBQTtFQUNBLE9BQUE7RUFDQSxTQUFBO0VBQ0EsNEJBQUE7RUFDQSwyQkFBQTtFQUNBLGFBQUE7RUFDQSxZQUFBO0FBeEJGOztBQXlCRTtFQUNFLGtCQUFBO0VBQ0EsWUFBQTtFQUNBLGVBQUE7RUFDQSxlQUFBO0VBQ0EsUUFBQTtFQUNBLFNBQUE7RUFDQSxnQ0FBQTtBQXZCSiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL29wZXJhdGlvbnMvc2hpZnQtc2NoZWR1bGVyL3RpbWVzaGVldC90aW1lc2hlZXQtZGF0YS90aW1lc2hlZXQtZGF0YS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5mYWNpYWxCb3gge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG59XG5cbi5zaGlmdFRpbWUge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGxlZnQ6IDEwMCU7XG4gIHRvcDogMTIlO1xufVxuXG4uU2hpZnRTdGFydCB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG4gIHdpZHRoOiA4NXB4O1xuICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gIHBhZGRpbmctdG9wOiA1cHg7XG59XG5cbi8vIC5vdmVybGF5LWNvbnRhaW5lciAudG9hc3QtdG9wLXJpZ2h0IHRvYXN0LWNvbnRhaW5lciB7XG4vLyAgIC8vIHBvaW50ZXItZXZlbnRzOiBub25lO1xuLy8gICAvLyBwb3NpdGlvbjogZml4ZWQ7XG4vLyAgIHotaW5kZXg6IDk5OTk5OTtcbi8vIH1cbi8vIC50b2FzdC1jb250YWluZXIgKiB7XG4vLyAgIGJveC1zaXppbmc6IGJvcmRlci1ib3g7XG4vLyB9XG4udG9hc3QtdG9wLXJpZ2h0IHtcbiAgZGlzcGxheTogYmxvY2s7XG4gIHotaW5kZXg6IDEwMDU1O1xuICBvcGFjaXR5OiAxO1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIGxlZnQ6IDA7XG4gIHRvcDogMjBweDtcbn1cbi8vdG9hc3QtdG9wLXJpZ2h0IHRvYXN0LWNvbnRhaW5lclxuLy8gLnRvYXN0LWNvbnRhaW5lciAubmd4LXRvYXN0ciB7XG4vLyAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbi8vICAgb3ZlcmZsb3c6IGhpZGRlbjtcbi8vICAgbWFyZ2luOiAwIDAgNnB4O1xuLy8gICBwYWRkaW5nOiAxNXB4IDE1cHggMTVweCA1MHB4O1xuLy8gICB3aWR0aDogMzAwcHg7XG4vLyAgIGJvcmRlci1yYWRpdXM6IDNweCAzcHggM3B4IDNweDtcbi8vICAgYmFja2dyb3VuZC1wb3NpdGlvbjogMTVweCBjZW50ZXI7XG4vLyAgIGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG4vLyAgIGJhY2tncm91bmQtc2l6ZTogMjRweDtcbi8vICAgYm94LXNoYWRvdzogMCAwIDEycHggIzk5OTk5OTtcbi8vICAgY29sb3I6ICNGRkZGRkY7XG4vLyB9XG5cbi5TaGlmdFN0YXJ0IGxhYmVsIHtcbiAgY29sb3I6IHdoaXRlO1xufVxuXG4uU2hpZnRFbmQge1xuICBiYWNrZ3JvdW5kOiBncmVlbjtcbiAgbWFyZ2luLXRvcDogMTBweDtcbn1cblxuYm9keSBkaXYjbXlTaWRlbmF2IHtcbiAgbGVmdDogLTYwMHB4O1xufVxuXG5ib2R5IGRpdiNteVNpZGVuYXYub3BlbnNDQ0NDIHtcbiAgbGVmdDogMjMwcHg7XG59XG5cbi5yaWdodC1zZWN0aW9uLmNsb3NlUmlnaHRNZW51Lm1vdmVSaWdodCB7XG4gIG1hcmdpbi1sZWZ0OiA0OTBweDtcbn1cbi5icmVha1RpbWVUYWJsZSB7XG4gIGJvcmRlci1jb2xsYXBzZTogc2VwYXJhdGU7XG4gIGJvcmRlci1zcGFjaW5nOiAxMHB4O1xufVxuXG4udGRTaXplIHtcbiAgd2lkdGg6IDcwcHg7XG59XG4uY29udGFpbmVyIHtcbiAgbWF4LXdpZHRoOiA4MDBweDtcbiAgbWFyZ2luOiAyMHB4IGF1dG87XG4gIHBhZGRpbmc6IDIwcHg7XG59XG5cbi5hcHAge1xuICB3aWR0aDogMTAwJTtcbiAgcG9zaXRpb246IHJlbGF0aXZlO1xufVxuXG4uYXBwckRldCB7XG4gIGJhY2tncm91bmQtY29sb3I6IG9yYW5nZXJlZDtcbiAgY29sb3I6IHdoaXRlO1xuICBwYWRkaW5nOiA2cHg7XG4gIGZvbnQtc2l6ZTogMTBweDtcbn1cbi5hcHAgI3N0YXJ0LWNhbWVyYSB7XG4gIC8qIGRpc3BsYXk6IG5vbmU7ICovXG4gIGJvcmRlci1yYWRpdXM6IDNweDtcbiAgbWF4LXdpZHRoOiA0MDBweDtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICM0NDhhZmY7XG4gIHRleHQtZGVjb3JhdGlvbjogbm9uZTtcbiAgcGFkZGluZzogMTVweDtcbiAgb3BhY2l0eTogMC44O1xuICBtYXJnaW46IDUwcHggYXV0bztcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuXG4uYXBwIHZpZGVvI2NhbWVyYS1zdHJlYW0ge1xuICBkaXNwbGF5OiBub25lO1xuICB3aWR0aDogMTAwJTtcbn1cblxuLmxvd09wYWNpdHkge1xuICBvcGFjaXR5OiAwLjE7XG59XG5cbiNzbmFwcyB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAxMDBweDtcbiAgbGVmdDogMDtcbiAgd2lkdGg6IDE1MHB4O1xuICB6LWluZGV4OiAxMDtcbiAgLyogZGlzcGxheTogbm9uZTsgKi9cbiAgbWFyZ2luLWxlZnQ6IGF1dG87XG4gIG1hcmdpbi1yaWdodDogYXV0bztcbiAgcmlnaHQ6IDA7XG59XG5cbi5hcHAgI2Vycm9yLW1lc3NhZ2Uge1xuICB3aWR0aDogMTAwJTtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2NjYztcbiAgY29sb3I6ICM5YjliOWI7XG4gIGZvbnQtc2l6ZTogMjhweDtcbiAgcGFkZGluZzogMjAwcHggMTAwcHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmFwcCAuY29udHJvbHMge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMDtcbiAgbGVmdDogMDtcbiAgd2lkdGg6IDEwMCU7XG4gIGhlaWdodDogMTAwJTtcbiAgei1pbmRleDogMjA7XG5cbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGZsZXgtZW5kO1xuICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gIHBhZGRpbmc6IDMwcHg7XG4gIGRpc3BsYXk6IG5vbmU7XG59XG5cbi5hcHAgLmNvbnRyb2xzIGEge1xuICBib3JkZXItcmFkaXVzOiA1MCU7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMTExO1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG4gIHBhZGRpbmc6IDE1cHg7XG4gIGxpbmUtaGVpZ2h0OiAwO1xuICBvcGFjaXR5OiAwLjc7XG4gIG91dGxpbmU6IG5vbmU7XG4gIC13ZWJraXQtdGFwLWhpZ2hsaWdodC1jb2xvcjogdHJhbnNwYXJlbnQ7XG59XG5cbi5hcHAgLmNvbnRyb2xzIGE6aG92ZXIge1xuICBvcGFjaXR5OiAxO1xufVxuXG4uYXBwIC5jb250cm9scyBhLmRpc2FibGVkIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogIzU1NTtcbiAgb3BhY2l0eTogMC41O1xuICBjdXJzb3I6IGRlZmF1bHQ7XG4gIHBvaW50ZXItZXZlbnRzOiBub25lO1xufVxuXG4uYXBwIC5jb250cm9scyBhLmRpc2FibGVkOmhvdmVyIHtcbiAgb3BhY2l0eTogMC41O1xufVxuXG4uYXBwIC5jb250cm9scyBhIGkge1xuICBmb250LXNpemU6IDE4cHg7XG59XG5cbi5hcHAgLmNvbnRyb2xzICN0YWtlLXBob3RvIGkge1xuICBmb250LXNpemU6IDMycHg7XG59XG5cbi5hcHAgY2FudmFzIHtcbiAgZGlzcGxheTogbm9uZTtcbn1cblxuLmFwcCB2aWRlbyNjYW1lcmEtc3RyZWFtLnZpc2libGUsXG4uYXBwIGltZyNzbmFwLnZpc2libGUsXG4uYXBwICNlcnJvci1tZXNzYWdlLnZpc2libGUge1xuICBkaXNwbGF5OiBibG9jaztcbn1cblxuLmFwcCAuY29udHJvbHMudmlzaWJsZSB7XG4gIGRpc3BsYXk6IGZsZXg7XG59XG5cbkBtZWRpYSAobWF4LXdpZHRoOiAxMDAwcHgpIHtcbiAgLmNvbnRhaW5lciB7XG4gICAgbWFyZ2luOiA0MHB4O1xuICB9XG5cbiAgLmFwcCAjc3RhcnQtY2FtZXJhLnZpc2libGUge1xuICAgIGRpc3BsYXk6IGJsb2NrO1xuICB9XG5cbiAgLmFwcCAuY29udHJvbHMgYSBpIHtcbiAgICBmb250LXNpemU6IDE2cHg7XG4gIH1cblxuICAuYXBwIC5jb250cm9scyAjdGFrZS1waG90byBpIHtcbiAgICBmb250LXNpemU6IDI0cHg7XG4gIH1cbn1cblxuLnN5c3RlbVRpbWVCb3gge1xuICBiYWNrZ3JvdW5kOiAjMWU4OGU1ZTg7XG4gIHBhZGRpbmc6IDVweCAxNXB4O1xuICBib3JkZXI6IDJweDtcbiAgY29sb3I6IHdoaXRlO1xuICBib3JkZXItcmFkaXVzOiA1cHg7XG4gIG1hcmdpbi1yaWdodDogMTBweDtcbn1cblxuLm9rQnRuIHtcbiAgcGFkZGluZzogNXB4IDE1cHg7XG4gIGNvbG9yOiB3aGl0ZTtcbiAgYmFja2dyb3VuZDogcmVkO1xuICBib3JkZXI6IDJweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xufVxuXG4uZGFzaEJveCB7XG4gIG1hcmdpbi10b3A6IDEwcHg7XG4gIHRleHQtYWxpZ246IGNlbnRlcjtcbn1cblxuLmFkZEJyZWFrTXVsdGlwbGUge1xuICBiYWNrZ3JvdW5kOiAjMTQ2ZTIzO1xuICBjb2xvcjogd2hpdGU7XG4gIGhlaWdodDogMjBweDtcbiAgd2lkdGg6IDIxcHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBtYXJnaW4tbGVmdDogMnB4O1xufVxuXG4uc3ViQnJlYWtNdWx0aXBsZSB7XG4gIGJhY2tncm91bmQ6ICNhYTFmMDY7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGhlaWdodDogMjBweDtcbiAgd2lkdGg6IDIxcHg7XG4gIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICBhbGlnbi1pdGVtczogY2VudGVyO1xuICBjb2xvcjogd2hpdGU7XG59XG4uZ3JlZW5CdG4ge1xuICBwYWRkaW5nOiA1cHggMTVweDtcbiAgY29sb3I6IHdoaXRlO1xuICBiYWNrZ3JvdW5kOiBncmVlbjtcbiAgYm9yZGVyOiAycHg7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbn1cblxuLk5vdGhpbmcge1xuICBiYWNrZ3JvdW5kOiB0cmFuc3BhcmVudDtcbiAgYm9yZGVyOiB0cmFuc3BhcmVudDtcbn1cblxuLmdyZWVuQ2hlY2sge1xuICB0ZXh0LWFsaWduOiBlbmQ7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgdG9wOiAzNXB4O1xufVxuXG4ucmVkQ3Jvc3Mge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHRvcDogNDVweDtcbn1cblxuLmZvcm0tZ3JvdXAud2hpdGUge1xuICBjb2xvcjogd2hpdGU7XG59XG5cbi5tb2RhbENvbnRlbnRCb3hHcmV5IHtcbiAgYmFja2dyb3VuZDogI2RkZDtcbn1cblxuLm1vZGFsQ29udGVudEJveFJlZCB7XG4gIGJhY2tncm91bmQ6ICNhNDIxMzg7XG59XG5cbi5sYWJlbFRpdGxlIHtcbiAgZm9udC13ZWlnaHQ6IDQwMDtcbn1cblxuQG1lZGlhIChtYXgtd2lkdGg6IDYwMHB4KSB7XG4gIC5jb250YWluZXIge1xuICAgIG1hcmdpbjogMTBweDtcbiAgfVxuXG4gIC5hcHAgI2Vycm9yLW1lc3NhZ2Uge1xuICAgIHBhZGRpbmc6IDgwcHggNTBweDtcbiAgICBmb250LXNpemU6IDE4cHg7XG4gIH1cblxuICAuYXBwIC5jb250cm9scyBhIGkge1xuICAgIGZvbnQtc2l6ZTogMTJweDtcbiAgfVxuXG4gIC5hcHAgLmNvbnRyb2xzICN0YWtlLXBob3RvIGkge1xuICAgIGZvbnQtc2l6ZTogMThweDtcbiAgfVxufVxuXG4uaGVhZFRoLFxuLmhlYWRUZCB7XG4gIGJvcmRlcjogMXB4IHNvbGlkICM4MTg0OGQ0MDtcbiAgYm9yZGVyLWNvbGxhcHNlOiBjb2xsYXBzZTtcbiAgY29sb3I6ICMwMDAwMDBkNDtcbiAgZm9udC13ZWlnaHQ6IDcwMCAhaW1wb3J0YW50O1xuICBmb250LXNpemU6IDEycHg7XG4gIHZlcnRpY2FsLWFsaWduOiBtaWRkbGU7XG59XG5cbi5yZWRidG4ge1xuICB3aWR0aDogMjBweDtcbiAgY29sb3I6IHdoaXRlO1xuICBib3JkZXI6IDJweCBzb2xpZDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzODtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xufVxuXG4uZ3JlZW5idG4ge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjNDc4ZDMwO1xufVxuXG4uc2VsZWN0ZWRCb3gge1xuICB3aWR0aDogNTAlICFpbXBvcnRhbnQ7XG4gIHBhZGRpbmctbGVmdDogMTBweDtcbiAgbWFyZ2luLWxlZnQ6IDIwcHg7XG59XG4uYWRkQnJlYWsge1xuICBoZWlnaHQ6IDIwcHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIHBhZGRpbmc6IDZweDtcbiAgYmFja2dyb3VuZC1jb2xvcjogb3JhbmdlO1xuICBmb250LXdlaWdodDogYm9sZDtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuXG4uYmFja0J0biB7XG4gIGJhY2tncm91bmQtY29sb3I6IGNhZGV0Ymx1ZSAhaW1wb3J0YW50O1xuICBjb2xvcjogd2hpdGUgIWltcG9ydGFudDtcbiAgYm9yZGVyOiAxcHggc29saWQgI2RkZGRkZCAhaW1wb3J0YW50O1xufVxuXG4ubG9ja2VkQnRuIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2E0MjEzOCAhaW1wb3J0YW50O1xuICBwb2ludGVyLWV2ZW50czogbm9uZTtcbn1cblxuLmRpc2FibGVDaGVjayB7XG4gIHBvaW50ZXItZXZlbnRzOiBub25lO1xufVxuXG4ubG9ja0J0biB7XG4gIHBhZGRpbmctbGVmdDogNXB4O1xuICBwYWRkaW5nLXJpZ2h0OiA1cHg7XG4gIGJhY2tncm91bmQtY29sb3I6ICMzZTg2MjM7XG4gIGJvcmRlcjogMXB4IHNvbGlkO1xuICBib3JkZXItcmFkaXVzOiA1cHg7XG4gIGNvbG9yOiB3aGl0ZTtcbn1cblxuaW5wdXQuY2hlY2tCb3hJbnB1dFt0eXBlPVwiY2hlY2tib3hcIl0ge1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIHdpZHRoOiAyNXB4O1xuICBoZWlnaHQ6IDI1cHg7XG4gIGJhY2tncm91bmQ6IHdoaXRlO1xufVxuXG5pbnB1dC5zaGlmdElucHV0W3R5cGU9XCJjaGVja2JveFwiXSB7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgd2lkdGg6IDE1cHg7XG4gIGhlaWdodDogMTVweDtcbiAgYmFja2dyb3VuZDogd2hpdGU7XG4gIGJvcmRlci1yYWRpdXM6IDNweDtcbn1cblxuaW5wdXQuY2hlY2tCb3hJbnB1dFt0eXBlPVwiY2hlY2tib3hcIl06Y2hlY2tlZCB7XG4gIGNvbG9yOiAjMmVjYzcxO1xufVxuXG4ub3JhbmdlQnRuIHtcbiAgYmFja2dyb3VuZDogb3JhbmdlcmVkICFpbXBvcnRhbnQ7XG4gIGJvcmRlci1jb2xvcjogb3JhbmdlcmVkICFpbXBvcnRhbnQ7XG4gIGZvbnQtc2l6ZTogMTJweDtcbn1cblxuLnJlZEJ0biB7XG4gIGJhY2tncm91bmQ6IHJlZCAhaW1wb3J0YW50O1xuICBib3JkZXItY29sb3I6IHJlZCAhaW1wb3J0YW50O1xuICBmb250LXNpemU6IDEycHg7XG59XG5cbi5ncmV5QnRuIHtcbiAgYmFja2dyb3VuZDogZ3JheSAhaW1wb3J0YW50O1xuICBib3JkZXItY29sb3I6IGdyYXkgIWltcG9ydGFudDtcbiAgZm9udC1zaXplOiAxMnB4O1xufVxuXG4uZ3JlZW5CdG4ge1xuICBiYWNrZ3JvdW5kOiAjM2FiNTRhICFpbXBvcnRhbnQ7XG4gIGJvcmRlci1jb2xvcjogIzNhYjU0YSAhaW1wb3J0YW50O1xuICBmb250LXNpemU6IDEycHg7XG59XG5cbi5kaXNhYmxlSW4ge1xuICBjdXJzb3I6IG5vdC1hbGxvd2VkICFpbXBvcnRhbnQ7XG59XG4uYnJlYWtUZXh0IHtcbiAgZm9udC1zaXplOiAyMHB4O1xufVxuXG4uYm94IHtcbiAgd2lkdGg6IDEyMHB4O1xuICBib3JkZXI6IHNvbGlkIDJweCBibGFjaztcbn1cblxuLyogQnV6eiAqL1xuQC13ZWJraXQta2V5ZnJhbWVzIGh2ci1idXp6IHtcbiAgNTAlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWCgzcHgpIHJvdGF0ZSgyZGVnKTtcbiAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZVgoM3B4KSByb3RhdGUoMmRlZyk7XG4gIH1cblxuICAxMDAlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogdHJhbnNsYXRlWCgtM3B4KSByb3RhdGUoLTJkZWcpO1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgtM3B4KSByb3RhdGUoLTJkZWcpO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgaHZyLWJ1enoge1xuICA1MCUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGVYKDNweCkgcm90YXRlKDJkZWcpO1xuICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlWCgzcHgpIHJvdGF0ZSgyZGVnKTtcbiAgfVxuXG4gIDEwMCUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0zcHgpIHJvdGF0ZSgtMmRlZyk7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGVYKC0zcHgpIHJvdGF0ZSgtMmRlZyk7XG4gIH1cbn1cblxuLmh2ci1idXp6IHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xuICAtd2Via2l0LXRyYW5zZm9ybTogcGVyc3BlY3RpdmUoMXB4KSB0cmFuc2xhdGVaKDApO1xuICB0cmFuc2Zvcm06IHBlcnNwZWN0aXZlKDFweCkgdHJhbnNsYXRlWigwKTtcbiAgYm94LXNoYWRvdzogMCAwIDFweCByZ2JhKDAsIDAsIDAsIDApO1xufVxuXG4uaHZyLWJ1eno6aG92ZXIsXG4uaHZyLWJ1eno6Zm9jdXMsXG4uaHZyLWJ1eno6YWN0aXZlIHtcbiAgLXdlYmtpdC1hbmltYXRpb24tbmFtZTogaHZyLWJ1eno7XG4gIGFuaW1hdGlvbi1uYW1lOiBodnItYnV6ejtcbiAgLXdlYmtpdC1hbmltYXRpb24tZHVyYXRpb246IDAuMTVzO1xuICBhbmltYXRpb24tZHVyYXRpb246IDAuMTVzO1xuICAtd2Via2l0LWFuaW1hdGlvbi10aW1pbmctZnVuY3Rpb246IGxpbmVhcjtcbiAgYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyO1xuICAtd2Via2l0LWFuaW1hdGlvbi1pdGVyYXRpb24tY291bnQ6IGluZmluaXRlO1xuICBhbmltYXRpb24taXRlcmF0aW9uLWNvdW50OiBpbmZpbml0ZTtcbn1cblxuLyogUHVsc2UgKi9cbkAtd2Via2l0LWtleWZyYW1lcyBodnItcHVsc2Uge1xuICAyNSUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgxLjEpO1xuICAgIHRyYW5zZm9ybTogc2NhbGUoMS4xKTtcbiAgfVxuXG4gIDc1JSB7XG4gICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDAuOSk7XG4gICAgdHJhbnNmb3JtOiBzY2FsZSgwLjkpO1xuICB9XG59XG5cbkBrZXlmcmFtZXMgaHZyLXB1bHNlIHtcbiAgMjUlIHtcbiAgICAtd2Via2l0LXRyYW5zZm9ybTogc2NhbGUoMS4xKTtcbiAgICB0cmFuc2Zvcm06IHNjYWxlKDEuMSk7XG4gIH1cblxuICA3NSUge1xuICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgwLjkpO1xuICAgIHRyYW5zZm9ybTogc2NhbGUoMC45KTtcbiAgfVxufVxuXG4uaHZyLXB1bHNlIHtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xuICAtd2Via2l0LXRyYW5zZm9ybTogcGVyc3BlY3RpdmUoMXB4KSB0cmFuc2xhdGVaKDApO1xuICB0cmFuc2Zvcm06IHBlcnNwZWN0aXZlKDFweCkgdHJhbnNsYXRlWigwKTtcbiAgYm94LXNoYWRvdzogMCAwIDFweCByZ2JhKDAsIDAsIDAsIDApO1xufVxuXG4uaHZyLXB1bHNlOmhvdmVyLFxuLmh2ci1wdWxzZTpmb2N1cyxcbi5odnItcHVsc2U6YWN0aXZlIHtcbiAgLXdlYmtpdC1hbmltYXRpb24tbmFtZTogaHZyLXB1bHNlO1xuICBhbmltYXRpb24tbmFtZTogaHZyLXB1bHNlO1xuICAtd2Via2l0LWFuaW1hdGlvbi1kdXJhdGlvbjogMXM7XG4gIGFuaW1hdGlvbi1kdXJhdGlvbjogMXM7XG4gIC13ZWJraXQtYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyO1xuICBhbmltYXRpb24tdGltaW5nLWZ1bmN0aW9uOiBsaW5lYXI7XG4gIC13ZWJraXQtYW5pbWF0aW9uLWl0ZXJhdGlvbi1jb3VudDogaW5maW5pdGU7XG4gIGFuaW1hdGlvbi1pdGVyYXRpb24tY291bnQ6IGluZmluaXRlO1xufVxuLmxvYWRpbmdEaXYge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHRvcDogMzUlO1xuICByaWdodDogNTAlO1xuICAvKiB3aWR0aDoxMDAlO1xuICBoZWlnaHQ6MTAwJTsgKi9cbiAgLyogYmFja2dyb3VuZC1jb2xvcjpyZWQ7ICovXG4gIGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG4gIGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcbiAgei1pbmRleDogMTAwMDAwMDA7XG4gIG9wYWNpdHk6IDAuODtcbn1cbi5sb2FkaW5nRGl2MSB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAxMDBweDtcbiAgcmlnaHQ6IDUwJTtcbiAgLyogd2lkdGg6MTAwJTtcbiAgaGVpZ2h0OjEwMCU7ICovXG4gIC8qIGJhY2tncm91bmQtY29sb3I6cmVkOyAqL1xuICBiYWNrZ3JvdW5kLXJlcGVhdDogbm8tcmVwZWF0O1xuICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiBjZW50ZXI7XG4gIHotaW5kZXg6IDEwMDAwMDAwO1xuICBvcGFjaXR5OiAwLjg7XG59XG5cbi5iZy10aGVtZSB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNhNDIxMzg7XG4gIGNvbG9yOiAjZmZmO1xufVxuXG4uY2hlY2tCb3gtbGcge1xuICB3aWR0aDogMS4zcmVtO1xuICBoZWlnaHQ6IDEuM3JlbTtcbn1cblxuLmxvYWRlcntcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgwLCAwLCAwLCAwLjUpO1xuICAgcG9zaXRpb246IGZpeGVkO1xuICB0b3A6IDA7XG4gIHJpZ2h0OjA7XG4gIGxlZnQ6MDtcbiAgYm90dG9tOjA7XG4gIGJhY2tncm91bmQtcmVwZWF0OiBuby1yZXBlYXQ7XG4gIGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcbiAgei1pbmRleDogMTA1MDtcbiAgb3BhY2l0eTogMC44O1xuICAucGFnZUxvYWRpbmcge1xuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcbiAgICBjb2xvcjogd2hpdGU7XG4gICAgZm9udC1zaXplOiAyNXB4O1xuICAgIHBvc2l0aW9uOiBmaXhlZDtcbiAgICB0b3A6IDUwJTtcbiAgICBsZWZ0OiA1MCU7XG4gICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7XG4gIH1cbn0iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TimesheetDataComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-timesheet-data',
templateUrl: './timesheet-data.component.html',
styleUrls: ['./timesheet-data.component.scss'],
}]
}], function () { return [{ type: _angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormBuilder"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_6__["ToastrService"] }, { type: src_app_users_service_operations_shift_scheduler_service__WEBPACK_IMPORTED_MODULE_7__["ShiftSchedulerService"] }, { type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"] }]; }, { businessUnitId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
args: ['businessUnitId']
}], refresh: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], onBtnCloseClick: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
args: ['onBtnCloseClick']
}], AddShiftHours: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
args: ['AddShiftHours', { static: true }]
}] }); })();
/***/ }),
/***/ "urWI":
/*!**************************************************************!*\
!*** ./src/app/shared/multi-select/muli-select.component.ts ***!
\**************************************************************/
/*! exports provided: MultiSelectDropdownComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiSelectDropdownComponent", function() { return MultiSelectDropdownComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../pipes/filter.pipe */ "UhSo");
function MultiSelectDropdownComponent_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function MultiSelectDropdownComponent_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", ctx_r1.checkedList[0].value, " +", ctx_r1.checkedList.length - 1, "");
} }
function MultiSelectDropdownComponent_div_6_label_2_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "label");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MultiSelectDropdownComponent_div_6_label_2_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const a_r4 = ctx.$implicit; return a_r4.selected = $event; })("change", function MultiSelectDropdownComponent_div_6_label_2_Template_input_change_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const a_r4 = ctx.$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r7.getSelectedValue(a_r4.selected, a_r4); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const a_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", a_r4.selected);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](a_r4.value);
} }
const _c0 = function (a0) { return { value: a0 }; };
function MultiSelectDropdownComponent_div_6_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function MultiSelectDropdownComponent_div_6_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.searchvalue = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, MultiSelectDropdownComponent_div_6_label_2_Template, 4, 2, "label", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "filter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r2.searchvalue);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 2, ctx_r2.options, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](5, _c0, ctx_r2.searchvalue)));
} }
class MultiSelectDropdownComponent {
constructor() {
this.showDropDown = false;
this.shareCheckedList = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.shareIndividualCheckedList = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.options = [
{ value: "Small", selected: false },
{ value: "Medium", selected: false },
{ value: "Large", selected: false }
];
this.filterdOptions = [];
this.checkedList = [];
}
getSelectedValue(status, value) {
if (status) {
this.checkedList.push(value);
}
else {
var index = this.checkedList.indexOf(value.id);
this.checkedList.splice(index, 1);
}
this.currentSelected = { checked: status, name: value };
//share checked list
this.shareCheckedlist();
//share individual selected item
this.shareIndividualStatus();
}
shareCheckedlist() {
this.shareCheckedList.emit(this.checkedList);
}
shareIndividualStatus() {
this.shareIndividualCheckedList.emit(this.currentSelected);
}
}
MultiSelectDropdownComponent.ɵfac = function MultiSelectDropdownComponent_Factory(t) { return new (t || MultiSelectDropdownComponent)(); };
MultiSelectDropdownComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MultiSelectDropdownComponent, selectors: [["multi-select"]], inputs: { list: "list", checkedList: "checkedList" }, outputs: { shareCheckedList: "shareCheckedList", shareIndividualCheckedList: "shareIndividualCheckedList" }, decls: 7, vars: 3, consts: [[1, "drop-toggle", "btn", "flat", 3, "click"], [4, "ngIf"], [1, "fa", "fa-angle-down"], ["class", "drop-show", 4, "ngIf"], [1, "drop-show"], ["type", "search", 3, "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], ["type", "checkbox", 3, "ngModel", "ngModelChange", "change"]], template: function MultiSelectDropdownComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MultiSelectDropdownComponent_Template_button_click_2_listener() { return ctx.showDropDown = !ctx.showDropDown; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, MultiSelectDropdownComponent_span_3_Template, 2, 0, "span", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, MultiSelectDropdownComponent_span_4_Template, 2, 2, "span", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "i", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MultiSelectDropdownComponent_div_6_Template, 4, 7, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.checkedList.length <= 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.checkedList.length > 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showDropDown);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"]], pipes: [_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_3__["FilterPipe"]], styles: [".drop-toggle[_ngcontent-%COMP%] {\n background-color: #fff;\n border: none;\n padding: 5px 10px;\n border-radius: 4px;\n cursor: pointer;\n cursor: hand;\n border: 1px solid #ccc;\n width: 233px;\n text-align: left;\n}\n.drop-toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n float: right;\n}\n.drop-show[_ngcontent-%COMP%] {\n padding: 4px;\n width: 224px;\n background-color: #FFF;\n border: 1px solid #BABABA;\n position: absolute;\n z-index: 100;\n box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);\n margin-left: 1px;\n height: 186px;\n overflow: auto;\n}\n.drop-show[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n padding-top: 5px;\n display: block;\n font-size: 15px;\n cursor: pointer;\n}\n.drop-show[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n vertical-align: top;\n}\n.drop-show[_ngcontent-%COMP%] label[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: inline-block;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvc2hhcmVkL211bHRpLXNlbGVjdC9tdWx0aS1zZWxlY3QuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0VBQUE7QUFHQTtFQUNFLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxlQUFBO0VBQ0EsWUFBQTtFQUNBLHNCQUFBO0VBQ0EsWUFBQTtFQUNBLGdCQUFBO0FBQ0Y7QUFDQTtFQUNFLFlBQUE7QUFFRjtBQUFBO0VBQ0UsWUFBQTtFQUNBLFlBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBR0EsMENBQUE7RUFDQSxnQkFBQTtFQUNBLGFBQUE7RUFDQSxjQUFBO0FBR0Y7QUFEQTtFQUNFLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLGVBQUE7RUFDQSxlQUFBO0FBSUY7QUFGQTtFQUNFLG1CQUFBO0FBS0Y7QUFIQTtFQUNFLHFCQUFBO0FBTUYiLCJmaWxlIjoic3JjL2FwcC9zaGFyZWQvbXVsdGktc2VsZWN0L211bHRpLXNlbGVjdC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi8qKipcbiAgICBjc3MgZm9yIG11bHRpIHNlbGVjdCBkcm9wIGRvd25cbioqL1xuLmRyb3AtdG9nZ2xle1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICBib3JkZXI6IG5vbmU7XG4gIHBhZGRpbmc6IDVweCAxMHB4O1xuICBib3JkZXItcmFkaXVzOiA0cHg7XG4gIGN1cnNvcjogcG9pbnRlcjtcbiAgY3Vyc29yOiBoYW5kO1xuICBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICB3aWR0aDogMjMzcHg7XG4gIHRleHQtYWxpZ246IGxlZnQ7XG59XG4uZHJvcC10b2dnbGUgaXtcbiAgZmxvYXQ6cmlnaHQ7XG59XG4uZHJvcC1zaG93IHtcbiAgcGFkZGluZzogNHB4O1xuICB3aWR0aDogMjI0cHg7XG4gIGJhY2tncm91bmQtY29sb3I6ICNGRkY7XG4gIGJvcmRlcjogMXB4IHNvbGlkICNCQUJBQkE7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgei1pbmRleDogMTAwO1xuICAtd2Via2l0LWJveC1zaGFkb3c6IDAgNnB4IDEwcHggcmdiYSgwLDAsMCwuMTUpO1xuICAtbW96LWJveC1zaGFkb3c6IDAgNnB4IDEwcHggcmdiYSgwLDAsMCwuMTUpO1xuICBib3gtc2hhZG93OiAwIDZweCAxMHB4IHJnYmEoMCwwLDAsLjE1KTtcbiAgbWFyZ2luLWxlZnQ6IDFweDtcbiAgaGVpZ2h0OiAxODZweDtcbiAgb3ZlcmZsb3c6IGF1dG87XG59XG4uZHJvcC1zaG93IGxhYmVse1xuICBwYWRkaW5nLXRvcDogNXB4O1xuICBkaXNwbGF5OmJsb2NrO1xuICBmb250LXNpemU6MTVweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xufVxuLmRyb3Atc2hvdyBsYWJlbCBpbnB1dHtcbiAgdmVydGljYWwtYWxpZ246IHRvcDtcbn1cbi5kcm9wLXNob3cgbGFiZWwgc3BhbntcbiAgZGlzcGxheTppbmxpbmUtYmxvY2s7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MultiSelectDropdownComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'multi-select',
templateUrl: './multi-select.component.html',
styleUrls: ['./multi-select.component.scss'],
}]
}], function () { return []; }, { list: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], shareCheckedList: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], shareIndividualCheckedList: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], checkedList: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "uyz1":
/*!***********************************************!*\
!*** ./src/app/shared/error/404.component.ts ***!
\***********************************************/
/*! exports provided: P404Component */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "P404Component", function() { return P404Component; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
class P404Component {
constructor() { }
}
P404Component.ɵfac = function P404Component_Factory(t) { return new (t || P404Component)(); };
P404Component.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: P404Component, selectors: [["ng-component"]], decls: 14, vars: 0, consts: [["id", "notfound"], [1, "notfound"], [1, "notfound-404"]], template: function P404Component_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Oops! Page not found");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "h1");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, "4");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9, "0");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](11, "4");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "h2");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "we are sorry, but the page you requested was not found");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }, styles: ["*[_ngcontent-%COMP%] {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n\nbody[_ngcontent-%COMP%] {\n padding: 0;\n margin: 0;\n}\n\n#notfound[_ngcontent-%COMP%] {\n position: relative;\n height: 100vh;\n}\n\n#notfound[_ngcontent-%COMP%] .notfound[_ngcontent-%COMP%] {\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n}\n\n.notfound[_ngcontent-%COMP%] {\n max-width: 520px;\n width: 100%;\n line-height: 1.4;\n text-align: center;\n}\n\n.notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] {\n position: relative;\n height: 240px;\n}\n\n.notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n font-family: 'Montserrat', sans-serif;\n position: absolute;\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n -ms-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n font-size: 252px;\n font-weight: 900;\n margin: 0px;\n color: #262626;\n text-transform: uppercase;\n letter-spacing: -40px;\n margin-left: -20px;\n}\n\n.notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] > span[_ngcontent-%COMP%] {\n text-shadow: -8px 0px 0px #fff;\n}\n\n.notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] {\n font-family: 'Cabin', sans-serif;\n position: relative;\n font-size: 16px;\n font-weight: 700;\n text-transform: uppercase;\n color: #262626;\n margin: 0px;\n letter-spacing: 3px;\n padding-left: 6px;\n}\n\n.notfound[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-family: 'Cabin', sans-serif;\n font-size: 20px;\n font-weight: 400;\n text-transform: uppercase;\n color: #000;\n margin-top: 0px;\n margin-bottom: 25px;\n}\n\n@media only screen and (max-width: 767px) {\n .notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] {\n height: 200px;\n }\n .notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n font-size: 200px;\n }\n}\n\n@media only screen and (max-width: 480px) {\n .notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] {\n height: 162px;\n }\n .notfound[_ngcontent-%COMP%] .notfound-404[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] {\n font-size: 162px;\n height: 150px;\n line-height: 162px;\n }\n .notfound[_ngcontent-%COMP%] h2[_ngcontent-%COMP%] {\n font-size: 16px;\n }\n}"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](P404Component, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
templateUrl: '404.component.html',
styles: [`
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
}
#notfound {
position: relative;
height: 100vh;
}
#notfound .notfound {
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}
.notfound {
max-width: 520px;
width: 100%;
line-height: 1.4;
text-align: center;
}
.notfound .notfound-404 {
position: relative;
height: 240px;
}
.notfound .notfound-404 h1 {
font-family: 'Montserrat', sans-serif;
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
font-size: 252px;
font-weight: 900;
margin: 0px;
color: #262626;
text-transform: uppercase;
letter-spacing: -40px;
margin-left: -20px;
}
.notfound .notfound-404 h1>span {
text-shadow: -8px 0px 0px #fff;
}
.notfound .notfound-404 h3 {
font-family: 'Cabin', sans-serif;
position: relative;
font-size: 16px;
font-weight: 700;
text-transform: uppercase;
color: #262626;
margin: 0px;
letter-spacing: 3px;
padding-left: 6px;
}
.notfound h2 {
font-family: 'Cabin', sans-serif;
font-size: 20px;
font-weight: 400;
text-transform: uppercase;
color: #000;
margin-top: 0px;
margin-bottom: 25px;
}
@media only screen and (max-width: 767px) {
.notfound .notfound-404 {
height: 200px;
}
.notfound .notfound-404 h1 {
font-size: 200px;
}
}
@media only screen and (max-width: 480px) {
.notfound .notfound-404 {
height: 162px;
}
.notfound .notfound-404 h1 {
font-size: 162px;
height: 150px;
line-height: 162px;
}
.notfound h2 {
font-size: 16px;
}
}
`]
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "vF8B":
/*!*********************************************************************************************!*\
!*** ./src/app/users/pages/central-builder/question-builder/overview/overview.component.ts ***!
\*********************************************************************************************/
/*! exports provided: OverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OverviewComponent", function() { return OverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/sweet-alert/sweet-alert */ "xgpu");
/* harmony import */ var src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/central-builder/central-builder.service */ "TRD8");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function OverviewComponent_div_0_span_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_0_table_24_tr_12_button_14_Template(rf, ctx) { if (rf & 1) {
const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OverviewComponent_div_0_table_24_tr_12_button_14_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r9); const item_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit; const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r7.moduleDelete(item_r5._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_0_table_24_tr_12_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](5, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "span", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "button", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OverviewComponent_div_0_table_24_tr_12_Template_button_click_10_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const item_r5 = ctx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r10.getQuestions(item_r5._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OverviewComponent_div_0_table_24_tr_12_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const item_r5 = ctx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r12.onEditModule(item_r5._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, OverviewComponent_div_0_table_24_tr_12_button_14_Template, 2, 0, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.moduleName, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind2"](5, 5, item_r5.updatedAt, "medium"));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r5.status == 1 ? "badge-success" : "badge-warning");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.status === 1 ? "Published" : "Draft", "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r5.status != 1);
} }
function OverviewComponent_div_0_table_24_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function OverviewComponent_div_0_table_24_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r13.onSortModule($event, "moduleName", 0); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " MODULE NAME ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function OverviewComponent_div_0_table_24_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r15.onSortModule($event, "updatedAt", 1); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " LAST MODIFIED ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function OverviewComponent_div_0_table_24_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r14); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r16.onSortModule($event, "status", 2); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, " STATUS ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, OverviewComponent_div_0_table_24_tr_12_Template, 15, 8, "tr", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.moduleTable.data);
} }
function OverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "MODULES");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "select", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function OverviewComponent_div_0_Template_select_change_9_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.onLimitChangeModule(); })("search", function OverviewComponent_div_0_Template_select_search_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.modulesearchInput.next($event); })("keyup", function OverviewComponent_div_0_Template_select_keyup_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.modulesearchInput.next($event); })("ngModelChange", function OverviewComponent_div_0_Template_select_ngModelChange_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.moduleTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, OverviewComponent_div_0_span_21_Template, 2, 0, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "input", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function OverviewComponent_div_0_Template_input_keyup_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r22.modulesearchInput.next($event); })("ngModelChange", function OverviewComponent_div_0_Template_input_ngModelChange_22_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r23.moduleTable.search.value = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](24, OverviewComponent_div_0_table_24_Template, 13, 1, "table", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](25, "app-skliton-loading-table", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "ngb-pagination", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function OverviewComponent_div_0_Template_ngb_pagination_pageChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r24.moduleTable.page = $event; })("pageChange", function OverviewComponent_div_0_Template_ngb_pagination_pageChange_30_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r25.onPageChangeModule($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.moduleTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.moduleTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.moduleTable.search.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 4)("isTableLoading", ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total Records ", ctx_r0.moduleTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r0.moduleTable.total)("page", ctx_r0.moduleTable.page)("maxSize", 5)("pageSize", ctx_r0.moduleTable.limit);
} }
function OverviewComponent_div_1_div_8_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "strong", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
const i_r28 = ctx_r32.index;
const section_r27 = ctx_r32.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r28 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](section_r27 == null ? null : section_r27.sectionName);
} }
function OverviewComponent_div_1_div_8_div_2_div_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "textarea", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_1_div_8_div_2_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r51 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r51.value);
} }
function OverviewComponent_div_1_div_8_div_2_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OverviewComponent_div_1_div_8_div_2_div_8_div_2_Template, 4, 1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r33.options);
} }
function OverviewComponent_div_1_div_8_div_2_div_9_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 57);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r54 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r54.value, "");
} }
function OverviewComponent_div_1_div_8_div_2_div_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OverviewComponent_div_1_div_8_div_2_div_9_div_2_Template, 4, 1, "div", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r33.options);
} }
function OverviewComponent_div_1_div_8_div_2_div_10_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const opt_r57 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", opt_r57.value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", opt_r57.value, "");
} }
function OverviewComponent_div_1_div_8_div_2_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OverviewComponent_div_1_div_8_div_2_div_10_div_2_Template, 4, 2, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r33.options);
} }
function OverviewComponent_div_1_div_8_div_2_div_11_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "input", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r60 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](option_r60.value);
} }
function OverviewComponent_div_1_div_8_div_2_div_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OverviewComponent_div_1_div_8_div_2_div_11_div_1_Template, 4, 1, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r33.options);
} }
function OverviewComponent_div_1_div_8_div_2_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "textarea", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_1_div_8_div_2_div_13_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r63 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r63.questionName);
} }
function OverviewComponent_div_1_div_8_div_2_div_13_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OverviewComponent_div_1_div_8_div_2_div_13_div_2_Template, 4, 1, "div", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r33.profile);
} }
function OverviewComponent_div_1_div_8_div_2_div_14_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "textarea", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_1_div_8_div_2_div_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "input", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_1_div_8_div_2_div_16_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "select", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "select", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "Seconds");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](16, "select", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_1_div_8_div_2_div_16_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "input", 70);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_1_div_8_div_2_div_16_div_1_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Hours");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "select", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Minutes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "select", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Seconds");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "select", 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function OverviewComponent_div_1_div_8_div_2_div_16_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OverviewComponent_div_1_div_8_div_2_div_16_div_1_div_1_Template, 17, 0, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OverviewComponent_div_1_div_8_div_2_div_16_div_1_div_2_Template, 5, 0, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, OverviewComponent_div_1_div_8_div_2_div_16_div_1_div_3_Template, 13, 0, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r66 = ctx.$implicit;
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2).$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r33.dateTime == null ? null : item_r33.dateTime.length) === 2 && option_r66 === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (item_r33.dateTime == null ? null : item_r33.dateTime.length) === 1 && option_r66 === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", option_r66 === 2 && (item_r33.dateTime == null ? null : item_r33.dateTime.length) === 1);
} }
function OverviewComponent_div_1_div_8_div_2_div_16_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OverviewComponent_div_1_div_8_div_2_div_16_div_1_Template, 4, 3, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r33 == null ? null : item_r33.dateTime);
} }
function OverviewComponent_div_1_div_8_div_2_div_17_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function OverviewComponent_div_1_div_8_div_2_div_18_span_4_span_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "span");
} }
function OverviewComponent_div_1_div_8_div_2_div_18_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OverviewComponent_div_1_div_8_div_2_div_18_span_4_span_2_Template, 1, 0, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r73 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r73.value, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r73.length != 0);
} }
function OverviewComponent_div_1_div_8_div_2_div_18_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "input", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, " Preffered formats are - ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, OverviewComponent_div_1_div_8_div_2_div_18_span_4_Template, 3, 2, "span", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r33 == null ? null : item_r33.options);
} }
function OverviewComponent_div_1_div_8_div_2_div_19_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "ngb-rating", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("max", item_r33.value)("rate", 0);
} }
function OverviewComponent_div_1_div_8_div_2_div_20_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "select", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", true);
} }
function OverviewComponent_div_1_div_8_div_2_div_21_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "img", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const items_r78 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", items_r78.imageSrc, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function OverviewComponent_div_1_div_8_div_2_div_21_div_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OverviewComponent_div_1_div_8_div_2_div_21_div_1_div_1_Template, 2, 1, "div", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const items_r78 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", items_r78.imageSrc);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](items_r78.value);
} }
function OverviewComponent_div_1_div_8_div_2_div_21_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OverviewComponent_div_1_div_8_div_2_div_21_div_1_Template, 5, 2, "div", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]().$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", item_r33.options);
} }
function OverviewComponent_div_1_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "strong", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "p", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, OverviewComponent_div_1_div_8_div_2_div_7_Template, 4, 0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, OverviewComponent_div_1_div_8_div_2_div_8_Template, 3, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](9, OverviewComponent_div_1_div_8_div_2_div_9_Template, 3, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](10, OverviewComponent_div_1_div_8_div_2_div_10_Template, 3, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](11, OverviewComponent_div_1_div_8_div_2_div_11_Template, 2, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](12, OverviewComponent_div_1_div_8_div_2_div_12_Template, 3, 0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](13, OverviewComponent_div_1_div_8_div_2_div_13_Template, 3, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, OverviewComponent_div_1_div_8_div_2_div_14_Template, 4, 0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](15, OverviewComponent_div_1_div_8_div_2_div_15_Template, 4, 0, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](16, OverviewComponent_div_1_div_8_div_2_div_16_Template, 2, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](17, OverviewComponent_div_1_div_8_div_2_div_17_Template, 2, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, OverviewComponent_div_1_div_8_div_2_div_18_Template, 5, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, OverviewComponent_div_1_div_8_div_2_div_19_Template, 3, 2, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](20, OverviewComponent_div_1_div_8_div_2_div_20_Template, 2, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](21, OverviewComponent_div_1_div_8_div_2_div_21_Template, 2, 1, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r33 = ctx.$implicit;
const i_r34 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", i_r34 + 1, " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 17, item_r33 == null ? null : item_r33.question), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", item_r33.type === 15);
} }
function OverviewComponent_div_1_div_8_div_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "h4");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "No questions to show");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
const _c0 = function (a0) { return { "section-border": a0 }; };
function OverviewComponent_div_1_div_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OverviewComponent_div_1_div_8_div_1_Template, 6, 2, "div", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](2, OverviewComponent_div_1_div_8_div_2_Template, 22, 19, "div", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](3, OverviewComponent_div_1_div_8_div_3_Template, 3, 0, "div", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const section_r27 = ctx.$implicit;
const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction1"](4, _c0, ctx_r26.selectedSection === section_r27._id));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r26.selectedModule.isDefault);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", section_r27 == null ? null : section_r27.questions);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", (section_r27 == null ? null : section_r27.questions.length) == 0);
} }
function OverviewComponent_div_1_Template(rf, ctx) { if (rf & 1) {
const _r83 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](4, "uppercase");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "button", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function OverviewComponent_div_1_Template_button_click_5_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r83); const ctx_r82 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r82.isModuleView = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](8, OverviewComponent_div_1_div_8_Template, 4, 6, "div", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](4, 2, ctx_r1.selectedModule == null ? null : ctx_r1.selectedModule.moduleName), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r1.selectedModule == null ? null : ctx_r1.selectedModule.sections);
} }
class OverviewComponent {
constructor(centralBuilderService, toastService, storageService, formBuilder) {
this.centralBuilderService = centralBuilderService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
this.isTableLoading = true;
this.isModuleView = false;
this.modulesearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.editModuleEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.moduleTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: {
value: ''
},
total: 0,
start: 0,
isLoading: true,
order: [{
column: 1,
dir: 'desc'
}]
};
this.moduleSearchSubscription = this.modulesearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.moduleTable.page = 1;
this.moduleTable.start = 0;
this.moduleTable.search.value = input;
this.loadModules();
});
}
onSortModule({ column, direction }, field, colNum) {
if (direction) {
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.moduleTable.order[0].column = colNum;
this.moduleTable.order[0].dir = direction;
this.loadModules();
}
// resetting other headers
}
onPageChangeModule(page) {
this.moduleTable.page = page;
this.moduleTable.start = +page > 1 ? (page - 1) * this.moduleTable.limit : 0;
this.loadModules();
}
onLimitChangeModule() {
this.loadModules();
}
ngOnInit() {
this.loadModules();
this.onOverViewEvent(null);
}
loadModules() {
const _a = this.moduleTable, { data, total, isLoading } = _a, moduleTbale = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total", "isLoading"]);
const subscribe = this.centralBuilderService
.getAllModules(moduleTbale)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { recordsTotal, data } = response;
this.moduleTable.data = data;
this.moduleTable.total = recordsTotal;
this.moduleTable.isLoading = false;
this.isTableLoading = false;
}, (error) => {
this.moduleTable.data = [];
this.moduleTable.total = 0;
this.toastService.error('No list found');
});
}
getQuestions(moduleId) {
this.centralBuilderService
.getSingleQuestions(moduleId)
.subscribe((res) => {
this.isModuleView = true;
this.selectedModule = res.data.data;
});
}
moduleDelete(id) {
Object(src_app_shared_sweet_alert_sweet_alert__WEBPACK_IMPORTED_MODULE_5__["deleteAlert"])().then((resut) => {
if (resut.value) {
this.centralBuilderService.deleteModule(id).subscribe((res) => {
this.toastService.success('Module Deleted Successfully');
this.loadModules();
});
}
});
}
onOverViewEvent(value) {
this.overViewEvent.emit(value);
}
onEditModule(id) {
this.editModuleEvent.emit(id);
}
ngOnDestroy() {
this.moduleSearchSubscription &&
this.moduleSearchSubscription.unsubscribe();
}
}
OverviewComponent.ɵfac = function OverviewComponent_Factory(t) { return new (t || OverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_6__["CentralBuilderService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"])); };
OverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: OverviewComponent, selectors: [["app-question-builder-overview"]], viewQuery: function OverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { overViewEvent: "overViewEvent", editModuleEvent: "editModuleEvent" }, decls: 2, vars: 2, consts: [["class", "card mb-3", 4, "ngIf"], ["class", "card", 4, "ngIf"], [1, "card", "mb-3"], [1, "card-header", "flexi-header", "p-4"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "search", "keyup", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col", "sortable", "Tier 3", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "badge", 3, "ngClass"], [1, "btn", "btn-submit", "p-2", "m-1", 3, "click"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], ["class", "btn btn-clear p-2 m-1", 3, "click", 4, "ngIf"], [1, "btn", "btn-clear", "p-2", "m-1", 3, "click"], [1, "card"], [2, "display", "inline"], [1, "btn", "btn-back", "pull-right", 3, "click"], [1, "card-body", 2, "word-break", "break-word", "padding", "10px"], ["class", "box d-flex flex-column", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "box", "d-flex", "flex-column", 3, "ngClass"], ["class", "d-flex", 4, "ngIf"], ["class", "box d-flex flex-column", 4, "ngFor", "ngForOf"], ["style", "text-align: center", 4, "ngIf"], [1, "d-flex"], [1, "mr-1"], [1, "box-heading", "ml-2", "d-flex", 2, "word-break", "break-word"], [1, "box", "d-flex", "flex-column"], [1, "box-heading", 2, "word-break", "break-word"], [3, "innerHTML"], ["class", "box-body", 4, "ngIf"], [1, "box-body"], [1, "d-flex", "flex-wrap", "answers-options"], [1, "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "44%"], ["disabled", "", "rows", "5", 1, "form-control"], [1, "d-flex", "flex-column", "answers-options"], ["class", "checkbox checkbox-danger checkbox-inline", 4, "ngFor", "ngForOf"], [1, "checkbox", "checkbox-danger", "checkbox-inline"], ["type", "checkbox", "disabled", ""], ["for", "consolidated"], ["class", "radio radio-danger radio-inline", 4, "ngFor", "ngForOf"], [1, "radio", "radio-danger", "radio-inline"], ["type", "radio", "disabled", ""], ["class", "flex-child", 4, "ngFor", "ngForOf"], [1, "flex-child"], ["type", "radio", "disabled", "", 3, "value"], ["disabled", "", 1, "form-control"], ["class", "form-group flex-fill", "style", "margin: 1rem 1rem; width: 44%", 4, "ngFor", "ngForOf"], ["for", "my-input"], ["id", "my-input", "disabled", "", "type", "text", 1, "form-control"], [1, "form-group", "flex-fill", 2, "margin", "1rem 1rem", "width", "30%"], ["type", "number", "disabled", "", 1, "form-control"], ["class", "d-flex flex-wrap answers-options", 4, "ngIf"], [1, "form-group", "flex-fill", 2, "margin", "1rem"], ["id", "my-input", "type", "date", "disabled", "", 1, "form-control"], ["name", "", "id", "", "disabled", "", 1, "form-control"], [1, "form-control"], [1, "form-group"], ["id", "my-input", "disabled", "", "type", "file", 1, "form-control-file"], [3, "max", "rate"], ["width", "250px", "height", "320px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], [2, "text-align", "center"]], template: function OverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, OverviewComponent_div_0_Template, 31, 16, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, OverviewComponent_div_1_Template, 9, 4, "div", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isModuleView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isModuleView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbRating"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["UpperCasePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_14__["SafeHtmlPipe"]], styles: ["a.list-group-item[_ngcontent-%COMP%] {\n margin-bottom: 1rem;\n border: 1px dotted #cccccc;\n cursor: pointer;\n color: #555;\n}\n\na[_ngcontent-%COMP%] {\n text-decoration: none;\n}\n\na.list-group-item[_ngcontent-%COMP%]:hover {\n background-color: #e2e2e2;\n}\n\n.card-header-flexi[_ngcontent-%COMP%] {\n border-bottom: 1px solid #ccc;\n padding: 1rem;\n color: #a42138;\n text-transform: uppercase;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] {\n margin: 1rem;\n box-shadow: 0px 0px 8px #ccc;\n padding: 1.2rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-body[_ngcontent-%COMP%] {\n padding: 1rem;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] {\n padding-bottom: 1rem;\n word-wrap: break-word;\n font-weight: 600;\n}\n\n.card-body[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .box-heading[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n padding: 0 1rem;\n}\n\n.dropdown-toggle[_ngcontent-%COMP%]::after {\n content: none;\n}\n\n.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL3F1ZXN0aW9uLWJ1aWxkZXIvb3ZlcnZpZXcvb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxtQkFBQTtFQUNBLDBCQUFBO0VBQ0EsZUFBQTtFQUNBLFdBQUE7QUFDRjs7QUFDQTtFQUNFLHFCQUFBO0FBRUY7O0FBQUE7RUFDRSx5QkFBQTtBQUdGOztBQUFBO0VBQ0UsNkJBQUE7RUFDQSxhQUFBO0VBQ0EsY0FBQTtFQUNBLHlCQUFBO0FBR0Y7O0FBREE7RUFDRSxZQUFBO0VBQ0EsNEJBQUE7RUFDQSxlQUFBO0FBSUY7O0FBSEU7RUFDRSxhQUFBO0FBS0o7O0FBSEU7RUFDRSxvQkFBQTtFQUNBLHFCQUFBO0VBQ0EsZ0JBQUE7QUFLSjs7QUFKSTtFQUNFLGVBQUE7QUFNTjs7QUFEQTtFQUNFLGFBQUE7QUFJRjs7QUFEQTtFQUNFLFdBQUE7RUFDQSx5QkFBQTtFQUNBLHFCQUFBO0FBSUYiLCJmaWxlIjoic3JjL2FwcC91c2Vycy9wYWdlcy9jZW50cmFsLWJ1aWxkZXIvcXVlc3Rpb24tYnVpbGRlci9vdmVydmlldy9vdmVydmlldy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbImEubGlzdC1ncm91cC1pdGVtIHtcbiAgbWFyZ2luLWJvdHRvbTogMXJlbTtcbiAgYm9yZGVyOiAxcHggZG90dGVkIHJnYigyMDQsIDIwNCwgMjA0KTtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBjb2xvcjogIzU1NTtcbn1cbmEge1xuICB0ZXh0LWRlY29yYXRpb246IG5vbmU7XG59XG5hLmxpc3QtZ3JvdXAtaXRlbTpob3ZlciB7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYigyMjYsIDIyNiwgMjI2KTtcbn1cblxuLmNhcmQtaGVhZGVyLWZsZXhpIHtcbiAgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICNjY2M7XG4gIHBhZGRpbmc6IDFyZW07XG4gIGNvbG9yOiAjYTQyMTM4O1xuICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xufVxuLmNhcmQtYm9keSAuYm94IHtcbiAgbWFyZ2luOiAxcmVtO1xuICBib3gtc2hhZG93OiAwcHggMHB4IDhweCAjY2NjO1xuICBwYWRkaW5nOiAxLjJyZW07XG4gIC5ib3gtYm9keSB7XG4gICAgcGFkZGluZzogMXJlbTtcbiAgfVxuICAuYm94LWhlYWRpbmcge1xuICAgIHBhZGRpbmctYm90dG9tOiAxcmVtO1xuICAgIHdvcmQtd3JhcDogYnJlYWstd29yZDtcbiAgICBmb250LXdlaWdodDogNjAwO1xuICAgIHNwYW4ge1xuICAgICAgcGFkZGluZzogMCAxcmVtO1xuICAgIH1cbiAgfVxufVxuXG4uZHJvcGRvd24tdG9nZ2xlOjphZnRlciB7XG4gIGNvbnRlbnQ6IG5vbmU7XG59XG5cbi5idG4tc3VibWl0IHtcbiAgY29sb3I6ICNmZmY7XG4gIGJhY2tncm91bmQtY29sb3I6ICMzMzdhYjc7XG4gIGJvcmRlci1jb2xvcjogIzJlNmRhNDtcbn1cbiJdfQ== */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](OverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-question-builder-overview',
templateUrl: './overview.component.html',
styleUrls: ['./overview.component.scss'],
}]
}], function () { return [{ type: src_app_users_service_central_builder_central_builder_service__WEBPACK_IMPORTED_MODULE_6__["CentralBuilderService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}], editModuleEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "vY5A":
/*!***************************************!*\
!*** ./src/app/app-routing.module.ts ***!
\***************************************/
/*! exports provided: AppRoutingModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function() { return AppRoutingModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "tyNb");
/* harmony import */ var _shared_error_404_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./shared/error/404.component */ "uyz1");
/* harmony import */ var _external_link_external_link_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./external-link/external-link.component */ "SPRF");
/* harmony import */ var _shared_network_rocket_network_rocket_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shared/network-rocket/network-rocket.component */ "z8GQ");
const routes = [
{
path: 'admin',
loadChildren: () => __webpack_require__.e(/*! import() | app-admin-admin-module */ "app-admin-admin-module").then(__webpack_require__.bind(null, /*! ../app/admin/admin.module */ "jkDv")).then((module) => module.AdminModule),
},
{
path: 'users',
loadChildren: () => Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ../app/users/users.module */ "zrcO")).then((module) => module.UsersModule),
},
{
path: ':id/external-link/:id',
component: _external_link_external_link_component__WEBPACK_IMPORTED_MODULE_3__["ExternalLinkComponent"]
},
{
path: '',
pathMatch: 'full',
component: _shared_network_rocket_network_rocket_component__WEBPACK_IMPORTED_MODULE_4__["NetworkRocketComponent"],
},
{
path: '404',
component: _shared_error_404_component__WEBPACK_IMPORTED_MODULE_2__["P404Component"]
},
{
path: '**', redirectTo: '/404'
}
];
class AppRoutingModule {
}
AppRoutingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: AppRoutingModule });
AppRoutingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function AppRoutingModule_Factory(t) { return new (t || AppRoutingModule)(); }, imports: [[_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forRoot(routes, { useHash: false })], _angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](AppRoutingModule, { imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]], exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]] }); })();
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AppRoutingModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
args: [{
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"].forRoot(routes, { useHash: false })],
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_1__["RouterModule"]],
}]
}], null, null); })();
/***/ }),
/***/ "w23u":
/*!************************************************************************************************!*\
!*** ./src/app/users/pages/communication/manage-news/news-overview/news-overview.component.ts ***!
\************************************************************************************************/
/*! exports provided: NewsOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NewsOverviewComponent", function() { return NewsOverviewComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! moment */ "wd/R");
/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_5__);
/* harmony import */ var src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/app/users/service/manage-news & events/news-events.service */ "61Xx");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../../shared/skliton-loading-table/skliton-loading-table.component */ "njTu");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _news_view_news_view_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../news-view/news-view.component */ "ZGWl");
/* harmony import */ var _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../../../../shared/pipes/safe.pipe */ "ITC6");
function NewsOverviewComponent_div_0_span_23_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function NewsOverviewComponent_div_0_table_26_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "p", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipe"](6, "safeHtml");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "span", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NewsOverviewComponent_div_0_table_26_tr_14_Template_button_click_13_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const item_r5 = ctx.$implicit; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r6.onViewWall(item_r5._id, item_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](14, " View ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "button", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NewsOverviewComponent_div_0_table_26_tr_14_Template_button_click_15_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r7); const item_r5 = ctx.$implicit; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3); return ctx_r8.onEditWall(item_r5); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r5 = ctx.$implicit;
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](3, 5, item_r5.createdAt), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("innerHtml", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpipeBind1"](6, 7, item_r5 == null ? null : item_r5.teaser == null ? null : item_r5.teaser.title), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeHtml"]);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r5.authorId.name);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", item_r5.status == 2 ? "badge-warning" : ctx_r4.checkNewsColorStatus(item_r5.publishing.startDate, item_r5.publishing.endDate));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r5.status == 2 ? "Draft" : ctx_r4.checkNewsStatus(item_r5.publishing.startDate, item_r5.publishing.endDate), " ");
} }
function NewsOverviewComponent_div_0_table_26_Template(rf, ctx) { if (rf & 1) {
const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "table", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsOverviewComponent_div_0_table_26_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r9.onSortUsers($event, "createdAt"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " DATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function NewsOverviewComponent_div_0_table_26_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r10); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r11.onSortUsers($event, "authorId.name"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](6, " NEWS TITLE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](8, "AUTHOR");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](10, "STATUS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, "ACTION");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](14, NewsOverviewComponent_div_0_table_26_tr_14_Template, 17, 9, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r3.usersPTable.data);
} }
function NewsOverviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "span", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "NEWS");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function NewsOverviewComponent_div_0_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.loadUsers("refresh"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, " REFRESH ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "select", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function NewsOverviewComponent_div_0_Template_select_change_11_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.onLimitChangeUsers(); })("ngModelChange", function NewsOverviewComponent_div_0_Template_select_ngModelChange_11_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r15.usersPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](13, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](15, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "option", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](23, NewsOverviewComponent_div_0_span_23_Template, 2, 0, "span", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "input", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("search", function NewsOverviewComponent_div_0_Template_input_search_24_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r16.loadUsers(); })("keyup", function NewsOverviewComponent_div_0_Template_input_keyup_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.userssearchInput.next($event); })("ngModelChange", function NewsOverviewComponent_div_0_Template_input_ngModelChange_24_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r18.usersPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, NewsOverviewComponent_div_0_table_26_Template, 15, 1, "table", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "app-skliton-loading-table", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "ngb-pagination", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function NewsOverviewComponent_div_0_Template_ngb_pagination_pageChange_32_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r19.usersPTable.page = $event; })("pageChange", function NewsOverviewComponent_div_0_Template_ngb_pagination_pageChange_32_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.onPageChangeUsers($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r0.usersPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r0.usersPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("numberOfCols", 5)("isTableLoading", ctx_r0.isTableLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total records ", ctx_r0.usersPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r0.usersPTable.total)("page", ctx_r0.usersPTable.page)("maxSize", 5)("pageSize", ctx_r0.usersPTable.limit);
} }
function NewsOverviewComponent_app_news_view_1_Template(rf, ctx) { if (rf & 1) {
const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "app-news-view", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("ViewEvent", function NewsOverviewComponent_app_news_view_1_Template_app_news_view_ViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r21.ViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("newsId", ctx_r1.newsId)("newsData", ctx_r1.newsData);
} }
class NewsOverviewComponent {
constructor(newsService, toastService, storageService, formBuilder) {
this.newsService = newsService;
this.toastService = toastService;
this.storageService = storageService;
this.formBuilder = formBuilder;
// isBuUnitEdited:boolean = false
// sectionId:string
// subSectionId:string
// bussinessUnitEditForm:FormGroup
this.userssearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
this.isTableLoading = true;
this.EditEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
// this.config.notFoundText = 'Custom not found';
this.usersPTable = {
sortBy: 'desc',
sortWith: 'createdBy',
postType: 'news',
data: [],
page: 1,
limit: 10,
search: '',
};
// this.companyName = this.storageService.getByKey('companyId');
this.usersSearchSubscription = this.userssearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(500))))
.subscribe((input) => {
this.usersPTable.page = 1;
this.loadUsers();
});
}
// companyName: string;
/// bussiness unit over view table config
onSortUsers({ column, direction }, field) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.usersPTable.sortWith = !!direction ? field : 'createdBy';
this.usersPTable.sortBy = !!direction ? direction : 'desc';
this.loadUsers();
}
onPageChangeUsers(page) {
this.usersPTable.page = page;
this.loadUsers();
}
onLimitChangeUsers() {
this.loadUsers();
}
ngOnInit() {
this.loadUsers();
this.getCurrentDate();
}
getCurrentDate() {
const currentDate = new Date();
this.todayDate = moment__WEBPACK_IMPORTED_MODULE_5__(currentDate).utc().format();
}
loadUsers(type) {
const _a = this.usersPTable, { data, loading, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "loading", "total"]);
const companyId = localStorage.getItem('flexicompanyId');
const subscribe = this.newsService
.getAllNewsEventsOverview(companyId, rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { data, count } = response.data;
this.usersPTable.data = data;
this.usersPTable.total = count;
this.isTableLoading = false;
if (type === 'refresh') {
this.toastService.success('Data Refreshed Successfully');
}
}, (error) => {
this.usersPTable.data = [];
this.usersPTable.total = 0;
this.toastService.error('No list found');
});
}
onEditWall(newsData) {
this.EditEvent.emit(newsData);
}
checkNewsStatus(startDate, endDate) {
if (moment__WEBPACK_IMPORTED_MODULE_5__() < moment__WEBPACK_IMPORTED_MODULE_5__(startDate))
return "Pending Publication";
if (moment__WEBPACK_IMPORTED_MODULE_5__() > moment__WEBPACK_IMPORTED_MODULE_5__(endDate))
return "Expired";
if (moment__WEBPACK_IMPORTED_MODULE_5__() < moment__WEBPACK_IMPORTED_MODULE_5__(endDate))
return "Published";
}
checkNewsColorStatus(startDate, endDate) {
if (moment__WEBPACK_IMPORTED_MODULE_5__() < moment__WEBPACK_IMPORTED_MODULE_5__(startDate))
return "badge-primary";
if (moment__WEBPACK_IMPORTED_MODULE_5__() > moment__WEBPACK_IMPORTED_MODULE_5__(endDate))
return "badge-danger";
if (moment__WEBPACK_IMPORTED_MODULE_5__() < moment__WEBPACK_IMPORTED_MODULE_5__(endDate))
return "badge-success";
}
onViewWall(id, item) {
this.newsId = id;
this.isNewsView = true;
this.newsData = item;
}
ViewEvent() {
this.isNewsView = false;
this.loadUsers();
}
ngOnDestroy() {
this.usersSearchSubscription && this.usersSearchSubscription.unsubscribe();
}
}
NewsOverviewComponent.ɵfac = function NewsOverviewComponent_Factory(t) { return new (t || NewsOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_6__["NewsEventsService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"])); };
NewsOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: NewsOverviewComponent, selectors: [["news-overview"]], viewQuery: function NewsOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { EditEvent: "EditEvent" }, decls: 2, vars: 2, consts: [["class", "card mb-3", 4, "ngIf"], [3, "newsId", "newsData", "ViewEvent", 4, "ngIf"], [1, "card", "mb-3"], [1, "align-items-center", "bg-theme", "card-header", "d-flex", "justify-content-between"], [1, "h5", "m-0"], [1, "btn", "btn-primary", 3, "click"], [1, "card-body"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], [4, "ngIf"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "search", "keyup", "ngModelChange"], [1, "table-responsive"], ["class", "table", 4, "ngIf"], [3, "numberOfCols", "isTableLoading"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [3, "innerHtml"], [1, "badge", 3, "ngClass"], [1, "btn", "btn-submit", "p-2", "m-1", "pl-3", "pr-3", 3, "click"], [1, "btn", "btn-add", "p-2", "m-1", "pl-3", "pr-3", 3, "click"], [3, "newsId", "newsData", "ViewEvent"]], template: function NewsOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](0, NewsOverviewComponent_div_0_Template, 33, 16, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](1, NewsOverviewComponent_app_news_view_1_Template, 1, 2, "app-news-view", 1);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.isNewsView);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isNewsView);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_11__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["ɵangular_packages_forms_forms_x"], _angular_forms__WEBPACK_IMPORTED_MODULE_9__["DefaultValueAccessor"], _shared_skliton_loading_table_skliton_loading_table_component__WEBPACK_IMPORTED_MODULE_12__["SklitonLoadingTableComponent"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_13__["NgbPagination"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_10__["NgClass"], _news_view_news_view_component__WEBPACK_IMPORTED_MODULE_14__["NewsViewComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_10__["DatePipe"], _shared_pipes_safe_pipe__WEBPACK_IMPORTED_MODULE_15__["SafeHtmlPipe"]], styles: ["ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}\nul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .list-group-item[_ngcontent-%COMP%] {\n position: relative;\n display: block;\n padding: 10px 15px;\n margin-bottom: -1px;\n background-color: #fff;\n border: 1px solid #ddd;\n}\nul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n width: 120px;\n color: #a42138;\n display: inline-block;\n}\nimg[_ngcontent-%COMP%] {\n border-radius: 50%;\n}\n.btn-submit[_ngcontent-%COMP%] {\n color: #fff;\n background-color: #337ab7;\n border-color: #2e6da4;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtbmV3cy9uZXdzLW92ZXJ2aWV3L25ld3Mtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxxQkFBQTtFQUNBLFVBQUE7QUFDRjtBQUFFO0VBQ0Usa0JBQUE7RUFDQSxjQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtFQUNBLHNCQUFBO0VBQ0Esc0JBQUE7QUFFSjtBQUNJO0VBQ0UsWUFBQTtFQUNBLGNBQUE7RUFDQSxxQkFBQTtBQUNOO0FBSUE7RUFDRSxrQkFBQTtBQURGO0FBSUE7RUFDRSxXQUFBO0VBQ0EseUJBQUE7RUFDQSxxQkFBQTtBQURGIiwiZmlsZSI6InNyYy9hcHAvdXNlcnMvcGFnZXMvY29tbXVuaWNhdGlvbi9tYW5hZ2UtbmV3cy9uZXdzLW92ZXJ2aWV3L25ld3Mtb3ZlcnZpZXcuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJ1bCB7XG4gIGxpc3Qtc3R5bGUtdHlwZTogbm9uZTtcbiAgcGFkZGluZzogMDtcbiAgbGkgLmxpc3QtZ3JvdXAtaXRlbSB7XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgIHBhZGRpbmc6IDEwcHggMTVweDtcbiAgICBtYXJnaW4tYm90dG9tOiAtMXB4O1xuICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gICAgYm9yZGVyOiAxcHggc29saWQgI2RkZDtcbiAgfVxuICBsaSB7XG4gICAgc3BhbiB7XG4gICAgICB3aWR0aDogMTIwcHg7XG4gICAgICBjb2xvcjogI2E0MjEzODtcbiAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICB9XG4gIH1cbn1cblxuaW1nIHtcbiAgYm9yZGVyLXJhZGl1czogNTAlO1xufVxuXG4uYnRuLXN1Ym1pdCB7XG4gIGNvbG9yOiAjZmZmO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMzM3YWI3O1xuICBib3JkZXItY29sb3I6ICMyZTZkYTQ7XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NewsOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'news-overview',
templateUrl: './news-overview.component.html',
styleUrls: ['./news-overview.component.scss']
}]
}], function () { return [{ type: src_app_users_service_manage_news_events_news_events_service__WEBPACK_IMPORTED_MODULE_6__["NewsEventsService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_7__["ToastrService"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_8__["StorageService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_9__["FormBuilder"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_4__["SortableHeader"]]
}], EditEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "w62q":
/*!**********************************************************************************************************!*\
!*** ./src/app/users/pages/communication/board-setup/create-edit-boards/create-edit-boards.component.ts ***!
\**********************************************************************************************************/
/*! exports provided: CreateEditBoardsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CreateEditBoardsComponent", function() { return CreateEditBoardsComponent; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "mrSG");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/app/shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/core/utils/helper */ "MZth");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! src/app/users/service/user-service/users.service */ "lGV6");
/* harmony import */ var src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/admin/service/companyservice/company.service */ "RZ9m");
/* harmony import */ var src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/users/service/bussiness-unit/bussiness-unit.service */ "szw9");
/* harmony import */ var src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! src/app/users/service/custom-field/custom-field.service */ "nFLZ");
/* harmony import */ var src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! src/app/users/service/channel/channel.service */ "awjJ");
/* harmony import */ var src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! src/app/users/service/board-setup/board-setup.service */ "UtxO");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../../../shared/assign-users/assign-users.component */ "9Zea");
const _c0 = ["AddSubSection"];
function CreateEditBoardsComponent_button_4_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_button_4_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r10.onCancelEdit(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Back ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditBoardsComponent_div_26_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 59);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "input", 60);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditBoardsComponent_div_26_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r12.iconUpload($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 61);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, " Upload Form Logo ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditBoardsComponent_div_27_Template(rf, ctx) { if (rf & 1) {
const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 62);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "i", 63);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_div_27_Template_i_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r14.ondeleteImage(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "img", 64);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("src", ctx_r2.validateURLImage(ctx_r2.wallCreateForm.get("bannerImage").value), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
} }
function CreateEditBoardsComponent_div_84_Template(rf, ctx) { if (rf & 1) {
const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](2, "input", 66);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "label", 67);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4, "Allow nomination only by Administrator");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 68);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "Limit max number of nomination that can be submitted per user ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "input", 70, 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditBoardsComponent_div_84_Template_input_change_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r17.toggleDisableNumberofNomination(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "input", 74);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](15, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](17, " Monthly ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](19, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](21, " Quarterly ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](23, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, " Bi-annually ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](27, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](29, " Yearly ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", ctx_r3.wallCreateForm.value.nominationPerUser.enabled ? null : "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 4);
} }
function CreateEditBoardsComponent_div_85_Template(rf, ctx) { if (rf & 1) {
const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 77);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "label", 69);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2, "Limit how many times I can nominate each user ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "input", 70, 71);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditBoardsComponent_div_85_Template_input_change_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r20.toggleDisableNominateEachUser(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](5, "span", 72);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "div", 73);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](8, "input", 78);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](10, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](12, " Monthly ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](14, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, " Quarterly ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](17, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](18, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](19, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](20, " Bi-annually ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 65);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](22, "input", 75);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "label", 76);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](24, " Yearly ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("disabled", ctx_r4.wallCreateForm.value.maxNomination.enabled ? null : "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 4);
} }
function CreateEditBoardsComponent_ng_option_127_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "ng-option", 79);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r22 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", item_r22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"](" ", item_r22.name, " ");
} }
function CreateEditBoardsComponent_div_130_Template(rf, ctx) { if (rf & 1) {
const _r26 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 80);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "span", 81);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "img", 82);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_div_130_Template_img_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r26); const index_r24 = ctx.index; const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r25.deleteCategories(index_r24); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const field_r23 = ctx.$implicit;
const index_r24 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroupName", index_r24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", field_r23.get("categoryName").value, " ");
} }
const _c1 = function (a0, a1) { return { "fa-spin fa-spinner": a0, "": a1 }; };
function CreateEditBoardsComponent_button_134_Template(rf, ctx) { if (rf & 1) {
const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 83);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_button_134_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r28); const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r27.createBoard(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](1, "i", 84);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", ctx_r7.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction2"](3, _c1, ctx_r7.isLoading, !ctx_r7.isLoading));
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("", ctx_r7.boardId ? "Update" : "Create", " ");
} }
function CreateEditBoardsComponent_ng_template_135_button_18_Template(rf, ctx) { if (rf & 1) {
const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_ng_template_135_button_18_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r36); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r35.createCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " Add ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r31.createCategoryForm.valid);
} }
function CreateEditBoardsComponent_ng_template_135_button_19_Template(rf, ctx) { if (rf & 1) {
const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "button", 110);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_ng_template_135_button_19_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r38); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r37.UpdateCatagory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, " UPDATE ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("disabled", !ctx_r32.createCategoryForm.valid);
} }
function CreateEditBoardsComponent_ng_template_135_span_41_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](1, "Please wait...");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} }
function CreateEditBoardsComponent_ng_template_135_tr_54_Template(rf, ctx) { if (rf & 1) {
const _r42 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "button", 111);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_ng_template_135_tr_54_Template_button_click_6_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r42); const item_r39 = ctx.$implicit; const ctx_r41 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r41.oneditCategory(item_r39); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, " Edit ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 112);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_ng_template_135_tr_54_Template_button_click_8_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r42); const item_r39 = ctx.$implicit; const ctx_r43 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](2); return ctx_r43.onDeleteCategory(item_r39._id); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](9, " Delete ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r39 = ctx.$implicit;
const index_r40 = ctx.index;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](index_r40 + 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate"](item_r39.name);
} }
function CreateEditBoardsComponent_ng_template_135_Template(rf, ctx) { if (rf & 1) {
const _r46 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 85);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "div", 86);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](7, "ADD CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "button", 87);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_ng_template_135_Template_button_click_8_listener() { const c_r29 = ctx.close; return c_r29("Cross click"); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](9, "i", 88);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](11, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](12, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](13, "div", 89);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "label", 90);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](16, "CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 91);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](18, CreateEditBoardsComponent_ng_template_135_button_18_Template, 2, 1, "button", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](19, CreateEditBoardsComponent_ng_template_135_button_19_Template, 2, 1, "button", 92);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](20, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](23, "CATEGORY LIST");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](25, "div", 93);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](26, "div", 94);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](27, "div", 95);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 96);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "select", 97);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditBoardsComponent_ng_template_135_Template_select_change_29_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r45.onLimitChangeCategory(); })("ngModelChange", function CreateEditBoardsComponent_ng_template_135_Template_select_ngModelChange_29_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r47.categoryPTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "option", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](31, "10");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](32, "option", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](33, "20");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "option", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](35, "30");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "option", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, "40");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "option", 98);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](39, "50");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "div", 99);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](41, CreateEditBoardsComponent_ng_template_135_span_41_Template, 2, 0, "span", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "input", 100);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("keyup", function CreateEditBoardsComponent_ng_template_135_Template_input_keyup_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r48.categorySearchInput.next($event); })("ngModelChange", function CreateEditBoardsComponent_ng_template_135_Template_input_ngModelChange_42_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r49.categoryPTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 101);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "table", 102);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](46, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "th", 103);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function CreateEditBoardsComponent_ng_template_135_Template_th_sort_47_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r50.onSortCategory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](48, " S.NO ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](49, "th", 104);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("sort", function CreateEditBoardsComponent_ng_template_135_Template_th_sort_49_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r51.onSortCategory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](50, " CATEGORY ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](51, "th", 105);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](52, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](53, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](54, CreateEditBoardsComponent_ng_template_135_tr_54_Template, 10, 2, "tr", 106);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](55, "div", 107);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "div", 108);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "p");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](58);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "ngb-pagination", 109);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("pageChange", function CreateEditBoardsComponent_ng_template_135_Template_ngb_pagination_pageChange_59_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r52.categoryPTable.page = $event; })("pageChange", function CreateEditBoardsComponent_ng_template_135_Template_ngb_pagination_pageChange_59_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r46); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return ctx_r53.onPageChangeCtegory($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx_r9.createCategoryForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx_r9.isCategoryEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r9.isCategoryEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r9.categoryPTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngValue", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx_r9.categoryPTable.isLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngModel", ctx_r9.categoryPTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx_r9.categoryDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtextInterpolate1"]("Total Records ", ctx_r9.categoryPTable.total, "");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("collectionSize", ctx_r9.categoryPTable.total)("page", ctx_r9.categoryPTable.page)("maxSize", 5)("pageSize", ctx_r9.categoryPTable.limit);
} }
const _c2 = function () { return { standalone: true }; };
class CreateEditBoardsComponent {
constructor(modalService, toastService, userService, companyService, formBuilder, buUnit, customFieldService, channelService, boardService) {
this.modalService = modalService;
this.toastService = toastService;
this.userService = userService;
this.companyService = companyService;
this.formBuilder = formBuilder;
this.buUnit = buUnit;
this.customFieldService = customFieldService;
this.channelService = channelService;
this.boardService = boardService;
this.isChannelEdited = true;
this.categoryDropDownLoading = false;
this.planBuUnitDropDownLoading = false;
this.apppoinmentDropDownLoading = false;
this.CustomFieldDropDownLoading = false;
this.isLoading = false;
this.isNominationOpen = false;
this.categoryDropDown = [];
this.activeId = 1;
this.buDropDownToClear = null;
this.apoinemntDropDownToClear = null;
this.customFeildDropDownToClear = null;
this.adminDropDownToClear = null;
this.authorDropDownToClear = null;
this.numberOfNomination = false;
this.limitNomination = false;
this.isUserDetailsEdited = false;
this.isBoardEdited = false;
this.timeElapsed = Date.now();
this.today = new Date(this.timeElapsed);
this.config = {
format: 'MMM, YYYY',
returnedValueType: 3,
max: new Date(Date.now()).toUTCString(),
};
this.userDetails = [];
this.userDropDown = [];
this.categorySearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
this.isCategoryEdited = false;
this.isAddButtonActive = false;
this.categories = null;
this.boardId = null;
this.overViewEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
this.UpdateduserDetails = [];
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl;
this.categoryPTable = {
sortWith: 'createdAt',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
total: 0,
search: '',
};
this.bussinesUnitplanPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 8,
search: '',
filter: {
type: 'plan',
},
};
this.appoinmentPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.CustomFieldPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
total: 0,
limit: 10,
search: '',
};
this.userPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.adminPTable = {
sortWith: 'createdBy',
sortBy: 'desc',
data: [],
page: 1,
limit: 10,
search: '',
};
this.categorySearchSubscription = this.categorySearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["map"])((event) => {
const target = event.target;
return target.value;
}), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["mergeMap"])((search) => Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["of"])(search).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["delay"])(500))))
.subscribe((input) => {
this.categoryPTable.page = 1;
this.loadCategory();
});
}
onSortCategory({ column, direction }) {
// resetting other headers
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.categoryPTable.sort = { key: column, order: direction };
this.loadCategory();
}
onPageChangeCtegory(page) {
this.categoryPTable.page = page;
this.loadCategory();
}
onLimitChangeCategory() {
this.loadCategory();
}
initForm() {
this.wallCreateForm = this.formBuilder.group({
wallName: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
displayType: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
postType: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
isNomineeActive: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
adminResponse: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
postAnonymously: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
isTaskActive: [null, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
nominationOnlyByAdmin: [false],
quickNavEnabled: [false],
bannerImage: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
nominationPerUser: this.formBuilder.group({
enabled: false,
submissionLimit: '',
submissionPeriod: '',
}),
maxNomination: this.formBuilder.group({
enabled: false,
submissionLimit: '',
submissionPeriod: '',
}),
category: this.formBuilder.array([]),
});
this.channelCreateForm = this.formBuilder.group({
name: ['', _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
category: this.formBuilder.array([], [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
status: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
}
clearForm() {
this.channelCreateForm.patchValue({
name: '',
status: ''
});
this.UpdateduserDetails = [];
this.userDetails = [];
this.isAddButtonActive = false;
}
inituserDetailsFrom() {
return (this.userDetailsForm = this.formBuilder.group({
businessUnits: this.formBuilder.array([], [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
buFilterType: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
appointments: this.formBuilder.array([]),
subSkillSets: this.formBuilder.array([]),
user: this.formBuilder.array([]),
admin: this.formBuilder.array([]),
allBuToken: '',
allBuTokenStaffId: '',
customField: this.formBuilder.array([]),
}));
}
categoryForm() {
this.createCategoryForm = this.formBuilder.group({
name: ['', [_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].pattern('[a-zA-Z0-9_]+.*$')]],
status: [1, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required],
});
}
ngOnInit() {
this.inituserDetailsFrom();
this.initForm();
this.categoryForm();
this.loadCategory();
this.boardId && this.getFormForEdit(this.boardId);
}
onCancelEdit() {
this.initForm();
this.isBoardEdited = false;
this.boardId = null;
this.userDetails.length = 0;
this.overViewEvent.emit(null);
}
getFormForEdit(data) {
this.isBoardEdited = true;
this.userDetails = data.assignUsers;
this.showCreateButton();
this.UpdateduserDetails = Object(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_7__["getAssignedUsers"])(data === null || data === void 0 ? void 0 : data.assignUsers);
const control = this.CategorytControl;
data === null || data === void 0 ? void 0 : data.category.forEach((element) => {
let field = this.formBuilder.group({
categoryName: [
element.categoryName,
_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required]),
],
});
control.push(field);
});
this.wallCreateForm.patchValue({
wallName: data.wallName,
displayType: data.displayType,
postType: data.postType,
isNomineeActive: data.isNomineeActive,
nominationOnlyByAdmin: data.nominationOnlyByAdmin,
nominationPerUser: Object.assign({}, data.nominationPerUser),
maxNomination: Object.assign({}, data.maxNomination),
adminResponse: data.adminResponse,
postAnonymously: data.postAnonymously,
isTaskActive: data.isTaskActive,
quickNavEnabled: data.quickNavEnabled,
bannerImage: data.bannerImage,
});
}
showCreateButton() {
this.isAddButtonActive = true;
}
hideCreateButton() {
this.isAddButtonActive = false;
}
updateUserDetails(userDetails) {
this.UpdateduserDetails = userDetails;
}
ondeleteImage() {
this.wallCreateForm.patchValue({
bannerImage: '',
});
}
iconUpload(event) {
if (event.target.files && event.target.files.length) {
let file = event.target.files[0];
if (file && file.type.startsWith('image/')) {
const fileUpload = this.companyService
.uploadWallFile(file)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
fileUpload.unsubscribe();
}))
.subscribe((data) => {
this.toastService.success("Image uploaded successfully");
this.wallCreateForm.patchValue({
bannerImage: `${src_environments_environment__WEBPACK_IMPORTED_MODULE_6__["environment"].imageUrl}/${data.data.filePath}`,
});
}, (error) => {
this.toastService.error(error.error.message);
});
}
else {
this.toastService.error(src_app_core_utils_helper__WEBPACK_IMPORTED_MODULE_7__["COMMON_MESSAGES"].UPLOAD_ONLY_IMAGE);
event.target.value = '';
file = null;
}
}
}
/// category
addCategory() {
this.categoryForm();
this.loadCategory();
this.modalService.open(this.AddSubSection, {
windowClass: 'modal-ui-fix right-align',
});
// this.loadAppoinment();
}
get CategorytControl() {
return this.wallCreateForm.get('category');
}
addCategories(value) {
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
if (value) {
const Control = this.CategorytControl;
const index = yield Control.value.findIndex((x) => x.categoryName === value.name);
this.categories = [];
if (index > -1) {
this.toastService.error(`${value.name} is already added`, '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}
else {
let field = this.formBuilder.group({
categoryName: [value.name, _angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].compose([_angular_forms__WEBPACK_IMPORTED_MODULE_2__["Validators"].required])],
});
Control.push(field);
this.categories = [];
}
}
});
}
oneditCategory(category) {
this.editCategoryId = category._id;
this.isCategoryEdited = true;
this.createCategoryForm.patchValue({
name: category.name,
status: category.status,
});
}
deleteCategories(index) {
const Control = this.CategorytControl;
Control.removeAt(index);
}
UpdateCatagory() {
const subscribe = this.channelService
.updateCategory(this.createCategoryForm.value, this.editCategoryId)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.isCategoryEdited = false;
this.categoryForm();
this.loadCategory();
this.toastService.success('Category Updated', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
});
}
createCategory() {
// this.categoryDropDown.push(this.createCategoryForm.value)
// this.toastService.success('Category Created', '', {
// timeOut: 3000,
// positionClass: 'toast-top-right',
// });
// this.createCategoryForm.patchValue({
// name: '',
// });
const subscribe = this.channelService
.createCategory(this.createCategoryForm.value)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.loadCategory();
this.categoryForm();
this.toastService.success('Category Created', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
this.createCategoryForm.patchValue({
name: '',
});
});
}
onDeleteCategory(id) {
const subscribe = this.channelService
.deleteCategory(id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
subscribe.unsubscribe();
}))
.subscribe((response) => {
this.loadCategory();
this.toastService.error('Category Deleted', '', {
timeOut: 3000,
positionClass: 'toast-top-right',
});
}, (error) => {
this.toastService.error('Something Went Wrong');
});
}
onSeachCategory(value) {
this.categoryPTable.limit = 10;
this.categoryPTable.search = value.term;
this.loadCategory();
}
loadMoreCategoryItems(value) {
this.categoryPTable.limit = this.categoryPTable.limit + 10;
this.loadCategory();
}
onClearCategoryDropdown(value) {
if (value === undefined) {
// this.createUserForm.patchValue({
// appointmentId: null,
// });
this.categoryPTable.search = '';
this.loadCategory();
this.categoryDropDown = [];
this.categoryPTable.data = [];
}
}
loadCategory() {
this.categoryDropDownLoading = true;
const _a = this.categoryPTable, { data, total } = _a, rest = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__rest"])(_a, ["data", "total"]);
const subscribe = this.channelService
.getAllCategory(rest)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => {
this.categoryDropDownLoading = false;
subscribe.unsubscribe();
}))
.subscribe((response) => {
const { count, data } = response.data;
this.categoryPTable.data = data;
this.categoryDropDown = data;
this.categoryPTable.total = count;
}, (error) => {
this.categoryPTable.data = [];
this.categoryPTable.total = 0;
});
}
createBoard() {
// if (!this.wallCreateForm.valid) {
// this.toastService.error('Please fill all fields');
// return;
// }
this.isLoading = true;
if (this.wallCreateForm.controls.displayType.invalid) {
this.toastService.error('Please select listing display setup');
this.isLoading = false;
return;
}
else if (this.wallCreateForm.controls.postType.invalid) {
this.toastService.error('Please select post type');
this.isLoading = false;
return;
}
else if (this.wallCreateForm.value.nominationPerUser.enabled &&
!this.wallCreateForm.value.nominationPerUser.submissionLimit &&
!this.wallCreateForm.value.nominationPerUser.submissionPeriod) {
this.toastService.error('Please enter max number of nomination');
this.isLoading = false;
return;
}
else if (this.wallCreateForm.value.maxNomination.enabled &&
!this.wallCreateForm.value.maxNomination.submissionLimit &&
!this.wallCreateForm.value.maxNomination.submissionPeriod) {
this.toastService.error('Please enter max number of nomination per user');
this.isLoading = false;
return;
}
this.wallCreateForm.patchValue({
isNomineeActive: this.wallCreateForm.value.isNomineeActive ? this.wallCreateForm.value.isNomineeActive : false,
adminResponse: this.wallCreateForm.value.adminResponse ? this.wallCreateForm.value.adminResponse : false,
postAnonymously: this.wallCreateForm.value.postAnonymously ? this.wallCreateForm.value.postAnonymously : false,
isTaskActive: this.wallCreateForm.value.isTaskActive ? this.wallCreateForm.value.isTaskActive : false
});
const data = Object.assign(Object.assign({}, this.wallCreateForm.value), { assignUsers: this.UpdateduserDetails, status: this.createCategoryForm.value.status });
data.maxNomination.enabled && data.maxNomination.submissionPeriod ? data.maxNomination.submissionPeriod = Number(data.maxNomination.submissionPeriod) : data.maxNomination.submissionPeriod = 0;
data.maxNomination.enabled && data.maxNomination.submissionLimit ? data.maxNomination.submissionLimit = Number(data.maxNomination.submissionLimit) : data.maxNomination.submissionLimit = 0;
data.nominationPerUser.enabled && data.nominationPerUser.submissionPeriod ? data.nominationPerUser.submissionPeriod = Number(data.nominationPerUser.submissionPeriod) : data.nominationPerUser.submissionPeriod = 0;
data.nominationPerUser.enabled && data.nominationPerUser.submissionLimit ? data.nominationPerUser.submissionLimit = Number(data.nominationPerUser.submissionLimit) : data.nominationPerUser.submissionLimit = 0;
if (this.boardId)
data.wallId = { _id: this.boardId._id };
const sub1 = this.boardId
? this.boardService
.updateWall(data, this.boardId._id)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => sub1.unsubscribe()))
.subscribe((res) => {
this.isLoading = false;
this.overViewEvent.emit(null);
this.toastService.success('Wall Updated Successfully');
}, (error) => {
this.isLoading = false;
this.toastService.error('Please fill all the fields');
})
: this.boardService
.createWall(data)
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_4__["finalize"])(() => sub1.unsubscribe()))
.subscribe((res) => {
this.isLoading = false;
this.overViewEvent.emit(null);
this.toastService.success(`Wall Created Successfully`);
}, (error) => {
this.isLoading = false;
this.toastService.error('Please fill all the fields');
});
}
nominationMenuTrue() {
this.isNominationOpen = true;
}
nominationMenuFalse() {
this.isNominationOpen = false;
}
toggleDisableNumberofNomination() {
}
toggleDisableNominateEachUser() {
}
validateURLImage(str) {
var img_Path = str;
if (img_Path.indexOf("https://") == 0) {
var new_url = new URL(str);
var pathName = (new_url.pathname.startsWith('//')) ? `/${new_url.pathname.split("//")[1]}` : new_url.pathname;
return `${this.baseUrl}${pathName}`;
}
if (str.startsWith('/'))
return this.baseUrl + str;
return `${this.baseUrl}/${str}`;
}
}
CreateEditBoardsComponent.ɵfac = function CreateEditBoardsComponent_Factory(t) { return new (t || CreateEditBoardsComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__["CompanyService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__["BussinessUnitService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__["CustomFieldService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_14__["ChannelService"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_15__["BoardSetupService"])); };
CreateEditBoardsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: CreateEditBoardsComponent, selectors: [["app-create-edit-boards"]], viewQuery: function CreateEditBoardsComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵviewQuery"](src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.AddSubSection = _t.first);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, inputs: { boardId: "boardId" }, outputs: { overViewEvent: "overViewEvent" }, decls: 137, vars: 30, consts: [[1, "card", "my-3", "w-100"], [1, "card-header", "flexi-header", "p-4"], ["class", "btn pull-right btn-outline-light", "type", "button", 3, "click", 4, "ngIf"], [1, "card-body"], [3, "formGroup"], [1, "row"], [1, "col-md-6", "mt-1"], [1, "form-group"], ["for", "exampleInputEmail1", 1, "pb-2", "red-label"], ["type", "text", "placeholder", "", "formControlName", "wallName", "maxlength", "100", 1, "form-control"], [1, "form-group", "pr-0"], ["type", "checkbox", "formControlName", "quickNavEnabled"], [1, "ml-2"], [4, "ngIf"], [1, "col-3", "mt-1"], ["for", "", 1, "red-label"], [1, "d-flex", "justify-content-between", "p-3", 2, "width", "22vw"], [1, "radio", "radio-danger", "radio-inline", "p-1"], ["type", "radio", "formControlName", "displayType", "id", "postSubReqTru", 3, "value"], ["for", "postSubReqTru"], ["type", "radio", "id", "postSubReqFals", "formControlName", "displayType", 3, "value"], ["for", "postSubReqFals"], [1, "d-flex", "justify-content-between", "p-3", 2, "width", "21.5vw"], ["type", "radio", "formControlName", "postType", "id", "postSubReqTr", 3, "value"], ["for", "postSubReqTr"], ["type", "radio", "id", "postSubReqFal", "formControlName", "postType", 3, "value"], ["for", "postSubReqFal"], [1, "d-flex", "justify-content-between", "p-3"], ["type", "radio", "formControlName", "isTaskActive", "id", "postSubReqT", 3, "value"], ["for", "postSubReqT"], ["type", "radio", "id", "postSubReqF", "formControlName", "isTaskActive", 3, "value"], ["for", "postSubReqF"], ["type", "radio", "formControlName", "isNomineeActive", "id", "postSubReq", 3, "value", "click"], ["for", "postSubReq"], ["type", "radio", "id", "postSubRe", "formControlName", "isNomineeActive", 3, "value", "click"], ["for", "postSubRe"], ["formGroupName", "maxNomination", 4, "ngIf"], ["type", "radio", "formControlName", "adminResponse", "id", "postadminresponsetrue", 3, "value"], ["for", "postadminresponsetrue"], ["type", "radio", "formControlName", "adminResponse", "id", "postadminresponsefalse", 3, "value"], ["for", "postadminresponsefalse"], ["type", "radio", "formControlName", "postAnonymously", "id", "isAnonymouslyActivetrue", 3, "value"], ["for", "isAnonymouslyActivetrue"], ["type", "radio", "formControlName", "postAnonymously", "id", "isAnonymouslyActivefalse", 3, "value"], ["for", "isAnonymouslyActivefalse"], [1, "card-header", "flexi-header"], [1, "col-md-4"], [1, "pb-2", "red-label"], [1, "btn", "p-1", "ml-1", 2, "color", "#a51f38", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-plus-circle", "fa-lg"], ["bindLabel", "name", "placeholder", "Select Category", "appendTo", "body", 1, "custom", 3, "multiple", "searchable", "clearable", "ngModel", "ngModelOptions", "loading", "change", "ngModelChange", "search", "scrollToEnd", "clear"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-md-6"], [2, "display", "flex", "flex-direction", "row", "flex-wrap", "wrap", "margin-top", "33px"], ["formArrayName", "category", 4, "ngFor", "ngForOf"], ["toastMessage", "Board Updated", 3, "userDetails", "showCreateButton", "hideCreateButton", "onSubmitAssignUsers"], ["class", "btn btn-submit update-button", 3, "disabled", "click", 4, "ngIf"], ["AddSubSection", ""], ["type", "button", 1, "btn", "pull-right", "btn-outline-light", 3, "click"], [1, "custom-file", "mt-0", "w-50", "pt-4", "pb-4", 2, "width", "67px"], ["type", "file", "required", "", "id", "b", 2, "position", "absolute", "z-index", "9", "visibility", "visible", "left", "0", "top", "0", "width", "100%", "opacity", "0", 3, "change"], ["for", "b", 1, "custom-file-label"], [1, "image-with-delete-icon", 2, "width", "300px"], ["title", "Delete", "for", "4", 1, "fa", "fa-close", 3, "click"], ["width", "300px", "height", "300px", "id", "4", "alt", "Image Preview", "crossorigin", "anonymous", 3, "src"], [1, "form-check"], ["type", "checkbox", "formControlName", "nominationOnlyByAdmin", 1, "form-check-input"], ["for", "exampleCheck1", 1, "form-check-label", "mt-1", "ml-2"], ["formGroupName", "nominationPerUser"], [1, "container", "mt-4", "ml-0", "red-label"], ["type", "checkbox", "formControlName", "enabled", 3, "change"], ["el", ""], [1, "checkmark"], [1, "justify-content-SB", "col-8", "ml-4"], ["type", "text", "aria-describedby", "emailHelp", "type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 4) return false;", "placeholder", "Enter Max Submissions", "formControlName", "submissionLimit", 1, "form-control"], ["type", "radio", "formControlName", "submissionPeriod", 1, "form-check-input", 3, "value"], [1, "form-check-label", "ml-2", "mt-1"], ["formGroupName", "maxNomination"], ["type", "number", "pattern", "/^-?\\d+\\.?\\d*$/", "onKeyPress", "if(this.value.length == 4) return false;", "aria-describedby", "emailHelp", "placeholder", "Enter Max Submissions", "formControlName", "submissionLimit", 1, "form-control"], [3, "value"], ["formArrayName", "category"], [1, "text-items", "list-ui", 3, "formGroupName"], ["src", "./assets/images/cancel.png", "width", "25 px", "height", "25px", 1, "ml-3", 3, "click"], [1, "btn", "btn-submit", "update-button", 3, "disabled", "click"], [1, "fa", 3, "ngClass"], [1, "modal-content"], [1, "modal-body", 2, "padding", "10px", "min-height", "100vh"], ["type", "button", "aria-label", "Close", 1, "btn", "close-button", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-times-circle", "fa-2x"], [1, "col-md-12"], ["for", "exampleInputEmail1"], ["type", "text", "formControlName", "name", "placeholder", "Category", 1, "form-control"], ["class", "btn btn-add pull-right", 3, "disabled", "click", 4, "ngIf"], [1, "card", "table-card"], [1, "card-body", "flexi-body"], [1, "flex-column"], [1, "d-flex", "justify-content-between", "mt-2", "mb-3"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue"], [1, "form-group", "form-inline", "mb-0"], ["type", "search", "name", "searchTerm", "placeholder", "Search here", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [1, "table-responsive"], [1, "table"], ["scope", "col", "sortable", "Tier 1", 3, "sort"], ["scope", "col", "sortable", "Tier 2", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [3, "collectionSize", "page", "maxSize", "pageSize", "pageChange"], [1, "btn", "btn-add", "pull-right", 3, "disabled", "click"], [1, "btn", "btn-add", "p-2", "m-1", 3, "click"], [1, "btn", "btn-clear", "p", "-2", "m-1", 3, "click"]], template: function CreateEditBoardsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](2, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "SOCIAL WALL GROUP DETAIL");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](4, CreateEditBoardsComponent_button_4_Template, 2, 0, "button", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](6, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](7, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](8, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](9, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](10, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](11, "Social Wall Group Name (Limit to 100 characters)");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](12, "input", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](13, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](14, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](15, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](16, "div", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](17, "input", 11);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](18, "span", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](19, "Allow this board to be placed in quick navigation");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](20, "br");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](21, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](22, "div", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](23, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](24, "label", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](25, "Social Icon");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](26, CreateEditBoardsComponent_div_26_Template, 5, 0, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](27, CreateEditBoardsComponent_div_27_Template, 4, 1, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](28, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](29, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](30, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](31, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](32, "Listing Display Setup");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](33, "div", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](34, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](35, "input", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](36, "label", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](37, " Consolidated");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](38, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](39, "input", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](40, "label", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](41, "Separate track");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](42, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](43, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](44, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](45, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](46, "Post Type");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](47, "div", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](48, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](49, "input", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](50, "label", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](51, " Long Wall Post");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](52, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](53, "input", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](54, "label", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](55, " Tall Wall Post");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](56, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](57, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](58, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](59, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](60, "Tasking");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](61, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](62, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](63, "input", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](64, "label", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](65, "Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](66, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](67, "input", 30);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](68, "label", 31);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](69, " No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](70, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](71, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](72, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](73, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](74, "Nomination");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](75, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](76, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](77, "input", 32);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_Template_input_click_77_listener() { return ctx.nominationMenuTrue(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](78, "label", 33);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](79, " Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](80, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](81, "input", 34);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_Template_input_click_81_listener() { return ctx.nominationMenuFalse(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](82, "label", 35);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](83, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](84, CreateEditBoardsComponent_div_84_Template, 30, 5, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](85, CreateEditBoardsComponent_div_85_Template, 25, 5, "div", 36);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](86, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](87, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](88, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](89, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](90, "Admin Response");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](91, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](92, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](93, "input", 37);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](94, "label", 38);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](95, " Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](96, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](97, "input", 39);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](98, "label", 40);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](99, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](100, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](101, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](102, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](103, "label", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](104, "Allow posts to be created anonymously?");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](105, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](106, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](107, "input", 41);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](108, "label", 42);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](109, " Yes");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](110, "div", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](111, "input", 43);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](112, "label", 44);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](113, "No");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](114, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](115, "div", 45);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](116, "h3");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](117, "CATEGORY");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](118, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](119, "form", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](120, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](121, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](122, "label", 47);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](123, " Category ");
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](124, "button", 48);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function CreateEditBoardsComponent_Template_button_click_124_listener() { return ctx.addCategory(); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](125, "i", 49);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](126, "ng-select", 50);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("change", function CreateEditBoardsComponent_Template_ng_select_change_126_listener($event) { return ctx.addCategories($event); })("ngModelChange", function CreateEditBoardsComponent_Template_ng_select_ngModelChange_126_listener($event) { return ctx.categories = $event; })("search", function CreateEditBoardsComponent_Template_ng_select_search_126_listener($event) { return ctx.onSeachCategory($event); })("scrollToEnd", function CreateEditBoardsComponent_Template_ng_select_scrollToEnd_126_listener($event) { return ctx.loadMoreCategoryItems($event); })("clear", function CreateEditBoardsComponent_Template_ng_select_clear_126_listener($event) { return ctx.onClearCategoryDropdown($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](127, CreateEditBoardsComponent_ng_option_127_Template, 2, 2, "ng-option", 51);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](128, "div", 52);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](129, "div", 53);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](130, CreateEditBoardsComponent_div_130_Template, 4, 2, "div", 54);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](131, "assign-users", 55);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("showCreateButton", function CreateEditBoardsComponent_Template_assign_users_showCreateButton_131_listener() { return ctx.showCreateButton(); })("hideCreateButton", function CreateEditBoardsComponent_Template_assign_users_hideCreateButton_131_listener() { return ctx.hideCreateButton(); })("onSubmitAssignUsers", function CreateEditBoardsComponent_Template_assign_users_onSubmitAssignUsers_131_listener($event) { return ctx.updateUserDetails($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](132, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](133, "div", 46);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](134, CreateEditBoardsComponent_button_134_Template, 3, 6, "button", 56);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](135, CreateEditBoardsComponent_ng_template_135_Template, 60, 17, "ng-template", null, 57, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplateRefExtractor"]);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isBoardEdited);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.wallCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](20);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", !ctx.wallCreateForm.get("bannerImage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.wallCreateForm.get("bannerImage").value);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.wallCreateForm.value.isNomineeActive);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.wallCreateForm.value.isNomineeActive);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](10);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", true);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", false);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](8);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("formGroup", ctx.wallCreateForm);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("multiple", false)("searchable", true)("clearable", true)("ngModel", ctx.categories)("ngModelOptions", _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵpureFunction0"](29, _c2))("loading", ctx.categoryDropDownLoading);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.categoryDropDown);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngForOf", ctx.CategorytControl.controls);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("userDetails", ctx.userDetails);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.isAddButtonActive);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_16__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_y"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlName"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_17__["NativeElementInjectorDirective"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["MaxLengthValidator"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["CheckboxControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__["NgSelectComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_16__["NgForOf"], _shared_assign_users_assign_users_component__WEBPACK_IMPORTED_MODULE_19__["AssignUsersComponent"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormGroupName"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NumberValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["PatternValidator"], _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__["ɵr"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormArrayName"], _angular_common__WEBPACK_IMPORTED_MODULE_16__["NgClass"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["ɵangular_packages_forms_forms_x"], src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbPagination"]], styles: [".ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background:#fff;border-color:#b3b3b3 #ccc #d9d9d9}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:none}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{top:-2px;border-color:transparent transparent #999;border-width:0 5px 5px}.ng-select.ng-select-opened[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]:hover{border-color:transparent transparent #333}.ng-select.ng-select-opened.ng-select-bottom[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-bottom-right-radius:0;border-bottom-left-radius:0}.ng-select.ng-select-opened.ng-select-top[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{border-top-right-radius:0;border-top-left-radius:0}.ng-select.ng-select-focused[_ngcontent-%COMP%]:not(.ng-select-opened) > .ng-select-container[_ngcontent-%COMP%]{border-color:#007eff;box-shadow:inset 0 1px 1px rgba(0,0,0,0.075),0 0 0 3px rgba(0,126,255,0.1)}.ng-select.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select[_ngcontent-%COMP%] .ng-has-value[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{display:none}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{color:#333;background-color:#fff;border-radius:4px;border:1px solid #ccc;min-height:36px;align-items:center}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]:hover{box-shadow:0 1px 0 rgba(0,0,0,0.06)}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{align-items:center;padding-left:10px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:10px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{color:#999}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%]{height:36px}.ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{top:5px;left:0;padding-left:10px;padding-right:50px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-single[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding-right:10px;padding-left:50px}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{background-color:#f9f9f9;border:1px solid #e6e6e6}.ng-select.ng-select-multiple.ng-select-disabled[_ngcontent-%COMP%] > .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding:0 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-top:5px;padding-left:7px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%]{padding-right:7px;padding-left:0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{font-size:.9em;margin-bottom:5px;background-color:#ebf5ff;border-radius:2px;margin-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%]{margin-right:0;margin-left:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%]{background-color:#f9f9f9}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value.ng-value-disabled[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-label[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon[_ngcontent-%COMP%]:hover{background-color:#d1e8ff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-right:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.left[_ngcontent-%COMP%]{border-left:1px solid #b8dbff;border-right:none}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:1px solid #b8dbff}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-value[_ngcontent-%COMP%] .ng-value-icon.right[_ngcontent-%COMP%]{border-left:0;border-right:1px solid #b8dbff}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 0 3px 3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-input[_ngcontent-%COMP%]{padding:0 3px 3px 0}.ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{top:5px;padding-bottom:5px;padding-left:3px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select.ng-select-multiple[_ngcontent-%COMP%] .ng-select-container[_ngcontent-%COMP%] .ng-value-container[_ngcontent-%COMP%] .ng-placeholder[_ngcontent-%COMP%]{padding-right:3px;padding-left:0}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]{color:#999}.ng-select[_ngcontent-%COMP%] .ng-clear-wrapper[_ngcontent-%COMP%]:hover .ng-clear[_ngcontent-%COMP%]{color:#D0021B}.ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 5px 0 0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-spinner-zone[_ngcontent-%COMP%]{padding:5px 0 0 5px}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{width:25px;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%]:hover .ng-arrow[_ngcontent-%COMP%]{border-top-color:#666}.ng-select[_ngcontent-%COMP%] .ng-arrow-wrapper[_ngcontent-%COMP%] .ng-arrow[_ngcontent-%COMP%]{border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 2.5px}.ng-dropdown-panel[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #ccc;box-shadow:0 1px 0 rgba(0,0,0,0.06);left:0}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%]{top:100%;border-bottom-right-radius:4px;border-bottom-left-radius:4px;border-top-color:#e6e6e6;margin-top:-1px}.ng-dropdown-panel.ng-select-bottom[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%]{bottom:100%;border-top-right-radius:4px;border-top-left-radius:4px;border-bottom-color:#e6e6e6;margin-bottom:-1px}.ng-dropdown-panel.ng-select-top[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-header[_ngcontent-%COMP%]{border-bottom:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-footer[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding:5px 7px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:8px 10px;font-weight:500;color:rgba(0,0,0,0.54);cursor:pointer}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-disabled[_ngcontent-%COMP%]{cursor:default}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-optgroup.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{background-color:#ebf5ff;font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%]{background-color:#fff;color:rgba(0,0,0,0.87);padding:8px 10px}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%]{color:#333;background-color:#ebf5ff}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%], .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-selected.ng-option-marked[_ngcontent-%COMP%] .ng-option-label[_ngcontent-%COMP%]{font-weight:600}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-marked[_ngcontent-%COMP%]{background-color:#f5faff;color:#333}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-disabled[_ngcontent-%COMP%]{color:#ccc}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-left:22px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option.ng-option-child[_ngcontent-%COMP%]{padding-right:22px;padding-left:0}.ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{font-size:80%;font-weight:400;padding-right:5px}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%] .ng-dropdown-panel-items[_ngcontent-%COMP%] .ng-option[_ngcontent-%COMP%] .ng-tag-label[_ngcontent-%COMP%]{padding-left:5px;padding-right:0}[dir=\"rtl\"][_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{direction:rtl;text-align:right}input[type=radio][_ngcontent-%COMP%] {\n margin-right: 5px;\n}ul[_ngcontent-%COMP%] {\n list-style-type: none;\n padding: 0;\n}.btn[_ngcontent-%COMP%]:focus {\n outline: none;\n box-shadow: none;\n}.red-label[_ngcontent-%COMP%] {\n color: #a51f38;\n font-weight: 500;\n text-align: left;\n}.container[_ngcontent-%COMP%] {\n display: block;\n position: relative;\n padding-left: 35px;\n margin-bottom: 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 600;\n -webkit-user-select: none;\n user-select: none;\n}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}.checkmark[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n left: 0;\n height: 20px;\n width: 20px;\n background-color: white;\n border: 2px solid #008000a3;\n border-radius: 5px;\n}.container[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%] {\n background-color: white;\n}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%] {\n background-color: white;\n}.checkmark[_ngcontent-%COMP%]:after {\n content: \"\";\n position: absolute;\n display: none;\n}.container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after {\n display: block;\n}.container[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after {\n left: 7px;\n bottom: 2px;\n width: 10px;\n height: 20px;\n border: solid #008000a3;\n border-width: 0 4px 4px 0;\n transform: rotate(45deg);\n}.justify-content-SB[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n} .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked {\n background-color: #2196f3 !important;\n color: white !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9Abmctc2VsZWN0L25nLXNlbGVjdC90aGVtZXMvZGVmYXVsdC50aGVtZS5jc3MiLCJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vYm9hcmQtc2V0dXAvY3JlYXRlLWVkaXQtYm9hcmRzL2NyZWF0ZS1lZGl0LWJvYXJkcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxpREFBaUQsZUFBZSxDQUFDLGlDQUFpQyxDQUFDLHVEQUF1RCxlQUFlLENBQUMsMkRBQTJELFFBQVEsQ0FBQyx5Q0FBeUMsQ0FBQyxzQkFBc0IsQ0FBQyxpRUFBaUUseUNBQXlDLENBQUMsa0VBQWtFLDRCQUE0QixDQUFDLDJCQUEyQixDQUFDLCtEQUErRCx5QkFBeUIsQ0FBQyx3QkFBd0IsQ0FBQyx5RUFBeUUsb0JBQW9CLENBQUMsMEVBQTBFLENBQUMsbURBQW1ELHdCQUF3QixDQUFDLHlDQUF5QyxZQUFZLENBQUMsZ0NBQWdDLFVBQVUsQ0FBQyxxQkFBcUIsQ0FBQyxpQkFBaUIsQ0FBQyxxQkFBcUIsQ0FBQyxlQUFlLENBQUMsa0JBQWtCLENBQUMsc0NBQXNDLG1DQUFtQyxDQUFDLG9EQUFvRCxrQkFBa0IsQ0FBQyxpQkFBaUIsQ0FBQyxnRUFBZ0Usa0JBQWtCLENBQUMsY0FBYyxDQUFDLG9FQUFvRSxVQUFVLENBQUMsaURBQWlELFdBQVcsQ0FBQywrRUFBK0UsT0FBTyxDQUFDLE1BQU0sQ0FBQyxpQkFBaUIsQ0FBQyxrQkFBa0IsQ0FBQywyRkFBMkYsa0JBQWtCLENBQUMsaUJBQWlCLENBQUMsb0dBQW9HLHdCQUF3QixDQUFDLHdCQUF3QixDQUFDLG9IQUFvSCxhQUFhLENBQUMsdUVBQXVFLGVBQWUsQ0FBQyxnQkFBZ0IsQ0FBQyxtRkFBbUYsaUJBQWlCLENBQUMsY0FBYyxDQUFDLGlGQUFpRixjQUFjLENBQUMsaUJBQWlCLENBQUMsd0JBQXdCLENBQUMsaUJBQWlCLENBQUMsZ0JBQWdCLENBQUMsNkZBQTZGLGNBQWMsQ0FBQyxlQUFlLENBQUMsbUdBQW1HLHdCQUF3QixDQUFDLG1IQUFtSCxnQkFBZ0IsQ0FBQywrSEFBK0gsY0FBYyxDQUFDLGlCQUFpQixDQUFDLGlHQUFpRyxvQkFBb0IsQ0FBQyxlQUFlLENBQUMsZ0dBQWdHLG9CQUFvQixDQUFDLGVBQWUsQ0FBQyxzR0FBc0csd0JBQXdCLENBQUMscUdBQXFHLDhCQUE4QixDQUFDLGlIQUFpSCw2QkFBNkIsQ0FBQyxpQkFBaUIsQ0FBQyxzR0FBc0csNkJBQTZCLENBQUMsa0hBQWtILGFBQWEsQ0FBQyw4QkFBOEIsQ0FBQyxpRkFBaUYsbUJBQW1CLENBQUMsNkZBQTZGLG1CQUFtQixDQUFDLHVGQUF1RixPQUFPLENBQUMsa0JBQWtCLENBQUMsZ0JBQWdCLENBQUMsbUdBQW1HLGlCQUFpQixDQUFDLGNBQWMsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLDZDQUE2QyxhQUFhLENBQUMsNEJBQTRCLG1CQUFtQixDQUFDLHdDQUF3QyxtQkFBbUIsQ0FBQyw2QkFBNkIsVUFBVSxDQUFDLGlCQUFpQixDQUFDLHlDQUF5QyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsNkNBQTZDLHFCQUFxQixDQUFDLHVDQUF1Qyx5Q0FBeUMsQ0FBQyxrQkFBa0IsQ0FBQywwQkFBMEIsQ0FBQyxtQkFBbUIscUJBQXFCLENBQUMscUJBQXFCLENBQUMsbUNBQW1DLENBQUMsTUFBTSxDQUFDLG9DQUFvQyxRQUFRLENBQUMsOEJBQThCLENBQUMsNkJBQTZCLENBQUMsd0JBQXdCLENBQUMsZUFBZSxDQUFDLG1GQUFtRiw4QkFBOEIsQ0FBQyw2QkFBNkIsQ0FBQyxpQ0FBaUMsV0FBVyxDQUFDLDJCQUEyQixDQUFDLDBCQUEwQixDQUFDLDJCQUEyQixDQUFDLGtCQUFrQixDQUFDLGlGQUFpRiwyQkFBMkIsQ0FBQywwQkFBMEIsQ0FBQyx1Q0FBdUMsNEJBQTRCLENBQUMsZUFBZSxDQUFDLHVDQUF1Qyx5QkFBeUIsQ0FBQyxlQUFlLENBQUMseURBQXlELHdCQUFnQixDQUFoQixnQkFBZ0IsQ0FBQyxnQkFBZ0IsQ0FBQyxlQUFlLENBQUMsc0JBQXNCLENBQUMsY0FBYyxDQUFDLDRFQUE0RSxjQUFjLENBQUMsMEVBQTBFLHdCQUF3QixDQUFDLHlLQUF5Syx3QkFBd0IsQ0FBQyxlQUFlLENBQUMsdURBQXVELHFCQUFxQixDQUFDLHNCQUFzQixDQUFDLGdCQUFnQixDQUFDLHFLQUFxSyxVQUFVLENBQUMsd0JBQXdCLENBQUMsdU1BQXVNLGVBQWUsQ0FBQyx3RUFBd0Usd0JBQXdCLENBQUMsVUFBVSxDQUFDLDBFQUEwRSxVQUFVLENBQUMsdUVBQXVFLGlCQUFpQixDQUFDLG1GQUFtRixrQkFBa0IsQ0FBQyxjQUFjLENBQUMscUVBQXFFLGFBQWEsQ0FBQyxlQUFlLENBQUMsaUJBQWlCLENBQUMsaUZBQWlGLGdCQUFnQixDQUFDLGVBQWUsQ0FBQywrQkFBK0IsYUFBYSxDQUFDLGdCQUFnQixDQ0UxNE87RUFDRSxpQkFBQTtBQUFGLENBR0E7RUFDRSxxQkFBQTtFQUNBLFVBQUE7QUFBRixDQUlBO0VBQ0UsYUFBQTtFQUNBLGdCQUFBO0FBREYsQ0FJQTtFQUNFLGNBQUE7RUFDQSxnQkFBQTtFQUNBLGdCQUFBO0FBREYsQ0FJQTtFQUNFLGNBQUE7RUFDQSxrQkFBQTtFQUNBLGtCQUFBO0VBQ0EsbUJBQUE7RUFDQSxlQUFBO0VBQ0EsZUFBQTtFQUNBLGdCQUFBO0VBQ0EseUJBQUE7RUFHQSxpQkFBQTtBQURGLENBSUEsd0NBQUEsQ0FDQTtFQUNFLGtCQUFBO0VBQ0EsVUFBQTtFQUNBLGVBQUE7RUFDQSxTQUFBO0VBQ0EsUUFBQTtBQURGLENBSUEsNkJBQUEsQ0FDQTtFQUNFLGtCQUFBO0VBQ0EsTUFBQTtFQUNBLE9BQUE7RUFDQSxZQUFBO0VBQ0EsV0FBQTtFQUNBLHVCQUFBO0VBQ0EsMkJBQUE7RUFDQSxrQkFBQTtBQURGLENBSUEsK0NBQUEsQ0FDQTtFQUNFLHVCQUFBO0FBREYsQ0FJQSx3REFBQSxDQUNBO0VBQ0UsdUJBQUE7QUFERixDQUlBLDZEQUFBLENBQ0E7RUFDRSxXQUFBO0VBQ0Esa0JBQUE7RUFDQSxhQUFBO0FBREYsQ0FJQSxvQ0FBQSxDQUNBO0VBQ0UsY0FBQTtBQURGLENBSUEsa0NBQUEsQ0FDQTtFQUNFLFNBQUE7RUFDQSxXQUFBO0VBQ0EsV0FBQTtFQUNBLFlBQUE7RUFDQSx1QkFBQTtFQUNBLHlCQUFBO0VBR0Esd0JBQUE7QUFERixDQUlBO0VBQ0UsYUFBQTtFQUNBLDhCQUFBO0FBREYsQ0FJQTtFQUNFLG9DQUFBO0VBQ0EsdUJBQUE7QUFERiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NvbW11bmljYXRpb24vYm9hcmQtc2V0dXAvY3JlYXRlLWVkaXQtYm9hcmRzL2NyZWF0ZS1lZGl0LWJvYXJkcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcntiYWNrZ3JvdW5kOiNmZmY7Ym9yZGVyLWNvbG9yOiNiM2IzYjMgI2NjYyAjZDlkOWQ5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lcjpob3Zlcntib3gtc2hhZG93Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkPi5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy1hcnJvd3t0b3A6LTJweDtib3JkZXItY29sb3I6dHJhbnNwYXJlbnQgdHJhbnNwYXJlbnQgIzk5OTtib3JkZXItd2lkdGg6MCA1cHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW9wZW5lZD4ubmctc2VsZWN0LWNvbnRhaW5lciAubmctYXJyb3c6aG92ZXJ7Ym9yZGVyLWNvbG9yOnRyYW5zcGFyZW50IHRyYW5zcGFyZW50ICMzMzN9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC1ib3R0b20+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6MDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3Qtb3BlbmVkLm5nLXNlbGVjdC10b3A+Lm5nLXNlbGVjdC1jb250YWluZXJ7Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6MDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtZm9jdXNlZDpub3QoLm5nLXNlbGVjdC1vcGVuZWQpPi5uZy1zZWxlY3QtY29udGFpbmVye2JvcmRlci1jb2xvcjojMDA3ZWZmO2JveC1zaGFkb3c6aW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsMC4wNzUpLDAgMCAwIDNweCByZ2JhKDAsMTI2LDI1NSwwLjEpfS5uZy1zZWxlY3Qubmctc2VsZWN0LWRpc2FibGVkPi5uZy1zZWxlY3QtY29udGFpbmVye2JhY2tncm91bmQtY29sb3I6I2Y5ZjlmOX0ubmctc2VsZWN0IC5uZy1oYXMtdmFsdWUgLm5nLXBsYWNlaG9sZGVye2Rpc3BsYXk6bm9uZX0ubmctc2VsZWN0IC5uZy1zZWxlY3QtY29udGFpbmVye2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZmZmO2JvcmRlci1yYWRpdXM6NHB4O2JvcmRlcjoxcHggc29saWQgI2NjYzttaW4taGVpZ2h0OjM2cHg7YWxpZ24taXRlbXM6Y2VudGVyfS5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXI6aG92ZXJ7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNil9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVye2FsaWduLWl0ZW1zOmNlbnRlcjtwYWRkaW5nLWxlZnQ6MTBweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3QgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXJpZ2h0OjEwcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcntjb2xvcjojOTk5fS5uZy1zZWxlY3Qubmctc2VsZWN0LXNpbmdsZSAubmctc2VsZWN0LWNvbnRhaW5lcntoZWlnaHQ6MzZweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1zaW5nbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7dG9wOjVweDtsZWZ0OjA7cGFkZGluZy1sZWZ0OjEwcHg7cGFkZGluZy1yaWdodDo1MHB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3Qtc2luZ2xlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLWlucHV0e3BhZGRpbmctcmlnaHQ6MTBweDtwYWRkaW5nLWxlZnQ6NTBweH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5O2JvcmRlcjoxcHggc29saWQgI2U2ZTZlNn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZS5uZy1zZWxlY3QtZGlzYWJsZWQ+Lm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmc6MCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lcntwYWRkaW5nLXRvcDo1cHg7cGFkZGluZy1sZWZ0OjdweH1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXJ7cGFkZGluZy1yaWdodDo3cHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWV7Zm9udC1zaXplOi45ZW07bWFyZ2luLWJvdHRvbTo1cHg7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmO2JvcmRlci1yYWRpdXM6MnB4O21hcmdpbi1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZXttYXJnaW4tcmlnaHQ6MDttYXJnaW4tbGVmdDo1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWR7YmFja2dyb3VuZC1jb2xvcjojZjlmOWY5fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlLm5nLXZhbHVlLWRpc2FibGVkIC5uZy12YWx1ZS1sYWJlbHtwYWRkaW5nLWxlZnQ6NXB4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUubmctdmFsdWUtZGlzYWJsZWQgLm5nLXZhbHVlLWxhYmVse3BhZGRpbmctbGVmdDowO3BhZGRpbmctcmlnaHQ6NXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1sYWJlbHtkaXNwbGF5OmlubGluZS1ibG9jaztwYWRkaW5nOjFweCA1cHh9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb257ZGlzcGxheTppbmxpbmUtYmxvY2s7cGFkZGluZzoxcHggNXB4fS5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uOmhvdmVye2JhY2tncm91bmQtY29sb3I6I2QxZThmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5sZWZ0e2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn1bZGlyPVwicnRsXCJdIC5uZy1zZWxlY3Qubmctc2VsZWN0LW11bHRpcGxlIC5uZy1zZWxlY3QtY29udGFpbmVyIC5uZy12YWx1ZS1jb250YWluZXIgLm5nLXZhbHVlIC5uZy12YWx1ZS1pY29uLmxlZnR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmY7Ym9yZGVyLXJpZ2h0Om5vbmV9Lm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctdmFsdWUgLm5nLXZhbHVlLWljb24ucmlnaHR7Ym9yZGVyLWxlZnQ6MXB4IHNvbGlkICNiOGRiZmZ9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy12YWx1ZSAubmctdmFsdWUtaWNvbi5yaWdodHtib3JkZXItbGVmdDowO2JvcmRlci1yaWdodDoxcHggc29saWQgI2I4ZGJmZn0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1pbnB1dHtwYWRkaW5nOjAgMCAzcHggM3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctaW5wdXR7cGFkZGluZzowIDNweCAzcHggMH0ubmctc2VsZWN0Lm5nLXNlbGVjdC1tdWx0aXBsZSAubmctc2VsZWN0LWNvbnRhaW5lciAubmctdmFsdWUtY29udGFpbmVyIC5uZy1wbGFjZWhvbGRlcnt0b3A6NXB4O3BhZGRpbmctYm90dG9tOjVweDtwYWRkaW5nLWxlZnQ6M3B4fVtkaXI9XCJydGxcIl0gLm5nLXNlbGVjdC5uZy1zZWxlY3QtbXVsdGlwbGUgLm5nLXNlbGVjdC1jb250YWluZXIgLm5nLXZhbHVlLWNvbnRhaW5lciAubmctcGxhY2Vob2xkZXJ7cGFkZGluZy1yaWdodDozcHg7cGFkZGluZy1sZWZ0OjB9Lm5nLXNlbGVjdCAubmctY2xlYXItd3JhcHBlcntjb2xvcjojOTk5fS5uZy1zZWxlY3QgLm5nLWNsZWFyLXdyYXBwZXI6aG92ZXIgLm5nLWNsZWFye2NvbG9yOiNEMDAyMUJ9Lm5nLXNlbGVjdCAubmctc3Bpbm5lci16b25le3BhZGRpbmc6NXB4IDVweCAwIDB9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1zcGlubmVyLXpvbmV7cGFkZGluZzo1cHggMCAwIDVweH0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3dpZHRoOjI1cHg7cGFkZGluZy1yaWdodDo1cHh9W2Rpcj1cInJ0bFwiXSAubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVye3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfS5uZy1zZWxlY3QgLm5nLWFycm93LXdyYXBwZXI6aG92ZXIgLm5nLWFycm93e2JvcmRlci10b3AtY29sb3I6IzY2Nn0ubmctc2VsZWN0IC5uZy1hcnJvdy13cmFwcGVyIC5uZy1hcnJvd3tib3JkZXItY29sb3I6Izk5OSB0cmFuc3BhcmVudCB0cmFuc3BhcmVudDtib3JkZXItc3R5bGU6c29saWQ7Ym9yZGVyLXdpZHRoOjVweCA1cHggMi41cHh9Lm5nLWRyb3Bkb3duLXBhbmVse2JhY2tncm91bmQtY29sb3I6I2ZmZjtib3JkZXI6MXB4IHNvbGlkICNjY2M7Ym94LXNoYWRvdzowIDFweCAwIHJnYmEoMCwwLDAsMC4wNik7bGVmdDowfS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9te3RvcDoxMDAlO2JvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWxlZnQtcmFkaXVzOjRweDtib3JkZXItdG9wLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLXRvcDotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtYm90dG9tIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmxhc3QtY2hpbGR7Ym9yZGVyLWJvdHRvbS1yaWdodC1yYWRpdXM6NHB4O2JvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6NHB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9we2JvdHRvbToxMDAlO2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweDtib3JkZXItYm90dG9tLWNvbG9yOiNlNmU2ZTY7bWFyZ2luLWJvdHRvbTotMXB4fS5uZy1kcm9wZG93bi1wYW5lbC5uZy1zZWxlY3QtdG9wIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uOmZpcnN0LWNoaWxke2JvcmRlci10b3AtcmlnaHQtcmFkaXVzOjRweDtib3JkZXItdG9wLWxlZnQtcmFkaXVzOjRweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWhlYWRlcntib3JkZXItYm90dG9tOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLWZvb3Rlcntib3JkZXItdG9wOjFweCBzb2xpZCAjY2NjO3BhZGRpbmc6NXB4IDdweH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cHt1c2VyLXNlbGVjdDpub25lO3BhZGRpbmc6OHB4IDEwcHg7Zm9udC13ZWlnaHQ6NTAwO2NvbG9yOnJnYmEoMCwwLDAsMC41NCk7Y3Vyc29yOnBvaW50ZXJ9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0Z3JvdXAubmctb3B0aW9uLWRpc2FibGVke2N1cnNvcjpkZWZhdWx0fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGdyb3VwLm5nLW9wdGlvbi1zZWxlY3RlZCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRncm91cC5uZy1vcHRpb24tc2VsZWN0ZWQubmctb3B0aW9uLW1hcmtlZHtiYWNrZ3JvdW5kLWNvbG9yOiNlYmY1ZmY7Zm9udC13ZWlnaHQ6NjAwfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbntiYWNrZ3JvdW5kLWNvbG9yOiNmZmY7Y29sb3I6cmdiYSgwLDAsMCwwLjg3KTtwYWRkaW5nOjhweCAxMHB4fS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQsLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1zZWxlY3RlZC5uZy1vcHRpb24tbWFya2Vke2NvbG9yOiMzMzM7YmFja2dyb3VuZC1jb2xvcjojZWJmNWZmfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tc2VsZWN0ZWQgLm5nLW9wdGlvbi1sYWJlbCwubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLXNlbGVjdGVkLm5nLW9wdGlvbi1tYXJrZWQgLm5nLW9wdGlvbi1sYWJlbHtmb250LXdlaWdodDo2MDB9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWR7YmFja2dyb3VuZC1jb2xvcjojZjVmYWZmO2NvbG9yOiMzMzN9Lm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1kaXNhYmxlZHtjb2xvcjojY2NjfS5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbi5uZy1vcHRpb24tY2hpbGR7cGFkZGluZy1sZWZ0OjIycHh9W2Rpcj1cInJ0bFwiXSAubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24ubmctb3B0aW9uLWNoaWxke3BhZGRpbmctcmlnaHQ6MjJweDtwYWRkaW5nLWxlZnQ6MH0ubmctZHJvcGRvd24tcGFuZWwgLm5nLWRyb3Bkb3duLXBhbmVsLWl0ZW1zIC5uZy1vcHRpb24gLm5nLXRhZy1sYWJlbHtmb250LXNpemU6ODAlO2ZvbnQtd2VpZ2h0OjQwMDtwYWRkaW5nLXJpZ2h0OjVweH1bZGlyPVwicnRsXCJdIC5uZy1kcm9wZG93bi1wYW5lbCAubmctZHJvcGRvd24tcGFuZWwtaXRlbXMgLm5nLW9wdGlvbiAubmctdGFnLWxhYmVse3BhZGRpbmctbGVmdDo1cHg7cGFkZGluZy1yaWdodDowfVtkaXI9XCJydGxcIl0gLm5nLWRyb3Bkb3duLXBhbmVse2RpcmVjdGlvbjpydGw7dGV4dC1hbGlnbjpyaWdodH1cbiIsIkBpbXBvcnQgXCJ+QG5nLXNlbGVjdC9uZy1zZWxlY3QvdGhlbWVzL2RlZmF1bHQudGhlbWUuY3NzXCI7XG5cbmlucHV0W3R5cGU9XCJyYWRpb1wiXSB7XG4gIG1hcmdpbi1yaWdodDogNXB4O1xufVxuXG51bHtcbiAgbGlzdC1zdHlsZS10eXBlOiBub25lO1xuICBwYWRkaW5nOiAwO1xufVxuXG5cbi5idG46Zm9jdXMge1xuICBvdXRsaW5lOiBub25lO1xuICBib3gtc2hhZG93OiBub25lO1xufVxuXG4ucmVkLWxhYmVse1xuICBjb2xvcjogI2E1MWYzODtcbiAgZm9udC13ZWlnaHQ6IDUwMDtcbiAgdGV4dC1hbGlnbjogbGVmdDtcbn1cblxuLmNvbnRhaW5lciB7XG4gIGRpc3BsYXk6IGJsb2NrO1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIHBhZGRpbmctbGVmdDogMzVweDtcbiAgbWFyZ2luLWJvdHRvbTogMTJweDtcbiAgY3Vyc29yOiBwb2ludGVyO1xuICBmb250LXNpemU6IDE0cHg7XG4gIGZvbnQtd2VpZ2h0OiA2MDA7XG4gIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7XG4gIC1tb3otdXNlci1zZWxlY3Q6IG5vbmU7XG4gIC1tcy11c2VyLXNlbGVjdDogbm9uZTtcbiAgdXNlci1zZWxlY3Q6IG5vbmU7XG59XG5cbi8qIEhpZGUgdGhlIGJyb3dzZXIncyBkZWZhdWx0IGNoZWNrYm94ICovXG4uY29udGFpbmVyIGlucHV0IHtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBvcGFjaXR5OiAwO1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGhlaWdodDogMDtcbiAgd2lkdGg6IDA7XG59XG5cbi8qIENyZWF0ZSBhIGN1c3RvbSBjaGVja2JveCAqL1xuLmNoZWNrbWFyayB7XG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICBoZWlnaHQ6IDIwcHg7XG4gIHdpZHRoOiAyMHB4O1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbiAgYm9yZGVyOiAycHggc29saWQgIzAwODAwMGEzO1xuICBib3JkZXItcmFkaXVzOiA1cHg7XG59XG5cbi8qIE9uIG1vdXNlLW92ZXIsIGFkZCBhIGdyZXkgYmFja2dyb3VuZCBjb2xvciAqL1xuLmNvbnRhaW5lcjpob3ZlciBpbnB1dCB+IC5jaGVja21hcmsge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiB3aGl0ZTtcbn1cblxuLyogV2hlbiB0aGUgY2hlY2tib3ggaXMgY2hlY2tlZCwgYWRkIGEgYmx1ZSBiYWNrZ3JvdW5kICovXG4uY29udGFpbmVyIGlucHV0OmNoZWNrZWQgfiAuY2hlY2ttYXJrIHtcbiAgYmFja2dyb3VuZC1jb2xvcjogd2hpdGU7XG59XG5cbi8qIENyZWF0ZSB0aGUgY2hlY2ttYXJrL2luZGljYXRvciAoaGlkZGVuIHdoZW4gbm90IGNoZWNrZWQpICovXG4uY2hlY2ttYXJrOmFmdGVyIHtcbiAgY29udGVudDogXCJcIjtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICBkaXNwbGF5OiBub25lO1xufVxuXG4vKiBTaG93IHRoZSBjaGVja21hcmsgd2hlbiBjaGVja2VkICovXG4uY29udGFpbmVyIGlucHV0OmNoZWNrZWQgfiAuY2hlY2ttYXJrOmFmdGVyIHtcbiAgZGlzcGxheTogYmxvY2s7XG59XG5cbi8qIFN0eWxlIHRoZSBjaGVja21hcmsvaW5kaWNhdG9yICovXG4uY29udGFpbmVyIC5jaGVja21hcms6YWZ0ZXIge1xuICBsZWZ0OiA3cHg7XG4gIGJvdHRvbTogMnB4O1xuICB3aWR0aDogMTBweDtcbiAgaGVpZ2h0OiAyMHB4O1xuICBib3JkZXI6IHNvbGlkICMwMDgwMDBhMztcbiAgYm9yZGVyLXdpZHRoOiAwIDRweCA0cHggMDtcbiAgLXdlYmtpdC10cmFuc2Zvcm06IHJvdGF0ZSg0NWRlZyk7XG4gIC1tcy10cmFuc2Zvcm06IHJvdGF0ZSg0NWRlZyk7XG4gIHRyYW5zZm9ybTogcm90YXRlKDQ1ZGVnKTtcbn1cblxuLmp1c3RpZnktY29udGVudC1TQntcbiAgZGlzcGxheTogZmxleDtcbiAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xufVxuXG46Om5nLWRlZXAgLm5nLWRyb3Bkb3duLXBhbmVsIC5uZy1kcm9wZG93bi1wYW5lbC1pdGVtcyAubmctb3B0aW9uLm5nLW9wdGlvbi1tYXJrZWQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjMjE5NmYzICFpbXBvcnRhbnQ7XG4gIGNvbG9yOiB3aGl0ZSAhaW1wb3J0YW50O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CreateEditBoardsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
args: [{
selector: 'app-create-edit-boards',
templateUrl: './create-edit-boards.component.html',
styleUrls: ['./create-edit-boards.component.scss'],
}]
}], function () { return [{ type: _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_8__["NgbModal"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_9__["ToastrService"] }, { type: src_app_users_service_user_service_users_service__WEBPACK_IMPORTED_MODULE_10__["UsersService"] }, { type: src_app_admin_service_companyservice_company_service__WEBPACK_IMPORTED_MODULE_11__["CompanyService"] }, { type: _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormBuilder"] }, { type: src_app_users_service_bussiness_unit_bussiness_unit_service__WEBPACK_IMPORTED_MODULE_12__["BussinessUnitService"] }, { type: src_app_users_service_custom_field_custom_field_service__WEBPACK_IMPORTED_MODULE_13__["CustomFieldService"] }, { type: src_app_users_service_channel_channel_service__WEBPACK_IMPORTED_MODULE_14__["ChannelService"] }, { type: src_app_users_service_board_setup_board_setup_service__WEBPACK_IMPORTED_MODULE_15__["BoardSetupService"] }]; }, { headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChildren"],
args: [src_app_shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_5__["SortableHeader"]]
}], AddSubSection: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
args: ['AddSubSection', { static: true }]
}], boardId: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
}], overViewEvent: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
}] }); })();
/***/ }),
/***/ "waVV":
/*!**********************************************************************!*\
!*** ./src/app/users/pages/central-builder/forms/forms.component.ts ***!
\**********************************************************************/
/*! exports provided: FormsComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormsComponent", function() { return FormsComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _forms_overview_forms_overview_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./forms-overview/forms-overview.component */ "HW0N");
/* harmony import */ var _create_edit_forms_create_edit_forms_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./create-edit-forms/create-edit-forms.component */ "6h1h");
/* harmony import */ var _form_manage_form_manage_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./form-manage/form-manage.component */ "2oWT");
/* harmony import */ var _view_forms_view_forms_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./view-forms/view-forms.component */ "3y/P");
/* harmony import */ var _logs_overview_logs_overview_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./logs-overview/logs-overview.component */ "RKBd");
function FormsComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-forms-overview", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("EditEvent", function FormsComponent_ng_template_6_Template_app_forms_overview_EditEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r5.formEdit($event); })("isManage", function FormsComponent_ng_template_6_Template_app_forms_overview_isManage_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.manageForm($event); })("ViewEvent", function FormsComponent_ng_template_6_Template_app_forms_overview_ViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.formView($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("hasOnlyExportData", ctx_r1.hasOnlyExportData);
} }
function FormsComponent_li_7_ng_template_3_app_create_edit_forms_0_Template(rf, ctx) { if (rf & 1) {
const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-create-edit-forms", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function FormsComponent_li_7_ng_template_3_app_create_edit_forms_0_Template_app_create_edit_forms_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); return ctx_r12.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formId", ctx_r10.formID)("editFormData", ctx_r10.formDetails);
} }
function FormsComponent_li_7_ng_template_3_app_form_manage_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-form-manage", 13);
} if (rf & 2) {
const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("manageId", ctx_r11.manageId)("overViewData", ctx_r11.overViewData)("editFormData", ctx_r11.formDetails)("hasOnlyExportData", ctx_r11.hasOnlyExportData);
} }
function FormsComponent_li_7_ng_template_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, FormsComponent_li_7_ng_template_3_app_create_edit_forms_0_Template, 1, 2, "app-create-edit-forms", 10);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, FormsComponent_li_7_ng_template_3_app_form_manage_1_Template, 1, 4, "app-form-manage", 11);
} if (rf & 2) {
const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r9.isFormManaged);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r9.isFormManaged);
} }
function FormsComponent_li_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, FormsComponent_li_7_ng_template_3_Template, 2, 2, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.isFormEdited ? "EDIT" : ctx_r2.isFormManaged ? "MANAGE" : "CREATE");
} }
function FormsComponent_li_8_ng_template_3_Template(rf, ctx) { if (rf & 1) {
const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "app-view-forms", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("overViewEvent", function FormsComponent_li_8_ng_template_3_Template_app_view_forms_overViewEvent_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r16); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r15.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formId", ctx_r14.formID)("editFormData", ctx_r14.formDetails);
} }
function FormsComponent_li_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, FormsComponent_li_8_ng_template_3_Template, 1, 2, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 4);
} }
function FormsComponent_li_9_ng_template_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "app-logs-overview");
} }
function FormsComponent_li_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "LOGS");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, FormsComponent_li_9_ng_template_3_Template, 1, 0, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 3);
} }
class FormsComponent {
constructor() {
this.isFormEdited = false;
this.isFormManaged = false;
this.isFormViewed = false;
this.formDetails = null;
this.activeId = 1;
}
ngOnInit() {
const data = localStorage.getItem("privilegeFlags");
this.privilegeFlags = JSON.parse(data);
}
manageForm(data) {
this.isFormManaged = true;
this.overViewData = data;
this.manageId = data._id;
this.formDetails = data;
this.activeId = 2;
if (this.activeId !== 4) {
this.isFormViewed = false;
}
}
formEdit(data) {
this.activeId = 2;
this.isFormEdited = true;
this.formID = data.id;
this.formDetails = data;
if (this.activeId !== 4) {
this.isFormViewed = false;
}
}
formView(data) {
this.activeId = 4;
this.isFormViewed = true;
this.formID = data.moduleId;
this.formDetails = data;
}
overViewEvent(value) {
this.activeId = 1;
this.formID = null;
this.manageId = null;
this.isFormEdited = false;
this.formDetails = null;
if (this.activeId !== 4) {
this.isFormViewed = false;
}
setTimeout(() => {
this.isFormManaged = false;
}, 200);
}
}
FormsComponent.ɵfac = function FormsComponent_Factory(t) { return new (t || FormsComponent)(); };
FormsComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FormsComponent, selectors: [["app-forms"]], decls: 11, vars: 6, consts: [[1, "d-flex", "flex-column"], ["ngbNav", "", 1, "nav-tabs", "rounded", "mb-3", 3, "activeId", "activeIdChange"], ["companyNav", "ngbNav"], [3, "ngbNavItem"], ["ngbNavLink", "", 3, "click"], ["ngbNavContent", ""], [3, "ngbNavItem", 4, "ngIf"], [3, "ngbNavOutlet"], [3, "hasOnlyExportData", "EditEvent", "isManage", "ViewEvent"], ["ngbNavLink", ""], [3, "formId", "editFormData", "overViewEvent", 4, "ngIf"], [3, "manageId", "overViewData", "editFormData", "hasOnlyExportData", 4, "ngIf"], [3, "formId", "editFormData", "overViewEvent"], [3, "manageId", "overViewData", "editFormData", "hasOnlyExportData"]], template: function FormsComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "ul", 1, 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("activeIdChange", function FormsComponent_Template_ul_activeIdChange_1_listener($event) { return ctx.activeId = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "li", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "a", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function FormsComponent_Template_a_click_4_listener($event) { return ctx.overViewEvent($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5, "OVERVIEW");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, FormsComponent_ng_template_6_Template, 1, 1, "ng-template", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, FormsComponent_li_7_Template, 4, 2, "li", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, FormsComponent_li_8_Template, 4, 1, "li", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, FormsComponent_li_9_Template, 4, 1, "li", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("activeId", ctx.activeId);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavItem", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.privilegeFlags.setUpForm || ctx.isFormManaged && (ctx.privilegeFlags.manageForm || ctx.privilegeFlags.formSupervisor || ctx.privilegeFlags.exportManageFormOnly));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isFormViewed && !ctx.isFormEdited && !ctx.isFormManaged);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.privilegeFlags.setUpForm);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbNavOutlet", _r0);
} }, directives: [_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNav"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavItem"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavLink"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavContent"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_1__["NgbNavOutlet"], _forms_overview_forms_overview_component__WEBPACK_IMPORTED_MODULE_3__["FormsOverviewComponent"], _create_edit_forms_create_edit_forms_component__WEBPACK_IMPORTED_MODULE_4__["CreateEditFormsComponent"], _form_manage_form_manage_component__WEBPACK_IMPORTED_MODULE_5__["FormManageComponent"], _view_forms_view_forms_component__WEBPACK_IMPORTED_MODULE_6__["ViewFormsComponent"], _logs_overview_logs_overview_component__WEBPACK_IMPORTED_MODULE_7__["LogsOverviewComponent"]], styles: [".nav-tabs[_ngcontent-%COMP%] {\n background-color: #fff;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] {\n color: rgba(0, 0, 0, 0.5);\n border: none;\n padding: 12px 20px;\n transition: color 0.2s;\n text-transform: uppercase;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover {\n color: #a42138;\n}\n.nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%] {\n color: #a42138;\n background-color: #fff;\n border-color: transparent transparent #a42138;\n border-bottom: 3px solid #a42138;\n}\n.disabled-link[_ngcontent-%COMP%] {\n pointer-events: none;\n color: gray;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvdXNlcnMvcGFnZXMvY2VudHJhbC1idWlsZGVyL2Zvcm1zL2Zvcm1zLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0Usc0JBQUE7QUFDRjtBQUFFO0VBQ0UseUJBQUE7RUFDQSxZQUFBO0VBQ0Esa0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0FBRUo7QUFBSTtFQUNFLGNBQUE7QUFFTjtBQUNJO0VBQ0UsY0FBQTtFQUNBLHNCQUFBO0VBQ0EsNkNBQUE7RUFDQSxnQ0FBQTtBQUNOO0FBSUE7RUFDRSxvQkFBQTtFQUNBLFdBQUE7QUFERiIsImZpbGUiOiJzcmMvYXBwL3VzZXJzL3BhZ2VzL2NlbnRyYWwtYnVpbGRlci9mb3Jtcy9mb3Jtcy5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi5uYXYtdGFicyB7XG4gIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XG4gIC5uYXYtbGluayB7XG4gICAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC41KTtcbiAgICBib3JkZXI6IG5vbmU7XG4gICAgcGFkZGluZzogMTJweCAyMHB4O1xuICAgIHRyYW5zaXRpb246IGNvbG9yIDAuMnM7XG4gICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcblxuICAgICY6aG92ZXIge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgfVxuXG4gICAgJi5hY3RpdmUge1xuICAgICAgY29sb3I6ICNhNDIxMzg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgICAgYm9yZGVyLWNvbG9yOiB0cmFuc3BhcmVudCB0cmFuc3BhcmVudCAjYTQyMTM4O1xuICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICNhNDIxMzg7XG4gICAgfVxuICB9XG59XG5cbi5kaXNhYmxlZC1saW5rIHtcbiAgcG9pbnRlci1ldmVudHM6IG5vbmU7XG4gIGNvbG9yOiBncmF5O1xufVxuIl19 */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormsComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-forms',
templateUrl: './forms.component.html',
styleUrls: ['./forms.component.scss']
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "xdkg":
/*!*****************************************************************!*\
!*** ./src/app/users/service/companyservice/company.service.ts ***!
\*****************************************************************/
/*! exports provided: CompanyService */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompanyService", function() { return CompanyService; });
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common/http */ "tk/3");
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "AytR");
/* harmony import */ var src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/core/service/storage.service */ "8X4c");
class CompanyService {
constructor(http, storageService) {
this.http = http;
this.storageService = storageService;
this.baseUrl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].baseUrl;
}
get Headers() {
return new _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpHeaders"]({ Accept: 'application/json', 'Content-Type': 'application/json' });
}
getCompanies({ page, limit, search, sort }) {
return this.http.get(`${this.baseUrl}/company/`, { headers: this.Headers, params: { page, limit, search, sortWith: sort.key, sortBy: sort.order } })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
uploadFile(fileToUpload, isOldAPI = false) {
const formData = new FormData();
formData.append('file', fileToUpload, fileToUpload.name);
if (isOldAPI === true) {
return this.http.post(`${this.baseUrl}/notification/uploadContentFiles/`, formData);
}
return this.http.post(`${this.baseUrl}/upload/`, formData);
}
createCompany(company) {
return this.http.post(`${this.baseUrl}/company/`, Object.assign({}, company), { headers: this.Headers })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res));
}
}
CompanyService.ɵfac = function CompanyService_Factory(t) { return new (t || CompanyService)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_4__["StorageService"])); };
CompanyService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: CompanyService, factory: CompanyService.ɵfac, providedIn: 'root' });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CompanyService, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
args: [{
providedIn: 'root'
}]
}], function () { return [{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_0__["HttpClient"] }, { type: src_app_core_service_storage_service__WEBPACK_IMPORTED_MODULE_4__["StorageService"] }]; }, null); })();
/***/ }),
/***/ "xgpu":
/*!***************************************************!*\
!*** ./src/app/shared/sweet-alert/sweet-alert.ts ***!
\***************************************************/
/*! exports provided: successAlert, errorAlert, infoAlert, recoverAlert, updateAlert, deleteAlert, deleteSectionAlert */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "successAlert", function() { return successAlert; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "errorAlert", function() { return errorAlert; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "infoAlert", function() { return infoAlert; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "recoverAlert", function() { return recoverAlert; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateAlert", function() { return updateAlert; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deleteAlert", function() { return deleteAlert; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "deleteSectionAlert", function() { return deleteSectionAlert; });
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! sweetalert2 */ "PSD3");
/* harmony import */ var sweetalert2__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(sweetalert2__WEBPACK_IMPORTED_MODULE_0__);
// export function errorAlert(message: string, title?) {
// switch (message.includes(' 404 Not Found') || message.includes(' 0 Unknown Error')) {
// case true: {
// Swal.fire({
// icon: 'error',
// title: 'Something Went Wrong!!',
// text: 'Please try after sometime.',
// });
// break;
// }
// default: {
// Swal.fire({
// icon: 'error',
// title,
// text: message,
// });
// break;
// }
// }
// }
function successAlert(message, title) {
sweetalert2__WEBPACK_IMPORTED_MODULE_0___default.a.fire({
icon: 'success',
title,
text: message,
});
}
function errorAlert(message, title) {
sweetalert2__WEBPACK_IMPORTED_MODULE_0___default.a.fire({
icon: 'error',
title,
text: message,
});
}
function infoAlert(message, title) {
return sweetalert2__WEBPACK_IMPORTED_MODULE_0___default.a.fire({
icon: 'info',
title,
text: message,
});
}
function recoverAlert() {
return sweetalert2__WEBPACK_IMPORTED_MODULE_0___default.a.fire({
title: 'Are you sure?',
text: 'You won\'t be able to revert this!',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, Recover it!'
});
}
function updateAlert(title, text, confromText) {
return sweetalert2__WEBPACK_IMPORTED_MODULE_0___default.a.fire({
title: title,
text: text,
allowOutsideClick: false,
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: confromText
});
}
function deleteAlert() {
return sweetalert2__WEBPACK_IMPORTED_MODULE_0___default.a.fire({
title: 'Are you sure?',
text: 'You won\'t be able to revert this!',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, delete it!'
});
}
function deleteSectionAlert() {
return sweetalert2__WEBPACK_IMPORTED_MODULE_0___default.a.fire({
title: 'Are you sure?',
text: 'You want to remove this!',
icon: 'warning',
showCancelButton: true,
confirmButtonColor: '#3085d6',
cancelButtonColor: '#d33',
confirmButtonText: 'Yes, delete it!'
});
}
/***/ }),
/***/ "xopz":
/*!**********************************************************!*\
!*** ./src/app/shared/dynamic-fields/fields/dropdown.ts ***!
\**********************************************************/
/*! exports provided: DropDownComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DropDownComponent", function() { return DropDownComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
function DropDownComponent_option_1_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const opt_r1 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", opt_r1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](opt_r1);
} }
class DropDownComponent {
constructor() {
this.field = {};
}
}
DropDownComponent.ɵfac = function DropDownComponent_Factory(t) { return new (t || DropDownComponent)(); };
DropDownComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DropDownComponent, selectors: [["dropdown"]], inputs: { field: "field", form: "form" }, decls: 2, vars: 4, consts: [[1, "form-control", 3, "id", "formControl"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"]], template: function DropDownComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "select", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, DropDownComponent_option_1_Template, 2, 2, "option", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx.field.name)("formControl", ctx.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("disabled", ctx.field.disabled ? ctx.field.disabled : null);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.field.options);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormControlDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["ɵangular_packages_forms_forms_x"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DropDownComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'dropdown',
template: `
`
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "yOpY":
/*!***********************************************************************************************************************!*\
!*** ./src/app/users/pages/operations/setup/service-setup/service-setup-overview/service-setup-overview.component.ts ***!
\***********************************************************************************************************************/
/*! exports provided: ServiceSetupOverviewComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServiceSetupOverviewComponent", function() { return ServiceSetupOverviewComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
/* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
/* harmony import */ var src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/core/directive/sortable.directive */ "z5qi");
/* harmony import */ var src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/users/service/operations/setup.service */ "FyBb");
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ "5eHb");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../../../../shared/directive/sortable.directive */ "I0Qq");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
function ServiceSetupOverviewComponent_option_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 18);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const option_r7 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngValue", option_r7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](option_r7);
} }
function ServiceSetupOverviewComponent_div_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div");
} }
function ServiceSetupOverviewComponent_ng_template_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 19);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Not Found!");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function ServiceSetupOverviewComponent_ng_template_13_tr_14_Template(rf, ctx) { if (rf & 1) {
const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "td");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "div", 27);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "button", 28);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ServiceSetupOverviewComponent_ng_template_13_tr_14_Template_button_click_12_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const item_r9 = ctx.$implicit; const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r10.onViewServiceSetup(item_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](13, "View");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](14, "button", 29);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function ServiceSetupOverviewComponent_ng_template_13_tr_14_Template_button_click_14_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const item_r9 = ctx.$implicit; const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r12.onEditServiceSetup(item_r9); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](15, "Edit");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const item_r9 = ctx.$implicit;
const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 5, item_r9.createdAt));
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](item_r9.serviceName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"]("", item_r9.createdBy.name, " (", item_r9.createdBy.staffId, ")");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r8.getStatus(item_r9.status));
} }
function ServiceSetupOverviewComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "table", 20);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "thead");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "tr");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "th", 21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function ServiceSetupOverviewComponent_ng_template_13_Template_th_sort_3_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r13.onSortServiceSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "Date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "th", 22);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function ServiceSetupOverviewComponent_ng_template_13_Template_th_sort_5_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r15.onSortServiceSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](6, "Service Name");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "th", 23);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function ServiceSetupOverviewComponent_ng_template_13_Template_th_sort_7_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r16.onSortServiceSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](8, "Author");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "th", 24);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("sort", function ServiceSetupOverviewComponent_ng_template_13_Template_th_sort_9_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.onSortServiceSetup($event); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](10, "Status");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "th", 25);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](12, "Action");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](13, "tbody");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, ServiceSetupOverviewComponent_ng_template_13_tr_14_Template, 16, 7, "tr", 26);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.paginatedData);
} }
const _c0 = function () { return { width: "calc(100% - 20px)", "border-radius": "6px", height: "44px", margin: "10px", display: "block" }; };
function ServiceSetupOverviewComponent_ngx_skeleton_loader_15_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngx-skeleton-loader", 30);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("theme", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction0"](1, _c0));
} }
class ServiceSetupOverviewComponent {
constructor(setupService, toastService) {
this.setupService = setupService;
this.toastService = toastService;
this.changeActiveEdit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.changeActiveView = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.serviceTable = {
sortBy: 'desc',
sortWith: 'createdBy',
data: [],
page: 1,
limit: 10,
search: '',
};
this.serviceTableErr = false;
this.loader = false;
this.paginatedData = [];
this.pageSizeOptions = [10, 20, 30, 40, 50];
this.destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this.serviceSetUpSearchInput = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
this.serviceSetUpSearchInput
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((event) => event.target.value), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(500), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["takeUntil"])(this.destroy$))
.subscribe(() => {
this.serviceTable.page = 1;
this.getServiceSetUp();
});
}
ngOnInit() {
this.getServiceSetUp();
}
onLimitChangeServiceSetUp() {
this.getServiceSetUp();
}
getServiceSetUp() {
this.loader = true;
const { search, page, limit, sortWith, sortBy } = this.serviceTable;
this.setupService
.getServiceSetupDetails({ search, page, limit, sortWith, sortBy })
.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["finalize"])(() => {
this.loader = false;
}))
.subscribe((response) => {
const { data, totalRecords } = response.data;
this.serviceTable.data = data;
this.serviceTable.total = totalRecords;
this.paginatedData = this.serviceTable.data;
}, () => {
this.serviceTable.data = [];
this.serviceTable.total = 0;
this.toastService.error('No list found');
this.serviceTableErr = true;
});
}
onSortServiceSetup({ column, direction }) {
this.headers.forEach((header) => {
if (header.sortable !== column) {
header.direction = '';
}
});
this.serviceTable.sortWith = column;
this.serviceTable.sortBy = direction;
this.getServiceSetUp();
}
onPageChangeServiceSetUp(page) {
this.serviceTable.page = page;
this.getServiceSetUp();
}
onEditServiceSetup(value) {
this.changeActiveEdit.emit(value);
}
onViewServiceSetup(value) {
this.changeActiveView.emit(value);
}
ngOnDestroy() {
this.destroy$.next();
this.destroy$.complete();
}
getStatus(status) {
switch (status) {
case 1:
return 'Active';
case 2:
return 'Inactive';
default:
return 'Unknown';
}
}
}
ServiceSetupOverviewComponent.ɵfac = function ServiceSetupOverviewComponent_Factory(t) { return new (t || ServiceSetupOverviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"])); };
ServiceSetupOverviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ServiceSetupOverviewComponent, selectors: [["app-service-setup-overview"]], viewQuery: function ServiceSetupOverviewComponent_Query(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["NgbdSortableHeader"], true);
} if (rf & 2) {
var _t;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headers = _t);
} }, outputs: { changeActiveEdit: "changeActiveEdit", changeActiveView: "changeActiveView" }, decls: 23, vars: 12, consts: [[1, "card"], [1, "card-header", "bg-theme"], [1, "m-0"], [1, "card-body", "table-responsive", "p-0"], [1, "d-flex", "justify-content-between", "m-2"], ["name", "pageSize", 1, "custom-select", 2, "width", "auto", 3, "ngModel", "change", "ngModelChange"], [3, "ngValue", 4, "ngFor", "ngForOf"], [1, "form-group", "form-inline", "mb-0"], ["name", "searchTerm", "placeholder", "Search here", "type", "search", 1, "form-control", "ml-2", 3, "ngModel", "keyup", "ngModelChange"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["NoData", ""], ["dataTable", ""], ["count", "6", 3, "theme", 4, "ngIf"], [1, "card-footer"], [1, "d-flex", "justify-content-between"], [1, "align-self-center", "m-0", "text-muted"], [1, "text-dark"], [3, "page", "collectionSize", "maxSize", "pageSize", "pageChange"], [3, "ngValue"], [1, "text-md", "text-black-50", "p-4"], [1, "table", "table-striped"], ["scope", "col", "sortable", "createdAt", 3, "sort"], ["scope", "col", "sortable", "serviceName", 3, "sort"], ["scope", "col", "sortable", "createdBy", 3, "sort"], ["scope", "col", "sortable", "status", 3, "sort"], ["scope", "col"], [4, "ngFor", "ngForOf"], [1, "d-flex"], [1, "btn", "btn-info", "btn-sm", 3, "click"], [1, "btn", "btn-success", "btn-sm", "ml-1", 3, "click"], ["count", "6", 3, "theme"]], template: function ServiceSetupOverviewComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "h5", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "SERVICE SETUP");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "select", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function ServiceSetupOverviewComponent_Template_select_change_6_listener() { return ctx.onLimitChangeServiceSetUp(); })("ngModelChange", function ServiceSetupOverviewComponent_Template_select_ngModelChange_6_listener($event) { return ctx.serviceTable.limit = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, ServiceSetupOverviewComponent_option_7_Template, 2, 2, "option", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](9, "input", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keyup", function ServiceSetupOverviewComponent_Template_input_keyup_9_listener($event) { return ctx.serviceSetUpSearchInput.next($event); })("ngModelChange", function ServiceSetupOverviewComponent_Template_input_ngModelChange_9_listener($event) { return ctx.serviceTable.search = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, ServiceSetupOverviewComponent_div_10_Template, 1, 0, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, ServiceSetupOverviewComponent_ng_template_11_Template, 2, 0, "ng-template", null, 10, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, ServiceSetupOverviewComponent_ng_template_13_Template, 15, 1, "ng-template", null, 11, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, ServiceSetupOverviewComponent_ngx_skeleton_loader_15_Template, 1, 2, "ngx-skeleton-loader", 12);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](16, "div", 13);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](17, "div", 14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](18, "p", 15);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](19, " Total Records ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](20, "b", 16);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](21);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](22, "ngb-pagination", 17);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("pageChange", function ServiceSetupOverviewComponent_Template_ngb_pagination_pageChange_22_listener($event) { return ctx.onPageChangeServiceSetUp($event); })("pageChange", function ServiceSetupOverviewComponent_Template_ngb_pagination_pageChange_22_listener($event) { return ctx.serviceTable.page = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](12);
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](14);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.serviceTable.limit);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.pageSizeOptions);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx.serviceTable.search);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.serviceTableErr)("ngIfThen", _r2)("ngIfElse", _r4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loader);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.serviceTable.total);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("page", ctx.serviceTable.page)("collectionSize", ctx.serviceTable.total)("maxSize", 5)("pageSize", ctx.serviceTable.limit);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_6__["SelectControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgModel"], ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_7__["NativeElementInjectorDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["DefaultValueAccessor"], _angular_common__WEBPACK_IMPORTED_MODULE_8__["NgIf"], _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_9__["NgbPagination"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_6__["ɵangular_packages_forms_forms_x"], _shared_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_10__["SortableHeader"], ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_11__["NgxSkeletonLoaderComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_8__["DatePipe"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ServiceSetupOverviewComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'app-service-setup-overview',
templateUrl: './service-setup-overview.component.html',
}]
}], function () { return [{ type: src_app_users_service_operations_setup_service__WEBPACK_IMPORTED_MODULE_4__["SetupService"] }, { type: ngx_toastr__WEBPACK_IMPORTED_MODULE_5__["ToastrService"] }]; }, { changeActiveEdit: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], changeActiveView: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], headers: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
args: [src_app_core_directive_sortable_directive__WEBPACK_IMPORTED_MODULE_3__["NgbdSortableHeader"]]
}] }); })();
/***/ }),
/***/ "ydS9":
/*!***********************************************************!*\
!*** ./src/app/shared/dynamic-questions/fields/radios.ts ***!
\***********************************************************/
/*! exports provided: RadiosComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadiosComponent", function() { return RadiosComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
function RadiosComponent_div_0_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "input", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "label", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const opt_r1 = ctx.$implicit;
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formControl", ctx_r0.form)("value", opt_r1.key);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", opt_r1.label, " ");
} }
class RadiosComponent {
constructor() {
this.field = {};
}
}
RadiosComponent.ɵfac = function RadiosComponent_Factory(t) { return new (t || RadiosComponent)(); };
RadiosComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: RadiosComponent, selectors: [["radios"]], inputs: { field: "field", form: "form" }, decls: 1, vars: 1, consts: [["class", "form-check", 4, "ngFor", "ngForOf"], [1, "form-check"], ["type", "radio", 1, "form-check-input", 3, "formControl", "value"], [1, "form-check-label"]], template: function RadiosComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, RadiosComponent_div_0_Template, 4, 3, "div", 0);
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.field.options);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["RadioControlValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["FormControlDirective"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadiosComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'radios',
template: `
`
}]
}], null, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "yrE4":
/*!**********************************************************************!*\
!*** ./src/app/shared/dynamic-fields/field-builder/field-builder.ts ***!
\**********************************************************************/
/*! exports provided: FieldBuilderComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FieldBuilderComponent", function() { return FieldBuilderComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _fields_text_box__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../fields/text-box */ "mIF3");
/* harmony import */ var _fields_dropdown__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../fields/dropdown */ "xopz");
/* harmony import */ var _fields_checkbox__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../fields/checkbox */ "FIzO");
/* harmony import */ var _fields_radio__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../fields/radio */ "sKpv");
/* harmony import */ var _fields_file__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../fields/file */ "Ln+9");
function FieldBuilderComponent_strong_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "strong", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "*");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function FieldBuilderComponent_textbox_6_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "textbox", 7);
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r1.field)("form", ctx_r1.form.get(ctx_r1.field.fieldName));
} }
function FieldBuilderComponent_textbox_7_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "textbox", 7);
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r2.field)("form", ctx_r2.form.get(ctx_r2.field.fieldName));
} }
function FieldBuilderComponent_dropdown_8_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "dropdown", 7);
} if (rf & 2) {
const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r3.field)("form", ctx_r3.form.get(ctx_r3.field.fieldName));
} }
function FieldBuilderComponent_checkbox_9_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "checkbox", 7);
} if (rf & 2) {
const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r4.field)("form", ctx_r4.form.get(ctx_r4.field.fieldName));
} }
function FieldBuilderComponent_radio_10_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "radio", 7);
} if (rf & 2) {
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r5.field)("form", ctx_r5.form.get(ctx_r5.field.fieldName));
} }
function FieldBuilderComponent_file_11_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "file", 7);
} if (rf & 2) {
const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("field", ctx_r6.field)("form", ctx_r6.form.get(ctx_r6.field.name));
} }
function FieldBuilderComponent_div_12_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "small");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("", ctx_r7.field.fieldName, " is required");
} }
class FieldBuilderComponent {
constructor() { }
get isValid() { return this.form.controls[this.field.fieldName].valid; }
get isDirty() { return this.form.controls[this.field.fieldName].dirty; }
ngOnInit() {
}
}
FieldBuilderComponent.ɵfac = function FieldBuilderComponent_Factory(t) { return new (t || FieldBuilderComponent)(); };
FieldBuilderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FieldBuilderComponent, selectors: [["field-builder"]], inputs: { field: "field", form: "form" }, decls: 13, vars: 14, consts: [[1, "form-group", 3, "formGroup"], [1, "form-control-label"], ["class", "text-danger", 4, "ngIf"], [1, "", 3, "ngSwitch"], [3, "field", "form", 4, "ngSwitchCase"], ["class", "alert alert-danger my-1 p-2 fadeInDown animated ", 4, "ngIf"], [1, "text-danger"], [3, "field", "form"], [1, "alert", "alert-danger", "my-1", "p-2", "fadeInDown", "animated"]], template: function FieldBuilderComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "label", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "titlecase");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, FieldBuilderComponent_strong_4_Template, 2, 0, "strong", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, FieldBuilderComponent_textbox_6_Template, 1, 2, "textbox", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, FieldBuilderComponent_textbox_7_Template, 1, 2, "textbox", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, FieldBuilderComponent_dropdown_8_Template, 1, 2, "dropdown", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, FieldBuilderComponent_checkbox_9_Template, 1, 2, "checkbox", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, FieldBuilderComponent_radio_10_Template, 1, 2, "radio", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, FieldBuilderComponent_file_11_Template, 1, 2, "file", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, FieldBuilderComponent_div_12_Template, 3, 1, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("formGroup", ctx.form);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("for", ctx.field.fieldName);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](3, 12, ctx.field.fieldName), " ");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.field.required && ctx.form.get(ctx.field.fieldName).invalid && !ctx.field.disabled);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitch", ctx.field.type);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", "text");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", "date");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", "dropdown");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", "checkbox");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", "radio");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngSwitchCase", "file");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.isValid && ctx.isDirty);
} }, directives: [_angular_forms__WEBPACK_IMPORTED_MODULE_1__["NgControlStatusGroup"], _angular_forms__WEBPACK_IMPORTED_MODULE_1__["FormGroupDirective"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitch"], _angular_common__WEBPACK_IMPORTED_MODULE_2__["NgSwitchCase"], _fields_text_box__WEBPACK_IMPORTED_MODULE_3__["TextBoxComponent"], _fields_dropdown__WEBPACK_IMPORTED_MODULE_4__["DropDownComponent"], _fields_checkbox__WEBPACK_IMPORTED_MODULE_5__["CheckBoxComponent"], _fields_radio__WEBPACK_IMPORTED_MODULE_6__["RadioComponent"], _fields_file__WEBPACK_IMPORTED_MODULE_7__["FileComponent"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_2__["TitleCasePipe"]], encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FieldBuilderComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'field-builder',
template: `
`
}]
}], function () { return []; }, { field: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], form: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "z5qi":
/*!******************************************************!*\
!*** ./src/app/core/directive/sortable.directive.ts ***!
\******************************************************/
/*! exports provided: NgbdSortableHeader */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbdSortableHeader", function() { return NgbdSortableHeader; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
const rotate = { 'asc': 'desc', 'desc': '', '': 'asc' };
class NgbdSortableHeader {
constructor() {
this.sortable = '';
this.direction = '';
this.sort = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
}
rotate() {
this.direction = rotate[this.direction];
this.sort.emit({ column: this.sortable, direction: this.direction });
}
}
NgbdSortableHeader.ɵfac = function NgbdSortableHeader_Factory(t) { return new (t || NgbdSortableHeader)(); };
NgbdSortableHeader.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbdSortableHeader, selectors: [["th", "sortable", ""]], hostVars: 4, hostBindings: function NgbdSortableHeader_HostBindings(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbdSortableHeader_click_HostBindingHandler() { return ctx.rotate(); });
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("asc", ctx.direction === "asc")("desc", ctx.direction === "desc");
} }, inputs: { sortable: "sortable", direction: "direction" }, outputs: { sort: "sort" } });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbdSortableHeader, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
args: [{
selector: 'th[sortable]',
host: {
'[class.asc]': 'direction === "asc"',
'[class.desc]': 'direction === "desc"',
'(click)': 'rotate()'
}
}]
}], null, { sortable: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], direction: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], sort: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}] }); })();
/***/ }),
/***/ "z8GQ":
/*!*******************************************************************!*\
!*** ./src/app/shared/network-rocket/network-rocket.component.ts ***!
\*******************************************************************/
/*! exports provided: NetworkRocketComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NetworkRocketComponent", function() { return NetworkRocketComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
class NetworkRocketComponent {
constructor() {
window.top.location.href = 'https://corporate.net-roc.com';
}
}
NetworkRocketComponent.ɵfac = function NetworkRocketComponent_Factory(t) { return new (t || NetworkRocketComponent)(); };
NetworkRocketComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NetworkRocketComponent, selectors: [["ng-component"]], decls: 0, vars: 0, template: function NetworkRocketComponent_Template(rf, ctx) { }, encapsulation: 2 });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NetworkRocketComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
template: ``,
styles: []
}]
}], function () { return []; }, null); })();
/***/ }),
/***/ "zBNY":
/*!*****************************************************************!*\
!*** ./src/app/shared/single-select/single-select.component.ts ***!
\*****************************************************************/
/*! exports provided: SingleSelectDropdownComponent */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SingleSelectDropdownComponent", function() { return SingleSelectDropdownComponent; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../pipes/filter.pipe */ "UhSo");
function SingleSelectDropdownComponent_span_3_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "Select");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} }
function SingleSelectDropdownComponent_span_4_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r1.currentSelected);
} }
function SingleSelectDropdownComponent_div_6_div_2_Template(rf, ctx) { if (rf & 1) {
const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SingleSelectDropdownComponent_div_6_div_2_Template_div_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const a_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r5.getSelectedValue(a_r4.value); });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const a_r4 = ctx.$implicit;
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](a_r4.value);
} }
const _c0 = function (a0) { return { value: a0 }; };
function SingleSelectDropdownComponent_div_6_Template(rf, ctx) { if (rf & 1) {
const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 5);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "input", 6);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("ngModelChange", function SingleSelectDropdownComponent_div_6_Template_input_ngModelChange_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r8); const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r7.searchvalue = $event; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, SingleSelectDropdownComponent_div_6_div_2_Template, 3, 1, "div", 7);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](3, "filter");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngModel", ctx_r2.searchvalue);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind2"](3, 2, ctx_r2.options, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](5, _c0, ctx_r2.searchvalue)));
} }
class SingleSelectDropdownComponent {
constructor() {
this.shareIndividualCheckedList = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
this.options = [
{ value: "Small", selected: false },
{ value: "Small", selected: false },
{ value: "Medium", selected: false },
{ value: "Medium", selected: false },
{ value: "Large", selected: false },
{ value: "Large", selected: false }
];
this.showDropDown = false;
}
getSelectedValue(value) {
this.currentSelected = value;
//share checked list
//share individual selected item
this.shareIndividualStatus();
}
shareIndividualStatus() {
this.shareIndividualCheckedList.emit(this.currentSelected);
}
}
SingleSelectDropdownComponent.ɵfac = function SingleSelectDropdownComponent_Factory(t) { return new (t || SingleSelectDropdownComponent)(); };
SingleSelectDropdownComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: SingleSelectDropdownComponent, selectors: [["single-select"]], inputs: { list: "list", showDropDown: "showDropDown", currentSelected: "currentSelected" }, outputs: { shareIndividualCheckedList: "shareIndividualCheckedList" }, decls: 7, vars: 3, consts: [[3, "mouseleave"], [1, "drop-toggle", "btn", "flat", "w-100", 3, "click"], [4, "ngIf"], [1, "fa", "fa-angle-down"], ["class", "drop-show w-80", 4, "ngIf"], [1, "drop-show", "w-80"], ["type", "search", 1, "search", 3, "ngModel", "ngModelChange"], ["class", "topList", 4, "ngFor", "ngForOf"], [1, "topList"], [1, "list", 3, "click"]], template: function SingleSelectDropdownComponent_Template(rf, ctx) { if (rf & 1) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mouseleave", function SingleSelectDropdownComponent_Template_div_mouseleave_0_listener() { return ctx.showDropDown = false; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div");
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function SingleSelectDropdownComponent_Template_button_click_2_listener() { return ctx.showDropDown = !ctx.showDropDown; });
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, SingleSelectDropdownComponent_span_3_Template, 2, 0, "span", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, SingleSelectDropdownComponent_span_4_Template, 2, 1, "span", 2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](5, "i", 3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, SingleSelectDropdownComponent_div_6_Template, 4, 7, "div", 4);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
} if (rf & 2) {
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.currentSelected);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.currentSelected);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showDropDown);
} }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["DefaultValueAccessor"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgControlStatus"], _angular_forms__WEBPACK_IMPORTED_MODULE_2__["NgModel"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"]], pipes: [_pipes_filter_pipe__WEBPACK_IMPORTED_MODULE_3__["FilterPipe"]], styles: [".drop-toggle[_ngcontent-%COMP%] {\n background-color: #fff;\n border: none;\n padding: 5px 10px;\n border-radius: 4px;\n cursor: pointer;\n cursor: hand;\n border: none !important;\n border-bottom: 2px solid #d2d2d2 !important;\n width: 233px;\n text-align: left;\n}\n.drop-toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n float: right;\n}\n.drop-show[_ngcontent-%COMP%] {\n padding: 4px;\n width: 100%;\n max-width: 215px;\n background-color: #FFF;\n border: 1px solid #BABABA;\n position: absolute;\n z-index: 100;\n box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);\n margin-left: 1px;\n height: 186px;\n overflow: auto;\n}\n.drop-show[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n padding-top: 5px;\n display: block;\n font-size: 15px;\n cursor: pointer;\n}\n.drop-show[_ngcontent-%COMP%] label[_ngcontent-%COMP%] input[_ngcontent-%COMP%] {\n vertical-align: top;\n}\n.drop-show[_ngcontent-%COMP%] label[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: inline-block;\n}\n.search[_ngcontent-%COMP%] {\n outline-offset: 0;\n padding: 4px;\n width: 100%;\n box-sizing: border-box;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n background-color: #fff;\n border: 1px solid #ccc;\n color: #555;\n font-size: 14px;\n}\n.drop-toggle[_ngcontent-%COMP%] {\n \n line-height: 1.42857143;\n padding: 6px 24px 6px 12px;\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);\n color: #555;\n font-size: 14px;\n outline: 0;\n position: relative;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n -webkit-user-select: none;\n}\n.list[_ngcontent-%COMP%] {\n padding: 6px 12px;\n}\n.list[_ngcontent-%COMP%]:hover {\n background-color: #337ab7;\n color: #FFF;\n cursor: pointer;\n}\n.topList[_ngcontent-%COMP%] {\n max-height: 200px;\n overflow-y: auto;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvc2hhcmVkL3NpbmdsZS1zZWxlY3Qvc2luZ2xlLXNlbGVjdC5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7RUFBQTtBQUdBO0VBQ0Usc0JBQUE7RUFDQSxZQUFBO0VBQ0EsaUJBQUE7RUFDQSxrQkFBQTtFQUNBLGVBQUE7RUFDQSxZQUFBO0VBQ0EsdUJBQUE7RUFDRiwyQ0FBQTtFQUVFLFlBQUE7RUFDQSxnQkFBQTtBQUFGO0FBRUE7RUFDRSxZQUFBO0FBQ0Y7QUFDQTtFQUNFLFlBQUE7RUFDQSxXQUFBO0VBQ0EsZ0JBQUE7RUFDQSxzQkFBQTtFQUNBLHlCQUFBO0VBQ0Esa0JBQUE7RUFDQSxZQUFBO0VBR0EsMENBQUE7RUFDQSxnQkFBQTtFQUNBLGFBQUE7RUFDQSxjQUFBO0FBRUY7QUFBQTtFQUNFLGdCQUFBO0VBQ0EsY0FBQTtFQUNBLGVBQUE7RUFDQSxlQUFBO0FBR0Y7QUFEQTtFQUNFLG1CQUFBO0FBSUY7QUFGQTtFQUNFLHFCQUFBO0FBS0Y7QUFIQTtFQUNFLGlCQUFBO0VBQ0EsWUFBQTtFQUNFLFdBQUE7RUFDQSxzQkFBQTtFQUNBLGdEQUFBO0VBQ0Esc0JBQUE7RUFDQSxzQkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0FBTUo7QUFIQTtFQUFjLHNDQUFBO0VBQ1osdUJBQUE7RUFDQSwwQkFBQTtFQUNBLGdEQUFBO0VBQ0EsV0FBQTtFQUNBLGVBQUE7RUFDQSxVQUFBO0VBQ0Esa0JBQUE7RUFDQSxtQkFBQTtFQUNBLGdCQUFBO0VBQ0EsdUJBQUE7RUFDQSx5QkFBQTtBQU9GO0FBSkE7RUFDRSxpQkFBQTtBQU9GO0FBSkE7RUFDRSx5QkFBQTtFQUNBLFdBQUE7RUFDQSxlQUFBO0FBT0Y7QUFMQTtFQUNFLGlCQUFBO0VBQ0EsZ0JBQUE7QUFRRiIsImZpbGUiOiJzcmMvYXBwL3NoYXJlZC9zaW5nbGUtc2VsZWN0L3NpbmdsZS1zZWxlY3QuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIvKioqXG4gICAgY3NzIGZvciBtdWx0aSBzZWxlY3QgZHJvcCBkb3duXG4qKi9cbi5kcm9wLXRvZ2dsZXtcbiAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcbiAgYm9yZGVyOiBub25lO1xuICBwYWRkaW5nOiA1cHggMTBweDtcbiAgYm9yZGVyLXJhZGl1czogNHB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG4gIGN1cnNvcjogaGFuZDtcbiAgYm9yZGVyOiBub25lICFpbXBvcnRhbnQ7XG5ib3JkZXItYm90dG9tOiAycHggc29saWQgI2QyZDJkMiAhaW1wb3J0YW50O1xuICAvLyBib3JkZXI6IDFweCBzb2xpZCAjY2NjO1xuICB3aWR0aDogMjMzcHg7XG4gIHRleHQtYWxpZ246IGxlZnQ7XG59XG4uZHJvcC10b2dnbGUgaXtcbiAgZmxvYXQ6cmlnaHQ7XG59XG4uZHJvcC1zaG93IHtcbiAgcGFkZGluZzogNHB4O1xuICB3aWR0aDogMTAwJTtcbiAgbWF4LXdpZHRoOiAyMTVweDtcbiAgYmFja2dyb3VuZC1jb2xvcjogI0ZGRjtcbiAgYm9yZGVyOiAxcHggc29saWQgI0JBQkFCQTtcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB6LWluZGV4OiAxMDA7XG4gIC13ZWJraXQtYm94LXNoYWRvdzogMCA2cHggMTBweCByZ2JhKDAsMCwwLC4xNSk7XG4gIC1tb3otYm94LXNoYWRvdzogMCA2cHggMTBweCByZ2JhKDAsMCwwLC4xNSk7XG4gIGJveC1zaGFkb3c6IDAgNnB4IDEwcHggcmdiYSgwLDAsMCwuMTUpO1xuICBtYXJnaW4tbGVmdDogMXB4O1xuICBoZWlnaHQ6IDE4NnB4O1xuICBvdmVyZmxvdzogYXV0bztcbn1cbi5kcm9wLXNob3cgbGFiZWx7XG4gIHBhZGRpbmctdG9wOiA1cHg7XG4gIGRpc3BsYXk6YmxvY2s7XG4gIGZvbnQtc2l6ZToxNXB4O1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG4uZHJvcC1zaG93IGxhYmVsIGlucHV0e1xuICB2ZXJ0aWNhbC1hbGlnbjogdG9wO1xufVxuLmRyb3Atc2hvdyBsYWJlbCBzcGFue1xuICBkaXNwbGF5OmlubGluZS1ibG9jaztcbn1cbi5zZWFyY2h7XG4gIG91dGxpbmUtb2Zmc2V0OiAwO1xuICBwYWRkaW5nOiA0cHg7XG4gICAgd2lkdGg6IDEwMCU7XG4gICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcbiAgICBib3gtc2hhZG93OiBpbnNldCAwIDFweCAxcHggcmdiYSgwLDAsMCwuMDc1KTtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmO1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICNjY2M7XG4gICAgY29sb3I6ICM1NTU7XG4gICAgZm9udC1zaXplOiAxNHB4O1xuICB9XG5cbi5kcm9wLXRvZ2dsZXsgLypjb250YWluZXIgZm9yIGN1c3RvbSBkcm9wZG93biBhcnJvdyovXG4gIGxpbmUtaGVpZ2h0OiAxLjQyODU3MTQzO1xuICBwYWRkaW5nOiA2cHggMjRweCA2cHggMTJweDtcbiAgYm94LXNoYWRvdzogaW5zZXQgMCAxcHggMXB4IHJnYmEoMCwwLDAsLjA3NSk7XG4gIGNvbG9yOiAjNTU1O1xuICBmb250LXNpemU6IDE0cHg7XG4gIG91dGxpbmU6IDA7XG4gIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcbiAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgdGV4dC1vdmVyZmxvdzogZWxsaXBzaXM7XG4gIC13ZWJraXQtdXNlci1zZWxlY3Q6IG5vbmU7XG59XG5cbi5saXN0e1xuICBwYWRkaW5nOiA2cHggMTJweDtcblxufVxuLmxpc3Q6aG92ZXJ7XG4gIGJhY2tncm91bmQtY29sb3I6ICMzMzdhYjc7XG4gIGNvbG9yOiAjRkZGO1xuICBjdXJzb3I6IHBvaW50ZXI7XG59XG4udG9wTGlzdHtcbiAgbWF4LWhlaWdodDogMjAwcHg7XG4gIG92ZXJmbG93LXk6IGF1dG87XG59XG4iXX0= */"] });
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SingleSelectDropdownComponent, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
args: [{
selector: 'single-select',
templateUrl: './single-select.component.html',
styleUrls: ['./single-select.component.scss'],
}]
}], function () { return []; }, { list: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], showDropDown: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}], shareIndividualCheckedList: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
}], currentSelected: [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
}] }); })();
/***/ }),
/***/ "zUnb":
/*!*********************!*\
!*** ./src/main.ts ***!
\*********************/
/*! no exports provided */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./environments/environment */ "AytR");
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "ZAI4");
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
if (_environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].production) {
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
}
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__["platformBrowser"]().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])
.catch(err => console.error(err));
/***/ }),
/***/ "zn8P":
/*!******************************************************!*\
!*** ./$$_lazy_route_resource lazy namespace object ***!
\******************************************************/
/*! no static exports found */
/***/ (function(module, exports) {
function webpackEmptyAsyncContext(req) {
// Here Promise.resolve().then() is used instead of new Promise() to prevent
// uncaught exception popping up in devtools
return Promise.resolve().then(function() {
var e = new Error("Cannot find module '" + req + "'");
e.code = 'MODULE_NOT_FOUND';
throw e;
});
}
webpackEmptyAsyncContext.keys = function() { return []; };
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
module.exports = webpackEmptyAsyncContext;
webpackEmptyAsyncContext.id = "zn8P";
/***/ }),
/***/ "zrcO":
/*!***************************************!*\
!*** ./src/app/users/users.module.ts ***!
\***************************************/
/*! exports provided: UsersModule */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UsersModule", function() { return UsersModule; });
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
/* harmony import */ var _layout_sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./layout/sidebar/sidebar.component */ "lfFo");
/* harmony import */ var _layout_header_header_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layout/header/header.component */ "j5Ue");
/* harmony import */ var _layout_design_design_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./layout/design/design.component */ "eDvd");
/* harmony import */ var _ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ng-bootstrap/ng-bootstrap */ "1kSV");
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../shared/shared.module */ "PCNd");
/* harmony import */ var _pages_home_home_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/home/home.component */ "ayS3");
/* harmony import */ var _pages_system_settings_bussiness_unit_bussiness_unit_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pages/system-settings/bussiness-unit/bussiness-unit.component */ "7PPy");
/* harmony import */ var _guards_auth_guard__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./guards/auth.guard */ "8SeZ");
/* harmony import */ var _service_auth_auth_service__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./service/auth/auth.service */ "PxIJ");
/* harmony import */ var _pages_system_settings_user_roles_user_roles_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./pages/system-settings/user-roles/user-roles.component */ "jFLL");
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @ng-select/ng-select */ "ZOsW");
/* harmony import */ var _pages_system_settings_bussiness_unit_bussiness_unit_overview_bussiness_unit_overview_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./pages/system-settings/bussiness-unit/bussiness-unit-overview/bussiness-unit-overview.component */ "uY0s");
/* harmony import */ var ngx_image_cropper__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ngx-image-cropper */ "rIor");
/* harmony import */ var _pages_system_settings_company_setup_password_password_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./pages/system-settings/company-setup/password/password.component */ "5B7r");
/* harmony import */ var _pages_system_settings_company_setup_company_setup_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./pages/system-settings/company-setup/company-setup.component */ "dmX3");
/* harmony import */ var _pages_system_settings_custom_fields_custom_fields_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./pages/system-settings/custom-fields/custom-fields.component */ "nYYO");
/* harmony import */ var ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ngx-intl-tel-input */ "t34c");
/* harmony import */ var ng2_date_picker__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ng2-date-picker */ "i2NW");
/* harmony import */ var _pages_auth_forget_password_forget_password_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./pages/auth/forget-password/forget-password.component */ "OWei");
/* harmony import */ var _pages_auth_verify_user_verify_user_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./pages/auth/verify-user/verify-user.component */ "Uudl");
/* harmony import */ var _pages_users_create_users_users_overview_users_overview_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./pages/users/create-users/users-overview/users-overview.component */ "X+41");
/* harmony import */ var _pages_users_view_users_user_details_user_details_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./pages/users/view-users/user-details/user-details.component */ "p2yD");
/* harmony import */ var _pages_users_view_users_view_users_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./pages/users/view-users/view-users.component */ "/bT2");
/* harmony import */ var _pages_users_create_users_create_users_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./pages/users/create-users/create-users.component */ "b/se");
/* harmony import */ var _pages_auth_login_login_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./pages/auth/login/login.component */ "ABpr");
/* harmony import */ var _pages_user_profile_user_profile_component__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./pages/user-profile/user-profile.component */ "a53x");
/* harmony import */ var _pages_communication_channel_setup_channel_setup_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./pages/communication/channel-setup/channel-setup.component */ "eV4T");
/* harmony import */ var _pages_communication_channel_setup_channel_overview_channel_overview_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./pages/communication/channel-setup/channel-overview/channel-overview.component */ "c/pr");
/* harmony import */ var _pages_central_builder_question_builder_overview_overview_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./pages/central-builder/question-builder/overview/overview.component */ "vF8B");
/* harmony import */ var _pages_central_builder_my_forms_my_forms_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./pages/central-builder/my-forms/my-forms.component */ "EXjG");
/* harmony import */ var _pages_central_builder_forms_forms_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./pages/central-builder/forms/forms.component */ "waVV");
/* harmony import */ var _pages_central_builder_question_builder_question_modal_question_modal_component__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./pages/central-builder/question-builder/question-modal/question-modal.component */ "HCpM");
/* harmony import */ var _pages_central_builder_question_builder_create_edit_module_create_edit_module_component__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./pages/central-builder/question-builder/create-edit-module/create-edit-module.component */ "6Sck");
/* harmony import */ var _pages_central_builder_forms_forms_overview_forms_overview_component__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./pages/central-builder/forms/forms-overview/forms-overview.component */ "HW0N");
/* harmony import */ var _pages_central_builder_forms_logs_overview_logs_overview_component__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./pages/central-builder/forms/logs-overview/logs-overview.component */ "RKBd");
/* harmony import */ var _pages_central_builder_forms_create_edit_forms_create_edit_forms_component__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./pages/central-builder/forms/create-edit-forms/create-edit-forms.component */ "6h1h");
/* harmony import */ var _pages_system_settings_company_setup_home_page_home_page_component__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./pages/system-settings/company-setup/home-page/home-page.component */ "Ia8d");
/* harmony import */ var _pages_system_settings_company_setup_usefull_link_usefull_link_component__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./pages/system-settings/company-setup/usefull-link/usefull-link.component */ "O31U");
/* harmony import */ var _pages_central_builder_forms_form_manage_form_manage_component__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/form-manage.component */ "2oWT");
/* harmony import */ var _pages_central_builder_my_forms_my_forms_overview_my_forms_overview_component__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./pages/central-builder/my-forms/my-forms-overview/my-forms-overview.component */ "BZPs");
/* harmony import */ var _pages_communication_notification_my_notification_my_notification_component__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./pages/communication/notification/my-notification/my-notification.component */ "Aypa");
/* harmony import */ var _pages_communication_notification_manage_notification_manage_notification_component__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./pages/communication/notification/manage-notification/manage-notification.component */ "YyPE");
/* harmony import */ var _pages_communication_notification_manage_notification_create_edit_notification_create_edit_notification_component__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./pages/communication/notification/manage-notification/create-edit-notification/create-edit-notification.component */ "Hp/k");
/* harmony import */ var _pages_communication_notification_manage_notification_notification_overview_notification_overview_component__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./pages/communication/notification/manage-notification/notification-overview/notification-overview.component */ "7//P");
/* harmony import */ var _pages_central_builder_question_builder_question_builder_component__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./pages/central-builder/question-builder/question-builder.component */ "kSlf");
/* harmony import */ var _pages_communication_notification_my_notification_unread_unread_component__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./pages/communication/notification/my-notification/unread/unread.component */ "8/z8");
/* harmony import */ var _pages_communication_notification_my_notification_acknowledged_acknowledged_component__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./pages/communication/notification/my-notification/acknowledged/acknowledged.component */ "eJGe");
/* harmony import */ var _pages_communication_notification_manage_notification_view_notification_view_notification_component__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./pages/communication/notification/manage-notification/view-notification/view-notification.component */ "GSla");
/* harmony import */ var _pages_communication_board_setup_board_setup_component__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./pages/communication/board-setup/board-setup.component */ "JedV");
/* harmony import */ var _pages_communication_board_setup_boards_overview_boards_overview_component__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./pages/communication/board-setup/boards-overview/boards-overview.component */ "ht3V");
/* harmony import */ var _pages_communication_board_setup_questionnaire_questionnaire_component__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./pages/communication/board-setup/questionnaire/questionnaire.component */ "+VIy");
/* harmony import */ var _pages_communication_board_setup_reported_comments_reported_comments_component__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./pages/communication/board-setup/reported-comments/reported-comments.component */ "+TV4");
/* harmony import */ var _pages_communication_board_setup_reported_posts_reported_posts_component__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./pages/communication/board-setup/reported-posts/reported-posts.component */ "Fc54");
/* harmony import */ var _pages_communication_board_setup_create_edit_boards_create_edit_boards_component__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./pages/communication/board-setup/create-edit-boards/create-edit-boards.component */ "w62q");
/* harmony import */ var _pages_communication_board_setup_emoji_component_emoji_component_component__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./pages/communication/board-setup/emoji-component/emoji-component.component */ "iGbY");
/* harmony import */ var _pages_communication_manage_news_manage_news_component__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./pages/communication/manage-news/manage-news.component */ "3rNv");
/* harmony import */ var _pages_communication_manage_news_news_overview_news_overview_component__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./pages/communication/manage-news/news-overview/news-overview.component */ "w23u");
/* harmony import */ var _pages_communication_manage_news_create_edit_managenews_create_edit_managenews_component__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./pages/communication/manage-news/create-edit-managenews/create-edit-managenews.component */ "Wf/0");
/* harmony import */ var _pages_communication_manage_news_news_reported_comments_news_reported_comments_component__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./pages/communication/manage-news/news-reported-comments/news-reported-comments.component */ "8yhi");
/* harmony import */ var _pages_communication_manage_news_news_reported_posts_news_reported_posts_component__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ./pages/communication/manage-news/news-reported-posts/news-reported-posts.component */ "2sya");
/* harmony import */ var _pages_communication_board_setup_boards_overview_view_board_view_board_component__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ./pages/communication/board-setup/boards-overview/view-board/view-board.component */ "UOI9");
/* harmony import */ var _pages_communication_manage_events_manage_events_component__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ./pages/communication/manage-events/manage-events.component */ "H01m");
/* harmony import */ var _pages_communication_manage_events_create_edit_events_create_edit_events_component__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ./pages/communication/manage-events/create-edit-events/create-edit-events.component */ "lzKD");
/* harmony import */ var _pages_communication_manage_events_events_overview_events_overview_component__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ./pages/communication/manage-events/events-overview/events-overview.component */ "KjCo");
/* harmony import */ var _pages_communication_manage_events_events_reported_comments_events_reported_comments_component__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./pages/communication/manage-events/events-reported-comments/events-reported-comments.component */ "Nnxu");
/* harmony import */ var _pages_communication_manage_events_events_reported_post_events_reported_post_component__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./pages/communication/manage-events/events-reported-post/events-reported-post.component */ "jZZG");
/* harmony import */ var _pages_communication_manage_news_news_view_news_view_component__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./pages/communication/manage-news/news-view/news-view.component */ "ZGWl");
/* harmony import */ var _pages_communication_manage_events_events_view_events_view_component__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./pages/communication/manage-events/events-view/events-view.component */ "+pZ6");
/* harmony import */ var _pages_gamification_challenges_challenges_component__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ./pages/gamification/challenges/challenges.component */ "SUKM");
/* harmony import */ var _pages_gamification_challenges_add_edit_challenges_add_edit_challenges_component__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ./pages/gamification/challenges/add-edit-challenges/add-edit-challenges.component */ "p826");
/* harmony import */ var _pages_communication_my_news_and_events_my_news_and_events_component__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ./pages/communication/my-news-and-events/my-news-and-events.component */ "BvJJ");
/* harmony import */ var _pages_system_settings_company_setup_quick_links_quick_links_component__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ./pages/system-settings/company-setup/quick-links/quick-links.component */ "/WI1");
/* harmony import */ var _pages_gamification_challenges_challenges_overview_manage_challenges_manage_challenges_component__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ./pages/gamification/challenges/challenges-overview/manage-challenges/manage-challenges.component */ "3UN2");
/* harmony import */ var _pages_gamification_challenges_challenges_log_challenges_log_component__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ./pages/gamification/challenges/challenges-log/challenges-log.component */ "pKXl");
/* harmony import */ var _pages_gamification_challenges_challenges_overview_challenges_overview_component__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ./pages/gamification/challenges/challenges-overview/challenges-overview.component */ "WWan");
/* harmony import */ var _pages_gamification_Redemption_List_Redemption_List_component__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ./pages/gamification/Redemption-List/Redemption-List.component */ "fwC0");
/* harmony import */ var _pages_users_create_users_add_edit_users_add_edit_users_component__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ./pages/users/create-users/add-edit-users/add-edit-users.component */ "aD6k");
/* harmony import */ var _users_routing_module__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ./users-routing.module */ "Cj6H");
/* harmony import */ var _pages_gamification_challenges_challenges_overview_view_challanges_view_challanges_component__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ./pages/gamification/challenges/challenges-overview/view-challanges/view-challanges.component */ "ji1A");
/* harmony import */ var froala_editor_js_froala_editor_min_js__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! froala-editor/js/froala_editor.min.js */ "sfw5");
/* harmony import */ var froala_editor_js_froala_editor_min_js__WEBPACK_IMPORTED_MODULE_82___default = /*#__PURE__*/__webpack_require__.n(froala_editor_js_froala_editor_min_js__WEBPACK_IMPORTED_MODULE_82__);
/* harmony import */ var froala_editor_js_plugins_pkgd_min_js__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! froala-editor/js/plugins.pkgd.min.js */ "rcg+");
/* harmony import */ var froala_editor_js_plugins_pkgd_min_js__WEBPACK_IMPORTED_MODULE_83___default = /*#__PURE__*/__webpack_require__.n(froala_editor_js_plugins_pkgd_min_js__WEBPACK_IMPORTED_MODULE_83__);
/* harmony import */ var angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! angular-froala-wysiwyg */ "81np");
/* harmony import */ var _pages_admin_users_facial_id_facial_id_component__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ./pages/admin/users/facial-id/facial-id.component */ "gyWi");
/* harmony import */ var _pages_admin_users_ops_group_ops_add_staff_ops_add_staff_component__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ./pages/admin/users/ops-group/ops-add-staff/ops-add-staff.component */ "PLrH");
/* harmony import */ var _pages_admin_users_ops_group_ops_group_component__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ./pages/admin/users/ops-group/ops-group.component */ "ZlCH");
/* harmony import */ var _pages_admin_users_ops_group_ops_overview_ops_overview_component__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ./pages/admin/users/ops-group/ops-overview/ops-overview.component */ "KF6l");
/* harmony import */ var _pages_human_resource_leave_balloting_create_ballot_create_ballot_component__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ./pages/human-resource/leave-balloting/create-ballot/create-ballot.component */ "0UIz");
/* harmony import */ var _pages_human_resource_leave_balloting_leave_balloting_component__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ./pages/human-resource/leave-balloting/leave-balloting.component */ "mCAl");
/* harmony import */ var _pages_human_resource_leave_balloting_manage_ballot_manage_ballot_component__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ./pages/human-resource/leave-balloting/manage-ballot/manage-ballot.component */ "SOWo");
/* harmony import */ var _pages_human_resource_leave_planner_approve_approve_component__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ./pages/human-resource/leave-planner/approve/approve.component */ "qIT8");
/* harmony import */ var _pages_human_resource_leave_planner_dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ./pages/human-resource/leave-planner/dashboard/dashboard.component */ "90oE");
/* harmony import */ var _pages_human_resource_leave_planner_leave_planner_component__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ./pages/human-resource/leave-planner/leave-planner.component */ "rrDe");
/* harmony import */ var _pages_human_resource_leave_planner_ops_leave_quota_ops_leave_quota_component__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ./pages/human-resource/leave-planner/ops-leave-quota/ops-leave-quota.component */ "DuZd");
/* harmony import */ var _pages_human_resource_leave_planner_swap_restrictions_swap_restrictions_component__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ./pages/human-resource/leave-planner/swap-restrictions/swap-restrictions.component */ "ngIS");
/* harmony import */ var _pages_human_resource_leave_scheme_leave_grp_overview_leave_grp_overview_component__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ./pages/human-resource/leave-scheme/leave-grp-overview/leave-grp-overview.component */ "0gGn");
/* harmony import */ var _pages_human_resource_leave_scheme_leave_overview_leave_overview_component__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ./pages/human-resource/leave-scheme/leave-overview/leave-overview.component */ "4S5v");
/* harmony import */ var _pages_human_resource_leave_scheme_leave_scheme_component__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ./pages/human-resource/leave-scheme/leave-scheme.component */ "1EfA");
/* harmony import */ var _pages_operations_report_list_booking_list_booking_component__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ./pages/operations/report/list-booking/list-booking.component */ "NdTN");
/* harmony import */ var _pages_operations_report_list_cancellation_list_cancellation_component__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ./pages/operations/report/list-cancellation/list-cancellation.component */ "3QNI");
/* harmony import */ var _pages_operations_report_list_shift_list_shift_component__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ./pages/operations/report/list-shift/list-shift.component */ "PXv1");
/* harmony import */ var _pages_operations_report_list_user_list_user_component__WEBPACK_IMPORTED_MODULE_103__ = __webpack_require__(/*! ./pages/operations/report/list-user/list-user.component */ "KVXD");
/* harmony import */ var _pages_operations_setup_bu_shift_setup_bu_shift_setup_overview_bu_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_104__ = __webpack_require__(/*! ./pages/operations/setup/bu-shift-setup/bu-shift-setup-overview/bu-shift-setup-overview.component */ "ghUW");
/* harmony import */ var _pages_operations_setup_bu_shift_setup_bu_shift_setup_component__WEBPACK_IMPORTED_MODULE_105__ = __webpack_require__(/*! ./pages/operations/setup/bu-shift-setup/bu-shift-setup.component */ "tOeX");
/* harmony import */ var _pages_operations_setup_shift_scheme_shift_scheme_edit_shift_scheme_edit_component__WEBPACK_IMPORTED_MODULE_106__ = __webpack_require__(/*! ./pages/operations/setup/shift-scheme/shift-scheme-edit/shift-scheme-edit.component */ "4AOM");
/* harmony import */ var _pages_operations_setup_shift_scheme_shift_scheme_logs_shift_scheme_logs_component__WEBPACK_IMPORTED_MODULE_107__ = __webpack_require__(/*! ./pages/operations/setup/shift-scheme/shift-scheme-logs/shift-scheme-logs.component */ "sICd");
/* harmony import */ var _pages_operations_setup_shift_scheme_shift_scheme_overview_shift_scheme_overview_component__WEBPACK_IMPORTED_MODULE_108__ = __webpack_require__(/*! ./pages/operations/setup/shift-scheme/shift-scheme-overview/shift-scheme-overview.component */ "Xf2D");
/* harmony import */ var _pages_operations_setup_shift_scheme_shift_scheme_component__WEBPACK_IMPORTED_MODULE_109__ = __webpack_require__(/*! ./pages/operations/setup/shift-scheme/shift-scheme.component */ "I7Pl");
/* harmony import */ var _pages_operations_setup_user_shift_setup_user_shift_setup_overview_user_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_110__ = __webpack_require__(/*! ./pages/operations/setup/user-shift-setup/user-shift-setup-overview/user-shift-setup-overview.component */ "q2vL");
/* harmony import */ var _pages_operations_setup_user_shift_setup_user_shift_setup_component__WEBPACK_IMPORTED_MODULE_111__ = __webpack_require__(/*! ./pages/operations/setup/user-shift-setup/user-shift-setup.component */ "F2gy");
/* harmony import */ var _pages_operations_shift_scheduler_manage_shift_manage_shift_component__WEBPACK_IMPORTED_MODULE_112__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-shift/manage-shift.component */ "fGjg");
/* harmony import */ var _pages_operations_shift_scheduler_manage_shift_manage_manage_component__WEBPACK_IMPORTED_MODULE_113__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-shift/manage/manage.component */ "qjb4");
/* harmony import */ var _pages_operations_shift_scheduler_manage_shift_status_status_component__WEBPACK_IMPORTED_MODULE_114__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-shift/status/status.component */ "Zx5L");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_assign_shift_assign_shift_component__WEBPACK_IMPORTED_MODULE_115__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/assign-shift/assign-shift.component */ "QR1U");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_log_assign_log_assign_component__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/log-assign/log-assign.component */ "D7Pn");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_log_open_log_open_component__WEBPACK_IMPORTED_MODULE_117__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/log-open/log-open.component */ "0inZ");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_open_shift_open_shift_component__WEBPACK_IMPORTED_MODULE_118__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/open-shift/open-shift.component */ "KWUy");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_plan_overview_plan_overview_component__WEBPACK_IMPORTED_MODULE_119__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/plan-overview/plan-overview.component */ "UEAd");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_120__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/plan-shift-header/plan-shift-header.component */ "SD5B");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_plan_shift_component__WEBPACK_IMPORTED_MODULE_121__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/plan-shift.component */ "Az0T");
/* harmony import */ var _pages_operations_shift_scheduler_plan_shift_staffing_staffing_component__WEBPACK_IMPORTED_MODULE_122__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-shift/staffing/staffing.component */ "rFwA");
/* harmony import */ var _pages_operations_shift_scheduler_timesheet_attendance_attendance_component__WEBPACK_IMPORTED_MODULE_123__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/timesheet/attendance/attendance.component */ "EFB0");
/* harmony import */ var _pages_operations_shift_scheduler_timesheet_timesheet_data_timesheet_data_component__WEBPACK_IMPORTED_MODULE_124__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/timesheet/timesheet-data/timesheet-data.component */ "up7o");
/* harmony import */ var _pages_operations_shift_scheduler_timesheet_timesheet_lookup_timesheet_lookup_component__WEBPACK_IMPORTED_MODULE_125__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/timesheet/timesheet-lookup/timesheet-lookup.component */ "qllb");
/* harmony import */ var _pages_operations_shift_scheduler_timesheet_timesheet_overview_timesheet_overview_component__WEBPACK_IMPORTED_MODULE_126__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/timesheet/timesheet-overview/timesheet-overview.component */ "BB5t");
/* harmony import */ var _pages_operations_shift_scheduler_timesheet_timesheet_component__WEBPACK_IMPORTED_MODULE_127__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/timesheet/timesheet.component */ "k7Iq");
/* harmony import */ var _pages_operations_shift_scheduler_view_booking_booking_booking_component__WEBPACK_IMPORTED_MODULE_128__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/view-booking/booking/booking.component */ "Q/FD");
/* harmony import */ var _pages_operations_shift_scheduler_view_booking_view_booking_overview_view_booking_overview_component__WEBPACK_IMPORTED_MODULE_129__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/view-booking/view-booking-overview/view-booking-overview.component */ "hwqe");
/* harmony import */ var _pages_operations_shift_scheduler_view_booking_view_booking_component__WEBPACK_IMPORTED_MODULE_130__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/view-booking/view-booking.component */ "IIps");
/* harmony import */ var _pages_operations_shift_scheduler_view_shift_view_shift_component__WEBPACK_IMPORTED_MODULE_131__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/view-shift/view-shift.component */ "RndP");
/* harmony import */ var _pages_users_locked_account_lock_account_overview_lock_account_overview_component__WEBPACK_IMPORTED_MODULE_132__ = __webpack_require__(/*! ./pages/users/locked-account/lock-account-overview/lock-account-overview.component */ "9DX1");
/* harmony import */ var _pages_users_locked_account_locked_account_component__WEBPACK_IMPORTED_MODULE_133__ = __webpack_require__(/*! ./pages/users/locked-account/locked-account.component */ "TlY0");
/* harmony import */ var _pages_users_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_134__ = __webpack_require__(/*! ./pages/users/reset-password/reset-password.component */ "EHWJ");
/* harmony import */ var _pages_users_reset_password_rest_password_overview_rest_password_overview_component__WEBPACK_IMPORTED_MODULE_135__ = __webpack_require__(/*! ./pages/users/reset-password/rest-password-overview/rest-password-overview.component */ "sm+T");
/* harmony import */ var _pages_system_settings_integration_logs_integration_logs_component__WEBPACK_IMPORTED_MODULE_136__ = __webpack_require__(/*! ./pages/system-settings/integration-logs/integration-logs.component */ "6/Fc");
/* harmony import */ var _pages_communication_news_events_logs_logs_component__WEBPACK_IMPORTED_MODULE_137__ = __webpack_require__(/*! ./pages/communication/news&events-logs/logs.component */ "kC6w");
/* harmony import */ var _pages_communication_news_events_logs_post_logs_post_logs_component__WEBPACK_IMPORTED_MODULE_138__ = __webpack_require__(/*! ./pages/communication/news&events-logs/post-logs/post-logs.component */ "P9lB");
/* harmony import */ var _zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_139__ = __webpack_require__(/*! @zxing/ngx-scanner */ "IyRd");
/* harmony import */ var ng2_charts__WEBPACK_IMPORTED_MODULE_140__ = __webpack_require__(/*! ng2-charts */ "LPYB");
/* harmony import */ var _pages_operations_shift_scheduler_manage_shift_manage_overview_manage_overview_component__WEBPACK_IMPORTED_MODULE_141__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-shift/manage-overview/manage-overview.component */ "IrbV");
/* harmony import */ var _pages_auth_terms_and_conditions_terms_and_conditions_component__WEBPACK_IMPORTED_MODULE_142__ = __webpack_require__(/*! ./pages/auth/terms-and-conditions/terms-and-conditions.component */ "uA7q");
/* harmony import */ var _pages_auth_support_support_component__WEBPACK_IMPORTED_MODULE_143__ = __webpack_require__(/*! ./pages/auth/support/support.component */ "UICD");
/* harmony import */ var _pages_system_settings_company_setup_my_page_my_page_component__WEBPACK_IMPORTED_MODULE_144__ = __webpack_require__(/*! ./pages/system-settings/company-setup/my-page/my-page.component */ "pwIj");
/* harmony import */ var _pages_system_settings_company_setup_point_system_point_system_component__WEBPACK_IMPORTED_MODULE_145__ = __webpack_require__(/*! ./pages/system-settings/company-setup/point-system/point-system.component */ "XUB3");
/* harmony import */ var _pages_system_settings_company_setup_others_others_component__WEBPACK_IMPORTED_MODULE_146__ = __webpack_require__(/*! ./pages/system-settings/company-setup/others/others.component */ "Rcuu");
/* harmony import */ var angular_calendar__WEBPACK_IMPORTED_MODULE_147__ = __webpack_require__(/*! angular-calendar */ "kRoH");
/* harmony import */ var angular_calendar_date_adapters_date_fns__WEBPACK_IMPORTED_MODULE_148__ = __webpack_require__(/*! angular-calendar/date-adapters/date-fns */ "L/mj");
/* harmony import */ var _pages_admin_users_ops_group_ops_edit_ops_edit_component__WEBPACK_IMPORTED_MODULE_149__ = __webpack_require__(/*! ./pages/admin/users/ops-group/ops-edit/ops-edit.component */ "Jev5");
/* harmony import */ var _pages_communication_manage_events_events_manage_events_manage_component__WEBPACK_IMPORTED_MODULE_150__ = __webpack_require__(/*! ./pages/communication/manage-events/events-manage/events-manage.component */ "2HCa");
/* harmony import */ var _pages_system_settings_company_setup_leavemng_skillset_leavemng_skillset_component__WEBPACK_IMPORTED_MODULE_151__ = __webpack_require__(/*! ./pages/system-settings/company-setup/leavemng-skillset/leavemng-skillset.component */ "rIb0");
/* harmony import */ var _pages_notification_notification_component__WEBPACK_IMPORTED_MODULE_152__ = __webpack_require__(/*! ./pages/notification/notification.component */ "FU8Z");
/* harmony import */ var _pages_notification_schedule_schedule_component__WEBPACK_IMPORTED_MODULE_153__ = __webpack_require__(/*! ./pages/notification/schedule/schedule.component */ "dvcu");
/* harmony import */ var _pages_notification_pushed_pushed_component__WEBPACK_IMPORTED_MODULE_154__ = __webpack_require__(/*! ./pages/notification/pushed/pushed.component */ "o1st");
/* harmony import */ var _pages_notification_create_create_component__WEBPACK_IMPORTED_MODULE_155__ = __webpack_require__(/*! ./pages/notification/create/create.component */ "5JNx");
/* harmony import */ var angular_datatables__WEBPACK_IMPORTED_MODULE_156__ = __webpack_require__(/*! angular-datatables */ "njyG");
/* harmony import */ var _pages_human_resource_leave_balloting_view_ballot_view_ballot_component__WEBPACK_IMPORTED_MODULE_157__ = __webpack_require__(/*! ./pages/human-resource/leave-balloting/view-ballot/view-ballot.component */ "qm94");
/* harmony import */ var _pages_operations_setup_bu_shift_setup_add_map_setup_add_map_setup_component__WEBPACK_IMPORTED_MODULE_158__ = __webpack_require__(/*! ./pages/operations/setup/bu-shift-setup/add-map-setup/add-map-setup.component */ "1IT0");
/* harmony import */ var _agm_core__WEBPACK_IMPORTED_MODULE_159__ = __webpack_require__(/*! @agm/core */ "pxUr");
/* harmony import */ var _pages_admin_users_facial_id_facial_overview_facial_overview_component__WEBPACK_IMPORTED_MODULE_160__ = __webpack_require__(/*! ./pages/admin/users/facial-id/facial-overview/facial-overview.component */ "5IPE");
/* harmony import */ var ngx_webcam__WEBPACK_IMPORTED_MODULE_161__ = __webpack_require__(/*! ngx-webcam */ "QKVY");
/* harmony import */ var _pages_admin_users_facial_id_facial_edit_facial_edit_component__WEBPACK_IMPORTED_MODULE_162__ = __webpack_require__(/*! ./pages/admin/users/facial-id/facial-edit/facial-edit.component */ "MAuU");
/* harmony import */ var ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_163__ = __webpack_require__(/*! ngx-skeleton-loader */ "xJkR");
/* harmony import */ var _pages_central_builder_forms_view_forms_view_forms_component__WEBPACK_IMPORTED_MODULE_164__ = __webpack_require__(/*! ./pages/central-builder/forms/view-forms/view-forms.component */ "3y/P");
/* harmony import */ var _pages_central_builder_my_forms_my_forms_view_my_forms_view_component__WEBPACK_IMPORTED_MODULE_165__ = __webpack_require__(/*! ./pages/central-builder/my-forms/my-forms-view/my-forms-view.component */ "oImM");
/* harmony import */ var _pages_central_builder_my_forms_signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_166__ = __webpack_require__(/*! ./pages/central-builder/my-forms/signature-questions/signature-questions.component */ "roDN");
/* harmony import */ var _pages_central_builder_my_forms_view_view_component__WEBPACK_IMPORTED_MODULE_167__ = __webpack_require__(/*! ./pages/central-builder/my-forms/view/view.component */ "ZFtY");
/* harmony import */ var _pages_auth_password_expired_password_expired_component__WEBPACK_IMPORTED_MODULE_168__ = __webpack_require__(/*! ./pages/auth/password-expired/password-expired.component */ "TR14");
/* harmony import */ var _pages_central_builder_forms_form_manage_form_manage_edit_form_manage_edit_component__WEBPACK_IMPORTED_MODULE_169__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/form-manage-edit/form-manage-edit.component */ "mD8N");
/* harmony import */ var _techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_170__ = __webpack_require__(/*! @techiediaries/ngx-qrcode */ "hiuq");
/* harmony import */ var _pages_central_builder_forms_form_manage_admin_question_form_admin_question_form_component__WEBPACK_IMPORTED_MODULE_171__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/admin-question-form/admin-question-form.component */ "X1Sg");
/* harmony import */ var _pages_auth_welcomepage_welcomepage_component__WEBPACK_IMPORTED_MODULE_172__ = __webpack_require__(/*! ./pages/auth/welcomepage/welcomepage.component */ "f9+U");
/* harmony import */ var _shared_token_interceptor_auth_interceptor_service__WEBPACK_IMPORTED_MODULE_173__ = __webpack_require__(/*! ../shared/token-interceptor/auth-interceptor.service */ "CrOV");
/* harmony import */ var _pages_operations_setup_service_setup_service_setup_component__WEBPACK_IMPORTED_MODULE_174__ = __webpack_require__(/*! ./pages/operations/setup/service-setup/service-setup.component */ "6VmK");
/* harmony import */ var _pages_operations_setup_service_setup_service_setup_overview_service_setup_overview_component__WEBPACK_IMPORTED_MODULE_175__ = __webpack_require__(/*! ./pages/operations/setup/service-setup/service-setup-overview/service-setup-overview.component */ "yOpY");
/* harmony import */ var _pages_operations_shift_scheduler_plan_service_plan_service_component__WEBPACK_IMPORTED_MODULE_176__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-service/plan-service.component */ "cd1d");
/* harmony import */ var _pages_operations_shift_scheduler_manage_service_manage_service_component__WEBPACK_IMPORTED_MODULE_177__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-service/manage-service.component */ "rJsq");
/* harmony import */ var _pages_operations_shift_scheduler_plan_service_create_service_create_service_component__WEBPACK_IMPORTED_MODULE_178__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-service/create-service/create-service.component */ "YxiC");
/* harmony import */ var _pages_central_builder_forms_form_manage_dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_179__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/dynamic-table-form/dynamic-table-form */ "EGs8");
/* harmony import */ var _pages_central_builder_forms_form_manage_stats_display_stats_display__WEBPACK_IMPORTED_MODULE_180__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/stats-display/stats-display */ "VysZ");
/* harmony import */ var _pages_central_builder_forms_form_manage_filter_display_filter_display__WEBPACK_IMPORTED_MODULE_181__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/filter-display/filter-display */ "cGxm");
/* harmony import */ var _pages_central_builder_forms_form_manage_edit_response_edit_response__WEBPACK_IMPORTED_MODULE_182__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/edit-response/edit-response */ "DZS5");
/* harmony import */ var _pages_central_builder_forms_form_manage_admin_create_indent_admin_create_indent__WEBPACK_IMPORTED_MODULE_183__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/admin-create-indent/admin-create-indent */ "tx93");
/* harmony import */ var _pages_central_builder_forms_form_manage_indent_draft_list_indent_draft_list__WEBPACK_IMPORTED_MODULE_184__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/indent-draft-list/indent-draft-list */ "T5ea");
/* harmony import */ var ngx_pagination__WEBPACK_IMPORTED_MODULE_185__ = __webpack_require__(/*! ngx-pagination */ "oOf3");
/* harmony import */ var _pages_central_builder_forms_form_manage_admin_form_logs_admin_form_logs__WEBPACK_IMPORTED_MODULE_186__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/admin-form-logs/admin-form-logs */ "G/06");
/* harmony import */ var _pages_operations_shift_scheduler_manage_service_manage_service_tab_manage_service_tab_component__WEBPACK_IMPORTED_MODULE_187__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-service/manage-service-tab/manage-service-tab.component */ "psV7");
/* harmony import */ var _pages_operations_shift_scheduler_plan_service_plan_service_logs_plan_service_logs_component__WEBPACK_IMPORTED_MODULE_188__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/plan-service/plan-service-logs/plan-service-logs.component */ "MQkD");
/* harmony import */ var _pages_operations_shift_scheduler_manage_service_manage_service_logs_manage_service_logs_component__WEBPACK_IMPORTED_MODULE_189__ = __webpack_require__(/*! ./pages/operations/shift-scheduler/manage-service/manage-service-logs/manage-service-logs.component */ "7XWF");
/* harmony import */ var _pages_admin_users_manage_transport_manage_transport_component__WEBPACK_IMPORTED_MODULE_190__ = __webpack_require__(/*! ./pages/admin/users/manage-transport/manage-transport.component */ "Px+v");
/* harmony import */ var _pages_central_builder_forms_form_manage_dynamic_table_form_workflow_workflow_status_modal_component__WEBPACK_IMPORTED_MODULE_191__ = __webpack_require__(/*! ./pages/central-builder/forms/form-manage/dynamic-table-form/workflow/workflow-status-modal.component */ "dB0Z");
class UsersModule {
}
UsersModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: UsersModule });
UsersModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function UsersModule_Factory(t) { return new (t || UsersModule)(); }, providers: [
_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_11__["AuthService"],
_guards_auth_guard__WEBPACK_IMPORTED_MODULE_10__["AuthGuard"],
_angular_common__WEBPACK_IMPORTED_MODULE_1__["DatePipe"],
_shared_token_interceptor_auth_interceptor_service__WEBPACK_IMPORTED_MODULE_173__["authInterceptorProviders"]
], imports: [[
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_users_routing_module__WEBPACK_IMPORTED_MODULE_80__["UserRoutingModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"],
_shared_shared_module__WEBPACK_IMPORTED_MODULE_7__["SharedModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__["NgSelectModule"],
ng2_date_picker__WEBPACK_IMPORTED_MODULE_20__["DpDatePickerModule"],
ngx_image_cropper__WEBPACK_IMPORTED_MODULE_15__["ImageCropperModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["ReactiveFormsModule"],
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_19__["NgxIntlTelInputModule"],
ng2_charts__WEBPACK_IMPORTED_MODULE_140__["ChartsModule"],
_zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_139__["ZXingScannerModule"],
ngx_webcam__WEBPACK_IMPORTED_MODULE_161__["WebcamModule"],
_agm_core__WEBPACK_IMPORTED_MODULE_159__["AgmCoreModule"].forRoot({
apiKey: 'AIzaSyB2_gxfxDXf2CC7Zeq9w3JpzTkydW_bn4Y',
libraries: ['places'],
}),
angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_84__["FroalaEditorModule"].forRoot(),
angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_84__["FroalaViewModule"].forRoot(),
angular_calendar__WEBPACK_IMPORTED_MODULE_147__["CalendarModule"].forRoot({
provide: angular_calendar__WEBPACK_IMPORTED_MODULE_147__["DateAdapter"],
useFactory: angular_calendar_date_adapters_date_fns__WEBPACK_IMPORTED_MODULE_148__["adapterFactory"],
}),
angular_datatables__WEBPACK_IMPORTED_MODULE_156__["DataTablesModule"],
ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_163__["NgxSkeletonLoaderModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["ReactiveFormsModule"],
_techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_170__["NgxQRCodeModule"],
ngx_pagination__WEBPACK_IMPORTED_MODULE_185__["NgxPaginationModule"]
]] });
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](UsersModule, { declarations: [_pages_auth_login_login_component__WEBPACK_IMPORTED_MODULE_27__["LoginComponent"],
_layout_sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_2__["SidebarComponent"],
_layout_header_header_component__WEBPACK_IMPORTED_MODULE_3__["HeaderComponent"],
_pages_home_home_component__WEBPACK_IMPORTED_MODULE_8__["HomeComponent"],
_layout_design_design_component__WEBPACK_IMPORTED_MODULE_4__["DesignComponent"],
_pages_system_settings_bussiness_unit_bussiness_unit_component__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitComponent"],
_pages_system_settings_user_roles_user_roles_component__WEBPACK_IMPORTED_MODULE_12__["UserRolesComponent"],
_pages_system_settings_bussiness_unit_bussiness_unit_overview_bussiness_unit_overview_component__WEBPACK_IMPORTED_MODULE_14__["BussinessUnitOverviewComponent"],
_pages_system_settings_company_setup_password_password_component__WEBPACK_IMPORTED_MODULE_16__["PasswordComponent"],
_pages_system_settings_company_setup_company_setup_component__WEBPACK_IMPORTED_MODULE_17__["CompanySetupComponent"],
_pages_system_settings_custom_fields_custom_fields_component__WEBPACK_IMPORTED_MODULE_18__["CustomFieldsComponent"],
_pages_users_view_users_view_users_component__WEBPACK_IMPORTED_MODULE_25__["ViewUsersComponent"],
_pages_users_create_users_create_users_component__WEBPACK_IMPORTED_MODULE_26__["CreateUsersComponent"],
_pages_users_create_users_users_overview_users_overview_component__WEBPACK_IMPORTED_MODULE_23__["UsersOverviewComponent"],
_pages_users_locked_account_lock_account_overview_lock_account_overview_component__WEBPACK_IMPORTED_MODULE_132__["LockAccountOverviewComponent"],
_pages_users_locked_account_locked_account_component__WEBPACK_IMPORTED_MODULE_133__["LockedAccountComponent"],
_pages_users_reset_password_rest_password_overview_rest_password_overview_component__WEBPACK_IMPORTED_MODULE_135__["RestPasswordOverviewComponent"],
_pages_users_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_134__["ResetPasswordComponent"],
_pages_auth_forget_password_forget_password_component__WEBPACK_IMPORTED_MODULE_21__["ForgetPasswordComponent"],
_pages_users_view_users_user_details_user_details_component__WEBPACK_IMPORTED_MODULE_24__["UserDetailsComponent"],
_pages_auth_verify_user_verify_user_component__WEBPACK_IMPORTED_MODULE_22__["VerifyUserComponent"],
_pages_user_profile_user_profile_component__WEBPACK_IMPORTED_MODULE_28__["UserProfileComponent"],
_pages_communication_channel_setup_channel_setup_component__WEBPACK_IMPORTED_MODULE_29__["ChannelSetupComponent"],
_pages_communication_channel_setup_channel_overview_channel_overview_component__WEBPACK_IMPORTED_MODULE_30__["ChannelOverviewComponent"],
_pages_central_builder_question_builder_question_builder_component__WEBPACK_IMPORTED_MODULE_47__["QuestionBuilderComponent"],
_pages_users_create_users_add_edit_users_add_edit_users_component__WEBPACK_IMPORTED_MODULE_79__["AddEditUsersComponent"],
_pages_central_builder_question_builder_overview_overview_component__WEBPACK_IMPORTED_MODULE_31__["OverviewComponent"],
_pages_central_builder_my_forms_my_forms_component__WEBPACK_IMPORTED_MODULE_32__["MyFormsComponent"],
_pages_central_builder_forms_forms_component__WEBPACK_IMPORTED_MODULE_33__["FormsComponent"],
_pages_central_builder_question_builder_question_modal_question_modal_component__WEBPACK_IMPORTED_MODULE_34__["QuestionModalComponent"],
_pages_central_builder_question_builder_create_edit_module_create_edit_module_component__WEBPACK_IMPORTED_MODULE_35__["CreateEditModuleComponent"],
_pages_central_builder_forms_forms_overview_forms_overview_component__WEBPACK_IMPORTED_MODULE_36__["FormsOverviewComponent"],
_pages_central_builder_forms_logs_overview_logs_overview_component__WEBPACK_IMPORTED_MODULE_37__["LogsOverviewComponent"],
_pages_central_builder_forms_create_edit_forms_create_edit_forms_component__WEBPACK_IMPORTED_MODULE_38__["CreateEditFormsComponent"],
_pages_system_settings_company_setup_home_page_home_page_component__WEBPACK_IMPORTED_MODULE_39__["HomePageComponent"],
_pages_system_settings_company_setup_quick_links_quick_links_component__WEBPACK_IMPORTED_MODULE_74__["QuickLinksComponent"],
_pages_system_settings_company_setup_usefull_link_usefull_link_component__WEBPACK_IMPORTED_MODULE_40__["UsefullLinkComponent"],
_pages_central_builder_forms_form_manage_form_manage_component__WEBPACK_IMPORTED_MODULE_41__["FormManageComponent"],
_pages_central_builder_my_forms_my_forms_overview_my_forms_overview_component__WEBPACK_IMPORTED_MODULE_42__["MyFormsOverviewComponent"],
_pages_communication_notification_my_notification_my_notification_component__WEBPACK_IMPORTED_MODULE_43__["MyNotificationComponent"],
_pages_communication_notification_manage_notification_manage_notification_component__WEBPACK_IMPORTED_MODULE_44__["ManageNotificationComponent"],
_pages_communication_notification_manage_notification_create_edit_notification_create_edit_notification_component__WEBPACK_IMPORTED_MODULE_45__["CreateEditNotificationComponent"],
_pages_communication_notification_manage_notification_notification_overview_notification_overview_component__WEBPACK_IMPORTED_MODULE_46__["NotificationOverviewComponent"],
_pages_communication_notification_my_notification_unread_unread_component__WEBPACK_IMPORTED_MODULE_48__["UnreadComponent"],
_pages_communication_notification_my_notification_acknowledged_acknowledged_component__WEBPACK_IMPORTED_MODULE_49__["AcknowledgedComponent"],
_pages_communication_notification_manage_notification_view_notification_view_notification_component__WEBPACK_IMPORTED_MODULE_50__["ViewNotificationComponent"],
_pages_communication_board_setup_board_setup_component__WEBPACK_IMPORTED_MODULE_51__["BoardSetupComponent"],
_pages_communication_board_setup_boards_overview_boards_overview_component__WEBPACK_IMPORTED_MODULE_52__["BoardsOverviewComponent"],
_pages_communication_board_setup_questionnaire_questionnaire_component__WEBPACK_IMPORTED_MODULE_53__["QuestionnaireComponent"],
_pages_communication_board_setup_reported_comments_reported_comments_component__WEBPACK_IMPORTED_MODULE_54__["ReportedCommentsComponent"],
_pages_communication_board_setup_reported_posts_reported_posts_component__WEBPACK_IMPORTED_MODULE_55__["ReportedPostsComponent"],
_pages_communication_board_setup_create_edit_boards_create_edit_boards_component__WEBPACK_IMPORTED_MODULE_56__["CreateEditBoardsComponent"],
_pages_communication_board_setup_emoji_component_emoji_component_component__WEBPACK_IMPORTED_MODULE_57__["EmojiComponentComponent"],
_pages_communication_manage_news_manage_news_component__WEBPACK_IMPORTED_MODULE_58__["ManageNewsComponent"],
_pages_communication_manage_news_news_overview_news_overview_component__WEBPACK_IMPORTED_MODULE_59__["NewsOverviewComponent"],
_pages_communication_manage_news_create_edit_managenews_create_edit_managenews_component__WEBPACK_IMPORTED_MODULE_60__["CreateEditManagenewsComponent"],
_pages_communication_manage_news_news_reported_comments_news_reported_comments_component__WEBPACK_IMPORTED_MODULE_61__["NewsReportedCommentsComponent"],
_pages_communication_manage_news_news_reported_posts_news_reported_posts_component__WEBPACK_IMPORTED_MODULE_62__["NewsReportedPostsComponent"],
_pages_communication_board_setup_boards_overview_view_board_view_board_component__WEBPACK_IMPORTED_MODULE_63__["ViewBoardComponent"],
_pages_communication_manage_events_manage_events_component__WEBPACK_IMPORTED_MODULE_64__["ManageEventsComponent"],
_pages_communication_manage_events_create_edit_events_create_edit_events_component__WEBPACK_IMPORTED_MODULE_65__["CreateEditEventsComponent"],
_pages_communication_manage_events_events_overview_events_overview_component__WEBPACK_IMPORTED_MODULE_66__["EventsOverviewComponent"],
_pages_communication_manage_events_events_reported_comments_events_reported_comments_component__WEBPACK_IMPORTED_MODULE_67__["EventsReportedCommentsComponent"],
_pages_communication_manage_events_events_reported_post_events_reported_post_component__WEBPACK_IMPORTED_MODULE_68__["EventsReportedPostComponent"],
_pages_communication_manage_news_news_view_news_view_component__WEBPACK_IMPORTED_MODULE_69__["NewsViewComponent"],
_pages_communication_manage_events_events_view_events_view_component__WEBPACK_IMPORTED_MODULE_70__["EventsViewComponent"],
_pages_communication_manage_events_events_manage_events_manage_component__WEBPACK_IMPORTED_MODULE_150__["EventsManageComponent"],
_pages_gamification_challenges_challenges_component__WEBPACK_IMPORTED_MODULE_71__["ChallengesComponent"],
_pages_gamification_Redemption_List_Redemption_List_component__WEBPACK_IMPORTED_MODULE_78__["RedemptionListComponent"],
_pages_gamification_challenges_add_edit_challenges_add_edit_challenges_component__WEBPACK_IMPORTED_MODULE_72__["AddEditChallengesComponent"],
_pages_gamification_challenges_challenges_overview_challenges_overview_component__WEBPACK_IMPORTED_MODULE_77__["ChallengesOverviewComponent"],
_pages_gamification_challenges_challenges_log_challenges_log_component__WEBPACK_IMPORTED_MODULE_76__["ChallengesLogComponent"],
_pages_communication_my_news_and_events_my_news_and_events_component__WEBPACK_IMPORTED_MODULE_73__["MyNewsAndEventsComponent"],
_pages_gamification_challenges_challenges_overview_manage_challenges_manage_challenges_component__WEBPACK_IMPORTED_MODULE_75__["ManageChallengesComponent"],
_pages_communication_news_events_logs_logs_component__WEBPACK_IMPORTED_MODULE_137__["LogsComponent"],
_pages_communication_news_events_logs_post_logs_post_logs_component__WEBPACK_IMPORTED_MODULE_138__["PostLogsComponent"],
_pages_gamification_challenges_challenges_overview_view_challanges_view_challanges_component__WEBPACK_IMPORTED_MODULE_81__["ViewChallangesComponent"],
_pages_operations_setup_bu_shift_setup_bu_shift_setup_component__WEBPACK_IMPORTED_MODULE_105__["BuShiftSetupComponent"],
_pages_operations_setup_bu_shift_setup_bu_shift_setup_overview_bu_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_104__["BuShiftSetupOverviewComponent"],
_pages_operations_setup_shift_scheme_shift_scheme_overview_shift_scheme_overview_component__WEBPACK_IMPORTED_MODULE_108__["ShiftSchemeOverviewComponent"],
_pages_operations_setup_shift_scheme_shift_scheme_logs_shift_scheme_logs_component__WEBPACK_IMPORTED_MODULE_107__["ShiftSchemeLogsComponent"],
_pages_operations_setup_shift_scheme_shift_scheme_edit_shift_scheme_edit_component__WEBPACK_IMPORTED_MODULE_106__["ShiftSchemeEditComponent"],
_pages_operations_setup_shift_scheme_shift_scheme_component__WEBPACK_IMPORTED_MODULE_109__["ShiftSchemeComponent"],
_pages_operations_setup_user_shift_setup_user_shift_setup_component__WEBPACK_IMPORTED_MODULE_111__["UserShiftSetupComponent"],
_pages_operations_setup_user_shift_setup_user_shift_setup_overview_user_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_110__["UserShiftSetupOverviewComponent"],
_pages_operations_shift_scheduler_plan_shift_plan_shift_component__WEBPACK_IMPORTED_MODULE_121__["PlanShiftComponent"],
_pages_operations_shift_scheduler_plan_shift_open_shift_open_shift_component__WEBPACK_IMPORTED_MODULE_118__["OpenShiftComponent"],
_pages_operations_shift_scheduler_plan_shift_plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_120__["PlanShiftHeaderComponent"],
_pages_operations_shift_scheduler_plan_shift_log_assign_log_assign_component__WEBPACK_IMPORTED_MODULE_116__["LogAssignComponent"],
_pages_operations_shift_scheduler_plan_shift_log_open_log_open_component__WEBPACK_IMPORTED_MODULE_117__["LogOpenComponent"],
_pages_operations_shift_scheduler_plan_shift_assign_shift_assign_shift_component__WEBPACK_IMPORTED_MODULE_115__["AssignShiftComponent"],
_pages_operations_shift_scheduler_plan_shift_staffing_staffing_component__WEBPACK_IMPORTED_MODULE_122__["StaffingComponent"],
_pages_operations_shift_scheduler_plan_shift_plan_overview_plan_overview_component__WEBPACK_IMPORTED_MODULE_119__["PlanOverviewComponent"],
_pages_operations_shift_scheduler_manage_shift_manage_shift_component__WEBPACK_IMPORTED_MODULE_112__["ManageShiftComponent"],
_pages_operations_shift_scheduler_manage_shift_manage_manage_component__WEBPACK_IMPORTED_MODULE_113__["ManageComponent"],
_pages_operations_shift_scheduler_manage_service_manage_service_tab_manage_service_tab_component__WEBPACK_IMPORTED_MODULE_187__["ManageServiceTabComponent"],
_pages_operations_shift_scheduler_manage_shift_status_status_component__WEBPACK_IMPORTED_MODULE_114__["StatusComponent"],
_pages_operations_shift_scheduler_view_shift_view_shift_component__WEBPACK_IMPORTED_MODULE_131__["ViewShiftComponent"],
_pages_operations_shift_scheduler_view_booking_view_booking_component__WEBPACK_IMPORTED_MODULE_130__["ViewBookingComponent"],
_pages_operations_shift_scheduler_view_booking_booking_booking_component__WEBPACK_IMPORTED_MODULE_128__["BookingComponent"],
_pages_operations_shift_scheduler_view_booking_view_booking_overview_view_booking_overview_component__WEBPACK_IMPORTED_MODULE_129__["ViewBookingOverviewComponent"],
_pages_operations_shift_scheduler_timesheet_timesheet_component__WEBPACK_IMPORTED_MODULE_127__["TimesheetComponent"],
_pages_operations_shift_scheduler_timesheet_attendance_attendance_component__WEBPACK_IMPORTED_MODULE_123__["AttendanceComponent"],
_pages_operations_shift_scheduler_timesheet_timesheet_data_timesheet_data_component__WEBPACK_IMPORTED_MODULE_124__["TimesheetDataComponent"],
_pages_operations_shift_scheduler_timesheet_timesheet_lookup_timesheet_lookup_component__WEBPACK_IMPORTED_MODULE_125__["TimesheetLookupComponent"],
_pages_operations_shift_scheduler_timesheet_timesheet_overview_timesheet_overview_component__WEBPACK_IMPORTED_MODULE_126__["TimesheetOverviewComponent"],
_pages_operations_report_list_shift_list_shift_component__WEBPACK_IMPORTED_MODULE_102__["ListShiftComponent"],
_pages_operations_report_list_booking_list_booking_component__WEBPACK_IMPORTED_MODULE_100__["ListBookingComponent"],
_pages_operations_report_list_cancellation_list_cancellation_component__WEBPACK_IMPORTED_MODULE_101__["ListCancellationComponent"],
_pages_operations_report_list_user_list_user_component__WEBPACK_IMPORTED_MODULE_103__["ListUserComponent"],
_pages_human_resource_leave_scheme_leave_scheme_component__WEBPACK_IMPORTED_MODULE_99__["LeaveSchemeComponent"],
_pages_human_resource_leave_scheme_leave_overview_leave_overview_component__WEBPACK_IMPORTED_MODULE_98__["LeaveOverviewComponent"],
_pages_human_resource_leave_scheme_leave_grp_overview_leave_grp_overview_component__WEBPACK_IMPORTED_MODULE_97__["LeaveGrpOverviewComponent"],
_pages_human_resource_leave_balloting_leave_balloting_component__WEBPACK_IMPORTED_MODULE_90__["LeaveBallotingComponent"],
_pages_human_resource_leave_planner_leave_planner_component__WEBPACK_IMPORTED_MODULE_94__["LeavePlannerComponent"],
_pages_human_resource_leave_balloting_create_ballot_create_ballot_component__WEBPACK_IMPORTED_MODULE_89__["CreateBallotComponent"],
_pages_human_resource_leave_balloting_manage_ballot_manage_ballot_component__WEBPACK_IMPORTED_MODULE_91__["ManageBallotComponent"],
_pages_human_resource_leave_planner_dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_93__["DashboardComponent"],
_pages_human_resource_leave_planner_approve_approve_component__WEBPACK_IMPORTED_MODULE_92__["ApproveComponent"],
_pages_human_resource_leave_planner_swap_restrictions_swap_restrictions_component__WEBPACK_IMPORTED_MODULE_96__["SwapRestrictionsComponent"],
_pages_human_resource_leave_planner_ops_leave_quota_ops_leave_quota_component__WEBPACK_IMPORTED_MODULE_95__["OpsLeaveQuotaComponent"],
_pages_admin_users_facial_id_facial_overview_facial_overview_component__WEBPACK_IMPORTED_MODULE_160__["FacialOverviewComponent"],
_pages_admin_users_facial_id_facial_id_component__WEBPACK_IMPORTED_MODULE_85__["FacialIdComponent"],
_pages_admin_users_ops_group_ops_group_component__WEBPACK_IMPORTED_MODULE_87__["OpsGroupComponent"],
_pages_admin_users_ops_group_ops_edit_ops_edit_component__WEBPACK_IMPORTED_MODULE_149__["OpsEditComponent"],
_pages_admin_users_ops_group_ops_overview_ops_overview_component__WEBPACK_IMPORTED_MODULE_88__["OpsOverviewComponent"],
_pages_admin_users_ops_group_ops_add_staff_ops_add_staff_component__WEBPACK_IMPORTED_MODULE_86__["OpsAddStaffComponent"],
_pages_system_settings_integration_logs_integration_logs_component__WEBPACK_IMPORTED_MODULE_136__["IntegrationLogsComponent"],
_pages_operations_shift_scheduler_manage_shift_manage_overview_manage_overview_component__WEBPACK_IMPORTED_MODULE_141__["ManageOverviewComponent"],
_pages_auth_terms_and_conditions_terms_and_conditions_component__WEBPACK_IMPORTED_MODULE_142__["TermsAndConditionsComponent"],
_pages_auth_support_support_component__WEBPACK_IMPORTED_MODULE_143__["SupportComponent"],
_pages_system_settings_company_setup_point_system_point_system_component__WEBPACK_IMPORTED_MODULE_145__["PointSystemComponent"],
_pages_system_settings_company_setup_my_page_my_page_component__WEBPACK_IMPORTED_MODULE_144__["MyPageComponent"],
_pages_system_settings_company_setup_others_others_component__WEBPACK_IMPORTED_MODULE_146__["OthersComponent"],
_pages_system_settings_company_setup_leavemng_skillset_leavemng_skillset_component__WEBPACK_IMPORTED_MODULE_151__["LeavemngSkillsetComponent"],
_pages_notification_notification_component__WEBPACK_IMPORTED_MODULE_152__["NotificationComponent"],
_pages_notification_schedule_schedule_component__WEBPACK_IMPORTED_MODULE_153__["ScheduleComponent"],
_pages_notification_pushed_pushed_component__WEBPACK_IMPORTED_MODULE_154__["PushedComponent"],
_pages_notification_create_create_component__WEBPACK_IMPORTED_MODULE_155__["CreateComponent"],
_pages_human_resource_leave_balloting_view_ballot_view_ballot_component__WEBPACK_IMPORTED_MODULE_157__["ViewBallotComponent"],
_pages_operations_setup_bu_shift_setup_add_map_setup_add_map_setup_component__WEBPACK_IMPORTED_MODULE_158__["AddMapSetupComponent"],
_pages_admin_users_facial_id_facial_edit_facial_edit_component__WEBPACK_IMPORTED_MODULE_162__["FacialEditComponent"],
_pages_central_builder_forms_view_forms_view_forms_component__WEBPACK_IMPORTED_MODULE_164__["ViewFormsComponent"],
_pages_central_builder_my_forms_my_forms_view_my_forms_view_component__WEBPACK_IMPORTED_MODULE_165__["MyFormsViewComponent"],
_pages_central_builder_my_forms_signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_166__["SignatureQuestionsComponent"],
_pages_central_builder_my_forms_view_view_component__WEBPACK_IMPORTED_MODULE_167__["ViewComponent"],
_pages_auth_password_expired_password_expired_component__WEBPACK_IMPORTED_MODULE_168__["PasswordExpiredComponent"],
_pages_central_builder_forms_form_manage_form_manage_edit_form_manage_edit_component__WEBPACK_IMPORTED_MODULE_169__["FormManageEditComponent"],
_pages_central_builder_forms_form_manage_admin_question_form_admin_question_form_component__WEBPACK_IMPORTED_MODULE_171__["AdminQuestionFormComponent"],
_pages_auth_welcomepage_welcomepage_component__WEBPACK_IMPORTED_MODULE_172__["WelcomepageComponent"],
_pages_operations_setup_service_setup_service_setup_component__WEBPACK_IMPORTED_MODULE_174__["ServiceSetupComponent"],
_pages_operations_setup_service_setup_service_setup_overview_service_setup_overview_component__WEBPACK_IMPORTED_MODULE_175__["ServiceSetupOverviewComponent"],
_pages_operations_shift_scheduler_plan_service_plan_service_component__WEBPACK_IMPORTED_MODULE_176__["PlanServiceComponent"],
_pages_operations_shift_scheduler_manage_service_manage_service_component__WEBPACK_IMPORTED_MODULE_177__["ManageServiceComponent"],
_pages_operations_shift_scheduler_plan_service_create_service_create_service_component__WEBPACK_IMPORTED_MODULE_178__["CreateServiceComponent"],
_pages_central_builder_forms_form_manage_dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_179__["DynamicTableFormComponent"],
_pages_central_builder_forms_form_manage_stats_display_stats_display__WEBPACK_IMPORTED_MODULE_180__["StatsDisplayComponent"],
_pages_central_builder_forms_form_manage_filter_display_filter_display__WEBPACK_IMPORTED_MODULE_181__["FilterDisplayComponent"],
_pages_central_builder_forms_form_manage_edit_response_edit_response__WEBPACK_IMPORTED_MODULE_182__["EditResponseComponent"],
_pages_central_builder_forms_form_manage_admin_create_indent_admin_create_indent__WEBPACK_IMPORTED_MODULE_183__["AdminCreateIndentComponent"],
_pages_central_builder_forms_form_manage_indent_draft_list_indent_draft_list__WEBPACK_IMPORTED_MODULE_184__["IndentDraftListComponent"],
_pages_central_builder_forms_form_manage_admin_form_logs_admin_form_logs__WEBPACK_IMPORTED_MODULE_186__["AdminFormLogsComponent"],
_pages_operations_shift_scheduler_plan_service_plan_service_logs_plan_service_logs_component__WEBPACK_IMPORTED_MODULE_188__["PlanServiceLogsComponent"],
_pages_operations_shift_scheduler_manage_service_manage_service_logs_manage_service_logs_component__WEBPACK_IMPORTED_MODULE_189__["ManageServiceLogsComponent"],
_pages_admin_users_manage_transport_manage_transport_component__WEBPACK_IMPORTED_MODULE_190__["ManageTransportComponent"],
_pages_central_builder_forms_form_manage_dynamic_table_form_workflow_workflow_status_modal_component__WEBPACK_IMPORTED_MODULE_191__["WorkflowStatusModalComponent"]], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_users_routing_module__WEBPACK_IMPORTED_MODULE_80__["UserRoutingModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"],
_shared_shared_module__WEBPACK_IMPORTED_MODULE_7__["SharedModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__["NgSelectModule"],
ng2_date_picker__WEBPACK_IMPORTED_MODULE_20__["DpDatePickerModule"],
ngx_image_cropper__WEBPACK_IMPORTED_MODULE_15__["ImageCropperModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["ReactiveFormsModule"],
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_19__["NgxIntlTelInputModule"],
ng2_charts__WEBPACK_IMPORTED_MODULE_140__["ChartsModule"],
_zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_139__["ZXingScannerModule"],
ngx_webcam__WEBPACK_IMPORTED_MODULE_161__["WebcamModule"], _agm_core__WEBPACK_IMPORTED_MODULE_159__["AgmCoreModule"], angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_84__["FroalaEditorModule"], angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_84__["FroalaViewModule"], angular_calendar__WEBPACK_IMPORTED_MODULE_147__["CalendarModule"], angular_datatables__WEBPACK_IMPORTED_MODULE_156__["DataTablesModule"],
ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_163__["NgxSkeletonLoaderModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["ReactiveFormsModule"],
_techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_170__["NgxQRCodeModule"],
ngx_pagination__WEBPACK_IMPORTED_MODULE_185__["NgxPaginationModule"]], exports: [_pages_central_builder_forms_form_manage_form_manage_component__WEBPACK_IMPORTED_MODULE_41__["FormManageComponent"],
_pages_central_builder_forms_form_manage_dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_179__["DynamicTableFormComponent"]] }); })();
/*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UsersModule, [{
type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
args: [{
declarations: [
_pages_auth_login_login_component__WEBPACK_IMPORTED_MODULE_27__["LoginComponent"],
_layout_sidebar_sidebar_component__WEBPACK_IMPORTED_MODULE_2__["SidebarComponent"],
_layout_header_header_component__WEBPACK_IMPORTED_MODULE_3__["HeaderComponent"],
_pages_home_home_component__WEBPACK_IMPORTED_MODULE_8__["HomeComponent"],
_layout_design_design_component__WEBPACK_IMPORTED_MODULE_4__["DesignComponent"],
_pages_system_settings_bussiness_unit_bussiness_unit_component__WEBPACK_IMPORTED_MODULE_9__["BussinessUnitComponent"],
_pages_system_settings_user_roles_user_roles_component__WEBPACK_IMPORTED_MODULE_12__["UserRolesComponent"],
_pages_system_settings_bussiness_unit_bussiness_unit_overview_bussiness_unit_overview_component__WEBPACK_IMPORTED_MODULE_14__["BussinessUnitOverviewComponent"],
_pages_system_settings_company_setup_password_password_component__WEBPACK_IMPORTED_MODULE_16__["PasswordComponent"],
_pages_system_settings_company_setup_company_setup_component__WEBPACK_IMPORTED_MODULE_17__["CompanySetupComponent"],
_pages_system_settings_custom_fields_custom_fields_component__WEBPACK_IMPORTED_MODULE_18__["CustomFieldsComponent"],
_pages_users_view_users_view_users_component__WEBPACK_IMPORTED_MODULE_25__["ViewUsersComponent"],
_pages_users_create_users_create_users_component__WEBPACK_IMPORTED_MODULE_26__["CreateUsersComponent"],
_pages_users_create_users_users_overview_users_overview_component__WEBPACK_IMPORTED_MODULE_23__["UsersOverviewComponent"],
_pages_users_locked_account_lock_account_overview_lock_account_overview_component__WEBPACK_IMPORTED_MODULE_132__["LockAccountOverviewComponent"],
_pages_users_locked_account_locked_account_component__WEBPACK_IMPORTED_MODULE_133__["LockedAccountComponent"],
_pages_users_reset_password_rest_password_overview_rest_password_overview_component__WEBPACK_IMPORTED_MODULE_135__["RestPasswordOverviewComponent"],
_pages_users_reset_password_reset_password_component__WEBPACK_IMPORTED_MODULE_134__["ResetPasswordComponent"],
_pages_auth_forget_password_forget_password_component__WEBPACK_IMPORTED_MODULE_21__["ForgetPasswordComponent"],
_pages_users_view_users_user_details_user_details_component__WEBPACK_IMPORTED_MODULE_24__["UserDetailsComponent"],
_pages_auth_verify_user_verify_user_component__WEBPACK_IMPORTED_MODULE_22__["VerifyUserComponent"],
_pages_user_profile_user_profile_component__WEBPACK_IMPORTED_MODULE_28__["UserProfileComponent"],
_pages_communication_channel_setup_channel_setup_component__WEBPACK_IMPORTED_MODULE_29__["ChannelSetupComponent"],
_pages_communication_channel_setup_channel_overview_channel_overview_component__WEBPACK_IMPORTED_MODULE_30__["ChannelOverviewComponent"],
_pages_central_builder_question_builder_question_builder_component__WEBPACK_IMPORTED_MODULE_47__["QuestionBuilderComponent"],
_pages_users_create_users_add_edit_users_add_edit_users_component__WEBPACK_IMPORTED_MODULE_79__["AddEditUsersComponent"],
_pages_central_builder_question_builder_overview_overview_component__WEBPACK_IMPORTED_MODULE_31__["OverviewComponent"],
_pages_central_builder_my_forms_my_forms_component__WEBPACK_IMPORTED_MODULE_32__["MyFormsComponent"],
_pages_central_builder_forms_forms_component__WEBPACK_IMPORTED_MODULE_33__["FormsComponent"],
_pages_central_builder_question_builder_question_modal_question_modal_component__WEBPACK_IMPORTED_MODULE_34__["QuestionModalComponent"],
_pages_central_builder_question_builder_create_edit_module_create_edit_module_component__WEBPACK_IMPORTED_MODULE_35__["CreateEditModuleComponent"],
_pages_central_builder_forms_forms_overview_forms_overview_component__WEBPACK_IMPORTED_MODULE_36__["FormsOverviewComponent"],
_pages_central_builder_forms_logs_overview_logs_overview_component__WEBPACK_IMPORTED_MODULE_37__["LogsOverviewComponent"],
_pages_central_builder_forms_create_edit_forms_create_edit_forms_component__WEBPACK_IMPORTED_MODULE_38__["CreateEditFormsComponent"],
_pages_system_settings_company_setup_home_page_home_page_component__WEBPACK_IMPORTED_MODULE_39__["HomePageComponent"],
_pages_system_settings_company_setup_quick_links_quick_links_component__WEBPACK_IMPORTED_MODULE_74__["QuickLinksComponent"],
_pages_system_settings_company_setup_usefull_link_usefull_link_component__WEBPACK_IMPORTED_MODULE_40__["UsefullLinkComponent"],
_pages_central_builder_forms_form_manage_form_manage_component__WEBPACK_IMPORTED_MODULE_41__["FormManageComponent"],
_pages_central_builder_my_forms_my_forms_overview_my_forms_overview_component__WEBPACK_IMPORTED_MODULE_42__["MyFormsOverviewComponent"],
_pages_communication_notification_my_notification_my_notification_component__WEBPACK_IMPORTED_MODULE_43__["MyNotificationComponent"],
_pages_communication_notification_manage_notification_manage_notification_component__WEBPACK_IMPORTED_MODULE_44__["ManageNotificationComponent"],
_pages_communication_notification_manage_notification_create_edit_notification_create_edit_notification_component__WEBPACK_IMPORTED_MODULE_45__["CreateEditNotificationComponent"],
_pages_communication_notification_manage_notification_notification_overview_notification_overview_component__WEBPACK_IMPORTED_MODULE_46__["NotificationOverviewComponent"],
_pages_communication_notification_my_notification_unread_unread_component__WEBPACK_IMPORTED_MODULE_48__["UnreadComponent"],
_pages_communication_notification_my_notification_acknowledged_acknowledged_component__WEBPACK_IMPORTED_MODULE_49__["AcknowledgedComponent"],
_pages_communication_notification_manage_notification_view_notification_view_notification_component__WEBPACK_IMPORTED_MODULE_50__["ViewNotificationComponent"],
_pages_communication_board_setup_board_setup_component__WEBPACK_IMPORTED_MODULE_51__["BoardSetupComponent"],
_pages_communication_board_setup_boards_overview_boards_overview_component__WEBPACK_IMPORTED_MODULE_52__["BoardsOverviewComponent"],
_pages_communication_board_setup_questionnaire_questionnaire_component__WEBPACK_IMPORTED_MODULE_53__["QuestionnaireComponent"],
_pages_communication_board_setup_reported_comments_reported_comments_component__WEBPACK_IMPORTED_MODULE_54__["ReportedCommentsComponent"],
_pages_communication_board_setup_reported_posts_reported_posts_component__WEBPACK_IMPORTED_MODULE_55__["ReportedPostsComponent"],
_pages_communication_board_setup_create_edit_boards_create_edit_boards_component__WEBPACK_IMPORTED_MODULE_56__["CreateEditBoardsComponent"],
_pages_communication_board_setup_emoji_component_emoji_component_component__WEBPACK_IMPORTED_MODULE_57__["EmojiComponentComponent"],
_pages_communication_manage_news_manage_news_component__WEBPACK_IMPORTED_MODULE_58__["ManageNewsComponent"],
_pages_communication_manage_news_news_overview_news_overview_component__WEBPACK_IMPORTED_MODULE_59__["NewsOverviewComponent"],
_pages_communication_manage_news_create_edit_managenews_create_edit_managenews_component__WEBPACK_IMPORTED_MODULE_60__["CreateEditManagenewsComponent"],
_pages_communication_manage_news_news_reported_comments_news_reported_comments_component__WEBPACK_IMPORTED_MODULE_61__["NewsReportedCommentsComponent"],
_pages_communication_manage_news_news_reported_posts_news_reported_posts_component__WEBPACK_IMPORTED_MODULE_62__["NewsReportedPostsComponent"],
_pages_communication_board_setup_boards_overview_view_board_view_board_component__WEBPACK_IMPORTED_MODULE_63__["ViewBoardComponent"],
_pages_communication_manage_events_manage_events_component__WEBPACK_IMPORTED_MODULE_64__["ManageEventsComponent"],
_pages_communication_manage_events_create_edit_events_create_edit_events_component__WEBPACK_IMPORTED_MODULE_65__["CreateEditEventsComponent"],
_pages_communication_manage_events_events_overview_events_overview_component__WEBPACK_IMPORTED_MODULE_66__["EventsOverviewComponent"],
_pages_communication_manage_events_events_reported_comments_events_reported_comments_component__WEBPACK_IMPORTED_MODULE_67__["EventsReportedCommentsComponent"],
_pages_communication_manage_events_events_reported_post_events_reported_post_component__WEBPACK_IMPORTED_MODULE_68__["EventsReportedPostComponent"],
_pages_communication_manage_news_news_view_news_view_component__WEBPACK_IMPORTED_MODULE_69__["NewsViewComponent"],
_pages_communication_manage_events_events_view_events_view_component__WEBPACK_IMPORTED_MODULE_70__["EventsViewComponent"],
_pages_communication_manage_events_events_manage_events_manage_component__WEBPACK_IMPORTED_MODULE_150__["EventsManageComponent"],
_pages_gamification_challenges_challenges_component__WEBPACK_IMPORTED_MODULE_71__["ChallengesComponent"],
_pages_gamification_Redemption_List_Redemption_List_component__WEBPACK_IMPORTED_MODULE_78__["RedemptionListComponent"],
_pages_gamification_challenges_add_edit_challenges_add_edit_challenges_component__WEBPACK_IMPORTED_MODULE_72__["AddEditChallengesComponent"],
_pages_gamification_challenges_challenges_overview_challenges_overview_component__WEBPACK_IMPORTED_MODULE_77__["ChallengesOverviewComponent"],
_pages_gamification_challenges_challenges_log_challenges_log_component__WEBPACK_IMPORTED_MODULE_76__["ChallengesLogComponent"],
_pages_communication_my_news_and_events_my_news_and_events_component__WEBPACK_IMPORTED_MODULE_73__["MyNewsAndEventsComponent"],
_pages_gamification_challenges_challenges_overview_manage_challenges_manage_challenges_component__WEBPACK_IMPORTED_MODULE_75__["ManageChallengesComponent"],
_pages_communication_news_events_logs_logs_component__WEBPACK_IMPORTED_MODULE_137__["LogsComponent"],
_pages_communication_news_events_logs_post_logs_post_logs_component__WEBPACK_IMPORTED_MODULE_138__["PostLogsComponent"],
_pages_gamification_challenges_challenges_overview_view_challanges_view_challanges_component__WEBPACK_IMPORTED_MODULE_81__["ViewChallangesComponent"],
_pages_operations_setup_bu_shift_setup_bu_shift_setup_component__WEBPACK_IMPORTED_MODULE_105__["BuShiftSetupComponent"],
_pages_operations_setup_bu_shift_setup_bu_shift_setup_overview_bu_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_104__["BuShiftSetupOverviewComponent"],
_pages_operations_setup_shift_scheme_shift_scheme_overview_shift_scheme_overview_component__WEBPACK_IMPORTED_MODULE_108__["ShiftSchemeOverviewComponent"],
_pages_operations_setup_shift_scheme_shift_scheme_logs_shift_scheme_logs_component__WEBPACK_IMPORTED_MODULE_107__["ShiftSchemeLogsComponent"],
_pages_operations_setup_shift_scheme_shift_scheme_edit_shift_scheme_edit_component__WEBPACK_IMPORTED_MODULE_106__["ShiftSchemeEditComponent"],
_pages_operations_setup_shift_scheme_shift_scheme_component__WEBPACK_IMPORTED_MODULE_109__["ShiftSchemeComponent"],
_pages_operations_setup_user_shift_setup_user_shift_setup_component__WEBPACK_IMPORTED_MODULE_111__["UserShiftSetupComponent"],
_pages_operations_setup_user_shift_setup_user_shift_setup_overview_user_shift_setup_overview_component__WEBPACK_IMPORTED_MODULE_110__["UserShiftSetupOverviewComponent"],
_pages_operations_shift_scheduler_plan_shift_plan_shift_component__WEBPACK_IMPORTED_MODULE_121__["PlanShiftComponent"],
_pages_operations_shift_scheduler_plan_shift_open_shift_open_shift_component__WEBPACK_IMPORTED_MODULE_118__["OpenShiftComponent"],
_pages_operations_shift_scheduler_plan_shift_plan_shift_header_plan_shift_header_component__WEBPACK_IMPORTED_MODULE_120__["PlanShiftHeaderComponent"],
_pages_operations_shift_scheduler_plan_shift_log_assign_log_assign_component__WEBPACK_IMPORTED_MODULE_116__["LogAssignComponent"],
_pages_operations_shift_scheduler_plan_shift_log_open_log_open_component__WEBPACK_IMPORTED_MODULE_117__["LogOpenComponent"],
_pages_operations_shift_scheduler_plan_shift_assign_shift_assign_shift_component__WEBPACK_IMPORTED_MODULE_115__["AssignShiftComponent"],
_pages_operations_shift_scheduler_plan_shift_staffing_staffing_component__WEBPACK_IMPORTED_MODULE_122__["StaffingComponent"],
_pages_operations_shift_scheduler_plan_shift_plan_overview_plan_overview_component__WEBPACK_IMPORTED_MODULE_119__["PlanOverviewComponent"],
_pages_operations_shift_scheduler_manage_shift_manage_shift_component__WEBPACK_IMPORTED_MODULE_112__["ManageShiftComponent"],
_pages_operations_shift_scheduler_manage_shift_manage_manage_component__WEBPACK_IMPORTED_MODULE_113__["ManageComponent"],
_pages_operations_shift_scheduler_manage_service_manage_service_tab_manage_service_tab_component__WEBPACK_IMPORTED_MODULE_187__["ManageServiceTabComponent"],
_pages_operations_shift_scheduler_manage_shift_status_status_component__WEBPACK_IMPORTED_MODULE_114__["StatusComponent"],
_pages_operations_shift_scheduler_view_shift_view_shift_component__WEBPACK_IMPORTED_MODULE_131__["ViewShiftComponent"],
_pages_operations_shift_scheduler_view_booking_view_booking_component__WEBPACK_IMPORTED_MODULE_130__["ViewBookingComponent"],
_pages_operations_shift_scheduler_view_booking_booking_booking_component__WEBPACK_IMPORTED_MODULE_128__["BookingComponent"],
_pages_operations_shift_scheduler_view_booking_view_booking_overview_view_booking_overview_component__WEBPACK_IMPORTED_MODULE_129__["ViewBookingOverviewComponent"],
_pages_operations_shift_scheduler_timesheet_timesheet_component__WEBPACK_IMPORTED_MODULE_127__["TimesheetComponent"],
_pages_operations_shift_scheduler_timesheet_attendance_attendance_component__WEBPACK_IMPORTED_MODULE_123__["AttendanceComponent"],
_pages_operations_shift_scheduler_timesheet_timesheet_data_timesheet_data_component__WEBPACK_IMPORTED_MODULE_124__["TimesheetDataComponent"],
_pages_operations_shift_scheduler_timesheet_timesheet_lookup_timesheet_lookup_component__WEBPACK_IMPORTED_MODULE_125__["TimesheetLookupComponent"],
_pages_operations_shift_scheduler_timesheet_timesheet_overview_timesheet_overview_component__WEBPACK_IMPORTED_MODULE_126__["TimesheetOverviewComponent"],
_pages_operations_report_list_shift_list_shift_component__WEBPACK_IMPORTED_MODULE_102__["ListShiftComponent"],
_pages_operations_report_list_booking_list_booking_component__WEBPACK_IMPORTED_MODULE_100__["ListBookingComponent"],
_pages_operations_report_list_cancellation_list_cancellation_component__WEBPACK_IMPORTED_MODULE_101__["ListCancellationComponent"],
_pages_operations_report_list_user_list_user_component__WEBPACK_IMPORTED_MODULE_103__["ListUserComponent"],
_pages_human_resource_leave_scheme_leave_scheme_component__WEBPACK_IMPORTED_MODULE_99__["LeaveSchemeComponent"],
_pages_human_resource_leave_scheme_leave_overview_leave_overview_component__WEBPACK_IMPORTED_MODULE_98__["LeaveOverviewComponent"],
_pages_human_resource_leave_scheme_leave_grp_overview_leave_grp_overview_component__WEBPACK_IMPORTED_MODULE_97__["LeaveGrpOverviewComponent"],
_pages_human_resource_leave_balloting_leave_balloting_component__WEBPACK_IMPORTED_MODULE_90__["LeaveBallotingComponent"],
_pages_human_resource_leave_planner_leave_planner_component__WEBPACK_IMPORTED_MODULE_94__["LeavePlannerComponent"],
_pages_human_resource_leave_balloting_create_ballot_create_ballot_component__WEBPACK_IMPORTED_MODULE_89__["CreateBallotComponent"],
_pages_human_resource_leave_balloting_manage_ballot_manage_ballot_component__WEBPACK_IMPORTED_MODULE_91__["ManageBallotComponent"],
_pages_human_resource_leave_planner_dashboard_dashboard_component__WEBPACK_IMPORTED_MODULE_93__["DashboardComponent"],
_pages_human_resource_leave_planner_approve_approve_component__WEBPACK_IMPORTED_MODULE_92__["ApproveComponent"],
_pages_human_resource_leave_planner_swap_restrictions_swap_restrictions_component__WEBPACK_IMPORTED_MODULE_96__["SwapRestrictionsComponent"],
_pages_human_resource_leave_planner_ops_leave_quota_ops_leave_quota_component__WEBPACK_IMPORTED_MODULE_95__["OpsLeaveQuotaComponent"],
_pages_admin_users_facial_id_facial_overview_facial_overview_component__WEBPACK_IMPORTED_MODULE_160__["FacialOverviewComponent"],
_pages_admin_users_facial_id_facial_id_component__WEBPACK_IMPORTED_MODULE_85__["FacialIdComponent"],
_pages_admin_users_ops_group_ops_group_component__WEBPACK_IMPORTED_MODULE_87__["OpsGroupComponent"],
_pages_admin_users_ops_group_ops_edit_ops_edit_component__WEBPACK_IMPORTED_MODULE_149__["OpsEditComponent"],
_pages_admin_users_ops_group_ops_overview_ops_overview_component__WEBPACK_IMPORTED_MODULE_88__["OpsOverviewComponent"],
_pages_admin_users_ops_group_ops_add_staff_ops_add_staff_component__WEBPACK_IMPORTED_MODULE_86__["OpsAddStaffComponent"],
_pages_system_settings_integration_logs_integration_logs_component__WEBPACK_IMPORTED_MODULE_136__["IntegrationLogsComponent"],
_pages_operations_shift_scheduler_manage_shift_manage_overview_manage_overview_component__WEBPACK_IMPORTED_MODULE_141__["ManageOverviewComponent"],
_pages_auth_terms_and_conditions_terms_and_conditions_component__WEBPACK_IMPORTED_MODULE_142__["TermsAndConditionsComponent"],
_pages_auth_support_support_component__WEBPACK_IMPORTED_MODULE_143__["SupportComponent"],
_pages_system_settings_company_setup_point_system_point_system_component__WEBPACK_IMPORTED_MODULE_145__["PointSystemComponent"],
_pages_system_settings_company_setup_my_page_my_page_component__WEBPACK_IMPORTED_MODULE_144__["MyPageComponent"],
_pages_system_settings_company_setup_others_others_component__WEBPACK_IMPORTED_MODULE_146__["OthersComponent"],
_pages_system_settings_company_setup_leavemng_skillset_leavemng_skillset_component__WEBPACK_IMPORTED_MODULE_151__["LeavemngSkillsetComponent"],
_pages_notification_notification_component__WEBPACK_IMPORTED_MODULE_152__["NotificationComponent"],
_pages_notification_schedule_schedule_component__WEBPACK_IMPORTED_MODULE_153__["ScheduleComponent"],
_pages_notification_pushed_pushed_component__WEBPACK_IMPORTED_MODULE_154__["PushedComponent"],
_pages_notification_create_create_component__WEBPACK_IMPORTED_MODULE_155__["CreateComponent"],
_pages_human_resource_leave_balloting_view_ballot_view_ballot_component__WEBPACK_IMPORTED_MODULE_157__["ViewBallotComponent"],
_pages_operations_setup_bu_shift_setup_add_map_setup_add_map_setup_component__WEBPACK_IMPORTED_MODULE_158__["AddMapSetupComponent"],
_pages_admin_users_facial_id_facial_edit_facial_edit_component__WEBPACK_IMPORTED_MODULE_162__["FacialEditComponent"],
_pages_central_builder_forms_view_forms_view_forms_component__WEBPACK_IMPORTED_MODULE_164__["ViewFormsComponent"],
_pages_central_builder_my_forms_my_forms_view_my_forms_view_component__WEBPACK_IMPORTED_MODULE_165__["MyFormsViewComponent"],
_pages_central_builder_my_forms_signature_questions_signature_questions_component__WEBPACK_IMPORTED_MODULE_166__["SignatureQuestionsComponent"],
_pages_central_builder_my_forms_view_view_component__WEBPACK_IMPORTED_MODULE_167__["ViewComponent"],
_pages_auth_password_expired_password_expired_component__WEBPACK_IMPORTED_MODULE_168__["PasswordExpiredComponent"],
_pages_central_builder_forms_form_manage_form_manage_edit_form_manage_edit_component__WEBPACK_IMPORTED_MODULE_169__["FormManageEditComponent"],
_pages_central_builder_forms_form_manage_admin_question_form_admin_question_form_component__WEBPACK_IMPORTED_MODULE_171__["AdminQuestionFormComponent"],
_pages_auth_welcomepage_welcomepage_component__WEBPACK_IMPORTED_MODULE_172__["WelcomepageComponent"],
_pages_operations_setup_service_setup_service_setup_component__WEBPACK_IMPORTED_MODULE_174__["ServiceSetupComponent"],
_pages_operations_setup_service_setup_service_setup_overview_service_setup_overview_component__WEBPACK_IMPORTED_MODULE_175__["ServiceSetupOverviewComponent"],
_pages_operations_shift_scheduler_plan_service_plan_service_component__WEBPACK_IMPORTED_MODULE_176__["PlanServiceComponent"],
_pages_operations_shift_scheduler_manage_service_manage_service_component__WEBPACK_IMPORTED_MODULE_177__["ManageServiceComponent"],
_pages_operations_shift_scheduler_plan_service_create_service_create_service_component__WEBPACK_IMPORTED_MODULE_178__["CreateServiceComponent"],
_pages_central_builder_forms_form_manage_dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_179__["DynamicTableFormComponent"],
_pages_central_builder_forms_form_manage_stats_display_stats_display__WEBPACK_IMPORTED_MODULE_180__["StatsDisplayComponent"],
_pages_central_builder_forms_form_manage_filter_display_filter_display__WEBPACK_IMPORTED_MODULE_181__["FilterDisplayComponent"],
_pages_central_builder_forms_form_manage_edit_response_edit_response__WEBPACK_IMPORTED_MODULE_182__["EditResponseComponent"],
_pages_central_builder_forms_form_manage_admin_create_indent_admin_create_indent__WEBPACK_IMPORTED_MODULE_183__["AdminCreateIndentComponent"],
_pages_central_builder_forms_form_manage_indent_draft_list_indent_draft_list__WEBPACK_IMPORTED_MODULE_184__["IndentDraftListComponent"],
_pages_central_builder_forms_form_manage_admin_form_logs_admin_form_logs__WEBPACK_IMPORTED_MODULE_186__["AdminFormLogsComponent"],
_pages_operations_shift_scheduler_plan_service_plan_service_logs_plan_service_logs_component__WEBPACK_IMPORTED_MODULE_188__["PlanServiceLogsComponent"],
_pages_operations_shift_scheduler_manage_service_manage_service_logs_manage_service_logs_component__WEBPACK_IMPORTED_MODULE_189__["ManageServiceLogsComponent"],
_pages_admin_users_manage_transport_manage_transport_component__WEBPACK_IMPORTED_MODULE_190__["ManageTransportComponent"],
_pages_central_builder_forms_form_manage_dynamic_table_form_workflow_workflow_status_modal_component__WEBPACK_IMPORTED_MODULE_191__["WorkflowStatusModalComponent"]
],
imports: [
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
_users_routing_module__WEBPACK_IMPORTED_MODULE_80__["UserRoutingModule"],
_ng_bootstrap_ng_bootstrap__WEBPACK_IMPORTED_MODULE_5__["NgbModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"],
_shared_shared_module__WEBPACK_IMPORTED_MODULE_7__["SharedModule"],
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_13__["NgSelectModule"],
ng2_date_picker__WEBPACK_IMPORTED_MODULE_20__["DpDatePickerModule"],
ngx_image_cropper__WEBPACK_IMPORTED_MODULE_15__["ImageCropperModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["ReactiveFormsModule"],
ngx_intl_tel_input__WEBPACK_IMPORTED_MODULE_19__["NgxIntlTelInputModule"],
ng2_charts__WEBPACK_IMPORTED_MODULE_140__["ChartsModule"],
_zxing_ngx_scanner__WEBPACK_IMPORTED_MODULE_139__["ZXingScannerModule"],
ngx_webcam__WEBPACK_IMPORTED_MODULE_161__["WebcamModule"],
_agm_core__WEBPACK_IMPORTED_MODULE_159__["AgmCoreModule"].forRoot({
apiKey: 'AIzaSyB2_gxfxDXf2CC7Zeq9w3JpzTkydW_bn4Y',
libraries: ['places'],
}),
angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_84__["FroalaEditorModule"].forRoot(),
angular_froala_wysiwyg__WEBPACK_IMPORTED_MODULE_84__["FroalaViewModule"].forRoot(),
angular_calendar__WEBPACK_IMPORTED_MODULE_147__["CalendarModule"].forRoot({
provide: angular_calendar__WEBPACK_IMPORTED_MODULE_147__["DateAdapter"],
useFactory: angular_calendar_date_adapters_date_fns__WEBPACK_IMPORTED_MODULE_148__["adapterFactory"],
}),
angular_datatables__WEBPACK_IMPORTED_MODULE_156__["DataTablesModule"],
ngx_skeleton_loader__WEBPACK_IMPORTED_MODULE_163__["NgxSkeletonLoaderModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["FormsModule"],
_angular_forms__WEBPACK_IMPORTED_MODULE_6__["ReactiveFormsModule"],
_techiediaries_ngx_qrcode__WEBPACK_IMPORTED_MODULE_170__["NgxQRCodeModule"],
ngx_pagination__WEBPACK_IMPORTED_MODULE_185__["NgxPaginationModule"]
],
providers: [
_service_auth_auth_service__WEBPACK_IMPORTED_MODULE_11__["AuthService"],
_guards_auth_guard__WEBPACK_IMPORTED_MODULE_10__["AuthGuard"],
_angular_common__WEBPACK_IMPORTED_MODULE_1__["DatePipe"],
_shared_token_interceptor_auth_interceptor_service__WEBPACK_IMPORTED_MODULE_173__["authInterceptorProviders"]
],
exports: [
_pages_central_builder_forms_form_manage_form_manage_component__WEBPACK_IMPORTED_MODULE_41__["FormManageComponent"],
_pages_central_builder_forms_form_manage_dynamic_table_form_dynamic_table_form__WEBPACK_IMPORTED_MODULE_179__["DynamicTableFormComponent"],
]
}]
}], null, null); })();
/***/ })
},[[0,"runtime","vendor"]]]);
//# sourceMappingURL=main.js.map